@latticexyz/world-module-erc20 2.2.18-f0433092876e2ac9b5b12cd0ecae9c120a2d0368 → 2.2.18

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 (120) hide show
  1. package/dist/_esm-H47RQ4ED.js +3915 -0
  2. package/dist/{_esm-BQNWKNND.js.map → _esm-H47RQ4ED.js.map} +1 -1
  3. package/dist/ccip-VJWDNI4X.js +15 -0
  4. package/dist/chunk-2VXHCW2O.js +132 -0
  5. package/dist/{chunk-TJJDXMQ6.js.map → chunk-2VXHCW2O.js.map} +1 -1
  6. package/dist/chunk-LIWKL347.js +3833 -0
  7. package/dist/{chunk-GSBUANUZ.js.map → chunk-LIWKL347.js.map} +1 -1
  8. package/dist/chunk-PR4QN5HX.js +43 -0
  9. package/dist/internal.js +27 -1
  10. package/dist/internal.js.map +1 -1
  11. package/dist/mud.config.js +83 -1
  12. package/dist/mud.config.js.map +1 -1
  13. package/dist/secp256k1-XVT662DN.js +2395 -0
  14. package/dist/{secp256k1-UMYSD4MC.js.map → secp256k1-XVT662DN.js.map} +1 -1
  15. package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
  16. package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
  17. package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
  18. package/out/Constants.sol/ERC20TableNames.json +1 -1
  19. package/out/Constants.sol/ModuleConstants.json +1 -1
  20. package/out/Constants.sol/OwnableTableNames.json +1 -1
  21. package/out/Constants.sol/PausableTableNames.json +1 -1
  22. package/out/Context.sol/Context.abi.json +15 -1
  23. package/out/Context.sol/Context.abi.json.d.ts +17 -0
  24. package/out/Context.sol/Context.json +1 -1
  25. package/out/Delegation.sol/Delegation.json +1 -1
  26. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  27. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.json +1 -1
  28. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.json +1 -1
  29. package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.json +1 -1
  30. package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.json +1 -1
  31. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +13 -0
  32. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +13 -0
  33. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  34. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json +13 -0
  35. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json.d.ts +13 -0
  36. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.json +1 -1
  37. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json +95 -3
  38. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json.d.ts +95 -3
  39. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.json +1 -1
  40. package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -1
  41. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +13 -0
  42. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +13 -0
  43. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  44. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  45. package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.json +1 -1
  46. package/out/ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.json +1 -1
  47. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json +13 -0
  48. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json.d.ts +13 -0
  49. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.json +1 -1
  50. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json +95 -3
  51. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json.d.ts +95 -3
  52. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.json +1 -1
  53. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  54. package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -1
  55. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  56. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  57. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +13 -0
  58. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +13 -0
  59. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  60. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -1
  61. package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.json +1 -1
  62. package/out/ERC20Pausable.t.sol/ERC20PausableWithWorldTest.json +1 -1
  63. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +13 -0
  64. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +13 -0
  65. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  66. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json +13 -0
  67. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json.d.ts +13 -0
  68. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.json +1 -1
  69. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json +95 -3
  70. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json.d.ts +95 -3
  71. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.json +1 -1
  72. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json +13 -0
  73. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json.d.ts +13 -0
  74. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.json +1 -1
  75. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json +95 -3
  76. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json.d.ts +95 -3
  77. package/out/ERC20WithWorld.sol/ERC20WithWorld.json +1 -1
  78. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  79. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  80. package/out/InitModule.sol/InitModule.json +1 -1
  81. package/out/MUDERC20.sol/MUDERC20.abi.json +13 -0
  82. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +13 -0
  83. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  84. package/out/Module.sol/Module.json +1 -1
  85. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  86. package/out/Ownable.sol/Ownable.abi.json +13 -0
  87. package/out/Ownable.sol/Ownable.abi.json.d.ts +13 -0
  88. package/out/Ownable.sol/Ownable.json +1 -1
  89. package/out/Pausable.sol/Pausable.abi.json +13 -0
  90. package/out/Pausable.sol/Pausable.abi.json.d.ts +13 -0
  91. package/out/Pausable.sol/Pausable.json +1 -1
  92. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  93. package/out/StoreConsumer.sol/StoreConsumer.json +1 -1
  94. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  95. package/out/System.sol/System.json +1 -1
  96. package/out/SystemCall.sol/SystemCall.json +1 -1
  97. package/out/WithStore.sol/WithStore.abi.json +13 -0
  98. package/out/WithStore.sol/WithStore.abi.json.d.ts +13 -0
  99. package/out/WithStore.sol/WithStore.json +1 -1
  100. package/out/WithWorld.sol/WithWorld.abi.json +95 -3
  101. package/out/WithWorld.sol/WithWorld.abi.json.d.ts +95 -3
  102. package/out/WithWorld.sol/WithWorld.json +1 -1
  103. package/out/World.sol/World.json +1 -1
  104. package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
  105. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  106. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  107. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  108. package/out/build-info/{04cd01b00610d99132b6410373c2f462.json → 60c60a9593fdb00b3264c36836a28f39.json} +1 -1
  109. package/package.json +8 -8
  110. package/src/examples/ERC20WithWorld.sol +5 -0
  111. package/src/experimental/Constants.sol +7 -7
  112. package/src/experimental/ERC20Module.sol +9 -1
  113. package/dist/_esm-BQNWKNND.js +0 -10
  114. package/dist/ccip-YAWUVTAX.js +0 -2
  115. package/dist/chunk-GSBUANUZ.js +0 -30
  116. package/dist/chunk-LURIOADG.js +0 -2
  117. package/dist/chunk-TJJDXMQ6.js +0 -7
  118. package/dist/secp256k1-UMYSD4MC.js +0 -22
  119. /package/dist/{ccip-YAWUVTAX.js.map → ccip-VJWDNI4X.js.map} +0 -0
  120. /package/dist/{chunk-LURIOADG.js.map → chunk-PR4QN5HX.js.map} +0 -0
