@latticexyz/world-modules 2.2.17-090c9224b80ab949997e0463f9ec0df953c731b5 → 2.2.17-09846f2926132e17477b4d0d1e64b795fbd4485f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/mud.config.d.ts +57 -1
  2. package/dist/mud.config.js +1 -1
  3. package/dist/mud.config.js.map +1 -1
  4. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  5. package/out/Allowances.sol/Allowances.json +1 -1
  6. package/out/ArrayLib.sol/ArrayLib.json +1 -1
  7. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  8. package/out/Balances.sol/Balances.json +1 -1
  9. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  10. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json +541 -0
  11. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json.d.ts +543 -0
  12. package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.json +1 -0
  13. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.abi.json +1 -0
  14. package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.json +1 -0
  15. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
  16. package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
  17. package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
  18. package/out/ECDSA.sol/ECDSA.abi.json +29 -0
  19. package/out/ECDSA.sol/ECDSA.abi.json.d.ts +31 -0
  20. package/out/ECDSA.sol/ECDSA.json +1 -0
  21. package/out/ERC20.t.sol/ERC20Test.json +1 -1
  22. package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
  23. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  24. package/out/ERC20Module.sol/ERC20ModuleRegistrationLib.json +1 -1
  25. package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
  26. package/out/ERC20System.sol/ERC20System.json +1 -1
  27. package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
  28. package/out/ERC721.t.sol/ERC721Test.json +1 -1
  29. package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
  30. package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
  31. package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
  32. package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
  33. package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
  34. package/out/ERC721Module.sol/ERC721Module.json +1 -1
  35. package/out/ERC721Module.sol/ERC721ModuleRegistrationLib.json +1 -1
  36. package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
  37. package/out/ERC721System.sol/ERC721System.json +1 -1
  38. package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
  39. package/out/GasReporter.sol/GasReporter.json +1 -1
  40. package/out/IERC1271.sol/IERC1271.abi.json +26 -0
  41. package/out/IERC1271.sol/IERC1271.abi.json.d.ts +28 -0
  42. package/out/IERC1271.sol/IERC1271.json +1 -0
  43. package/out/IERC20.sol/IERC20.json +1 -1
  44. package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
  45. package/out/IERC20Events.sol/IERC20Events.json +1 -1
  46. package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
  47. package/out/IERC721.sol/IERC721.json +1 -1
  48. package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
  49. package/out/IERC721Events.sol/IERC721Events.json +1 -1
  50. package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
  51. package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
  52. package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
  53. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json +7 -0
  54. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json.d.ts +9 -0
  55. package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.json +1 -0
  56. package/out/InitModule.sol/InitModule.json +1 -1
  57. package/out/KeysInTable.sol/KeysInTable.json +1 -1
  58. package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
  59. package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
  60. package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
  61. package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
  62. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
  63. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
  64. package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
  65. package/out/LibString.sol/LibString.json +1 -1
  66. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  67. package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
  68. package/out/Owners.sol/Owners.json +1 -1
  69. package/out/Puppet.sol/Puppet.json +1 -1
  70. package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
  71. package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
  72. package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
  73. package/out/PuppetModule.sol/PuppetModule.json +1 -1
  74. package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
  75. package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
  76. package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
  77. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  78. package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
  79. package/out/SignatureChecker.sol/SignatureChecker.abi.json +1 -0
  80. package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
  81. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
  82. package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
  83. package/out/StdError.sol/stdError.json +1 -1
  84. package/out/StoreRead.sol/StoreRead.json +1 -1
  85. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  86. package/out/System.sol/System.json +1 -1
  87. package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
  88. package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
  89. package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
  90. package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
  91. package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
  92. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
  93. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
  94. package/out/TokenApproval.sol/TokenApproval.json +1 -1
  95. package/out/TokenURI.sol/TokenURI.json +1 -1
  96. package/out/TotalSupply.sol/TotalSupply.json +1 -1
  97. package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
  98. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
  99. package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
  100. package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
  101. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
  102. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json +436 -0
  103. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json.d.ts +438 -0
  104. package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.json +1 -0
  105. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json +183 -0
  106. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json.d.ts +185 -0
  107. package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.json +1 -0
  108. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
  109. package/out/World.sol/World.json +1 -1
  110. package/out/World.t.sol/EchoSystemHook.json +1 -1
  111. package/out/World.t.sol/PayableFallbackSystem.json +1 -1
  112. package/out/World.t.sol/RevertSystemHook.json +1 -1
  113. package/out/World.t.sol/WorldTest.json +1 -1
  114. package/out/World.t.sol/WorldTestSystem.json +1 -1
  115. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  116. package/out/build-info/{5adb61cced337bb5e7b3d4344c85094e.json → 168545c7409f2927f6e50ed7ce0d033c.json} +1 -1
  117. package/out/query.t.sol/QueryTest.json +1 -1
  118. package/out/test.sol/DSTest.json +1 -1
  119. package/package.json +9 -9
  120. package/src/codegen/index.sol +1 -0
  121. package/src/modules/callwithsignature/ECDSA.sol +174 -0
  122. package/src/modules/callwithsignature/IERC1271.sol +17 -0
  123. package/src/modules/callwithsignature/IUnstable_CallWithSignatureErrors.sol +9 -0
  124. package/src/modules/callwithsignature/SignatureChecker.sol +50 -0
  125. package/src/modules/callwithsignature/Unstable_CallWithSignatureModule.sol +48 -0
  126. package/src/modules/callwithsignature/Unstable_CallWithSignatureSystem.sol +36 -0
  127. package/src/modules/callwithsignature/constants.sol +10 -0
  128. package/src/modules/callwithsignature/getSignedMessageHash.sol +54 -0
  129. package/src/modules/callwithsignature/tables/CallWithSignatureNonces.sol +199 -0
  130. package/src/modules/callwithsignature/validateCallWithSignature.sol +31 -0
