(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4895],{2225:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/reference/store-core",function(){return r(6769)}])},3307:function(e,s,r){"use strict";r.d(s,{Z:function(){return t}});var l=r(7505),n=r(1689);let i={logo:function(){return(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25em",fontSize:"32px",fontFamily:"PP Supply Mono",textTransform:"uppercase"},children:[(0,l.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,l.jsx)(l.Fragment,{children:(0,l.jsx)("meta",{property:"title",content:"MUD documentation"})}),darkMode:!1,nextThemes:{defaultTheme:"dark"},footer:{text:"MIT 2023 \xa9 MUD"},primaryHue:28,sidebar:{defaultMenuCollapseLevel:1}};var t=i},6769:function(e,s,r){"use strict";r.r(s);var l=r(7505),n=r(2585),i=r(8288),t=r(3307);r(4693);var c=r(6736);r(8823);let o={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,c.ah)(),e.components);return s?(0,l.jsx)(s,{...e,children:(0,l.jsx)(d,{...e})}):d(e)},pageOpts:{filePath:"pages/store/reference/store-core.mdx",route:"/store/reference/store-core",headings:[{depth:2,value:"StoreCore",id:"storecore"},{depth:3,value:"Functions",id:"functions"},{depth:4,value:"initialize",id:"initialize"},{depth:4,value:"registerInternalTables",id:"registerinternaltables"},{depth:4,value:"getFieldLayout",id:"getfieldlayout"},{depth:4,value:"getKeySchema",id:"getkeyschema"},{depth:4,value:"getValueSchema",id:"getvalueschema"},{depth:4,value:"registerTable",id:"registertable"},{depth:4,value:"registerStoreHook",id:"registerstorehook"},{depth:4,value:"unregisterStoreHook",id:"unregisterstorehook"},{depth:4,value:"setRecord",id:"setrecord"},{depth:4,value:"setRecord",id:"setrecord-1"},{depth:4,value:"spliceStaticData",id:"splicestaticdata"},{depth:4,value:"spliceDynamicData",id:"splicedynamicdata"},{depth:4,value:"setField",id:"setfield"},{depth:4,value:"setField",id:"setfield-1"},{depth:4,value:"setStaticField",id:"setstaticfield"},{depth:4,value:"setDynamicField",id:"setdynamicfield"},{depth:4,value:"deleteRecord",id:"deleterecord"},{depth:4,value:"deleteRecord",id:"deleterecord-1"},{depth:4,value:"pushToDynamicField",id:"pushtodynamicfield"},{depth:4,value:"popFromDynamicField",id:"popfromdynamicfield"},{depth:4,value:"getRecord",id:"getrecord"},{depth:4,value:"getRecord",id:"getrecord-1"},{depth:4,value:"getField",id:"getfield"},{depth:4,value:"getField",id:"getfield-1"},{depth:4,value:"getStaticField",id:"getstaticfield"},{depth:4,value:"getDynamicField",id:"getdynamicfield"},{depth:4,value:"getFieldLength",id:"getfieldlength"},{depth:4,value:"getFieldLength",id:"getfieldlength-1"},{depth:4,value:"getDynamicFieldLength",id:"getdynamicfieldlength"},{depth:4,value:"getDynamicFieldSlice",id:"getdynamicfieldslice"},{depth:2,value:"StoreCoreInternal",id:"storecoreinternal"},{depth:3,value:"State Variables",id:"state-variables"},{depth:4,value:"SLOT",id:"slot"},{depth:4,value:"DYNAMIC_DATA_SLOT",id:"dynamic_data_slot"},{depth:4,value:"DYNAMIC_DATA_LENGTH_SLOT",id:"dynamic_data_length_slot"},{depth:3,value:"Functions",id:"functions-1"},{depth:4,value:"_spliceDynamicData",id:"_splicedynamicdata"},{depth:4,value:"_getStaticData",id:"_getstaticdata"},{depth:4,value:"_getStaticFieldBytes",id:"_getstaticfieldbytes"},{depth:4,value:"_getStaticDataLocation",id:"_getstaticdatalocation"},{depth:4,value:"_getStaticDataLocation",id:"_getstaticdatalocation-1"},{depth:4,value:"_getStaticDataOffset",id:"_getstaticdataoffset"},{depth:4,value:"_getDynamicDataLocation",id:"_getdynamicdatalocation"},{depth:4,value:"_getDynamicDataLengthLocation",id:"_getdynamicdatalengthlocation"},{depth:4,value:"_loadEncodedDynamicDataLength",id:"_loadencodeddynamicdatalength"},{depth:2,value:"Store",id:"store"},{depth:2,value:"StoreRead",id:"storeread"},{depth:3,value:"Functions",id:"functions-2"},{depth:4,value:"getFieldLayout",id:"getfieldlayout-1"},{depth:4,value:"getValueSchema",id:"getvalueschema-1"},{depth:4,value:"getKeySchema",id:"getkeyschema-1"},{depth:4,value:"getRecord",id:"getrecord-2"},{depth:4,value:"getRecord",id:"getrecord-3"},{depth:4,value:"getField",id:"getfield-2"},{depth:4,value:"getField",id:"getfield-3"},{depth:4,value:"getStaticField",id:"getstaticfield-1"},{depth:4,value:"getDynamicField",id:"getdynamicfield-1"},{depth:4,value:"getFieldLength",id:"getfieldlength-2"},{depth:4,value:"getFieldLength",id:"getfieldlength-3"},{depth:4,value:"getDynamicFieldLength",id:"getdynamicfieldlength-1"},{depth:4,value:"getDynamicFieldSlice",id:"getdynamicfieldslice-1"},{depth:2,value:"StoreSwitch",id:"storeswitch"},{depth:3,value:"State Variables",id:"state-variables-1"},{depth:4,value:"STORAGE_SLOT",id:"storage_slot"},{depth:3,value:"Functions",id:"functions-3"},{depth:4,value:"_layout",id:"_layout"},{depth:4,value:"getStoreAddress",id:"getstoreaddress"},{depth:4,value:"setStoreAddress",id:"setstoreaddress"},{depth:4,value:"registerStoreHook",id:"registerstorehook-1"},{depth:4,value:"unregisterStoreHook",id:"unregisterstorehook-1"},{depth:4,value:"getFieldLayout",id:"getfieldlayout-2"},{depth:4,value:"getValueSchema",id:"getvalueschema-2"},{depth:4,value:"getKeySchema",id:"getkeyschema-2"},{depth:4,value:"registerTable",id:"registertable-1"},{depth:4,value:"setRecord",id:"setrecord-2"},{depth:4,value:"spliceStaticData",id:"splicestaticdata-1"},{depth:4,value:"spliceDynamicData",id:"splicedynamicdata-1"},{depth:4,value:"setField",id:"setfield-2"},{depth:4,value:"setField",id:"setfield-3"},{depth:4,value:"setStaticField",id:"setstaticfield-1"},{depth:4,value:"setDynamicField",id:"setdynamicfield-1"},{depth:4,value:"pushToDynamicField",id:"pushtodynamicfield-1"},{depth:4,value:"popFromDynamicField",id:"popfromdynamicfield-1"},{depth:4,value:"deleteRecord",id:"deleterecord-2"},{depth:4,value:"getRecord",id:"getrecord-4"},{depth:4,value:"getRecord",id:"getrecord-5"},{depth:4,value:"getField",id:"getfield-4"},{depth:4,value:"getField",id:"getfield-5"},{depth:4,value:"getStaticField",id:"getstaticfield-2"},{depth:4,value:"getDynamicField",id:"getdynamicfield-2"},{depth:4,value:"getFieldLength",id:"getfieldlength-4"},{depth:4,value:"getFieldLength",id:"getfieldlength-5"},{depth:4,value:"getDynamicFieldLength",id:"getdynamicfieldlength-2"},{depth:4,value:"getDynamicFieldSlice",id:"getdynamicfieldslice-2"},{depth:3,value:"Structs",id:"structs"},{depth:4,value:"StorageSlotLayout",id:"storageslotlayout"}],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",services:"Services","---":{title:"",type:"separator"},guides:"Guides",templates:"Templates",contribute:{title:"Contribute",theme:{breadcrumb:!1}},changelog:"Changelog",retrospectives:"Retrospectives",audits:"Audits",version:{title:"2.0.9",type:"menu",items:{changelog:{title:"Changelog",href:"/changelog"},contribute:{title:"Contribute",href:"/contribute"}}},status:{title:"Status",type:"page",href:"https://status.mud.dev",newWindow:!0},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:"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",faucet:"mud faucet","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:"faucet",route:"/cli/faucet"},{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:"MdxPage",name:"config",route:"/config"},{kind:"MdxPage",name:"contribute",route:"/contribute"},{kind:"Folder",name:"guides",route:"/guides",children:[{kind:"Meta",data:{"replicating-onchain-state":"Replicating onchain state","hello-world":"Hello World","extending-a-world":"Extending a World","adding-delegation":"Adding Delegation",emojimon:"Emojimon","best-practices":"Best Practices"}},{kind:"MdxPage",name:"adding-delegation",route:"/guides/adding-delegation"},{kind:"Folder",name:"best-practices",route:"/guides/best-practices",children:[{kind:"Meta",data:{"system-best-practices":"System Best Practices"}},{kind:"MdxPage",name:"system-best-practices",route:"/guides/best-practices/system-best-practices"}]},{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:{title:"Deploy to a blockchain",href:"/cli/deploy"}}},{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:"filter-sync",route:"/guides/hello-world/filter-sync"}]},{kind:"MdxPage",name:"hello-world",route:"/guides/hello-world"},{kind:"MdxPage",name:"replicating-onchain-state",route:"/guides/replicating-onchain-state"}]},{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:"services",route:"/services",children:[{kind:"Meta",data:{indexer:"Indexer",faucet:"Faucet"}},{kind:"MdxPage",name:"faucet",route:"/services/faucet"},{kind:"MdxPage",name:"indexer",route:"/services/indexer"}]},{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"}},{kind:"MdxPage",name:"godot",route:"/templates/godot"},{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:"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"}},{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"}]}],flexsearch:{codeblocks:!0},title:"Store Core"},pageNextRoute:"/store/reference/store-core",nextraLayout:i.ZP,themeConfig:t.Z};function d(e){let s=Object.assign({h2:"h2",p:"p",a:"a",h3:"h3",h4:"h4",em:"em",pre:"pre",code:"code",span:"span",strong:"strong",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",ul:"ul",li:"li"},(0,c.ah)(),e.components);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.h2,{id:"storecore",children:"StoreCore"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/StoreCore.sol",children:"Git Source"})}),"\n",(0,l.jsx)(s.p,{children:"This library includes implementations for all IStore methods and events related to the store actions."}),"\n",(0,l.jsx)(s.h3,{id:"functions",children:"Functions"}),"\n",(0,l.jsx)(s.h4,{id:"initialize",children:"initialize"}),"\n",(0,l.jsx)(s.p,{children:"Initialize the store address in StoreSwitch."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Consumers must call this function in their constructor.\nStoreSwitch uses the storeAddress to decide where to write data to.\nIf StoreSwitch is called in the context of a Store contract (storeAddress == address(this)),\nStoreSwitch uses internal methods to write data instead of external calls."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"initialize"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.h4,{id:"registerinternaltables",children:"registerInternalTables"}),"\n",(0,l.jsx)(s.p,{children:"Register Store protocol's internal tables in the store."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Consumers must call this function in their constructor before setting\nany table data to allow indexers to decode table events."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerInternalTables"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlayout",children:"getFieldLayout"}),"\n",(0,l.jsx)(s.p,{children:"SCHEMA"}),"\n",(0,l.jsx)(s.p,{children:"Get the field layout for the given table ID."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to get the field layout."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the given table ID."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getkeyschema",children:"getKeySchema"}),"\n",(0,l.jsx)(s.p,{children:"Get the key schema for the given table ID."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Reverts if the table ID is not registered."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getKeySchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to get the key schema."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keySchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The key schema for the given table ID."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getvalueschema",children:"getValueSchema"}),"\n",(0,l.jsx)(s.p,{children:"Get the value schema for the given table ID."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Reverts if the table ID is not registered."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getValueSchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to get the value schema."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"valueSchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The value schema for the given table ID."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"registertable",children:"registerTable"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"/store/tables#manually-register-a-table",children:"Usage Sample"})}),"\n",(0,l.jsx)(s.p,{children:"Register a new table with the given configuration."}),"\n",(0,l.jsx)(s.p,{children:"*This method reverts if"}),"\n",(0,l.jsxs)(s.ul,{children:["\n",(0,l.jsx)(s.li,{children:"The table ID is not of type RESOURCE_TABLE or RESOURCE_OFFCHAIN_TABLE."}),"\n",(0,l.jsx)(s.li,{children:"The field layout is invalid."}),"\n",(0,l.jsx)(s.li,{children:"The key schema is invalid."}),"\n",(0,l.jsx)(s.li,{children:"The value schema is invalid."}),"\n",(0,l.jsx)(s.li,{children:"The number of key names does not match the number of key schema types."}),"\n",(0,l.jsx)(s.li,{children:"The number of field names does not match the number of field layout fields.*"}),"\n"]}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerTable"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyNames"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldNames"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to register."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keySchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The key schema of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"valueSchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The value schema of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyNames"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"string[]"})}),(0,l.jsx)(s.td,{children:"The names of the keys in the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldNames"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"string[]"})}),(0,l.jsx)(s.td,{children:"The names of the fields in the table."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"registerstorehook",children:"registerStoreHook"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"/store/store-hooks",children:"Usage Sample"})}),"\n",(0,l.jsx)(s.p,{children:"REGISTER HOOKS"}),"\n",(0,l.jsx)(s.p,{children:"Register hooks to be called when a record or field is set or deleted."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"This method reverts for all resource IDs other than tables.\nHooks are not supported for offchain tables."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"IStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" hookAddress"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" enabledHooksBitmap) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to register the hook for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"hookAddress"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"IStoreHook"})}),(0,l.jsx)(s.td,{children:"The address of the hook contract to register."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"enabledHooksBitmap"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The bitmap of enabled hooks."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"unregisterstorehook",children:"unregisterStoreHook"}),"\n",(0,l.jsx)(s.p,{children:"Unregister a hook from the given table ID."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"unregisterStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"IStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" hookAddress) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to unregister the hook from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"hookAddress"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"IStoreHook"})}),(0,l.jsx)(s.td,{children:"The address of the hook to unregister."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setrecord",children:"setRecord"}),"\n",(0,l.jsx)(s.p,{children:"Set a full record for the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Calling this method emits a Store_SetRecord event.\nThis method internally calls another overload of setRecord by fetching the field layout for the given table ID.\nIf the field layout is available to the caller, it is recommended to use the other overload to avoid an additional storage read."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to set the record for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"The encoded lengths of the dynamic data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setrecord-1",children:"setRecord"}),"\n",(0,l.jsx)(s.p,{children:"Set a full data record for the given table ID, key tuple, and field layout."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["For onchain tables, the method emits a ",(0,l.jsx)(s.code,{children:"Store_SetRecord"})," event, updates the data in storage,\ncalls ",(0,l.jsx)(s.code,{children:"onBeforeSetRecord"})," hooks before actually modifying the state, and calls ",(0,l.jsx)(s.code,{children:"onAfterSetRecord"}),"\nhooks after modifying the state. For offchain tables, the method returns early after emitting the\nevent without calling hooks or modifying the state."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to set the record for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"The encoded lengths of the dynamic data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"splicestaticdata",children:"spliceStaticData"}),"\n",(0,l.jsx)(s.p,{children:"Splice the static data for the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceStaticData"})," event, updates the data in storage, and calls\n",(0,l.jsx)(s.code,{children:"onBeforeSpliceStaticData"})," and ",(0,l.jsx)(s.code,{children:"onAfterSpliceStaticData"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"spliceStaticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint48"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to splice the static data for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"start"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint48"})}),(0,l.jsx)(s.td,{children:"The start position in bytes for the splice operation."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to write to the static data of the record at the start byte."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"splicedynamicdata",children:"spliceDynamicData"}),"\n",(0,l.jsx)(s.p,{children:"Splice the dynamic data for the given table ID, key tuple, and dynamic field index."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event, updates the data in storage, and calls\n",(0,l.jsx)(s.code,{children:"onBeforeSpliceDynamicData"})," and ",(0,l.jsx)(s.code,{children:"onAfterSpliceDynamicData"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"spliceDynamicData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" startWithinField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deleteCount"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to splice the dynamic data for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to splice. (Dynamic field index = field index - number of static fields)"})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"startWithinField"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint40"})}),(0,l.jsx)(s.td,{children:"The start position within the field for the splice operation."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"deleteCount"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint40"})}),(0,l.jsx)(s.td,{children:"The number of bytes to delete in the splice operation."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to insert into the dynamic data of the record at the start byte."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setfield",children:"setField"}),"\n",(0,l.jsx)(s.p,{children:"Set data for a field at the given index in a table with the given tableId, key tuple, and value field layout."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method internally calls another overload of setField by fetching the field layout for the given table ID.\nIf the field layout is available to the caller, it is recommended to use the other overload to avoid an additional storage read.\nThis function emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceStaticData"})," or ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event and calls the corresponding hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to set the field for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setfield-1",children:"setField"}),"\n",(0,l.jsx)(s.p,{children:"Set data for a field at the given index in a table with the given tableId, key tuple, and value field layout."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method internally calls to ",(0,l.jsx)(s.code,{children:"setStaticField"})," or ",(0,l.jsx)(s.code,{children:"setDynamicField"})," based on the field index and layout.\nCalling ",(0,l.jsx)(s.code,{children:"setStaticField"})," or ",(0,l.jsx)(s.code,{children:"setDynamicField"})," directly is recommended if the caller is aware of the field layout.\nThis function emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceStaticData"})," or ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event, updates the data in storage,\nand calls the corresponding hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to set the field for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setstaticfield",children:"setStaticField"}),"\n",(0,l.jsx)(s.p,{children:"Set a static field for the given table ID, key tuple, field index, and field layout."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceStaticData"})," event, updates the data in storage and calls the\n",(0,l.jsx)(s.code,{children:"onBeforeSpliceStaticData"})," and ",(0,l.jsx)(s.code,{children:"onAfterSpliceStaticData"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setStaticField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to set the static field for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the static field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setdynamicfield",children:"setDynamicField"}),"\n",(0,l.jsx)(s.p,{children:"Set a dynamic field for the given table ID, key tuple, and dynamic field index."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event, updates the data in storage and calls the\n",(0,l.jsx)(s.code,{children:"onBeforeSpliceDynamicaData"})," and ",(0,l.jsx)(s.code,{children:"onAfterSpliceDynamicData"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to set the dynamic field for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to set. (Dynamic field index = field index - number of static fields)."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the dynamic field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"deleterecord",children:"deleteRecord"}),"\n",(0,l.jsx)(s.p,{children:"Delete a record for the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method internally calls another overload of deleteRecord by fetching the field layout for the given table ID.\nThis method deletes static data and sets the dynamic data length to 0, but does not\nactually modify the dynamic data. It emits a ",(0,l.jsx)(s.code,{children:"Store_DeleteRecord"})," event and emits the\n",(0,l.jsx)(s.code,{children:"onBeforeDeleteRecord"})," and ",(0,l.jsx)(s.code,{children:"onAfterDeleteRecord"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"deleteRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to delete the record from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"deleterecord-1",children:"deleteRecord"}),"\n",(0,l.jsx)(s.p,{children:"Delete a record for the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method deletes static data and sets the dynamic data length to 0, but does not\nactually modify the dynamic data. It emits a ",(0,l.jsx)(s.code,{children:"Store_DeleteRecord"})," event and emits the\n",(0,l.jsx)(s.code,{children:"onBeforeDeleteRecord"})," and ",(0,l.jsx)(s.code,{children:"onAfterDeleteRecord"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"deleteRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to delete the record from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"pushtodynamicfield",children:"pushToDynamicField"}),"\n",(0,l.jsx)(s.p,{children:"Push data to a field at the dynamic field index in a table with the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event, updates the data in storage and calls the\n",(0,l.jsx)(s.code,{children:"onBeforeSpliceDynamicData"})," and ",(0,l.jsx)(s.code,{children:"onAfterSpliceDynamicData"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"pushToDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dataToPush"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to push data to the dynamic field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to push data to."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dataToPush"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to push to the dynamic field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"popfromdynamicfield",children:"popFromDynamicField"}),"\n",(0,l.jsx)(s.p,{children:"Pop data from a field at the dynamic field index in a table with the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This method emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event, updates the data in storage and calls the\n",(0,l.jsx)(s.code,{children:"onBeforeSpliceDynamicData"})," and ",(0,l.jsx)(s.code,{children:"onAfterSpliceDynamicData"})," hooks.\nFor offchain tables, it returns early after emitting the event."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"popFromDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" byteLengthToPop"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to pop data from the dynamic field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to pop data from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"byteLengthToPop"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The byte length to pop from the dynamic field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getrecord",children:"getRecord"}),"\n",(0,l.jsx)(s.p,{children:"Get the full record (all fields, static and dynamic data) for the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This function internally calls another overload of ",(0,l.jsx)(s.code,{children:"getRecord"}),", loading the field layout from storage.\nIf the field layout is available to the caller, it is recommended to use the other overload to avoid an additional storage read."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the record from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"The encoded lengths of the dynamic data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getrecord-1",children:"getRecord"}),"\n",(0,l.jsx)(s.p,{children:"Get the full record (all fields, static and dynamic data) for the given table ID and key tuple, with the given field layout."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the record from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"The encoded lengths of the dynamic data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getfield",children:"getField"}),"\n",(0,l.jsx)(s.p,{children:"Get a single field from the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This function internally calls another overload of ",(0,l.jsx)(s.code,{children:"getField"}),", loading the field layout from storage."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the field from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data of the field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfield-1",children:"getField"}),"\n",(0,l.jsx)(s.p,{children:"Get a single field from the given table ID and key tuple, with the given field layout."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the field from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data of the field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getstaticfield",children:"getStaticField"}),"\n",(0,l.jsx)(s.p,{children:"Get a single static field from the given table ID and key tuple, with the given value field layout."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"The field value is left-aligned in the returned bytes32, the rest of the word is not zeroed out.\nConsumers are expected to truncate the returned value as needed."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getStaticField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the static field from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32"})}),(0,l.jsx)(s.td,{children:"The data of the static field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfield",children:"getDynamicField"}),"\n",(0,l.jsx)(s.p,{children:"Get a single dynamic field from the given table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the dynamic field from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to get, relative to the start of the dynamic fields. (Dynamic field index = field index - number of static fields)"})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data of the dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlength",children:"getFieldLength"}),"\n",(0,l.jsx)(s.p,{children:"Get the byte length of a single field from the given table ID and key tuple."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This function internally calls another overload of ",(0,l.jsx)(s.code,{children:"getFieldLength"}),", loading the field layout from storage.\nIf the field layout is available to the caller, it is recommended to use the other overload to avoid an additional storage read."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the field length from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get the length for."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The byte length of the field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlength-1",children:"getFieldLength"}),"\n",(0,l.jsx)(s.p,{children:"Get the byte length of a single field from the given table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the field length from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get the length for."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The byte length of the field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfieldlength",children:"getDynamicFieldLength"}),"\n",(0,l.jsx)(s.p,{children:"Get the byte length of a single dynamic field from the given table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the dynamic field length from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to get the length for, relative to the start of the dynamic fields. (Dynamic field index = field index - number of static fields)"})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The byte length of the dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfieldslice",children:"getDynamicFieldSlice"}),"\n",(0,l.jsx)(s.p,{children:"Get a byte slice (including start, excluding end) of a single dynamic field from the given table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldSlice"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" end"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the dynamic field slice from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to get the slice from, relative to the start of the dynamic fields. (Dynamic field index = field index - number of static fields)"})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"start"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The start index within the dynamic field for the slice operation (inclusive)."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"end"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The end index within the dynamic field for the slice operation (exclusive)."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The byte slice of the dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h2,{id:"storecoreinternal",children:"StoreCoreInternal"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/StoreCore.sol",children:"Git Source"})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"This library contains internal functions used by StoreCore.\nThey are not intended to be used directly by consumers of StoreCore."})}),"\n",(0,l.jsx)(s.h3,{id:"state-variables",children:"State Variables"}),"\n",(0,l.jsx)(s.h4,{id:"slot",children:"SLOT"}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" SLOT "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"keccak256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"mud.store"'}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.h4,{id:"dynamic_data_slot",children:"DYNAMIC_DATA_SLOT"}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" DYNAMIC_DATA_SLOT "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"keccak256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"mud.store.dynamicData"'}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.h4,{id:"dynamic_data_length_slot",children:"DYNAMIC_DATA_LENGTH_SLOT"}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" DYNAMIC_DATA_LENGTH_SLOT "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"keccak256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"mud.store.dynamicDataLength"'}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.h3,{id:"functions-1",children:"Functions"}),"\n",(0,l.jsx)(s.h4,{id:"_splicedynamicdata",children:"_spliceDynamicData"}),"\n",(0,l.jsx)(s.p,{children:"Splice dynamic data in the store."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This function checks various conditions to ensure the operation is valid.\nIt emits a ",(0,l.jsx)(s.code,{children:"Store_SpliceDynamicData"})," event, calls ",(0,l.jsx)(s.code,{children:"onBeforeSpliceDynamicData"})," hooks before actually modifying the storage,\nand calls ",(0,l.jsx)(s.code,{children:"onAfterSpliceDynamicData"})," hooks after modifying the storage.\nIt reverts with ",(0,l.jsx)(s.code,{children:"Store_InvalidResourceType"})," if the table ID is not a table.\n(Splicing dynamic data is not supported for offchain tables, as it requires reading the previous encoded lengths from storage.)\nIt reverts with ",(0,l.jsx)(s.code,{children:"Store_InvalidSplice"})," if the splice total length of the field is changed but the splice is not at the end of the field.\nIt reverts with ",(0,l.jsx)(s.code,{children:"Store_IndexOutOfBounds"})," if the start index is larger than the previous length of the field."]})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_spliceDynamicData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" startWithinField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deleteCount"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" previousEncodedLengths"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to splice dynamic data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to splice data, relative to the start of the dynamic fields. (Dynamic field index = field index - number of static fields)"})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"startWithinField"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint40"})}),(0,l.jsx)(s.td,{children:"The start index within the field for the splice operation."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"deleteCount"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint40"})}),(0,l.jsx)(s.td,{children:"The number of bytes to delete in the splice operation."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to insert into the dynamic data of the record at the start byte."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"previousEncodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"The previous encoded lengths of the dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"_getstaticdata",children:"_getStaticData"}),"\n",(0,l.jsx)(s.p,{children:"Get full static data for the given table ID and key tuple, with the given length in bytes."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getStaticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" length"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the static data from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"length"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The length of the static data to retrieve."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The full static data of the specified length."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_getstaticfieldbytes",children:"_getStaticFieldBytes"}),"\n",(0,l.jsx)(s.p,{children:"Get a single static field from the given table ID and key tuple, with the given value field layout."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getStaticFieldBytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to get the static field from."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static field data as dynamic bytes in the size of the field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_getstaticdatalocation",children:"_getStaticDataLocation"}),"\n",(0,l.jsx)(s.p,{children:"Compute the storage location based on table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getStaticDataLocation"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The computed storage location based on table ID and key tuple."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_getstaticdatalocation-1",children:"_getStaticDataLocation"}),"\n",(0,l.jsx)(s.p,{children:"Compute the storage location based on table ID and a single key."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getStaticDataLocation"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" key) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"key"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32"})}),(0,l.jsx)(s.td,{children:"The single key for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The computed storage location based on table ID and key."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_getstaticdataoffset",children:"_getStaticDataOffset"}),"\n",(0,l.jsx)(s.p,{children:"Get storage offset for the given value field layout and index."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getStaticDataOffset"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The field layout for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to get the offset for."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The storage offset for the specified field layout and index."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_getdynamicdatalocation",children:"_getDynamicDataLocation"}),"\n",(0,l.jsx)(s.p,{children:"Compute the storage location based on table ID, key tuple, and dynamic field index."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getDynamicDataLocation"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field, relative to the start of the dynamic fields. (Dynamic field index = field index - number of static fields)"})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The computed storage location based on table ID, key tuple, and dynamic field index."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_getdynamicdatalengthlocation",children:"_getDynamicDataLengthLocation"}),"\n",(0,l.jsx)(s.p,{children:"Compute the storage location for the length of the dynamic data based on table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_getDynamicDataLengthLocation"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The computed storage location for the length of the dynamic data based on table ID and key tuple."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"_loadencodeddynamicdatalength",children:"_loadEncodedDynamicDataLength"}),"\n",(0,l.jsx)(s.p,{children:"Load the encoded dynamic data length from storage for the given table ID and key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_loadEncodedDynamicDataLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the composite key for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"The loaded encoded dynamic data length from storage for the given table ID and key tuple."})]})})]}),"\n",(0,l.jsx)(s.h2,{id:"store",children:"Store"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/Store.sol",children:"Git Source"})}),"\n",(0,l.jsxs)(s.p,{children:[(0,l.jsx)(s.strong,{children:"Inherits:"}),"\n",(0,l.jsx)(s.a,{href:"/src/IStore.sol/interface.IStore",children:"IStore"}),", ",(0,l.jsx)(s.a,{href:"/src/StoreKernel.sol/abstract.StoreKernel",children:"StoreKernel"})]}),"\n",(0,l.jsx)(s.p,{children:"This contract integrates the core storage functionalities and provides an interface for data storage."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["This abstract contract initializes ",(0,l.jsx)(s.code,{children:"StoreCore"}),", implements ",(0,l.jsx)(s.code,{children:"storeVersion"}),", and read methods,\nbut not write methods."]})}),"\n",(0,l.jsx)(s.h2,{id:"storeread",children:"StoreRead"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/StoreRead.sol",children:"Git Source"})}),"\n",(0,l.jsxs)(s.p,{children:[(0,l.jsx)(s.strong,{children:"Inherits:"}),"\n",(0,l.jsx)(s.a,{href:"/store/reference/store#istoreread",children:"IStoreRead"})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsxs)(s.em,{children:["A contract that provides read operations for storage tables using ",(0,l.jsx)(s.code,{children:"StoreCore"}),"."]})}),"\n",(0,l.jsx)(s.h3,{id:"functions-2",children:"Functions"}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlayout-1",children:"getFieldLayout"}),"\n",(0,l.jsx)(s.p,{children:"Fetches the field layout for a given table."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to retrieve the field layout."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of fields in the specified table."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getvalueschema-1",children:"getValueSchema"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves the value schema for a given table."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getValueSchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"valueSchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The schema for values in the specified table."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getkeyschema-1",children:"getKeySchema"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves the key schema for a given table."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getKeySchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keySchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The schema for keys in the specified table."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getrecord-2",children:"getRecord"}),"\n",(0,l.jsx)(s.p,{children:"Fetches a record from a specified table using a provided key tuple."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"Encoded lengths of dynamic data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getrecord-3",children:"getRecord"}),"\n",(0,l.jsx)(s.p,{children:"Fetches a record from a specified table using a provided key tuple and field layout."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of fields to retrieve."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"Encoded lengths of dynamic data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getfield-2",children:"getField"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves data for a specified field in a record."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"This overload loads the FieldLayout from storage. If the table's FieldLayout is known\nto the caller, it should be passed in to the other overload to avoid the storage read."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the field to retrieve."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfield-3",children:"getField"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves data for a specified field in a record."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the field to retrieve."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of fields for the retrieval."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getstaticfield-1",children:"getStaticField"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves data for a specific static (fixed length) field in a record."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getStaticField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the static field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the static field to retrieve."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of fields for the retrieval."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32"})}),(0,l.jsx)(s.td,{children:"The static data of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfield-1",children:"getDynamicField"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves data for a specific dynamic (variable length) field in a record."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the dynamic field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the dynamic field to retrieve."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The dynamic data of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlength-2",children:"getFieldLength"}),"\n",(0,l.jsx)(s.p,{children:"Calculates the length of a specified field in a record."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"This overload loads the FieldLayout from storage. If the table's FieldLayout is known\nto the caller, it should be passed in to the other overload to avoid the storage read."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the field to measure."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The length of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlength-3",children:"getFieldLength"}),"\n",(0,l.jsx)(s.p,{children:"Calculates the length of a specified field in a record."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the field to measure."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of fields for measurement."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The length of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfieldlength-1",children:"getDynamicFieldLength"}),"\n",(0,l.jsx)(s.p,{children:"Calculates the length of a specified dynamic (variable length) field in a record."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the dynamic field to measure."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The length of the specified dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfieldslice-1",children:"getDynamicFieldSlice"}),"\n",(0,l.jsx)(s.p,{children:"Retrieves a slice of a dynamic (variable length) field."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldSlice"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" end"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"public"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"virtual"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"The tuple used as a key to fetch the dynamic field slice."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Index of the dynamic field to slice."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"start"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The starting position of the slice."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"end"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The ending position of the slice."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The sliced data from the specified dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h2,{id:"storeswitch",children:"StoreSwitch"}),"\n",(0,l.jsx)(s.table,{children:(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:(0,l.jsx)(s.a,{href:"/store/table-libraries#storeswitch",children:"Usage Sample"})}),(0,l.jsx)(s.th,{children:(0,l.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/StoreSwitch.sol",children:"Git Source"})})]})})}),"\n",(0,l.jsx)(s.p,{children:"This library serves as an interface switch to interact with the store,\neither by directing calls to itself or to a designated external store."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"The primary purpose is to abstract the storage details, such that the\ncalling function doesn't need to know if it's interacting with its own\nstorage or with an external contract's storage."})}),"\n",(0,l.jsx)(s.h3,{id:"state-variables-1",children:"State Variables"}),"\n",(0,l.jsx)(s.h4,{id:"storage_slot",children:"STORAGE_SLOT"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Internal constant representing the storage slot used by the library."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"private"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" STORAGE_SLOT "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"keccak256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"mud.store.storage.StoreSwitch"'}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.h3,{id:"functions-3",children:"Functions"}),"\n",(0,l.jsx)(s.h4,{id:"_layout",children:"_layout"}),"\n",(0,l.jsx)(s.p,{children:"Gets the storage layout."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"_layout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"private"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"StorageSlotLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"storage"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" layout);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"layout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"StorageSlotLayout"})}),(0,l.jsx)(s.td,{children:"The current storage layout."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getstoreaddress",children:"getStoreAddress"}),"\n",(0,l.jsx)(s.p,{children:"Fetch the store address to be used for data operations.\nIf _storeAddress is zero, it means that it's uninitialized and\ntherefore it's the default (msg.sender)."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getStoreAddress"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"address"})}),(0,l.jsxs)(s.td,{children:["Address of the store, or ",(0,l.jsx)(s.code,{children:"msg.sender"})," if uninitialized."]})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"setstoreaddress",children:"setStoreAddress"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.a,{href:"/store/table-libraries#storeswitch",children:"Usage Sample"})}),"\n",(0,l.jsx)(s.p,{children:"Set the store address for subsequent operations."}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"If it stays uninitialized, StoreSwitch falls back to calling store methods on msg.sender."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setStoreAddress"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-parameter)"},children:"_storeAddress"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"_storeAddress"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"address"})}),(0,l.jsx)(s.td,{children:"The address of the external store contract."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"registerstorehook-1",children:"registerStoreHook"}),"\n",(0,l.jsx)(s.p,{children:"Register a store hook for a particular table."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"IStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" hookAddress"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" enabledHooksBitmap) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"Unique identifier of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"hookAddress"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"IStoreHook"})}),(0,l.jsx)(s.td,{children:"Address of the hook contract."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"enabledHooksBitmap"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"Bitmap representing the hooks which this contract overrides."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"unregisterstorehook-1",children:"unregisterStoreHook"}),"\n",(0,l.jsx)(s.p,{children:"Unregister a previously registered store hook."}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"unregisterStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"IStoreHook"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" hookAddress) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"Unique identifier of the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"hookAddress"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"IStoreHook"})}),(0,l.jsx)(s.td,{children:"Address of the hook contract to be unregistered."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlayout-2",children:"getFieldLayout"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Fetches the field layout for a specified table."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to retrieve the field layout."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of the fields in the specified table."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getvalueschema-2",children:"getValueSchema"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves the value schema for a specified table."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getValueSchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to retrieve the value schema."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"valueSchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The schema for values in the specified table."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getkeyschema-2",children:"getKeySchema"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves the key schema for a specified table."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getKeySchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema);"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table for which to retrieve the key schema."})]})})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keySchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The schema for keys in the specified table."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"registertable-1",children:"registerTable"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Registers a table with specified configurations."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerTable"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyNames"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldNames"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to register."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of the fields for the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keySchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The schema for keys in the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"valueSchema"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"Schema"})}),(0,l.jsx)(s.td,{children:"The schema for values in the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyNames"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"string[]"})}),(0,l.jsx)(s.td,{children:"Names of keys in the table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldNames"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"string[]"})}),(0,l.jsx)(s.td,{children:"Names of fields in the table."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setrecord-2",children:"setRecord"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Sets a record in the store."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The table's ID."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"Array of key values."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"staticData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"Fixed-length fields data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"encodedLengths"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"Encoded lengths for dynamic data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicData"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"Dynamic-length fields data."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"splicestaticdata-1",children:"spliceStaticData"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Splices the static (fixed length) data for a given table ID and key tuple, starting at a specific point."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"spliceStaticData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint48"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the resource table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array of bytes32 keys identifying the data record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"start"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint48"})}),(0,l.jsx)(s.td,{children:"The position to begin splicing."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to splice into the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"splicedynamicdata-1",children:"spliceDynamicData"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Splices the dynamic data for a given table ID, key tuple, and dynamic field index."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"spliceDynamicData"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" startWithinField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deleteCount"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the resource table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array of bytes32 keys identifying the data record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to splice."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"startWithinField"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint40"})}),(0,l.jsx)(s.td,{children:"The position within the dynamic field to start splicing."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"deleteCount"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint40"})}),(0,l.jsx)(s.td,{children:"The number of bytes to delete starting from the splice point."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to splice into the dynamic field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setfield-2",children:"setField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Sets the data for a specific field in a record identified by table ID and key tuple."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the resource table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array of bytes32 keys identifying the data record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setfield-3",children:"setField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Sets the data for a specific field in a record, considering a specific field layout."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the resource table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array of bytes32 keys identifying the data record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout structure of the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setstaticfield-1",children:"setStaticField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Sets the data for a specific static (fixed length) field in a record, considering a specific field layout."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setStaticField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the resource table."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array of bytes32 keys identifying the data record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout structure of the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"setdynamicfield-1",children:"setDynamicField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Sets the value of a specific dynamic (variable-length) field in a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to set."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"data"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to set for the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"pushtodynamicfield-1",children:"pushToDynamicField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Appends data to a specific dynamic (variable length) field of a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"pushToDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dataToPush"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dataToPush"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"The data to append to the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"popfromdynamicfield-1",children:"popFromDynamicField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Removes data from the end of a specific dynamic (variable length) field of a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"popFromDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" byteLengthToPop"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"byteLengthToPop"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The number of bytes to remove from the end of the field."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"deleterecord-2",children:"deleteRecord"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Deletes a record from a table."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"deleteRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getrecord-4",children:"getRecord"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a record from a table."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"staticData The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"encodedLengths Encoded lengths of dynamic data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"dynamicData The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getrecord-5",children:"getRecord"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a record from a table with a specific layout."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of the fields in the record."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"staticData The static data of the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"EncodedLengths"})}),(0,l.jsx)(s.td,{children:"encodedLengths Encoded lengths of dynamic data."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"dynamicData The dynamic data of the record."})]})]})]}),"\n",(0,l.jsx)(s.h4,{id:"getfield-4",children:"getField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a specific field from a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex) "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to retrieve."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"Returns the data of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfield-5",children:"getField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a specific field from a record with a given layout."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field to retrieve."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of the field being retrieved."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"Returns the data of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getstaticfield-2",children:"getStaticField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a specific static (fixed length) field from a record with a given layout."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getStaticField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the static field to retrieve."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of the static field being retrieved."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32"})}),(0,l.jsx)(s.td,{children:"Returns the data of the specified static field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfield-2",children:"getDynamicField"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a specific dynamic (variable length) field from a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicField"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field to retrieve."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"Returns the data of the specified dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlength-4",children:"getFieldLength"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves the length of a specific field in a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field whose length is to be retrieved."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"Returns the length of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getfieldlength-5",children:"getFieldLength"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves the length of a specific field in a record with a given layout."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the field whose length is to be retrieved."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"fieldLayout"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"FieldLayout"})}),(0,l.jsx)(s.td,{children:"The layout of the field whose length is to be retrieved."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"Returns the length of the specified field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfieldlength-2",children:"getDynamicFieldLength"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves the length of a specific dynamic (variable length) field in a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldLength"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field whose length is to be retrieved."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"Returns the length of the specified dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h4,{id:"getdynamicfieldslice-2",children:"getDynamicFieldSlice"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Retrieves a slice of a dynamic (variable length) field from a record."})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldSlice"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" end"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsxs)(s.tbody,{children:[(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"tableId"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"ResourceId"})}),(0,l.jsx)(s.td,{children:"The ID of the table to which the record belongs."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"keyTuple"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes32[]"})}),(0,l.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint8"})}),(0,l.jsx)(s.td,{children:"The index of the dynamic field from which to get the slice."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"start"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The starting index of the slice."})]}),(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"end"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"uint256"})}),(0,l.jsx)(s.td,{children:"The ending index of the slice."})]})]})]}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.strong,{children:"Returns"})}),"\n",(0,l.jsxs)(s.table,{children:[(0,l.jsx)(s.thead,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.th,{children:"Name"}),(0,l.jsx)(s.th,{children:"Type"}),(0,l.jsx)(s.th,{children:"Description"})]})}),(0,l.jsx)(s.tbody,{children:(0,l.jsxs)(s.tr,{children:[(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"<none>"})}),(0,l.jsx)(s.td,{children:(0,l.jsx)(s.code,{children:"bytes"})}),(0,l.jsx)(s.td,{children:"Returns the sliced data from the specified dynamic field."})]})})]}),"\n",(0,l.jsx)(s.h3,{id:"structs",children:"Structs"}),"\n",(0,l.jsx)(s.h4,{id:"storageslotlayout",children:"StorageSlotLayout"}),"\n",(0,l.jsx)(s.p,{children:(0,l.jsx)(s.em,{children:"Represents the layout of the storage slot (currently just the address)"})}),"\n",(0,l.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,l.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"struct"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"StorageSlotLayout"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" {"})]}),"\n",(0,l.jsxs)(s.span,{className:"line",children:[(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"address"}),(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" storeAddress;"})]}),"\n",(0,l.jsx)(s.span,{className:"line",children:(0,l.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"}"})})]})})]})}s.default=(0,n.j)(o)}},function(e){e.O(0,[3720,2888,179],function(){return e(e.s=2225)}),_N_E=e.O()}]);