(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3030],{1812:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/world/reference/world-context",function(){return s(97279)}])},73307:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(7505),n=s(11689);let l={logo:function(){return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25em",fontSize:"32px",fontFamily:"PP Supply Mono",textTransform:"uppercase"},children:[(0,r.jsx)("img",{src:"/images/logos/mud-white.svg",style:{height:"calc(var(--nextra-navbar-height) - 35px)"},alt:"MUD logo"}),"MUD"]})},useNextSeoProps(){let{asPath:e}=(0,n.useRouter)();return{titleTemplate:"/"===e?"MUD – a framework for ambitious Ethereum applications":"%s – MUD"}},project:{link:"https://github.com/latticexyz/mud"},docsRepositoryBase:"https://github.com/latticexyz/mud/tree/main/docs",head:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("meta",{property:"title",content:"MUD documentation"})}),darkMode:!1,nextThemes:{defaultTheme:"dark"},footer:{text:"MIT 2023 \xa9 MUD"},primaryHue:28,sidebar:{defaultMenuCollapseLevel:1}};var i=l},97279:function(e,t,s){"use strict";s.r(t);var r=s(7505),n=s(42585),l=s(38288),i=s(73307);s(54693);var o=s(26736);s(98823);let d={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,o.ah)(),e.components);return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(a,{...e})}):a(e)},pageOpts:{filePath:"pages/world/reference/world-context.mdx",route:"/world/reference/world-context",headings:[{depth:2,value:"WorldContextConsumer",id:"worldcontextconsumer"},{depth:3,value:"Functions",id:"functions"},{depth:4,value:"_msgSender",id:"_msgsender"},{depth:4,value:"_msgValue",id:"_msgvalue"},{depth:4,value:"_world",id:"_world"},{depth:4,value:"supportsInterface",id:"supportsinterface"},{depth:2,value:"WorldContext.sol constants",id:"worldcontextsol-constants"},{depth:4,value:"CONTEXT_BYTES",id:"context_bytes"},{depth:2,value:"WorldContextConsumerLib",id:"worldcontextconsumerlib"},{depth:3,value:"Functions",id:"functions-1"},{depth:4,value:"_msgSender",id:"_msgsender-1"},{depth:4,value:"_msgValue",id:"_msgvalue-1"},{depth:4,value:"_world",id:"_world-1"},{depth:2,value:"WorldContextProviderLib",id:"worldcontextproviderlib"},{depth:3,value:"Functions",id:"functions-2"},{depth:4,value:"appendContext",id:"appendcontext"},{depth:4,value:"callWithContext",id:"callwithcontext"},{depth:4,value:"delegatecallWithContext",id:"delegatecallwithcontext"},{depth:4,value:"callWithContextOrRevert",id:"callwithcontextorrevert"},{depth:4,value:"delegatecallWithContextOrRevert",id:"delegatecallwithcontextorrevert"}],pageMap:[{kind:"Meta",data:{introduction:{title:"What is MUD?",theme:{breadcrumb:!1}},quickstart:{title:"Get started",theme:{breadcrumb:!1}},protocol:{title:"Protocol",type:"separator"},store:"Store",world:"World",framework:{title:"Framework",type:"separator"},config:"Config",cli:"CLI","state-query":"State Query",indexer:"Indexer","world-explorer":{title:"World Explorer",theme:{breadcrumb:!1}},"---":{title:"",type:"separator"},guides:"Guides",templates:"Templates","best-practices":"Best Practices",contribute:{title:"Contribute",theme:{breadcrumb:!1}},changelog:"Changelog",retrospectives:"Retrospectives",audits:"Audits",version:{title:"2.2.10",type:"menu",items:{changelog:{title:"Changelog",href:"/changelog"},contribute:{title:"Contribute",href:"/contribute"}}},community:{title:"Community",type:"page",href:"https://community.mud.dev",newWindow:!0},twitter:{title:"Twitter",type:"page",href:"https://twitter.com/latticexyz",newWindow:!0},discord:{title:"Discord",type:"page",href:"https://lattice.xyz/discord",newWindow:!0}}},{kind:"Folder",name:"audits",route:"/audits",children:[{kind:"MdxPage",name:"2024-02-11-open-zeppelin",route:"/audits/2024-02-11-open-zeppelin"},{kind:"Meta",data:{"2024-02-11-open-zeppelin":"2024-02-11 OpenZeppelin",pdf:{display:"hidden"},icons:{display:"hidden"}}}]},{kind:"Folder",name:"best-practices",route:"/best-practices",children:[{kind:"Meta",data:{"dividing-into-systems":"Dividing Code into Systems",system:"System Best Practices","deployment-settings":"Recommended Deployment Settings","aws-kms":"Deploy production worlds using AWS KMS"}},{kind:"MdxPage",name:"aws-kms",route:"/best-practices/aws-kms"},{kind:"MdxPage",name:"deployment-settings",route:"/best-practices/deployment-settings"},{kind:"MdxPage",name:"dividing-into-systems",route:"/best-practices/dividing-into-systems"},{kind:"MdxPage",name:"system",route:"/best-practices/system"}]},{kind:"MdxPage",name:"changelog",route:"/changelog"},{kind:"Folder",name:"cli",route:"/cli",children:[{kind:"Meta",data:{tablegen:"mud tablegen",worldgen:"mud worldgen",test:"mud test",deploy:"mud deploy",verify:"mud verify","dev-contracts":"mud dev-contracts","abi-ts":"mud abi-ts","set-version":"mud set-version"}},{kind:"MdxPage",name:"abi-ts",route:"/cli/abi-ts"},{kind:"MdxPage",name:"deploy",route:"/cli/deploy"},{kind:"MdxPage",name:"dev-contracts",route:"/cli/dev-contracts"},{kind:"MdxPage",name:"set-version",route:"/cli/set-version"},{kind:"MdxPage",name:"tablegen",route:"/cli/tablegen"},{kind:"MdxPage",name:"test",route:"/cli/test"},{kind:"MdxPage",name:"verify",route:"/cli/verify"},{kind:"MdxPage",name:"worldgen",route:"/cli/worldgen"}]},{kind:"Folder",name:"config",route:"/config",children:[{kind:"MdxPage",name:"reference",route:"/config/reference"},{kind:"Meta",data:{reference:"Reference"}}]},{kind:"MdxPage",name:"config",route:"/config"},{kind:"MdxPage",name:"contribute",route:"/contribute"},{kind:"Folder",name:"guides",route:"/guides",children:[{kind:"Meta",data:{"hello-world":"Hello World","extending-a-world":"Extending a World","adding-delegation":"Adding Delegation",modules:"Writing MUD Modules",emojimon:"Emojimon",testing:"Testing","replicating-onchain-state":"Replicating onchain state"}},{kind:"MdxPage",name:"adding-delegation",route:"/guides/adding-delegation"},{kind:"Folder",name:"emojimon",route:"/guides/emojimon",children:[{kind:"MdxPage",name:"1-preface-the-ecs-model",route:"/guides/emojimon/1-preface-the-ecs-model"},{kind:"MdxPage",name:"2-getting-started",route:"/guides/emojimon/2-getting-started"},{kind:"MdxPage",name:"3-players-and-movement",route:"/guides/emojimon/3-players-and-movement"},{kind:"MdxPage",name:"4-map-and-terrain",route:"/guides/emojimon/4-map-and-terrain"},{kind:"MdxPage",name:"5-a-wild-emojimon-appears",route:"/guides/emojimon/5-a-wild-emojimon-appears"},{kind:"MdxPage",name:"6-advanced",route:"/guides/emojimon/6-advanced"},{kind:"Meta",data:{"1-preface-the-ecs-model":"Preface: the ECS model","2-getting-started":"Getting started","3-players-and-movement":"Players and movement","4-map-and-terrain":"Map and terrain","5-a-wild-emojimon-appears":"A wild Emojimon appears","6-advanced":"Advanced features"}}]},{kind:"MdxPage",name:"emojimon",route:"/guides/emojimon"},{kind:"Folder",name:"extending-a-world",route:"/guides/extending-a-world",children:[{kind:"Meta",data:{index:"Extending a World Permissionlessly"}},{kind:"MdxPage",name:"index",route:"/guides/extending-a-world"}]},{kind:"Folder",name:"hello-world",route:"/guides/hello-world",children:[{kind:"Meta",data:{"add-table":"Add a table","filter-sync":"Filter data synchronization","add-system":"Add a system",deploy:"Deploy to a blockchain","add-chain-client":"Add chains to the client"}},{kind:"MdxPage",name:"add-chain-client",route:"/guides/hello-world/add-chain-client"},{kind:"MdxPage",name:"add-system",route:"/guides/hello-world/add-system"},{kind:"MdxPage",name:"add-table",route:"/guides/hello-world/add-table"},{kind:"MdxPage",name:"deploy",route:"/guides/hello-world/deploy"},{kind:"MdxPage",name:"filter-sync",route:"/guides/hello-world/filter-sync"}]},{kind:"MdxPage",name:"hello-world",route:"/guides/hello-world"},{kind:"MdxPage",name:"modules",route:"/guides/modules"},{kind:"MdxPage",name:"replicating-onchain-state",route:"/guides/replicating-onchain-state"},{kind:"MdxPage",name:"testing",route:"/guides/testing"}]},{kind:"Folder",name:"indexer",route:"/indexer",children:[{kind:"Meta",data:{using:"Using the Indexer",sqlite:"SQLite Indexer","postgres-event-only":"PostgreSQL for events","postgres-decoded":"PostgreSQL for data (and events)",sql:"SQL API (Experimental)"}},{kind:"MdxPage",name:"postgres-decoded",route:"/indexer/postgres-decoded"},{kind:"MdxPage",name:"postgres-event-only",route:"/indexer/postgres-event-only"},{kind:"MdxPage",name:"sql",route:"/indexer/sql"},{kind:"MdxPage",name:"sqlite",route:"/indexer/sqlite"},{kind:"MdxPage",name:"using",route:"/indexer/using"}]},{kind:"MdxPage",name:"indexer",route:"/indexer"},{kind:"MdxPage",name:"introduction",route:"/introduction"},{kind:"MdxPage",name:"quickstart",route:"/quickstart"},{kind:"Folder",name:"retrospectives",route:"/retrospectives",children:[{kind:"MdxPage",name:"2023-09-12-register-system-vulnerability",route:"/retrospectives/2023-09-12-register-system-vulnerability"},{kind:"MdxPage",name:"2024-04-17-storeread-getdynamicfieldlength-bug",route:"/retrospectives/2024-04-17-storeread-getdynamicfieldlength-bug"},{kind:"Meta",data:{"2024-04-17-storeread-getdynamicfieldlength-bug":"2024-04-17 StoreRead.getDynamicFieldLength bug","2023-09-12-register-system-vulnerability":"2023-09-12 registerSystem vulnerability"}}]},{kind:"Folder",name:"state-query",route:"/state-query",children:[{kind:"Meta",data:{typescript:"TypeScript"}},{kind:"Folder",name:"typescript",route:"/state-query/typescript",children:[{kind:"Meta",data:{recs:"RECS",zustand:"Zustand"}},{kind:"MdxPage",name:"recs",route:"/state-query/typescript/recs"},{kind:"MdxPage",name:"zustand",route:"/state-query/typescript/zustand"}]}]},{kind:"Folder",name:"store",route:"/store",children:[{kind:"Meta",data:{introduction:"Introduction","data-model":"Data model",tables:"Tables","table-libraries":"Table libraries",encoding:"Encoding","store-hooks":"Store hooks",reference:"Reference"}},{kind:"MdxPage",name:"data-model",route:"/store/data-model"},{kind:"MdxPage",name:"encoding",route:"/store/encoding"},{kind:"MdxPage",name:"introduction",route:"/store/introduction"},{kind:"Folder",name:"reference",route:"/store/reference",children:[{kind:"Meta",data:{"store-core":"StoreCore (internal)",store:"IStore (external)","store-hook":"StoreHook",misc:"Miscellaneous"}},{kind:"MdxPage",name:"misc",route:"/store/reference/misc"},{kind:"MdxPage",name:"store-core",route:"/store/reference/store-core"},{kind:"MdxPage",name:"store-hook",route:"/store/reference/store-hook"},{kind:"MdxPage",name:"store",route:"/store/reference/store"}]},{kind:"MdxPage",name:"store-hooks",route:"/store/store-hooks"},{kind:"MdxPage",name:"table-libraries",route:"/store/table-libraries"},{kind:"MdxPage",name:"tables",route:"/store/tables"}]},{kind:"Folder",name:"templates",route:"/templates",children:[{kind:"Meta",data:{typescript:"TypeScript",godot:"Godot",pwa:"Progressive Web App (for mobile)",swift:"Swift",svelte:"Svelte",unity:"Unity",nethereum:"Nethereum"}},{kind:"MdxPage",name:"godot",route:"/templates/godot"},{kind:"MdxPage",name:"nethereum",route:"/templates/nethereum"},{kind:"MdxPage",name:"pwa",route:"/templates/pwa"},{kind:"MdxPage",name:"svelte",route:"/templates/svelte"},{kind:"MdxPage",name:"swift",route:"/templates/swift"},{kind:"Folder",name:"typescript",route:"/templates/typescript",children:[{kind:"Meta",data:{contracts:"Contracts",vanilla:"Vanilla","react-ecs":"React-ECS",threejs:"Three.js",vue:"Vue"}},{kind:"MdxPage",name:"contracts",route:"/templates/typescript/contracts"},{kind:"MdxPage",name:"react-ecs",route:"/templates/typescript/react-ecs"},{kind:"MdxPage",name:"threejs",route:"/templates/typescript/threejs"},{kind:"MdxPage",name:"vanilla",route:"/templates/typescript/vanilla"},{kind:"MdxPage",name:"vue",route:"/templates/typescript/vue"}]},{kind:"MdxPage",name:"unity",route:"/templates/unity"}]},{kind:"MdxPage",name:"templates",route:"/templates"},{kind:"Folder",name:"world",route:"/world",children:[{kind:"Meta",data:{introduction:"Introduction","resource-ids":"Resource Identifiers","namespaces-access-control":"Namespaces & Access Control",tables:"Tables",systems:"Systems","system-hooks":"System Hooks","function-selectors":"Function Selectors",balance:"Balance","account-delegation":"Account Delegation","batch-calls":"Batch Calls",upgrades:"Upgrading",modules:"Modules",reference:"Reference"}},{kind:"MdxPage",name:"account-delegation",route:"/world/account-delegation"},{kind:"MdxPage",name:"balance",route:"/world/balance"},{kind:"MdxPage",name:"batch-calls",route:"/world/batch-calls"},{kind:"MdxPage",name:"function-selectors",route:"/world/function-selectors"},{kind:"MdxPage",name:"introduction",route:"/world/introduction"},{kind:"Folder",name:"modules",route:"/world/modules",children:[{kind:"Meta",data:{keyswithvalue:"Keys with Value",keysintable:"Keys in Table",erc20:"ERC-20 tokens",erc721:"ERC-721 (NFT)"}},{kind:"MdxPage",name:"erc20",route:"/world/modules/erc20"},{kind:"MdxPage",name:"erc721",route:"/world/modules/erc721"},{kind:"MdxPage",name:"keysintable",route:"/world/modules/keysintable"},{kind:"MdxPage",name:"keyswithvalue",route:"/world/modules/keyswithvalue"}]},{kind:"MdxPage",name:"modules",route:"/world/modules"},{kind:"MdxPage",name:"namespaces-access-control",route:"/world/namespaces-access-control"},{kind:"Folder",name:"reference",route:"/world/reference",children:[{kind:"Meta",data:{"delegation-external":"Delegation (interface)",module:"Modules","module-external":"Modules (interface)",system:"Systems","system-external":"Systems (interface)",world:"World","world-external":"World (interfaces)","world-context":"World context","world-context-external":"World context (interface)","resource-ids":"Resource IDs",misc:"Miscellaneous",internal:"Internals"}},{kind:"MdxPage",name:"delegation-external",route:"/world/reference/delegation-external"},{kind:"Folder",name:"internal",route:"/world/reference/internal",children:[{kind:"Meta",data:{"access-control":"Access Control",create:"Create2",delegation:"Delegation",erc165:"ERC165","erc165-external":"ERC165 (interface)","init-module":"Init Module","init-module-implementation":"Init Module Implementation",systemcall:"SystemCall"}},{kind:"MdxPage",name:"access-control",route:"/world/reference/internal/access-control"},{kind:"MdxPage",name:"create",route:"/world/reference/internal/create"},{kind:"MdxPage",name:"delegation",route:"/world/reference/internal/delegation"},{kind:"MdxPage",name:"erc165-external",route:"/world/reference/internal/erc165-external"},{kind:"MdxPage",name:"erc165",route:"/world/reference/internal/erc165"},{kind:"MdxPage",name:"init-module-implementation",route:"/world/reference/internal/init-module-implementation"},{kind:"MdxPage",name:"init-module",route:"/world/reference/internal/init-module"},{kind:"MdxPage",name:"systemcall",route:"/world/reference/internal/systemcall"}]},{kind:"MdxPage",name:"misc",route:"/world/reference/misc"},{kind:"MdxPage",name:"module-external",route:"/world/reference/module-external"},{kind:"MdxPage",name:"module",route:"/world/reference/module"},{kind:"MdxPage",name:"resource-ids",route:"/world/reference/resource-ids"},{kind:"MdxPage",name:"system-external",route:"/world/reference/system-external"},{kind:"MdxPage",name:"system",route:"/world/reference/system"},{kind:"MdxPage",name:"world-context-external",route:"/world/reference/world-context-external"},{kind:"MdxPage",name:"world-context",route:"/world/reference/world-context"},{kind:"MdxPage",name:"world-external",route:"/world/reference/world-external"},{kind:"MdxPage",name:"world",route:"/world/reference/world"}]},{kind:"MdxPage",name:"resource-ids",route:"/world/resource-ids"},{kind:"MdxPage",name:"system-hooks",route:"/world/system-hooks"},{kind:"MdxPage",name:"systems",route:"/world/systems"},{kind:"MdxPage",name:"tables",route:"/world/tables"},{kind:"MdxPage",name:"upgrades",route:"/world/upgrades"}]},{kind:"MdxPage",name:"world-explorer",route:"/world-explorer"}],flexsearch:{codeblocks:!0},title:"World Context"},pageNextRoute:"/world/reference/world-context",nextraLayout:l.ZP,themeConfig:i.Z};function a(e){let t=Object.assign({h2:"h2",p:"p",a:"a",strong:"strong",em:"em",h3:"h3",h4:"h4",code:"code",pre:"pre",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},(0,o.ah)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h2,{id:"worldcontextconsumer",children:"WorldContextConsumer"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldContext.sol",children:"Git Source"})}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Inherits:"}),"\n",(0,r.jsx)(t.a,{href:"/world/reference/world-context-external#iworldcontextconsumer",children:"IWorldContextConsumer"})]}),"\n",(0,r.jsxs)(t.p,{children:["This contract is designed to extract trusted context values (like msg.sender and msg.value)\nfrom the appended calldata. It provides mechanisms similar to EIP-2771 (",(0,r.jsx)(t.a,{href:"https://eips.ethereum.org/EIPS/eip-2771",children:"https://eips.ethereum.org/EIPS/eip-2771"}),"),\nbut allowing any contract to be the trusted forwarder."]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.em,{children:"This contract should only be used for contracts without their own storage, like Systems."})}),"\n",(0,r.jsx)(t.h3,{id:"functions",children:"Functions"}),"\n",(0,r.jsx)(t.h4,{id:"_msgsender",children:"_msgSender"}),"\n",(0,r.jsxs)(t.p,{children:["Extract the ",(0,r.jsx)(t.code,{children:"msg.sender"})," from the context appended to the calldata."]}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"_msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" sender);"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"sender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsxs)(t.td,{children:["The ",(0,r.jsx)(t.code,{children:"msg.sender"})," in the call to the World contract before the World routed the call to the WorldContextConsumer contract."]})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"_msgvalue",children:"_msgValue"}),"\n",(0,r.jsxs)(t.p,{children:["Extract the ",(0,r.jsx)(t.code,{children:"msg.value"})," from the context appended to the calldata."]}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"_msgValue"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" value);"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"value"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsxs)(t.td,{children:["The ",(0,r.jsx)(t.code,{children:"msg.value"})," in the call to the World contract before the World routed the call to the WorldContextConsumer contract."]})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"_world",children:"_world"}),"\n",(0,r.jsx)(t.p,{children:"Get the address of the World contract that routed the call to this WorldContextConsumer."}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"_world"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"<none>"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the World contract that routed the call to this WorldContextConsumer."})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"supportsinterface",children:"supportsInterface"}),"\n",(0,r.jsxs)(t.p,{children:["Checks if an interface is supported by the contract.\nusing ERC-165 supportsInterface (see ",(0,r.jsx)(t.a,{href:"https://eips.ethereum.org/EIPS/eip-165",children:"https://eips.ethereum.org/EIPS/eip-165"}),")"]}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"supportsInterface"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes4"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" interfaceId) "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bool"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Parameters"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"interfaceId"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes4"})}),(0,r.jsx)(t.td,{children:"The ID of the interface in question."})]})})]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"<none>"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bool"})}),(0,r.jsx)(t.td,{children:"True if the interface is supported, false otherwise."})]})})]}),"\n",(0,r.jsx)(t.h2,{id:"worldcontextsol-constants",children:"WorldContext.sol constants"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldContext.sol",children:"Git Source"})}),"\n",(0,r.jsx)(t.h4,{id:"context_bytes",children:"CONTEXT_BYTES"}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" CONTEXT_BYTES "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"20"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"+"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"32"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,r.jsx)(t.h2,{id:"worldcontextconsumerlib",children:"WorldContextConsumerLib"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldContext.sol",children:"Git Source"})}),"\n",(0,r.jsx)(t.p,{children:"Helpers for working with data in the context of calling a World"}),"\n",(0,r.jsx)(t.h3,{id:"functions-1",children:"Functions"}),"\n",(0,r.jsx)(t.h4,{id:"_msgsender-1",children:"_msgSender"}),"\n",(0,r.jsxs)(t.p,{children:["Extract the ",(0,r.jsx)(t.code,{children:"msg.sender"})," from the context appended to the calldata."]}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"_msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" sender);"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"sender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsxs)(t.td,{children:["The ",(0,r.jsx)(t.code,{children:"msg.sender"})," in the call to the World contract before the World routed the call to the WorldContextConsumer contract."]})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"_msgvalue-1",children:"_msgValue"}),"\n",(0,r.jsxs)(t.p,{children:["Extract the ",(0,r.jsx)(t.code,{children:"msg.value"})," from the context appended to the calldata."]}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"_msgValue"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" value);"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"value"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsxs)(t.td,{children:["The ",(0,r.jsx)(t.code,{children:"msg.value"})," in the call to the World contract before the World routed the call to the WorldContextConsumer contract."]})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"_world-1",children:"_world"}),"\n",(0,r.jsx)(t.p,{children:"Get the address of the World contract that routed the call to this WorldContextConsumer."}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"_world"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"<none>"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the World contract that routed the call to this WorldContextConsumer."})]})})]}),"\n",(0,r.jsx)(t.h2,{id:"worldcontextproviderlib",children:"WorldContextProviderLib"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldContext.sol",children:"Git Source"})}),"\n",(0,r.jsx)(t.p,{children:"This library provides functions to make calls or delegatecalls to other contracts,\nappending the context values (like msg.sender and msg.value) to the calldata for WorldContextConsumer to consume."}),"\n",(0,r.jsx)(t.h3,{id:"functions-2",children:"Functions"}),"\n",(0,r.jsx)(t.h4,{id:"appendcontext",children:"appendContext"}),"\n",(0,r.jsx)(t.p,{children:"Appends context values to the given calldata."}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsx)(t.code,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"appendContext"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" callData"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgValue) "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Parameters"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"callData"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The original calldata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgSender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the transaction sender."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgValue"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsx)(t.td,{children:"The amount of ether sent with the original transaction."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"<none>"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The new calldata with context values appended."})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"callwithcontext",children:"callWithContext"}),"\n",(0,r.jsx)(t.p,{children:"Makes a call to the target contract with context values appended to the calldata."}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.code,{"data-language":"solidity","data-theme":"default",children:[(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"callWithContext"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgValue"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" callData"})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bool"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" success"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Parameters"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgSender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the transaction sender."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgValue"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsx)(t.td,{children:"The amount of ether sent with the original transaction."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"target"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the contract to call."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"callData"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The calldata for the call."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"success"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bool"})}),(0,r.jsx)(t.td,{children:"A boolean indicating whether the call was successful or not."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"data"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The abi encoded return data from the call."})]})]})]}),"\n",(0,r.jsx)(t.h4,{id:"delegatecallwithcontext",children:"delegatecallWithContext"}),"\n",(0,r.jsx)(t.p,{children:"Makes a delegatecall to the target contract with context values appended to the calldata."}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.code,{"data-language":"solidity","data-theme":"default",children:[(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"delegatecallWithContext"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgValue"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" callData"})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bool"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" success"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Parameters"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgSender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the transaction sender."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgValue"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsx)(t.td,{children:"The amount of ether sent with the original transaction."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"target"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the contract to call."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"callData"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The calldata for the call."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"success"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bool"})}),(0,r.jsx)(t.td,{children:"A boolean indicating whether the call was successful or not."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"data"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The abi encoded return data from the call."})]})]})]}),"\n",(0,r.jsx)(t.h4,{id:"callwithcontextorrevert",children:"callWithContextOrRevert"}),"\n",(0,r.jsx)(t.p,{children:"Makes a call to the target contract with context values appended to the calldata."}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.em,{children:"Revert in the case of failure."})}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.code,{"data-language":"solidity","data-theme":"default",children:[(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"callWithContextOrRevert"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgValue"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" callData"})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Parameters"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgSender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the transaction sender."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgValue"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsx)(t.td,{children:"The amount of ether sent with the original transaction."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"target"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the contract to call."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"callData"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The calldata for the call."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"data"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The abi encoded return data from the call."})]})})]}),"\n",(0,r.jsx)(t.h4,{id:"delegatecallwithcontextorrevert",children:"delegatecallWithContextOrRevert"}),"\n",(0,r.jsx)(t.p,{children:"Makes a delegatecall to the target contract with context values appended to the calldata."}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.em,{children:"Revert in the case of failure."})}),"\n",(0,r.jsx)(t.pre,{"data-language":"solidity","data-theme":"default",children:(0,r.jsxs)(t.code,{"data-language":"solidity","data-theme":"default",children:[(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-function)"},children:"delegatecallWithContextOrRevert"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgSender"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" msgValue"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" target"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" callData"})]}),"\n",(0,r.jsxs)(t.span,{className:"line",children:[(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,r.jsx)(t.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Parameters"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgSender"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the transaction sender."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"msgValue"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"uint256"})}),(0,r.jsx)(t.td,{children:"The amount of ether sent with the original transaction."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"target"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"address"})}),(0,r.jsx)(t.td,{children:"The address of the contract to call."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"callData"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The calldata for the call."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Name"}),(0,r.jsx)(t.th,{children:"Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"data"})}),(0,r.jsx)(t.td,{children:(0,r.jsx)(t.code,{children:"bytes"})}),(0,r.jsx)(t.td,{children:"The abi encoded return data from the call."})]})})]})]})}t.default=(0,n.j)(d)}},function(e){e.O(0,[3720,2888,179],function(){return e(e.s=1812)}),_N_E=e.O()}]);