@latticexyz/world-module-erc20 2.2.18-318924725246340b208d3fbee8793314686f1759 → 2.2.18-4565714f5e9421cc7b2de56fe51db4434c55f5d1

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-BQNWKNND.js +10 -0
  2. package/dist/{_esm-H47RQ4ED.js.map → _esm-BQNWKNND.js.map} +1 -1
  3. package/dist/ccip-YAWUVTAX.js +2 -0
  4. package/dist/chunk-GSBUANUZ.js +30 -0
  5. package/dist/{chunk-LIWKL347.js.map → chunk-GSBUANUZ.js.map} +1 -1
  6. package/dist/chunk-LURIOADG.js +2 -0
  7. package/dist/chunk-TJJDXMQ6.js +7 -0
  8. package/dist/{chunk-2VXHCW2O.js.map → chunk-TJJDXMQ6.js.map} +1 -1
  9. package/dist/internal.js +1 -27
  10. package/dist/internal.js.map +1 -1
  11. package/dist/mud.config.js +1 -83
  12. package/dist/mud.config.js.map +1 -1
  13. package/dist/secp256k1-UMYSD4MC.js +22 -0
  14. package/dist/{secp256k1-XVT662DN.js.map → secp256k1-UMYSD4MC.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 +1 -15
  23. package/out/Context.sol/Context.json +1 -1
  24. package/out/Delegation.sol/Delegation.json +1 -1
  25. package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
  26. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.json +1 -1
  27. package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.json +1 -1
  28. package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.json +1 -1
  29. package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.json +1 -1
  30. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +0 -13
  31. package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +0 -13
  32. package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
  33. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json +0 -13
  34. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json.d.ts +0 -13
  35. package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.json +1 -1
  36. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json +3 -95
  37. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json.d.ts +3 -95
  38. package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.json +1 -1
  39. package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -1
  40. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +0 -13
  41. package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +0 -13
  42. package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
  43. package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
  44. package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.json +1 -1
  45. package/out/ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.json +1 -1
  46. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json +0 -13
  47. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json.d.ts +0 -13
  48. package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.json +1 -1
  49. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json +3 -95
  50. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json.d.ts +3 -95
  51. package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.json +1 -1
  52. package/out/ERC20Module.sol/ERC20Module.json +1 -1
  53. package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -1
  54. package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
  55. package/out/ERC20Module.t.sol/TestConstants.json +1 -1
  56. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +0 -13
  57. package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +0 -13
  58. package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
  59. package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -1
  60. package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.json +1 -1
  61. package/out/ERC20Pausable.t.sol/ERC20PausableWithWorldTest.json +1 -1
  62. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +0 -13
  63. package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +0 -13
  64. package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
  65. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json +0 -13
  66. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json.d.ts +0 -13
  67. package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.json +1 -1
  68. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json +3 -95
  69. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json.d.ts +3 -95
  70. package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.json +1 -1
  71. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json +0 -13
  72. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json.d.ts +0 -13
  73. package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.json +1 -1
  74. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json +3 -95
  75. package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json.d.ts +3 -95
  76. package/out/ERC20WithWorld.sol/ERC20WithWorld.json +1 -1
  77. package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
  78. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
  79. package/out/InitModule.sol/InitModule.json +1 -1
  80. package/out/MUDERC20.sol/MUDERC20.abi.json +0 -13
  81. package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +0 -13
  82. package/out/MUDERC20.sol/MUDERC20.json +1 -1
  83. package/out/Module.sol/Module.json +1 -1
  84. package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
  85. package/out/Ownable.sol/Ownable.abi.json +0 -13
  86. package/out/Ownable.sol/Ownable.abi.json.d.ts +0 -13
  87. package/out/Ownable.sol/Ownable.json +1 -1
  88. package/out/Pausable.sol/Pausable.abi.json +0 -13
  89. package/out/Pausable.sol/Pausable.abi.json.d.ts +0 -13
  90. package/out/Pausable.sol/Pausable.json +1 -1
  91. package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
  92. package/out/StoreConsumer.sol/StoreConsumer.json +1 -1
  93. package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
  94. package/out/System.sol/System.json +1 -1
  95. package/out/SystemCall.sol/SystemCall.json +1 -1
  96. package/out/WithStore.sol/WithStore.abi.json +0 -13
  97. package/out/WithStore.sol/WithStore.abi.json.d.ts +0 -13
  98. package/out/WithStore.sol/WithStore.json +1 -1
  99. package/out/WithWorld.sol/WithWorld.abi.json +3 -95
  100. package/out/WithWorld.sol/WithWorld.abi.json.d.ts +3 -95
  101. package/out/WithWorld.sol/WithWorld.json +1 -1
  102. package/out/World.sol/World.json +1 -1
  103. package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
  104. package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
  105. package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
  106. package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
  107. package/out/build-info/{60c60a9593fdb00b3264c36836a28f39.json → 04cd01b00610d99132b6410373c2f462.json} +1 -1
  108. package/package.json +10 -9
  109. package/src/examples/ERC20WithWorld.sol +0 -5
  110. package/src/experimental/Constants.sol +7 -7
  111. package/src/experimental/ERC20Module.sol +1 -9
  112. package/dist/_esm-H47RQ4ED.js +0 -3915
  113. package/dist/ccip-VJWDNI4X.js +0 -15
  114. package/dist/chunk-2VXHCW2O.js +0 -132
  115. package/dist/chunk-LIWKL347.js +0 -3833
  116. package/dist/chunk-PR4QN5HX.js +0 -43
  117. package/dist/secp256k1-XVT662DN.js +0 -2395
  118. package/out/Context.sol/Context.abi.json.d.ts +0 -17
  119. /package/dist/{ccip-VJWDNI4X.js.map → ccip-YAWUVTAX.js.map} +0 -0
  120. /package/dist/{chunk-PR4QN5HX.js.map → chunk-LURIOADG.js.map} +0 -0
@@ -1,15 +0,0 @@
1
- import {
2
- ccipRequest,
3
- offchainLookup,
4
- offchainLookupAbiItem,
5
- offchainLookupSignature
6
- } from "./chunk-LIWKL347.js";
7
- import "./chunk-2VXHCW2O.js";
8
- import "./chunk-PR4QN5HX.js";
9
- export {
10
- ccipRequest,
11
- offchainLookup,
12
- offchainLookupAbiItem,
13
- offchainLookupSignature
14
- };
15
- //# sourceMappingURL=ccip-VJWDNI4X.js.map
@@ -1,132 +0,0 @@
1
- // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/cryptoNode.js
2
- import * as nc from "node:crypto";
3
- var crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
4
-
5
- // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js
6
- function number(n) {
7
- if (!Number.isSafeInteger(n) || n < 0)
8
- throw new Error(`positive integer expected, not ${n}`);
9
- }
10
- function isBytes(a) {
11
- return a instanceof Uint8Array || a != null && typeof a === "object" && a.constructor.name === "Uint8Array";
12
- }
13
- function bytes(b, ...lengths) {
14
- if (!isBytes(b))
15
- throw new Error("Uint8Array expected");
16
- if (lengths.length > 0 && !lengths.includes(b.length))
17
- throw new Error(`Uint8Array expected of length ${lengths}, not of length=${b.length}`);
18
- }
19
- function hash(h) {
20
- if (typeof h !== "function" || typeof h.create !== "function")
21
- throw new Error("Hash should be wrapped by utils.wrapConstructor");
22
- number(h.outputLen);
23
- number(h.blockLen);
24
- }
25
- function exists(instance, checkFinished = true) {
26
- if (instance.destroyed)
27
- throw new Error("Hash instance has been destroyed");
28
- if (checkFinished && instance.finished)
29
- throw new Error("Hash#digest() has already been called");
30
- }
31
- function output(out, instance) {
32
- bytes(out);
33
- const min = instance.outputLen;
34
- if (out.length < min) {
35
- throw new Error(`digestInto() expects output buffer of length at least ${min}`);
36
- }
37
- }
38
-
39
- // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js
40
- var u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
41
- var createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
42
- var rotr = (word, shift) => word << 32 - shift | word >>> shift;
43
- var isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
44
- var byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
45
- function byteSwap32(arr) {
46
- for (let i = 0; i < arr.length; i++) {
47
- arr[i] = byteSwap(arr[i]);
48
- }
49
- }
50
- function utf8ToBytes(str) {
51
- if (typeof str !== "string")
52
- throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
53
- return new Uint8Array(new TextEncoder().encode(str));
54
- }
55
- function toBytes(data) {
56
- if (typeof data === "string")
57
- data = utf8ToBytes(data);
58
- bytes(data);
59
- return data;
60
- }
61
- function concatBytes(...arrays) {
62
- let sum = 0;
63
- for (let i = 0; i < arrays.length; i++) {
64
- const a = arrays[i];
65
- bytes(a);
66
- sum += a.length;
67
- }
68
- const res = new Uint8Array(sum);
69
- for (let i = 0, pad = 0; i < arrays.length; i++) {
70
- const a = arrays[i];
71
- res.set(a, pad);
72
- pad += a.length;
73
- }
74
- return res;
75
- }
76
- var Hash = class {
77
- // Safe version that clones internal state
78
- clone() {
79
- return this._cloneInto();
80
- }
81
- };
82
- var toStr = {}.toString;
83
- function wrapConstructor(hashCons) {
84
- const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
85
- const tmp = hashCons();
86
- hashC.outputLen = tmp.outputLen;
87
- hashC.blockLen = tmp.blockLen;
88
- hashC.create = () => hashCons();
89
- return hashC;
90
- }
91
- function wrapXOFConstructorWithOpts(hashCons) {
92
- const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();
93
- const tmp = hashCons({});
94
- hashC.outputLen = tmp.outputLen;
95
- hashC.blockLen = tmp.blockLen;
96
- hashC.create = (opts) => hashCons(opts);
97
- return hashC;
98
- }
99
- function randomBytes(bytesLength = 32) {
100
- if (crypto && typeof crypto.getRandomValues === "function") {
101
- return crypto.getRandomValues(new Uint8Array(bytesLength));
102
- }
103
- if (crypto && typeof crypto.randomBytes === "function") {
104
- return crypto.randomBytes(bytesLength);
105
- }
106
- throw new Error("crypto.getRandomValues must be defined");
107
- }
108
-
109
- export {
110
- number,
111
- bytes,
112
- hash,
113
- exists,
114
- output,
115
- u32,
116
- createView,
117
- rotr,
118
- isLE,
119
- byteSwap32,
120
- toBytes,
121
- concatBytes,
122
- Hash,
123
- wrapConstructor,
124
- wrapXOFConstructorWithOpts,
125
- randomBytes
126
- };
127
- /*! Bundled license information:
128
-
129
- @noble/hashes/esm/utils.js:
130
- (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
131
- */
132
- //# sourceMappingURL=chunk-2VXHCW2O.js.map