@@ -0,0 +1,43 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
14
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ };
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+
37
+ export {
38
+ __require,
39
+ __commonJS,
40
+ __export,
41
+ __toESM
42
+ };
43
+ //# sourceMappingURL=chunk-PR4QN5HX.js.map
package/dist/internal.js CHANGED
@@ -1,2 +1,28 @@
1
- import{a as r,b as o}from"./chunk-GSBUANUZ.js";import"./chunk-TJJDXMQ6.js";import"./chunk-LURIOADG.js";function a({namespace:e,name:t,symbol:n}){return{artifactPath:"@latticexyz/world-module-erc20/out/ERC20Module.sol/ERC20Module.json",root:!1,args:[{type:"bytes",value:o([{type:"bytes14"},{type:"string"},{type:"string"}],[r(e,{size:14}),t,n])}]}}export{a as defineERC20Module};
1
+ import {
2
+ encodeAbiParameters,
3
+ stringToHex
4
+ } from "./chunk-LIWKL347.js";
5
+ import "./chunk-2VXHCW2O.js";
6
+ import "./chunk-PR4QN5HX.js";
7
+
8
+ // ts/defineERC20Module.ts
9
+ function defineERC20Module({ namespace, name, symbol }) {
10
+ const erc20ModuleArgs = encodeAbiParameters(
11
+ [{ type: "bytes14" }, { type: "bytes16" }, { type: "string" }, { type: "string" }],
12
+ [stringToHex(namespace, { size: 14 }), stringToHex(name, { size: 16 }), name, symbol]
13
+ );
14
+ return {
15
+ artifactPath: "@latticexyz/world-module-erc20/out/ERC20Module.sol/ERC20Module.json",
16
+ root: false,
17
+ args: [
18
+ {
19
+ type: "bytes",
20
+ value: erc20ModuleArgs
21
+ }
22
+ ]
23
+ };
24
+ }
25
+ export {
26
+ defineERC20Module
27
+ };
2
28
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../ts/defineERC20Module.ts"],"sourcesContent":["import { encodeAbiParameters, stringToHex } from \"viem\";\nimport { ModuleInput } from \"@latticexyz/world/internal\";\n\nexport type DefineERC20ModuleInput = {\n namespace: string;\n name: string;\n symbol: string;\n};\n\nexport function defineERC20Module({ namespace, name, symbol }: DefineERC20ModuleInput): ModuleInput {\n const erc20ModuleArgs = encodeAbiParameters(\n [{ type: \"bytes14\" }, { type: \"string\" }, { type: \"string\" }],\n [stringToHex(namespace, { size: 14 }), name, symbol],\n );\n\n return {\n artifactPath: \"@latticexyz/world-module-erc20/out/ERC20Module.sol/ERC20Module.json\",\n root: false,\n args: [\n {\n type: \"bytes\",\n value: erc20ModuleArgs,\n },\n ],\n };\n}\n"],"mappings":"uGASO,SAASA,EAAkB,CAAE,UAAAC,EAAW,KAAAC,EAAM,OAAAC,CAAO,EAAwC,CAMlG,MAAO,CACL,aAAc,sEACd,KAAM,GACN,KAAM,CACJ,CACE,KAAM,QACN,MAXkBC,EACtB,CAAC,CAAE,KAAM,SAAU,EAAG,CAAE,KAAM,QAAS,EAAG,CAAE,KAAM,QAAS,CAAC,EAC5D,CAACC,EAAYJ,EAAW,CAAE,KAAM,EAAG,CAAC,EAAGC,EAAMC,CAAM,CACrD,CASI,CACF,CACF,CACF","names":["defineERC20Module","namespace","name","symbol","encodeAbiParameters","stringToHex"]}
1
+ {"version":3,"sources":["../ts/defineERC20Module.ts"],"sourcesContent":["import { encodeAbiParameters, stringToHex } from \"viem\";\nimport { ModuleInput } from \"@latticexyz/world/internal\";\n\nexport type DefineERC20ModuleInput = {\n namespace: string;\n name: string;\n symbol: string;\n};\n\nexport function defineERC20Module({ namespace, name, symbol }: DefineERC20ModuleInput): ModuleInput {\n const erc20ModuleArgs = encodeAbiParameters(\n [{ type: \"bytes14\" }, { type: \"bytes16\" }, { type: \"string\" }, { type: \"string\" }],\n [stringToHex(namespace, { size: 14 }), stringToHex(name, { size: 16 }), name, symbol],\n );\n\n return {\n artifactPath: \"@latticexyz/world-module-erc20/out/ERC20Module.sol/ERC20Module.json\",\n root: false,\n args: [\n {\n type: \"bytes\",\n value: erc20ModuleArgs,\n },\n ],\n };\n}\n"],"mappings":";;;;;;;;AASO,SAAS,kBAAkB,EAAE,WAAW,MAAM,OAAO,GAAwC;AAClG,QAAM,kBAAkB;AAAA,IACtB,CAAC,EAAE,MAAM,UAAU,GAAG,EAAE,MAAM,UAAU,GAAG,EAAE,MAAM,SAAS,GAAG,EAAE,MAAM,SAAS,CAAC;AAAA,IACjF,CAAC,YAAY,WAAW,EAAE,MAAM,GAAG,CAAC,GAAG,YAAY,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,MAAM,MAAM;AAAA,EACtF;AAEA,SAAO;AAAA,IACL,cAAc;AAAA,IACd,MAAM;AAAA,IACN,MAAM;AAAA,MACJ;AAAA,QACE,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,2 +1,84 @@
1
- import"./chunk-LURIOADG.js";import{defineStore as e}from"@latticexyz/store";var a=e({userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",type:"bytes32"}},tables:{Owner:{schema:{value:"address"},key:[],codegen:{tableIdArgument:!0}},ERC20Metadata:{schema:{decimals:"uint8",name:"string",symbol:"string"},key:[],codegen:{tableIdArgument:!0}},TotalSupply:{schema:{totalSupply:"uint256"},key:[],codegen:{tableIdArgument:!0}},Balances:{schema:{account:"address",value:"uint256"},key:["account"],codegen:{tableIdArgument:!0}},Allowances:{schema:{account:"address",spender:"address",value:"uint256"},key:["account","spender"],codegen:{tableIdArgument:!0}},Paused:{schema:{paused:"bool"},key:[],codegen:{tableIdArgument:!0}},ERC20Registry:{schema:{namespaceId:"ResourceId",tokenAddress:"address"},key:["namespaceId"],codegen:{tableIdArgument:!0}}}});export{a as default};
1
+ import "./chunk-PR4QN5HX.js";
2
+
3
+ // mud.config.ts
4
+ import { defineStore } from "@latticexyz/store";
5
+ var mud_config_default = defineStore({
6
+ userTypes: {
7
+ ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" }
8
+ },
9
+ tables: {
10
+ Owner: {
11
+ schema: {
12
+ value: "address"
13
+ },
14
+ key: [],
15
+ codegen: {
16
+ tableIdArgument: true
17
+ }
18
+ },
19
+ ERC20Metadata: {
20
+ schema: {
21
+ decimals: "uint8",
22
+ name: "string",
23
+ symbol: "string"
24
+ },
25
+ key: [],
26
+ codegen: {
27
+ tableIdArgument: true
28
+ }
29
+ },
30
+ TotalSupply: {
31
+ schema: {
32
+ totalSupply: "uint256"
33
+ },
34
+ key: [],
35
+ codegen: {
36
+ tableIdArgument: true
37
+ }
38
+ },
39
+ Balances: {
40
+ schema: {
41
+ account: "address",
42
+ value: "uint256"
43
+ },
44
+ key: ["account"],
45
+ codegen: {
46
+ tableIdArgument: true
47
+ }
48
+ },
49
+ Allowances: {
50
+ schema: {
51
+ account: "address",
52
+ spender: "address",
53
+ value: "uint256"
54
+ },
55
+ key: ["account", "spender"],
56
+ codegen: {
57
+ tableIdArgument: true
58
+ }
59
+ },
60
+ Paused: {
61
+ schema: {
62
+ paused: "bool"
63
+ },
64
+ key: [],
65
+ codegen: {
66
+ tableIdArgument: true
67
+ }
68
+ },
69
+ ERC20Registry: {
70
+ schema: {
71
+ namespaceId: "ResourceId",
72
+ tokenAddress: "address"
73
+ },
74
+ key: ["namespaceId"],
75
+ codegen: {
76
+ tableIdArgument: true
77
+ }
78
+ }
79
+ }
80
+ });
81
+ export {
82
+ mud_config_default as default
83
+ };
2
84
  //# sourceMappingURL=mud.config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineStore } from \"@latticexyz/store\";\n\n// Used for tablegen\nexport default defineStore({\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n Owner: {\n schema: {\n value: \"address\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n ERC20Metadata: {\n schema: {\n decimals: \"uint8\",\n name: \"string\",\n symbol: \"string\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n TotalSupply: {\n schema: {\n totalSupply: \"uint256\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n Balances: {\n schema: {\n account: \"address\",\n value: \"uint256\",\n },\n key: [\"account\"],\n codegen: {\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 tableIdArgument: true,\n },\n },\n Paused: {\n schema: {\n paused: \"bool\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n ERC20Registry: {\n schema: {\n namespaceId: \"ResourceId\",\n tokenAddress: \"address\",\n },\n key: [\"namespaceId\"],\n codegen: {\n tableIdArgument: true,\n },\n },\n },\n});\n"],"mappings":"4BAAA,OAAS,eAAAA,MAAmB,oBAG5B,IAAOC,EAAQD,EAAY,CACzB,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,KAAM,SAAU,CAClF,EACA,OAAQ,CACN,MAAO,CACL,OAAQ,CACN,MAAO,SACT,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,EACnB,CACF,EACA,cAAe,CACb,OAAQ,CACN,SAAU,QACV,KAAM,SACN,OAAQ,QACV,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,EACnB,CACF,EACA,YAAa,CACX,OAAQ,CACN,YAAa,SACf,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,EACnB,CACF,EACA,SAAU,CACR,OAAQ,CACN,QAAS,UACT,MAAO,SACT,EACA,IAAK,CAAC,SAAS,EACf,QAAS,CACP,gBAAiB,EACnB,CACF,EACA,WAAY,CACV,OAAQ,CACN,QAAS,UACT,QAAS,UACT,MAAO,SACT,EACA,IAAK,CAAC,UAAW,SAAS,EAC1B,QAAS,CACP,gBAAiB,EACnB,CACF,EACA,OAAQ,CACN,OAAQ,CACN,OAAQ,MACV,EACA,IAAK,CAAC,EACN,QAAS,CACP,gBAAiB,EACnB,CACF,EACA,cAAe,CACb,OAAQ,CACN,YAAa,aACb,aAAc,SAChB,EACA,IAAK,CAAC,aAAa,EACnB,QAAS,CACP,gBAAiB,EACnB,CACF,CACF,CACF,CAAC","names":["defineStore","mud_config_default"]}
1
+ {"version":3,"sources":["../mud.config.ts"],"sourcesContent":["import { defineStore } from \"@latticexyz/store\";\n\n// Used for tablegen\nexport default defineStore({\n userTypes: {\n ResourceId: { filePath: \"@latticexyz/store/src/ResourceId.sol\", type: \"bytes32\" },\n },\n tables: {\n Owner: {\n schema: {\n value: \"address\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n ERC20Metadata: {\n schema: {\n decimals: \"uint8\",\n name: \"string\",\n symbol: \"string\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n TotalSupply: {\n schema: {\n totalSupply: \"uint256\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n Balances: {\n schema: {\n account: \"address\",\n value: \"uint256\",\n },\n key: [\"account\"],\n codegen: {\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 tableIdArgument: true,\n },\n },\n Paused: {\n schema: {\n paused: \"bool\",\n },\n key: [],\n codegen: {\n tableIdArgument: true,\n },\n },\n ERC20Registry: {\n schema: {\n namespaceId: \"ResourceId\",\n tokenAddress: \"address\",\n },\n key: [\"namespaceId\"],\n codegen: {\n tableIdArgument: true,\n },\n },\n },\n});\n"],"mappings":";;;AAAA,SAAS,mBAAmB;AAG5B,IAAO,qBAAQ,YAAY;AAAA,EACzB,WAAW;AAAA,IACT,YAAY,EAAE,UAAU,wCAAwC,MAAM,UAAU;AAAA,EAClF;AAAA,EACA,QAAQ;AAAA,IACN,OAAO;AAAA,MACL,QAAQ;AAAA,QACN,OAAO;AAAA,MACT;AAAA,MACA,KAAK,CAAC;AAAA,MACN,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,QAAQ;AAAA,QACN,UAAU;AAAA,QACV,MAAM;AAAA,QACN,QAAQ;AAAA,MACV;AAAA,MACA,KAAK,CAAC;AAAA,MACN,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,QAAQ;AAAA,QACN,aAAa;AAAA,MACf;AAAA,MACA,KAAK,CAAC;AAAA,MACN,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,MACT;AAAA,MACA,KAAK,CAAC,SAAS;AAAA,MACf,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,SAAS;AAAA,QACT,OAAO;AAAA,MACT;AAAA,MACA,KAAK,CAAC,WAAW,SAAS;AAAA,MAC1B,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,QAAQ;AAAA,MACN,QAAQ;AAAA,QACN,QAAQ;AAAA,MACV;AAAA,MACA,KAAK,CAAC;AAAA,MACN,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,QAAQ;AAAA,QACN,aAAa;AAAA,QACb,cAAc;AAAA,MAChB;AAAA,MACA,KAAK,CAAC,aAAa;AAAA,MACnB,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}