@latticexyz/world-modules 2.2.17-227db4d37db5dd26607f77e805d91701ba2e38db → 2.2.17-3d5b7b75c5c68f4c7499ecd2fcf6e3b2b40c6ad5
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.
- package/dist/mud.config.d.ts +1 -57
- package/dist/mud.config.js +1 -1
- package/dist/mud.config.js.map +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/Allowances.sol/Allowances.json +1 -1
- package/out/ArrayLib.sol/ArrayLib.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/Balances.sol/Balances.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +1 -1
- package/out/CallboundDelegations.sol/CallboundDelegations.json +1 -1
- package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
- package/out/ERC20.t.sol/ERC20Test.json +1 -1
- package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20ModuleRegistrationLib.json +1 -1
- package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
- package/out/ERC20System.sol/ERC20System.json +1 -1
- package/out/ERC721.t.sol/ERC721Recipient.json +1 -1
- package/out/ERC721.t.sol/ERC721Test.json +1 -1
- package/out/ERC721.t.sol/ERC721TokenReceiver.json +1 -1
- package/out/ERC721.t.sol/NonERC721Recipient.json +1 -1
- package/out/ERC721.t.sol/RevertingERC721Recipient.json +1 -1
- package/out/ERC721.t.sol/WrongReturnDataERC721Recipient.json +1 -1
- package/out/ERC721Metadata.sol/ERC721Metadata.json +1 -1
- package/out/ERC721Module.sol/ERC721Module.json +1 -1
- package/out/ERC721Module.sol/ERC721ModuleRegistrationLib.json +1 -1
- package/out/ERC721Registry.sol/ERC721Registry.json +1 -1
- package/out/ERC721System.sol/ERC721System.json +1 -1
- package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
- package/out/GasReporter.sol/GasReporter.json +1 -1
- package/out/IERC20.sol/IERC20.json +1 -1
- package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
- package/out/IERC20Events.sol/IERC20Events.json +1 -1
- package/out/IERC20Mintable.sol/IERC20Mintable.json +1 -1
- package/out/IERC721.sol/IERC721.json +1 -1
- package/out/IERC721Errors.sol/IERC721Errors.json +1 -1
- package/out/IERC721Events.sol/IERC721Events.json +1 -1
- package/out/IERC721Metadata.sol/IERC721Metadata.json +1 -1
- package/out/IERC721Mintable.sol/IERC721Mintable.json +1 -1
- package/out/IERC721Receiver.sol/IERC721Receiver.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/KeysInTable.sol/KeysInTable.json +1 -1
- package/out/KeysInTableHook.sol/KeysInTableHook.json +1 -1
- package/out/KeysInTableModule.sol/KeysInTableModule.json +1 -1
- package/out/KeysInTableModule.t.sol/KeysInTableModuleTest.json +1 -1
- package/out/KeysWithValue.sol/KeysWithValue.json +1 -1
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1 -1
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +1 -1
- package/out/KeysWithValueModule.t.sol/KeysWithValueModuleTest.json +1 -1
- package/out/LibString.sol/LibString.json +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
- package/out/OperatorApproval.sol/OperatorApproval.json +1 -1
- package/out/Owners.sol/Owners.json +1 -1
- package/out/Puppet.sol/Puppet.json +1 -1
- package/out/PuppetDelegationControl.sol/PuppetDelegationControl.json +1 -1
- package/out/PuppetFactorySystem.sol/PuppetFactorySystem.json +1 -1
- package/out/PuppetMaster.sol/PuppetMaster.json +1 -1
- package/out/PuppetModule.sol/PuppetModule.json +1 -1
- package/out/PuppetModule.t.sol/PuppetModuleTest.json +1 -1
- package/out/PuppetModule.t.sol/PuppetTestSystem.json +1 -1
- package/out/PuppetRegistry.sol/PuppetRegistry.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +1 -1
- package/out/StandardDelegationsModule.t.sol/StandardDelegationsModuleTest.json +1 -1
- package/out/StdError.sol/stdError.json +1 -1
- package/out/StoreRead.sol/StoreRead.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
- package/out/System.sol/System.json +1 -1
- package/out/SystemSwitch.sol/SystemSwitch.json +1 -1
- package/out/SystemSwitch.t.sol/EchoSystem.json +1 -1
- package/out/SystemSwitch.t.sol/SystemSwitchTest.json +1 -1
- package/out/SystemboundDelegationControl.sol/SystemboundDelegationControl.json +1 -1
- package/out/SystemboundDelegations.sol/SystemboundDelegations.json +1 -1
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +1 -1
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1 -1
- package/out/TokenApproval.sol/TokenApproval.json +1 -1
- package/out/TokenURI.sol/TokenURI.json +1 -1
- package/out/TotalSupply.sol/TotalSupply.json +1 -1
- package/out/UniqueEntity.sol/UniqueEntity.json +1 -1
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +1 -1
- package/out/UniqueEntityModule.t.sol/UniqueEntityModuleTest.json +1 -1
- package/out/UniqueEntityModule.t.sol/UniqueEntityTestSystem.json +1 -1
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +1 -1
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/World.t.sol/EchoSystemHook.json +1 -1
- package/out/World.t.sol/PayableFallbackSystem.json +1 -1
- package/out/World.t.sol/RevertSystemHook.json +1 -1
- package/out/World.t.sol/WorldTest.json +1 -1
- package/out/World.t.sol/WorldTestSystem.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
- package/out/build-info/{168545c7409f2927f6e50ed7ce0d033c.json → 5adb61cced337bb5e7b3d4344c85094e.json} +1 -1
- package/out/query.t.sol/QueryTest.json +1 -1
- package/out/test.sol/DSTest.json +1 -1
- package/package.json +9 -9
- package/src/codegen/index.sol +0 -1
- package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json +0 -541
- package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.abi.json.d.ts +0 -543
- package/out/CallWithSignatureModule.t.sol/Unstable_CallWithSignatureModuleTest.json +0 -1
- package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.abi.json +0 -1
- package/out/CallWithSignatureNonces.sol/CallWithSignatureNonces.json +0 -1
- package/out/ECDSA.sol/ECDSA.abi.json +0 -29
- package/out/ECDSA.sol/ECDSA.abi.json.d.ts +0 -31
- package/out/ECDSA.sol/ECDSA.json +0 -1
- package/out/IERC1271.sol/IERC1271.abi.json +0 -26
- package/out/IERC1271.sol/IERC1271.abi.json.d.ts +0 -28
- package/out/IERC1271.sol/IERC1271.json +0 -1
- package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json +0 -7
- package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.abi.json.d.ts +0 -9
- package/out/IUnstable_CallWithSignatureErrors.sol/IUnstable_CallWithSignatureErrors.json +0 -1
- package/out/SignatureChecker.sol/SignatureChecker.abi.json +0 -1
- package/out/SignatureChecker.sol/SignatureChecker.json +0 -1
- package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json +0 -436
- package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.abi.json.d.ts +0 -438
- package/out/Unstable_CallWithSignatureModule.sol/Unstable_CallWithSignatureModule.json +0 -1
- package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json +0 -183
- package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.abi.json.d.ts +0 -185
- package/out/Unstable_CallWithSignatureSystem.sol/Unstable_CallWithSignatureSystem.json +0 -1
- package/src/modules/callwithsignature/ECDSA.sol +0 -174
- package/src/modules/callwithsignature/IERC1271.sol +0 -17
- package/src/modules/callwithsignature/IUnstable_CallWithSignatureErrors.sol +0 -9
- package/src/modules/callwithsignature/SignatureChecker.sol +0 -50
- package/src/modules/callwithsignature/Unstable_CallWithSignatureModule.sol +0 -48
- package/src/modules/callwithsignature/Unstable_CallWithSignatureSystem.sol +0 -36
- package/src/modules/callwithsignature/constants.sol +0 -10
- package/src/modules/callwithsignature/getSignedMessageHash.sol +0 -54
- package/src/modules/callwithsignature/tables/CallWithSignatureNonces.sol +0 -199
- package/src/modules/callwithsignature/validateCallWithSignature.sol +0 -31
package/dist/mud.config.d.ts
CHANGED
@@ -607,34 +607,6 @@ 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
|
-
};
|
638
610
|
};
|
639
611
|
readonly sourceDirectory: "src";
|
640
612
|
readonly enums: {};
|
@@ -1233,40 +1205,12 @@ declare const _default: {
|
|
1233
1205
|
readonly disabled: false;
|
1234
1206
|
};
|
1235
1207
|
};
|
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
|
-
};
|
1264
1208
|
};
|
1265
1209
|
readonly systems: {};
|
1266
1210
|
};
|
1267
1211
|
};
|
1268
1212
|
readonly systems: {};
|
1269
|
-
readonly excludeSystems: readonly ["UniqueEntitySystem", "PuppetFactorySystem", "ERC20System", "ERC721System"
|
1213
|
+
readonly excludeSystems: readonly ["UniqueEntitySystem", "PuppetFactorySystem", "ERC20System", "ERC721System"];
|
1270
1214
|
readonly modules: readonly [];
|
1271
1215
|
readonly deploy: {
|
1272
1216
|
readonly postDeployScript: "PostDeploy";
|
package/dist/mud.config.js
CHANGED
@@ -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}}
|
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};
|
2
2
|
//# sourceMappingURL=mud.config.js.map
|
package/dist/mud.config.js.map
CHANGED
@@ -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 *\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,CACZ,OAAQ,CACN,MAAO,SACT,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,iCACjB,gBAAiB,GACjB,cAAe,EACjB,CACF,EAMA,qBAA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ACN,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"]}
|
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,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ACjB,gBAAiB,EACnB,CACF,EACA,cAAe,CACb,OAAQ,CACN,YAAa,aACb,aAAc,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,CACF,EACA,eAAgB,CAAC,qBAAsB,sBAAuB,cAAe,cAAc,CAC7F,CAAC","names":["defineWorld","mud_config_default"]}
|