@latticexyz/world-module-erc20 2.2.18-318924725246340b208d3fbee8793314686f1759 → 2.2.18-41fe36dd2756fe87bfe141e15b6d102f4b070ab1
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/_esm-BQNWKNND.js +10 -0
- package/dist/{_esm-H47RQ4ED.js.map → _esm-BQNWKNND.js.map} +1 -1
- package/dist/ccip-YAWUVTAX.js +2 -0
- package/dist/chunk-GSBUANUZ.js +30 -0
- package/dist/{chunk-LIWKL347.js.map → chunk-GSBUANUZ.js.map} +1 -1
- package/dist/chunk-LURIOADG.js +2 -0
- package/dist/chunk-TJJDXMQ6.js +7 -0
- package/dist/{chunk-2VXHCW2O.js.map → chunk-TJJDXMQ6.js.map} +1 -1
- package/dist/internal.js +1 -27
- package/dist/internal.js.map +1 -1
- package/dist/mud.config.js +1 -83
- package/dist/mud.config.js.map +1 -1
- package/dist/secp256k1-UMYSD4MC.js +22 -0
- package/dist/{secp256k1-XVT662DN.js.map → secp256k1-UMYSD4MC.js.map} +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/Constants.sol/ERC20TableNames.json +1 -1
- package/out/Constants.sol/ModuleConstants.json +1 -1
- package/out/Constants.sol/OwnableTableNames.json +1 -1
- package/out/Constants.sol/PausableTableNames.json +1 -1
- package/out/Context.sol/Context.abi.json +1 -15
- package/out/Context.sol/Context.json +1 -1
- package/out/Delegation.sol/Delegation.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.json +1 -1
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json +0 -13
- package/out/ERC20BaseTest.t.sol/MockERC20Base.abi.json.d.ts +0 -13
- package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -1
- package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json +0 -13
- package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.abi.json.d.ts +0 -13
- package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.json +1 -1
- package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json +3 -95
- package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.abi.json.d.ts +3 -95
- package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.json +1 -1
- package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -1
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json +0 -13
- package/out/ERC20Burnable.sol/ERC20Burnable.abi.json.d.ts +0 -13
- package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json +0 -13
- package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.abi.json.d.ts +0 -13
- package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json +3 -95
- package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json.d.ts +3 -95
- package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -1
- package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
- package/out/ERC20Module.t.sol/TestConstants.json +1 -1
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json +0 -13
- package/out/ERC20Pausable.sol/ERC20Pausable.abi.json.d.ts +0 -13
- package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.json +1 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableWithWorldTest.json +1 -1
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json +0 -13
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.abi.json.d.ts +0 -13
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json +0 -13
- package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.abi.json.d.ts +0 -13
- package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.json +1 -1
- package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json +3 -95
- package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json.d.ts +3 -95
- package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.json +1 -1
- package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json +0 -13
- package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.abi.json.d.ts +0 -13
- package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.json +1 -1
- package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json +3 -95
- package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json.d.ts +3 -95
- package/out/ERC20WithWorld.sol/ERC20WithWorld.json +1 -1
- package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/MUDERC20.sol/MUDERC20.abi.json +0 -13
- package/out/MUDERC20.sol/MUDERC20.abi.json.d.ts +0 -13
- package/out/MUDERC20.sol/MUDERC20.json +1 -1
- package/out/Module.sol/Module.json +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
- package/out/Ownable.sol/Ownable.abi.json +0 -13
- package/out/Ownable.sol/Ownable.abi.json.d.ts +0 -13
- package/out/Ownable.sol/Ownable.json +1 -1
- package/out/Pausable.sol/Pausable.abi.json +0 -13
- package/out/Pausable.sol/Pausable.abi.json.d.ts +0 -13
- package/out/Pausable.sol/Pausable.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/StoreConsumer.sol/StoreConsumer.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
- package/out/System.sol/System.json +1 -1
- package/out/SystemCall.sol/SystemCall.json +1 -1
- package/out/WithStore.sol/WithStore.abi.json +0 -13
- package/out/WithStore.sol/WithStore.abi.json.d.ts +0 -13
- package/out/WithStore.sol/WithStore.json +1 -1
- package/out/WithWorld.sol/WithWorld.abi.json +3 -95
- package/out/WithWorld.sol/WithWorld.abi.json.d.ts +3 -95
- package/out/WithWorld.sol/WithWorld.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
- package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
- package/out/build-info/{60c60a9593fdb00b3264c36836a28f39.json → 04cd01b00610d99132b6410373c2f462.json} +1 -1
- package/package.json +8 -8
- package/src/examples/ERC20WithWorld.sol +0 -5
- package/src/experimental/Constants.sol +7 -7
- package/src/experimental/ERC20Module.sol +1 -9
- package/dist/_esm-H47RQ4ED.js +0 -3915
- package/dist/ccip-VJWDNI4X.js +0 -15
- package/dist/chunk-2VXHCW2O.js +0 -132
- package/dist/chunk-LIWKL347.js +0 -3833
- package/dist/chunk-PR4QN5HX.js +0 -43
- package/dist/secp256k1-XVT662DN.js +0 -2395
- package/out/Context.sol/Context.abi.json.d.ts +0 -17
- /package/dist/{ccip-VJWDNI4X.js.map → ccip-YAWUVTAX.js.map} +0 -0
- /package/dist/{chunk-PR4QN5HX.js.map → chunk-LURIOADG.js.map} +0 -0
package/dist/ccip-VJWDNI4X.js
DELETED
|
@@ -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
|
package/dist/chunk-2VXHCW2O.js
DELETED
|
@@ -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
|