(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9954],{34596:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/reference/store",function(){return r(89629)}])},73307:function(e,s,r){"use strict";r.d(s,{Z:function(){return i}});var t=r(7505),l=r(11689);let n={logo:function(){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25em",fontSize:"32px",fontFamily:"PP Supply Mono",textTransform:"uppercase"},children:[(0,t.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,l.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,t.jsx)(t.Fragment,{children:(0,t.jsx)("meta",{property:"title",content:"MUD documentation"})}),darkMode:!1,nextThemes:{defaultTheme:"dark"},footer:{text:"MIT 2023 \xa9 MUD"},primaryHue:28,sidebar:{defaultMenuCollapseLevel:1}};var i=n},89629:function(e,s,r){"use strict";r.r(s);var t=r(7505),l=r(42585),n=r(38288),i=r(73307);r(54693);var o=r(26736);r(98823);let a={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,o.ah)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(c,{...e})}):c(e)},pageOpts:{filePath:"pages/store/reference/store.mdx",route:"/store/reference/store",headings:[{depth:2,value:"IStore",id:"istore"},{depth:2,value:"IStoreEvents",id:"istoreevents"},{depth:3,value:"Events",id:"events"},{depth:4,value:"HelloStore",id:"hellostore"},{depth:4,value:"Store_SetRecord",id:"store_setrecord"},{depth:4,value:"Store_SpliceStaticData",id:"store_splicestaticdata"},{depth:4,value:"Store_SpliceDynamicData",id:"store_splicedynamicdata"},{depth:4,value:"Store_DeleteRecord",id:"store_deleterecord"},{depth:2,value:"IStoreErrors",id:"istoreerrors"},{depth:3,value:"Errors",id:"errors"},{depth:4,value:"Store_TableAlreadyExists",id:"store_tablealreadyexists"},{depth:4,value:"Store_TableNotFound",id:"store_tablenotfound"},{depth:4,value:"Store_InvalidResourceType",id:"store_invalidresourcetype"},{depth:4,value:"Store_InvalidBounds",id:"store_invalidbounds"},{depth:4,value:"Store_IndexOutOfBounds",id:"store_indexoutofbounds"},{depth:4,value:"Store_InvalidStaticDataLength",id:"store_invalidstaticdatalength"},{depth:4,value:"Store_InvalidKeyNamesLength",id:"store_invalidkeynameslength"},{depth:4,value:"Store_InvalidFieldNamesLength",id:"store_invalidfieldnameslength"},{depth:4,value:"Store_InvalidValueSchemaLength",id:"store_invalidvalueschemalength"},{depth:4,value:"Store_InvalidValueSchemaStaticLength",id:"store_invalidvalueschemastaticlength"},{depth:4,value:"Store_InvalidValueSchemaDynamicLength",id:"store_invalidvalueschemadynamiclength"},{depth:4,value:"Store_InvalidSplice",id:"store_invalidsplice"},{depth:2,value:"IStoreRead",id:"istoreread"},{depth:3,value:"Functions",id:"functions"},{depth:4,value:"getFieldLayout",id:"getfieldlayout"},{depth:4,value:"getValueSchema",id:"getvalueschema"},{depth:4,value:"getKeySchema",id:"getkeyschema"},{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:"IStoreWrite",id:"istorewrite"},{depth:3,value:"Functions",id:"functions-1"},{depth:4,value:"setRecord",id:"setrecord"},{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:"pushToDynamicField",id:"pushtodynamicfield"},{depth:4,value:"popFromDynamicField",id:"popfromdynamicfield"},{depth:4,value:"deleteRecord",id:"deleterecord"},{depth:2,value:"IStoreRegistration",id:"istoreregistration"},{depth:3,value:"Functions",id:"functions-2"},{depth:4,value:"registerTable",id:"registertable"},{depth:4,value:"registerStoreHook",id:"registerstorehook"},{depth:4,value:"unregisterStoreHook",id:"unregisterstorehook"},{depth:2,value:"IStoreKernel",id:"istorekernel"},{depth:3,value:"Functions",id:"functions-3"},{depth:4,value:"storeVersion",id:"storeversion"}],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.1.0",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","set-version":"mud set-version"}},{kind:"MdxPage",name:"abi-ts",route:"/cli/abi-ts"},{kind:"MdxPage",name:"deploy",route:"/cli/deploy"},{kind:"MdxPage",name:"dev-contracts",route:"/cli/dev-contracts"},{kind:"MdxPage",name:"set-version",route:"/cli/set-version"},{kind:"MdxPage",name:"tablegen",route:"/cli/tablegen"},{kind:"MdxPage",name:"test",route:"/cli/test"},{kind:"MdxPage",name:"verify",route:"/cli/verify"},{kind:"MdxPage",name:"worldgen",route:"/cli/worldgen"}]},{kind:"Folder",name:"config",route:"/config",children:[{kind:"MdxPage",name:"reference",route:"/config/reference"},{kind:"Meta",data:{reference:"Reference"}}]},{kind:"MdxPage",name:"config",route:"/config"},{kind:"MdxPage",name:"contribute",route:"/contribute"},{kind:"Folder",name:"guides",route:"/guides",children:[{kind:"Meta",data:{"replicating-onchain-state":"Replicating onchain state","hello-world":"Hello World","extending-a-world":"Extending a World","adding-delegation":"Adding Delegation",emojimon:"Emojimon",testing:"Testing","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","deployment-settings":"Recommended Deployment Settings",kms:"Deploy production worlds using AWS KMS"}},{kind:"MdxPage",name:"deployment-settings",route:"/guides/best-practices/deployment-settings"},{kind:"MdxPage",name:"kms",route:"/guides/best-practices/kms"},{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:"testing",route:"/guides/testing"}]},{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"},pageNextRoute:"/store/reference/store",nextraLayout:n.ZP,themeConfig:i.Z};function c(e){let s=Object.assign({h2:"h2",p:"p",a:"a",strong:"strong",h3:"h3",h4:"h4",pre:"pre",code:"code",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",em:"em"},(0,o.ah)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h2,{id:"istore",children:"IStore"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStore.sol",children:"Git Source"})}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.strong,{children:"Inherits:"}),"\n",(0,t.jsx)(s.a,{href:"/store/reference/store#istorekernel",children:"IStoreKernel"}),", ",(0,t.jsx)(s.a,{href:"/store/reference/store#istoreregistration",children:"IStoreRegistration"})]}),"\n",(0,t.jsx)(s.h2,{id:"istoreevents",children:"IStoreEvents"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStoreEvents.sol",children:"Git Source"})}),"\n",(0,t.jsx)(s.h3,{id:"events",children:"Events"}),"\n",(0,t.jsx)(s.h4,{id:"hellostore",children:"HelloStore"}),"\n",(0,t.jsx)(s.p,{children:"Emitted when the Store is created."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"event"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"HelloStore"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"indexed"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" storeVersion);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"storeVersion"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes32"})}),(0,t.jsx)(s.td,{children:"The protocol version of the Store."})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"store_setrecord",children:"Store_SetRecord"}),"\n",(0,t.jsx)(s.p,{children:"Emitted when a new record is set in the store."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"event"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_SetRecord"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  ResourceId "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"indexed"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId,"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] keyTuple,"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData,"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  EncodedLengths encodedLengths,"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})})]})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The ID of the table where the record is set."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"keyTuple"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes32[]"})}),(0,t.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"staticData"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes"})}),(0,t.jsx)(s.td,{children:"The static data of the record."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"encodedLengths"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"EncodedLengths"})}),(0,t.jsx)(s.td,{children:"The encoded lengths of the dynamic data of the record."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"dynamicData"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes"})}),(0,t.jsx)(s.td,{children:"The dynamic data of the record."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_splicestaticdata",children:"Store_SpliceStaticData"}),"\n",(0,t.jsx)(s.p,{children:"Emitted when static data in the store is spliced."}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.em,{children:"In static data, data is always overwritten starting at the start position,\nso the total length of the data remains the same and no data is shifted."})}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"event"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_SpliceStaticData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"(ResourceId "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"indexed"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId, "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] keyTuple, "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint48"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start, "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The ID of the table where the data is spliced."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"keyTuple"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes32[]"})}),(0,t.jsx)(s.td,{children:"An array representing the key for the record."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"start"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint48"})}),(0,t.jsx)(s.td,{children:"The start position in bytes for the splice operation."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"data"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes"})}),(0,t.jsx)(s.td,{children:"The data to write to the static data of the record at the start byte."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_splicedynamicdata",children:"Store_SpliceDynamicData"}),"\n",(0,t.jsx)(s.p,{children:"Emitted when dynamic data in the store is spliced."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"event"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_SpliceDynamicData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  ResourceId "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"indexed"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId,"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] keyTuple,"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex,"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint48"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start,"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deleteCount,"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  EncodedLengths encodedLengths,"})}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,t.jsx)(s.span,{className:"line",children:(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})})]})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The ID of the table where the data is spliced."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"keyTuple"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes32[]"})}),(0,t.jsx)(s.td,{children:"An array representing the composite key for the record."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"dynamicFieldIndex"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint8"})}),(0,t.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,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"start"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint48"})}),(0,t.jsx)(s.td,{children:"The start position in bytes for the splice operation."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"deleteCount"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint40"})}),(0,t.jsx)(s.td,{children:"The number of bytes to delete in the splice operation."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"encodedLengths"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"EncodedLengths"})}),(0,t.jsx)(s.td,{children:"The encoded lengths of the dynamic data of the record."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"data"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes"})}),(0,t.jsx)(s.td,{children:"The data to insert into the dynamic data of the record at the start byte."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_deleterecord",children:"Store_DeleteRecord"}),"\n",(0,t.jsx)(s.p,{children:"Emitted when a record is deleted from the store."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"event"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_DeleteRecord"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"(ResourceId "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"indexed"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId, "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] keyTuple);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The ID of the table where the record is deleted."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"keyTuple"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes32[]"})}),(0,t.jsx)(s.td,{children:"An array representing the composite key for the record."})]})]})]}),"\n",(0,t.jsx)(s.h2,{id:"istoreerrors",children:"IStoreErrors"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStoreErrors.sol",children:"Git Source"})}),"\n",(0,t.jsx)(s.p,{children:"This interface includes errors for Store."}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.em,{children:"We bundle these errors in an interface (instead of at the file-level or in their corresponding library) so they can be inherited by IStore.\nThis ensures that all possible errors are included in the IStore ABI for proper decoding in the frontend."})}),"\n",(0,t.jsx)(s.h3,{id:"errors",children:"Errors"}),"\n",(0,t.jsx)(s.h4,{id:"store_tablealreadyexists",children:"Store_TableAlreadyExists"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided table already exists."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_TableAlreadyExists"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"(ResourceId tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableIdString);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The ID of the table."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableIdString"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"string"})}),(0,t.jsx)(s.td,{children:"The stringified ID of the table (for easier debugging if cleartext tableIds are used)."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_tablenotfound",children:"Store_TableNotFound"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided table cannot be found."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_TableNotFound"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"(ResourceId tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableIdString);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The ID of the table."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"tableIdString"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"string"})}),(0,t.jsx)(s.td,{children:"The stringified ID of the table (for easier debugging if cleartext tableIds are used)."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidresourcetype",children:"Store_InvalidResourceType"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided resource ID cannot be found."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidResourceType"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes2"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ResourceId resourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" resourceIdString);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes2"})}),(0,t.jsx)(s.td,{children:"The expected resource type."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"resourceId"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"ResourceId"})}),(0,t.jsx)(s.td,{children:"The resource ID."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"resourceIdString"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"string"})}),(0,t.jsx)(s.td,{children:"The stringified resource ID (for easier debugging)."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidbounds",children:"Store_InvalidBounds"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided slice bounds are invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidBounds"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" end);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"start"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The start index within the dynamic field for the slice operation (inclusive)."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"end"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The end index within the dynamic field for the slice operation (exclusive)."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_indexoutofbounds",children:"Store_IndexOutOfBounds"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided index is out of bounds."}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.em,{children:"Raised if the start index is larger than the previous length of the field."})}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_IndexOutOfBounds"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" length"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" accessedIndex);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"length"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"FIXME"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"accessedIndex"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"FIXME"})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidstaticdatalength",children:"Store_InvalidStaticDataLength"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided static data length is invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidStaticDataLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" received);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The expected length."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"received"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The provided length."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidkeynameslength",children:"Store_InvalidKeyNamesLength"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided key names length is invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidKeyNamesLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" received);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The expected length."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"received"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The provided length."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidfieldnameslength",children:"Store_InvalidFieldNamesLength"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided field names length is invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidFieldNamesLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" received);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The expected length."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"received"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The provided length."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidvalueschemalength",children:"Store_InvalidValueSchemaLength"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided value schema length is invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidValueSchemaLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" received);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The expected length."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"received"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The provided length."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidvalueschemastaticlength",children:"Store_InvalidValueSchemaStaticLength"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided schema static length is invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidValueSchemaStaticLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" received);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The expected length."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"received"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The provided length."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidvalueschemadynamiclength",children:"Store_InvalidValueSchemaDynamicLength"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided schema dynamic length is invalid."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidValueSchemaDynamicLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" expected"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" received);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"expected"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The expected length."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"received"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint256"})}),(0,t.jsx)(s.td,{children:"The provided length."})]})]})]}),"\n",(0,t.jsx)(s.h4,{id:"store_invalidsplice",children:"Store_InvalidSplice"}),"\n",(0,t.jsx)(s.p,{children:"Error raised if the provided splice is invalid."}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.em,{children:"Raised if the splice total length of the field is changed but the splice is not at the end of the field."})}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"error"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"Store_InvalidSplice"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" startWithinField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deleteCount"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLength);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"startWithinField"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint40"})}),(0,t.jsx)(s.td,{children:"The start index within the field for the splice operation."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"deleteCount"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint40"})}),(0,t.jsx)(s.td,{children:"The number of bytes to delete in the splice operation."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"fieldLength"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"uint40"})}),(0,t.jsx)(s.td,{children:"The field length for the splice operation."})]})]})]}),"\n",(0,t.jsx)(s.h2,{id:"istoreread",children:"IStoreRead"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStoreRead.sol",children:"Git Source"})}),"\n",(0,t.jsx)(s.h3,{id:"functions",children:"Functions"}),"\n",(0,t.jsx)(s.h4,{id:"getfieldlayout",children:"getFieldLayout"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout);"})]})})}),"\n",(0,t.jsx)(s.h4,{id:"getvalueschema",children:"getValueSchema"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getValueSchema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema);"})]})})}),"\n",(0,t.jsx)(s.h4,{id:"getkeyschema",children:"getKeySchema"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getKeySchema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema);"})]})})}),"\n",(0,t.jsx)(s.h4,{id:"getrecord",children:"getRecord"}),"\n",(0,t.jsx)(s.p,{children:"Get full record (all fields, static and dynamic data) for the given tableId and key tuple, loading the field layout from storage"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData);"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getrecord-1",children:"getRecord"}),"\n",(0,t.jsx)(s.p,{children:"Get full record (all fields, static and dynamic data) for the given tableId and key tuple, with the given field layout"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getRecord"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData);"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getfield",children:"getField"}),"\n",(0,t.jsx)(s.p,{children:"Get a single field from the given tableId and key tuple, loading the field layout from storage"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getfield-1",children:"getField"}),"\n",(0,t.jsx)(s.p,{children:"Get a single field from the given tableId and key tuple, with the given field layout"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getstaticfield",children:"getStaticField"}),"\n",(0,t.jsx)(s.p,{children:"Get a single static field from the given tableId and key tuple, with the given value field layout.\nNote: 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,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getStaticField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getdynamicfield",children:"getDynamicField"}),"\n",(0,t.jsx)(s.p,{children:"Get a single dynamic field from the given tableId and key tuple at the given dynamic field index.\n(Dynamic field index = field index - number of static fields)"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getfieldlength",children:"getFieldLength"}),"\n",(0,t.jsx)(s.p,{children:"Get the byte length of a single field from the given tableId and key tuple, loading the field layout from storage"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getfieldlength-1",children:"getFieldLength"}),"\n",(0,t.jsx)(s.p,{children:"Get the byte length of a single field from the given tableId and key tuple, with the given value field layout"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getFieldLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getdynamicfieldlength",children:"getDynamicFieldLength"}),"\n",(0,t.jsx)(s.p,{children:"Get the byte length of a single dynamic field from the given tableId and key tuple"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldLength"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"getdynamicfieldslice",children:"getDynamicFieldSlice"}),"\n",(0,t.jsxs)(s.p,{children:["Get a byte slice (including start, excluding end) of a single dynamic field from the given tableId and key tuple, with the given value field layout.\nThe slice is unchecked and will return invalid data if ",(0,t.jsx)(s.code,{children:"start"}),":",(0,t.jsx)(s.code,{children:"end"})," overflow."]}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"getDynamicFieldSlice"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" end"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data);"})]})]})}),"\n",(0,t.jsx)(s.h2,{id:"istorewrite",children:"IStoreWrite"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStoreWrite.sol",children:"Git Source"})}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.strong,{children:"Inherits:"}),"\n",(0,t.jsx)(s.a,{href:"/store/reference/store#istoreevents",children:"IStoreEvents"})]}),"\n",(0,t.jsx)(s.h3,{id:"functions-1",children:"Functions"}),"\n",(0,t.jsx)(s.h4,{id:"setrecord",children:"setRecord"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setRecord"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" staticData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"EncodedLengths"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" encodedLengths"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicData"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"splicestaticdata",children:"spliceStaticData"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"spliceStaticData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint48"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" start"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(s.h4,{id:"splicedynamicdata",children:"spliceDynamicData"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"spliceDynamicData"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" startWithinField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint40"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" deleteCount"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"setfield",children:"setField"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(s.h4,{id:"setfield-1",children:"setField"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"setstaticfield",children:"setStaticField"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setStaticField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"setdynamicfield",children:"setDynamicField"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"setDynamicField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" data"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"pushtodynamicfield",children:"pushToDynamicField"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"pushToDynamicField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dataToPush"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"popfromdynamicfield",children:"popFromDynamicField"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"popFromDynamicField"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" dynamicFieldIndex"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" byteLengthToPop"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"deleterecord",children:"deleteRecord"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"deleteRecord"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyTuple) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(s.h2,{id:"istoreregistration",children:"IStoreRegistration"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStoreRegistration.sol",children:"Git Source"})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.em,{children:"This interface includes methods for managing table field layouts, metadata, and hooks, which are usually called once in the setup phase of an application, making them less performance critical than the methods."})}),"\n",(0,t.jsx)(s.h3,{id:"functions-2",children:"Functions"}),"\n",(0,t.jsx)(s.h4,{id:"registertable",children:"registerTable"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"/store/tables#manually-register-a-table",children:"Usage Sample"})}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.code,{"data-language":"solidity","data-theme":"default",children:[(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerTable"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"FieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldLayout"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keySchema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"Schema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" valueSchema"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" keyNames"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"  "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"[] "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"calldata"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" fieldNames"})]}),"\n",(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:") "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})]})}),"\n",(0,t.jsx)(s.h4,{id:"registerstorehook",children:"registerStoreHook"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"/store/store-hooks",children:"Usage Sample"})}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"registerStoreHook"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"IStoreHook"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" hookAddress"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"uint8"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" enabledHooksBitmap) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(s.h4,{id:"unregisterstorehook",children:"unregisterStoreHook"}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"unregisterStoreHook"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" tableId"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"IStoreHook"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" hookAddress) "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(s.h2,{id:"istorekernel",children:"IStoreKernel"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/store/src/IStoreKernel.sol",children:"Git Source"})}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.strong,{children:"Inherits:"}),"\n",(0,t.jsx)(s.a,{href:"/store/reference/store#istoreread",children:"IStoreRead"}),", ",(0,t.jsx)(s.a,{href:"/store/reference/store#istorewrite",children:"IStoreWrite"}),", ",(0,t.jsx)(s.a,{href:"/store/reference/store#istoreerrors",children:"IStoreErrors"}),", ",(0,t.jsx)(s.a,{href:"/src/IFieldLayoutErrors.sol/interface.IFieldLayoutErrors",children:"IFieldLayoutErrors"}),", ",(0,t.jsx)(s.a,{href:"/src/IEncodedLengthsErrors.sol/interface.IEncodedLengthsErrors",children:"IEncodedLengthsErrors"}),", ",(0,t.jsx)(s.a,{href:"/src/ISchemaErrors.sol/interface.ISchemaErrors",children:"ISchemaErrors"}),", ",(0,t.jsx)(s.a,{href:"/src/ISliceErrors.sol/interface.ISliceErrors",children:"ISliceErrors"})]}),"\n",(0,t.jsx)(s.p,{children:"IStoreKernel includes the error interfaces for each library that it uses."}),"\n",(0,t.jsx)(s.h3,{id:"functions-3",children:"Functions"}),"\n",(0,t.jsx)(s.h4,{id:"storeversion",children:"storeVersion"}),"\n",(0,t.jsx)(s.p,{children:"Returns the protocol version of the Store contract."}),"\n",(0,t.jsx)(s.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"storeVersion"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"() "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"external"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"view"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" version);"})]})})}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Name"}),(0,t.jsx)(s.th,{children:"Type"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"version"})}),(0,t.jsx)(s.td,{children:(0,t.jsx)(s.code,{children:"bytes32"})}),(0,t.jsx)(s.td,{children:"The protocol version of the Store contract."})]})})]})]})}s.default=(0,l.j)(a)}},function(e){e.O(0,[3720,2888,179],function(){return e(e.s=34596)}),_N_E=e.O()}]);