@@ -607,6 +607,34 @@ declare const _default: {
607
607
  readonly disabled: false;
608
608
  };
609
609
  };
610
+ readonly CallWithSignatureNonces: {
611
+ readonly label: "CallWithSignatureNonces";
612
+ readonly namespaceLabel: "";
613
+ readonly type: "table";
614
+ readonly namespace: string;
615
+ readonly name: string;
616
+ readonly tableId: `0x${string}`;
617
+ readonly schema: {
618
+ readonly signer: {
619
+ readonly type: "address";
620
+ readonly internalType: "address";
621
+ };
622
+ readonly nonce: {
623
+ readonly type: "uint256";
624
+ readonly internalType: "uint256";
625
+ };
626
+ };
627
+ readonly key: readonly ["signer"];
628
+ readonly codegen: {
629
+ readonly outputDirectory: "../modules/callwithsignature/tables";
630
+ readonly tableIdArgument: false;
631
+ readonly storeArgument: false;
632
+ readonly dataStruct: boolean;
633
+ };
634
+ readonly deploy: {
635
+ readonly disabled: false;
636
+ };
637
+ };
610
638
  };
611
639
  readonly sourceDirectory: "src";
612
640
  readonly enums: {};
@@ -1205,12 +1233,40 @@ declare const _default: {
1205
1233
  readonly disabled: false;
1206
1234
  };
1207
1235
  };
1236
+ readonly CallWithSignatureNonces: {
1237
+ readonly label: "CallWithSignatureNonces";
1238
+ readonly namespaceLabel: "";
1239
+ readonly type: "table";
1240
+ readonly namespace: string;
1241
+ readonly name: string;
1242
+ readonly tableId: `0x${string}`;
1243
+ readonly schema: {
1244
+ readonly signer: {
1245
+ readonly type: "address";
1246
+ readonly internalType: "address";
1247
+ };
1248
+ readonly nonce: {
1249
+ readonly type: "uint256";
1250
+ readonly internalType: "uint256";
1251
+ };
1252
+ };
1253
+ readonly key: readonly ["signer"];
1254
+ readonly codegen: {
1255
+ readonly outputDirectory: "../modules/callwithsignature/tables";
1256
+ readonly tableIdArgument: false;
1257
+ readonly storeArgument: false;
1258
+ readonly dataStruct: boolean;
1259
+ };
1260
+ readonly deploy: {
1261
+ readonly disabled: false;
1262
+ };
1263
+ };
1208
1264
  };
1209
1265
  readonly systems: {};
1210
1266
  };
1211
1267
  };
1212
1268
  readonly systems: {};
1213
- readonly excludeSystems: readonly ["UniqueEntitySystem", "PuppetFactorySystem", "ERC20System", "ERC721System"];
1269
+ readonly excludeSystems: readonly ["UniqueEntitySystem", "PuppetFactorySystem", "ERC20System", "ERC721System", "Unstable_CallWithSignatureSystem"];
1214
1270
  readonly modules: readonly [];
1215
1271
  readonly deploy: {
1216
1272
  readonly postDeployScript: "PostDeploy";
@@ -1,2 +1,2 @@
1
- import{defineWorld as e}from"@latticexyz/world";var s=e({userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",type:"bytes32"}},tables:{KeysWithValue:{schema:{valueHash:"bytes32",keysWithValue:"bytes32[]"},key:["valueHash"],codegen:{outputDirectory:"../modules/keyswithvalue/tables",tableIdArgument:!0,storeArgument:!0}},KeysInTable:{schema:{sourceTableId:"ResourceId",keys0:"bytes32[]",keys1:"bytes32[]",keys2:"bytes32[]",keys3:"bytes32[]",keys4:"bytes32[]"},key:["sourceTableId"],codegen:{outputDirectory:"../modules/keysintable/tables",storeArgument:!0}},UsedKeysIndex:{schema:{sourceTableId:"ResourceId",keysHash:"bytes32",has:"bool",index:"uint40"},key:["sourceTableId","keysHash"],codegen:{outputDirectory:"../modules/keysintable/tables",dataStruct:!1,storeArgument:!0}},UniqueEntity:{schema:{value:"uint256"},key:[],codegen:{outputDirectory:"../modules/uniqueentity/tables",tableIdArgument:!0,storeArgument:!0}},CallboundDelegations:{schema:{delegator:"address",delegatee:"address",systemId:"ResourceId",callDataHash:"bytes32",availableCalls:"uint256"},key:["delegator","delegatee","systemId","callDataHash"],codegen:{outputDirectory:"../modules/std-delegations/tables"}},SystemboundDelegations:{schema:{delegator:"address",delegatee:"address",systemId:"ResourceId",availableCalls:"uint256"},key:["delegator","delegatee","systemId"],codegen:{outputDirectory:"../modules/std-delegations/tables"}},TimeboundDelegations:{schema:{delegator:"address",delegatee:"address",maxTimestamp:"uint256"},key:["delegator","delegatee"],codegen:{outputDirectory:"../modules/std-delegations/tables"}},PuppetRegistry:{schema:{systemId:"ResourceId",puppet:"address"},key:["systemId"],codegen:{outputDirectory:"../modules/puppet/tables",tableIdArgument:!0}},Balances:{schema:{account:"address",value:"uint256"},key:["account"],codegen:{outputDirectory:"../modules/tokens/tables",tableIdArgument:!0}},ERC20Metadata:{schema:{decimals:"uint8",name:"string",symbol:"string"},key:[],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},Allowances:{schema:{account:"address",spender:"address",value:"uint256"},key:["account","spender"],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},TotalSupply:{schema:{totalSupply:"uint256"},key:[],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},ERC20Registry:{schema:{namespaceId:"ResourceId",tokenAddress:"address"},key:["namespaceId"],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},ERC721Metadata:{schema:{name:"string",symbol:"string",baseURI:"string"},key:[],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},TokenURI:{schema:{tokenId:"uint256",tokenURI:"string"},key:["tokenId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},Owners:{schema:{tokenId:"uint256",owner:"address"},key:["tokenId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},TokenApproval:{schema:{tokenId:"uint256",account:"address"},key:["tokenId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},OperatorApproval:{schema:{owner:"address",operator:"address",approved:"bool"},key:["owner","operator"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},ERC721Registry:{schema:{namespaceId:"ResourceId",tokenAddress:"address"},key:["namespaceId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}}},excludeSystems:["UniqueEntitySystem","PuppetFactorySystem","ERC20System","ERC721System"]});export{s as default};
1
+ import{defineWorld as e}from"@latticexyz/world";var s=e({userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",type:"bytes32"}},tables:{KeysWithValue:{schema:{valueHash:"bytes32",keysWithValue:"bytes32[]"},key:["valueHash"],codegen:{outputDirectory:"../modules/keyswithvalue/tables",tableIdArgument:!0,storeArgument:!0}},KeysInTable:{schema:{sourceTableId:"ResourceId",keys0:"bytes32[]",keys1:"bytes32[]",keys2:"bytes32[]",keys3:"bytes32[]",keys4:"bytes32[]"},key:["sourceTableId"],codegen:{outputDirectory:"../modules/keysintable/tables",storeArgument:!0}},UsedKeysIndex:{schema:{sourceTableId:"ResourceId",keysHash:"bytes32",has:"bool",index:"uint40"},key:["sourceTableId","keysHash"],codegen:{outputDirectory:"../modules/keysintable/tables",dataStruct:!1,storeArgument:!0}},UniqueEntity:{schema:{value:"uint256"},key:[],codegen:{outputDirectory:"../modules/uniqueentity/tables",tableIdArgument:!0,storeArgument:!0}},CallboundDelegations:{schema:{delegator:"address",delegatee:"address",systemId:"ResourceId",callDataHash:"bytes32",availableCalls:"uint256"},key:["delegator","delegatee","systemId","callDataHash"],codegen:{outputDirectory:"../modules/std-delegations/tables"}},SystemboundDelegations:{schema:{delegator:"address",delegatee:"address",systemId:"ResourceId",availableCalls:"uint256"},key:["delegator","delegatee","systemId"],codegen:{outputDirectory:"../modules/std-delegations/tables"}},TimeboundDelegations:{schema:{delegator:"address",delegatee:"address",maxTimestamp:"uint256"},key:["delegator","delegatee"],codegen:{outputDirectory:"../modules/std-delegations/tables"}},PuppetRegistry:{schema:{systemId:"ResourceId",puppet:"address"},key:["systemId"],codegen:{outputDirectory:"../modules/puppet/tables",tableIdArgument:!0}},Balances:{schema:{account:"address",value:"uint256"},key:["account"],codegen:{outputDirectory:"../modules/tokens/tables",tableIdArgument:!0}},ERC20Metadata:{schema:{decimals:"uint8",name:"string",symbol:"string"},key:[],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},Allowances:{schema:{account:"address",spender:"address",value:"uint256"},key:["account","spender"],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},TotalSupply:{schema:{totalSupply:"uint256"},key:[],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},ERC20Registry:{schema:{namespaceId:"ResourceId",tokenAddress:"address"},key:["namespaceId"],codegen:{outputDirectory:"../modules/erc20-puppet/tables",tableIdArgument:!0}},ERC721Metadata:{schema:{name:"string",symbol:"string",baseURI:"string"},key:[],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},TokenURI:{schema:{tokenId:"uint256",tokenURI:"string"},key:["tokenId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},Owners:{schema:{tokenId:"uint256",owner:"address"},key:["tokenId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},TokenApproval:{schema:{tokenId:"uint256",account:"address"},key:["tokenId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},OperatorApproval:{schema:{owner:"address",operator:"address",approved:"bool"},key:["owner","operator"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},ERC721Registry:{schema:{namespaceId:"ResourceId",tokenAddress:"address"},key:["namespaceId"],codegen:{outputDirectory:"../modules/erc721-puppet/tables",tableIdArgument:!0}},CallWithSignatureNonces:{schema:{signer:"address",nonce:"uint256"},key:["signer"],codegen:{outputDirectory:"../modules/callwithsignature/tables"}}},excludeSystems:["UniqueEntitySystem","PuppetFactorySystem","ERC20System","ERC721System","Unstable_CallWithSignatureSystem"]});export{s as default};
2
2
  //# sourceMappingURL=mud.config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineWorld } from \"@latticexyz/world\";\n\nexport default defineWorld({\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n /************************************************************************\n *\n * KEYS WITH VALUE MODULE\n *\n ************************************************************************/\n KeysWithValue: {\n schema: {\n valueHash: \"bytes32\",\n keysWithValue: \"bytes32[]\", // For now only supports 1 key per value\n },\n key: [\"valueHash\"],\n codegen: {\n outputDirectory: \"../modules/keyswithvalue/tables\",\n tableIdArgument: true,\n storeArgument: true,\n },\n },\n /************************************************************************\n *\n * KEYS IN TABLE MODULE\n *\n ************************************************************************/\n KeysInTable: {\n schema: {\n sourceTableId: \"ResourceId\",\n keys0: \"bytes32[]\",\n keys1: \"bytes32[]\",\n keys2: \"bytes32[]\",\n keys3: \"bytes32[]\",\n keys4: \"bytes32[]\",\n },\n key: [\"sourceTableId\"],\n codegen: {\n outputDirectory: \"../modules/keysintable/tables\",\n storeArgument: true,\n },\n },\n UsedKeysIndex: {\n schema: {\n sourceTableId: \"ResourceId\",\n keysHash: \"bytes32\",\n has: \"bool\",\n index: \"uint40\",\n },\n key: [\"sourceTableId\", \"keysHash\"],\n codegen: {\n outputDirectory: \"../modules/keysintable/tables\",\n dataStruct: false,\n storeArgument: true,\n },\n },\n /************************************************************************\n *\n * UNIQUE ENTITY MODULE\n *\n ************************************************************************/\n UniqueEntity: {\n schema: {\n value: \"uint256\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/uniqueentity/tables\",\n tableIdArgument: true,\n storeArgument: true,\n },\n },\n /************************************************************************\n *\n * STD DELEGATIONS MODULE\n *\n ************************************************************************/\n CallboundDelegations: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n systemId: \"ResourceId\",\n callDataHash: \"bytes32\",\n availableCalls: \"uint256\",\n },\n key: [\"delegator\", \"delegatee\", \"systemId\", \"callDataHash\"],\n codegen: {\n outputDirectory: \"../modules/std-delegations/tables\",\n },\n },\n SystemboundDelegations: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n systemId: \"ResourceId\",\n availableCalls: \"uint256\",\n },\n key: [\"delegator\", \"delegatee\", \"systemId\"],\n codegen: {\n outputDirectory: \"../modules/std-delegations/tables\",\n },\n },\n TimeboundDelegations: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n maxTimestamp: \"uint256\",\n },\n key: [\"delegator\", \"delegatee\"],\n codegen: {\n outputDirectory: \"../modules/std-delegations/tables\",\n },\n },\n /************************************************************************\n *\n * PUPPET MODULE\n *\n ************************************************************************/\n PuppetRegistry: {\n schema: {\n systemId: \"ResourceId\",\n puppet: \"address\",\n },\n key: [\"systemId\"],\n codegen: {\n outputDirectory: \"../modules/puppet/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * TOKEN TABLES (SHARED BY ERC20, ERC721)\n *\n ************************************************************************/\n Balances: {\n schema: {\n account: \"address\",\n value: \"uint256\",\n },\n key: [\"account\"],\n codegen: {\n outputDirectory: \"../modules/tokens/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * ERC20 MODULE\n *\n ************************************************************************/\n ERC20Metadata: {\n schema: {\n decimals: \"uint8\",\n name: \"string\",\n symbol: \"string\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n Allowances: {\n schema: {\n account: \"address\",\n spender: \"address\",\n value: \"uint256\",\n },\n key: [\"account\", \"spender\"],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n TotalSupply: {\n schema: {\n totalSupply: \"uint256\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n ERC20Registry: {\n schema: {\n namespaceId: \"ResourceId\",\n tokenAddress: \"address\",\n },\n key: [\"namespaceId\"],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * ERC721 MODULE\n *\n ************************************************************************/\n ERC721Metadata: {\n schema: {\n name: \"string\",\n symbol: \"string\",\n baseURI: \"string\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n TokenURI: {\n schema: {\n tokenId: \"uint256\",\n tokenURI: \"string\",\n },\n key: [\"tokenId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n Owners: {\n schema: {\n tokenId: \"uint256\",\n owner: \"address\",\n },\n key: [\"tokenId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n TokenApproval: {\n schema: {\n tokenId: \"uint256\",\n account: \"address\",\n },\n key: [\"tokenId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n OperatorApproval: {\n schema: {\n owner: \"address\",\n operator: \"address\",\n approved: \"bool\",\n },\n key: [\"owner\", \"operator\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n ERC721Registry: {\n schema: {\n namespaceId: \"ResourceId\",\n tokenAddress: \"address\",\n },\n key: [\"namespaceId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n },\n excludeSystems: [\"UniqueEntitySystem\", \"PuppetFactorySystem\", \"ERC20System\", \"ERC721System\"],\n});\n"],"mappings":"AAAA,OAAS,eAAAA,MAAmB,oBAE5B,IAAOC,EAAQD,EAAY,CACzB,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,KAAM,SAAU,CAClF,EACA,OAAQ,CAMN,cAAe,CACb,OAAQ,CACN,UAAW,UACX,cAAe,WACjB,EACA,IAAK,CAAC,WAAW,EACjB,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,GACjB,cAAe,EACjB,CACF,EAMA,YAAa,CACX,OAAQ,CACN,cAAe,aACf,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,WACT,EACA,IAAK,CAAC,eAAe,EACrB,QAAS,CACP,gBAAiB,gCACjB,cAAe,EACjB,CACF,EACA,cAAe,CACb,OAAQ,CACN,cAAe,aACf,SAAU,UACV,IAAK,OACL,MAAO,QACT,EACA,IAAK,CAAC,gBAAiB,UAAU,EACjC,QAAS,CACP,gBAAiB,gCACjB,WAAY,GACZ,cAAe,EACjB,CACF,EAMA,aAAc,CACZ,OAAQ,CACN,MAAO,SACT,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,iCACjB,gBAAiB,GACjB,cAAe,EACjB,CACF,EAMA,qBAAsB,CACpB,OAAQ,CACN,UAAW,UACX,UAAW,UACX,SAAU,aACV,aAAc,UACd,eAAgB,SAClB,EACA,IAAK,CAAC,YAAa,YAAa,WAAY,cAAc,EAC1D,QAAS,CACP,gBAAiB,mCACnB,CACF,EACA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SAAS,EACf,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,OAAQ,CACN,OAAQ,CACN,QAAS,UACT,MAAO,SACT,EACA,IAAK,CAAC,SAAS,EACf,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,cAAe,CACb,OAAQ,CACN,QAAS,UACT,QAAS,SACX,EACA,IAAK,CAAC,SAAS,EACf,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,iBAAkB,CAChB,OAAQ,CACN,MAAO,UACP,SAAU,UACV,SAAU,MACZ,EACA,IAAK,CAAC,QAAS,UAAU,EACzB,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,eAAgB,CACd,OAAQ,CACN,YAAa,aACb,aAAc,SAChB,EACA,IAAK,CAAC,aAAa,EACnB,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,CACF,EACA,eAAgB,CAAC,qBAAsB,sBAAuB,cAAe,cAAc,CAC7F,CAAC","names":["defineWorld","mud_config_default"]}
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineWorld } from \"@latticexyz/world\";\n\nexport default defineWorld({\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n /************************************************************************\n *\n * KEYS WITH VALUE MODULE\n *\n ************************************************************************/\n KeysWithValue: {\n schema: {\n valueHash: \"bytes32\",\n keysWithValue: \"bytes32[]\", // For now only supports 1 key per value\n },\n key: [\"valueHash\"],\n codegen: {\n outputDirectory: \"../modules/keyswithvalue/tables\",\n tableIdArgument: true,\n storeArgument: true,\n },\n },\n /************************************************************************\n *\n * KEYS IN TABLE MODULE\n *\n ************************************************************************/\n KeysInTable: {\n schema: {\n sourceTableId: \"ResourceId\",\n keys0: \"bytes32[]\",\n keys1: \"bytes32[]\",\n keys2: \"bytes32[]\",\n keys3: \"bytes32[]\",\n keys4: \"bytes32[]\",\n },\n key: [\"sourceTableId\"],\n codegen: {\n outputDirectory: \"../modules/keysintable/tables\",\n storeArgument: true,\n },\n },\n UsedKeysIndex: {\n schema: {\n sourceTableId: \"ResourceId\",\n keysHash: \"bytes32\",\n has: \"bool\",\n index: \"uint40\",\n },\n key: [\"sourceTableId\", \"keysHash\"],\n codegen: {\n outputDirectory: \"../modules/keysintable/tables\",\n dataStruct: false,\n storeArgument: true,\n },\n },\n /************************************************************************\n *\n * UNIQUE ENTITY MODULE\n *\n ************************************************************************/\n UniqueEntity: {\n schema: {\n value: \"uint256\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/uniqueentity/tables\",\n tableIdArgument: true,\n storeArgument: true,\n },\n },\n /************************************************************************\n *\n * STD DELEGATIONS MODULE\n *\n ************************************************************************/\n CallboundDelegations: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n systemId: \"ResourceId\",\n callDataHash: \"bytes32\",\n availableCalls: \"uint256\",\n },\n key: [\"delegator\", \"delegatee\", \"systemId\", \"callDataHash\"],\n codegen: {\n outputDirectory: \"../modules/std-delegations/tables\",\n },\n },\n SystemboundDelegations: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n systemId: \"ResourceId\",\n availableCalls: \"uint256\",\n },\n key: [\"delegator\", \"delegatee\", \"systemId\"],\n codegen: {\n outputDirectory: \"../modules/std-delegations/tables\",\n },\n },\n TimeboundDelegations: {\n schema: {\n delegator: \"address\",\n delegatee: \"address\",\n maxTimestamp: \"uint256\",\n },\n key: [\"delegator\", \"delegatee\"],\n codegen: {\n outputDirectory: \"../modules/std-delegations/tables\",\n },\n },\n /************************************************************************\n *\n * PUPPET MODULE\n *\n ************************************************************************/\n PuppetRegistry: {\n schema: {\n systemId: \"ResourceId\",\n puppet: \"address\",\n },\n key: [\"systemId\"],\n codegen: {\n outputDirectory: \"../modules/puppet/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * TOKEN TABLES (SHARED BY ERC20, ERC721)\n *\n ************************************************************************/\n Balances: {\n schema: {\n account: \"address\",\n value: \"uint256\",\n },\n key: [\"account\"],\n codegen: {\n outputDirectory: \"../modules/tokens/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * ERC20 MODULE\n *\n ************************************************************************/\n ERC20Metadata: {\n schema: {\n decimals: \"uint8\",\n name: \"string\",\n symbol: \"string\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n Allowances: {\n schema: {\n account: \"address\",\n spender: \"address\",\n value: \"uint256\",\n },\n key: [\"account\", \"spender\"],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n TotalSupply: {\n schema: {\n totalSupply: \"uint256\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n ERC20Registry: {\n schema: {\n namespaceId: \"ResourceId\",\n tokenAddress: \"address\",\n },\n key: [\"namespaceId\"],\n codegen: {\n outputDirectory: \"../modules/erc20-puppet/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * ERC721 MODULE\n *\n ************************************************************************/\n ERC721Metadata: {\n schema: {\n name: \"string\",\n symbol: \"string\",\n baseURI: \"string\",\n },\n key: [],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n TokenURI: {\n schema: {\n tokenId: \"uint256\",\n tokenURI: \"string\",\n },\n key: [\"tokenId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n Owners: {\n schema: {\n tokenId: \"uint256\",\n owner: \"address\",\n },\n key: [\"tokenId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n TokenApproval: {\n schema: {\n tokenId: \"uint256\",\n account: \"address\",\n },\n key: [\"tokenId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n OperatorApproval: {\n schema: {\n owner: \"address\",\n operator: \"address\",\n approved: \"bool\",\n },\n key: [\"owner\", \"operator\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n ERC721Registry: {\n schema: {\n namespaceId: \"ResourceId\",\n tokenAddress: \"address\",\n },\n key: [\"namespaceId\"],\n codegen: {\n outputDirectory: \"../modules/erc721-puppet/tables\",\n tableIdArgument: true,\n },\n },\n /************************************************************************\n *\n * REGISTER DELEGATION WITH SIGNATURE MODULE\n *\n ************************************************************************/\n CallWithSignatureNonces: {\n schema: { signer: \"address\", nonce: \"uint256\" },\n key: [\"signer\"],\n codegen: {\n outputDirectory: \"../modules/callwithsignature/tables\",\n },\n },\n },\n excludeSystems: [\n \"UniqueEntitySystem\",\n \"PuppetFactorySystem\",\n \"ERC20System\",\n \"ERC721System\",\n \"Unstable_CallWithSignatureSystem\",\n ],\n});\n"],"mappings":"AAAA,OAAS,eAAAA,MAAmB,oBAE5B,IAAOC,EAAQD,EAAY,CACzB,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,KAAM,SAAU,CAClF,EACA,OAAQ,CAMN,cAAe,CACb,OAAQ,CACN,UAAW,UACX,cAAe,WACjB,EACA,IAAK,CAAC,WAAW,EACjB,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,GACjB,cAAe,EACjB,CACF,EAMA,YAAa,CACX,OAAQ,CACN,cAAe,aACf,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,YACP,MAAO,WACT,EACA,IAAK,CAAC,eAAe,EACrB,QAAS,CACP,gBAAiB,gCACjB,cAAe,EACjB,CACF,EACA,cAAe,CACb,OAAQ,CACN,cAAe,aACf,SAAU,UACV,IAAK,OACL,MAAO,QACT,EACA,IAAK,CAAC,gBAAiB,UAAU,EACjC,QAAS,CACP,gBAAiB,gCACjB,WAAY,GACZ,cAAe,EACjB,CACF,EAMA,aAAc,C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SAChB,EACA,IAAK,CAAC,aAAa,EACnB,QAAS,CACP,gBAAiB,iCACjB,gBAAiB,EACnB,CACF,EAMA,eAAgB,CACd,OAAQ,CACN,KAAM,SACN,OAAQ,SACR,QAAS,QACX,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,SAAU,CACR,OAAQ,CACN,QAAS,UACT,SAAU,QACZ,EACA,IAAK,CAAC,SAAS,EACf,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,OAAQ,CACN,OAAQ,CACN,QAAS,UACT,MAAO,SACT,EACA,IAAK,CAAC,SAAS,EACf,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,cAAe,CACb,OAAQ,CACN,QAAS,UACT,QAAS,SACX,EACA,IAAK,CAAC,SAAS,EACf,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,iBAAkB,CAChB,OAAQ,CACN,MAAO,UACP,SAAU,UACV,SAAU,MACZ,EACA,IAAK,CAAC,QAAS,UAAU,EACzB,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EACA,eAAgB,CACd,OAAQ,CACN,YAAa,aACb,aAAc,SAChB,EACA,IAAK,CAAC,aAAa,EACnB,QAAS,CACP,gBAAiB,kCACjB,gBAAiB,EACnB,CACF,EAMA,wBAAyB,CACvB,OAAQ,CAAE,OAAQ,UAAW,MAAO,SAAU,EAC9C,IAAK,CAAC,QAAQ,EACd,QAAS,CACP,gBAAiB,qCACnB,CACF,CACF,EACA,eAAgB,CACd,qBACA,sBACA,cACA,eACA,kCACF,CACF,CAAC","names":["defineWorld","mud_config_default"]}