@latticexyz/world-module-callwithsignature 2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30 → 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2
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/internal.cjs +41 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +20 -0
- package/dist/internal.js +13 -1
- package/dist/internal.js.map +1 -1
- package/dist/mud.config.cjs +38 -0
- package/dist/mud.config.cjs.map +1 -0
- package/dist/mud.config.d.cts +103 -0
- package/dist/mud.config.js +16 -1
- package/dist/mud.config.js.map +1 -1
- package/package.json +26 -8
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// ts/exports/internal.ts
|
|
21
|
+
var internal_exports = {};
|
|
22
|
+
__export(internal_exports, {
|
|
23
|
+
callWithSignatureTypes: () => callWithSignatureTypes
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(internal_exports);
|
|
26
|
+
|
|
27
|
+
// ts/callWithSignatureTypes.ts
|
|
28
|
+
var callWithSignatureTypes = {
|
|
29
|
+
Call: [
|
|
30
|
+
{ name: "signer", type: "address" },
|
|
31
|
+
{ name: "systemNamespace", type: "string" },
|
|
32
|
+
{ name: "systemName", type: "string" },
|
|
33
|
+
{ name: "callData", type: "bytes" },
|
|
34
|
+
{ name: "nonce", type: "uint256" }
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
callWithSignatureTypes
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=internal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../ts/exports/internal.ts","../ts/callWithSignatureTypes.ts"],"sourcesContent":["export * from \"../callWithSignatureTypes\";\n","// Follows https://viem.sh/docs/actions/wallet/signTypedData#usage\n\n// TODO: add tests to keep this aligned with `CALL_TYPEHASH` in `getSignedMessageHash.sol`\nexport const callWithSignatureTypes = {\n Call: [\n { name: \"signer\", type: \"address\" },\n { name: \"systemNamespace\", type: \"string\" },\n { name: \"systemName\", type: \"string\" },\n { name: \"callData\", type: \"bytes\" },\n { name: \"nonce\", type: \"uint256\" },\n ],\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,yBAAyB;AAAA,EACpC,MAAM;AAAA,IACJ,EAAE,MAAM,UAAU,MAAM,UAAU;AAAA,IAClC,EAAE,MAAM,mBAAmB,MAAM,SAAS;AAAA,IAC1C,EAAE,MAAM,cAAc,MAAM,SAAS;AAAA,IACrC,EAAE,MAAM,YAAY,MAAM,QAAQ;AAAA,IAClC,EAAE,MAAM,SAAS,MAAM,UAAU;AAAA,EACnC;AACF;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const callWithSignatureTypes: {
|
|
2
|
+
readonly Call: readonly [{
|
|
3
|
+
readonly name: "signer";
|
|
4
|
+
readonly type: "address";
|
|
5
|
+
}, {
|
|
6
|
+
readonly name: "systemNamespace";
|
|
7
|
+
readonly type: "string";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "systemName";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "callData";
|
|
13
|
+
readonly type: "bytes";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "nonce";
|
|
16
|
+
readonly type: "uint256";
|
|
17
|
+
}];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { callWithSignatureTypes };
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// ts/callWithSignatureTypes.ts
|
|
2
|
+
var callWithSignatureTypes = {
|
|
3
|
+
Call: [
|
|
4
|
+
{ name: "signer", type: "address" },
|
|
5
|
+
{ name: "systemNamespace", type: "string" },
|
|
6
|
+
{ name: "systemName", type: "string" },
|
|
7
|
+
{ name: "callData", type: "bytes" },
|
|
8
|
+
{ name: "nonce", type: "uint256" }
|
|
9
|
+
]
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
callWithSignatureTypes
|
|
13
|
+
};
|
|
2
14
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../ts/callWithSignatureTypes.ts"],"sourcesContent":["// Follows https://viem.sh/docs/actions/wallet/signTypedData#usage\n\n// TODO: add tests to keep this aligned with `CALL_TYPEHASH` in `getSignedMessageHash.sol`\nexport const callWithSignatureTypes = {\n Call: [\n { name: \"signer\", type: \"address\" },\n { name: \"systemNamespace\", type: \"string\" },\n { name: \"systemName\", type: \"string\" },\n { name: \"callData\", type: \"bytes\" },\n { name: \"nonce\", type: \"uint256\" },\n ],\n} as const;\n"],"mappings":"AAGO,
|
|
1
|
+
{"version":3,"sources":["../ts/callWithSignatureTypes.ts"],"sourcesContent":["// Follows https://viem.sh/docs/actions/wallet/signTypedData#usage\n\n// TODO: add tests to keep this aligned with `CALL_TYPEHASH` in `getSignedMessageHash.sol`\nexport const callWithSignatureTypes = {\n Call: [\n { name: \"signer\", type: \"address\" },\n { name: \"systemNamespace\", type: \"string\" },\n { name: \"systemName\", type: \"string\" },\n { name: \"callData\", type: \"bytes\" },\n { name: \"nonce\", type: \"uint256\" },\n ],\n} as const;\n"],"mappings":";AAGO,IAAM,yBAAyB;AAAA,EACpC,MAAM;AAAA,IACJ,EAAE,MAAM,UAAU,MAAM,UAAU;AAAA,IAClC,EAAE,MAAM,mBAAmB,MAAM,SAAS;AAAA,IAC1C,EAAE,MAAM,cAAc,MAAM,SAAS;AAAA,IACrC,EAAE,MAAM,YAAY,MAAM,QAAQ;AAAA,IAClC,EAAE,MAAM,SAAS,MAAM,UAAU;AAAA,EACnC;AACF;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// mud.config.ts
|
|
21
|
+
var mud_config_exports = {};
|
|
22
|
+
__export(mud_config_exports, {
|
|
23
|
+
default: () => mud_config_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(mud_config_exports);
|
|
26
|
+
var import_world = require("@latticexyz/world");
|
|
27
|
+
var mud_config_default = (0, import_world.defineWorld)({
|
|
28
|
+
userTypes: {
|
|
29
|
+
ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" }
|
|
30
|
+
},
|
|
31
|
+
tables: {
|
|
32
|
+
CallWithSignatureNonces: {
|
|
33
|
+
schema: { signer: "address", nonce: "uint256" },
|
|
34
|
+
key: ["signer"]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=mud.config.cjs.map
|
|
@@ -0,0 +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 CallWithSignatureNonces: {\n schema: { signer: \"address\", nonce: \"uint256\" },\n key: [\"signer\"],\n },\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA4B;AAE5B,IAAO,yBAAQ,0BAAY;AAAA,EACzB,WAAW;AAAA,IACT,YAAY,EAAE,UAAU,wCAAwC,MAAM,UAAU;AAAA,EAClF;AAAA,EACA,QAAQ;AAAA,IACN,yBAAyB;AAAA,MACvB,QAAQ,EAAE,QAAQ,WAAW,OAAO,UAAU;AAAA,MAC9C,KAAK,CAAC,QAAQ;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly userTypes: {
|
|
3
|
+
readonly ResourceId: {
|
|
4
|
+
readonly filePath: "@latticexyz/store/src/ResourceId.sol";
|
|
5
|
+
readonly type: "bytes32";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
readonly codegen: {
|
|
9
|
+
readonly outputDirectory: "codegen";
|
|
10
|
+
readonly storeImportPath: "@latticexyz/store/src";
|
|
11
|
+
readonly userTypesFilename: "common.sol";
|
|
12
|
+
readonly indexFilename: "index.sol";
|
|
13
|
+
} & {
|
|
14
|
+
readonly worldInterfaceName: "IWorld";
|
|
15
|
+
readonly worldgenDirectory: "world";
|
|
16
|
+
readonly systemLibrariesDirectory: "systems";
|
|
17
|
+
readonly generateSystemLibraries: false;
|
|
18
|
+
readonly worldImportPath: "@latticexyz/world/src";
|
|
19
|
+
};
|
|
20
|
+
readonly namespace: string;
|
|
21
|
+
readonly tables: {
|
|
22
|
+
readonly CallWithSignatureNonces: {
|
|
23
|
+
readonly label: "CallWithSignatureNonces";
|
|
24
|
+
readonly namespaceLabel: "";
|
|
25
|
+
readonly type: "table";
|
|
26
|
+
readonly namespace: string;
|
|
27
|
+
readonly name: string;
|
|
28
|
+
readonly tableId: `0x${string}`;
|
|
29
|
+
readonly schema: {
|
|
30
|
+
readonly signer: {
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
};
|
|
34
|
+
readonly nonce: {
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
readonly internalType: "uint256";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly key: readonly ["signer"];
|
|
40
|
+
readonly codegen: {
|
|
41
|
+
readonly outputDirectory: string;
|
|
42
|
+
readonly tableIdArgument: false;
|
|
43
|
+
readonly storeArgument: false;
|
|
44
|
+
readonly dataStruct: boolean;
|
|
45
|
+
};
|
|
46
|
+
readonly deploy: {
|
|
47
|
+
readonly disabled: false;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly sourceDirectory: "src";
|
|
52
|
+
readonly enums: {};
|
|
53
|
+
readonly multipleNamespaces: false;
|
|
54
|
+
readonly enumValues: {};
|
|
55
|
+
readonly namespaces: {
|
|
56
|
+
readonly "": {
|
|
57
|
+
readonly label: "";
|
|
58
|
+
readonly namespace: string;
|
|
59
|
+
readonly tables: {
|
|
60
|
+
readonly CallWithSignatureNonces: {
|
|
61
|
+
readonly label: "CallWithSignatureNonces";
|
|
62
|
+
readonly namespaceLabel: "";
|
|
63
|
+
readonly type: "table";
|
|
64
|
+
readonly namespace: string;
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly tableId: `0x${string}`;
|
|
67
|
+
readonly schema: {
|
|
68
|
+
readonly signer: {
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
};
|
|
72
|
+
readonly nonce: {
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly key: readonly ["signer"];
|
|
78
|
+
readonly codegen: {
|
|
79
|
+
readonly outputDirectory: string;
|
|
80
|
+
readonly tableIdArgument: false;
|
|
81
|
+
readonly storeArgument: false;
|
|
82
|
+
readonly dataStruct: boolean;
|
|
83
|
+
};
|
|
84
|
+
readonly deploy: {
|
|
85
|
+
readonly disabled: false;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly systems: {};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly systems: {};
|
|
93
|
+
readonly excludeSystems: readonly [];
|
|
94
|
+
readonly modules: readonly [];
|
|
95
|
+
readonly deploy: {
|
|
96
|
+
readonly postDeployScript: "PostDeploy";
|
|
97
|
+
readonly deploysDirectory: "./deploys";
|
|
98
|
+
readonly worldsFile: "./worlds.json";
|
|
99
|
+
readonly upgradeableWorldImplementation: false;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export { _default as default };
|
package/dist/mud.config.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
// mud.config.ts
|
|
2
|
+
import { defineWorld } from "@latticexyz/world";
|
|
3
|
+
var mud_config_default = defineWorld({
|
|
4
|
+
userTypes: {
|
|
5
|
+
ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" }
|
|
6
|
+
},
|
|
7
|
+
tables: {
|
|
8
|
+
CallWithSignatureNonces: {
|
|
9
|
+
schema: { signer: "address", nonce: "uint256" },
|
|
10
|
+
key: ["signer"]
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
mud_config_default as default
|
|
16
|
+
};
|
|
2
17
|
//# 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 CallWithSignatureNonces: {\n schema: { signer: \"address\", nonce: \"uint256\" },\n key: [\"signer\"],\n },\n },\n});\n"],"mappings":"AAAA,
|
|
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 CallWithSignatureNonces: {\n schema: { signer: \"address\", nonce: \"uint256\" },\n key: [\"signer\"],\n },\n },\n});\n"],"mappings":";AAAA,SAAS,mBAAmB;AAE5B,IAAO,qBAAQ,YAAY;AAAA,EACzB,WAAW;AAAA,IACT,YAAY,EAAE,UAAU,wCAAwC,MAAM,UAAU;AAAA,EAClF;AAAA,EACA,QAAQ;AAAA,IACN,yBAAyB;AAAA,MACvB,QAAQ,EAAE,QAAQ,WAAW,OAAO,UAAU;AAAA,MAC9C,KAAK,CAAC,QAAQ;AAAA,IAChB;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latticexyz/world-module-callwithsignature",
|
|
3
|
-
"version": "2.2.18-
|
|
3
|
+
"version": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
|
|
4
4
|
"description": "CallWithSignature world module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,8 +10,26 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|
|
13
|
-
"./internal":
|
|
14
|
-
|
|
13
|
+
"./internal": {
|
|
14
|
+
"import": {
|
|
15
|
+
"import": "./dist/internal.js",
|
|
16
|
+
"types": "./dist/internal.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"require": "./dist/internal.cjs",
|
|
20
|
+
"types": "./dist/internal.d.cts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./mud.config": {
|
|
24
|
+
"import": {
|
|
25
|
+
"import": "./dist/mud.config.js",
|
|
26
|
+
"types": "./dist/mud.config.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"require": "./dist/mud.config.cjs",
|
|
30
|
+
"types": "./dist/mud.config.d.cts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
15
33
|
"./out/*": "./out/*"
|
|
16
34
|
},
|
|
17
35
|
"typesVersions": {
|
|
@@ -30,16 +48,16 @@
|
|
|
30
48
|
"src"
|
|
31
49
|
],
|
|
32
50
|
"dependencies": {
|
|
33
|
-
"@latticexyz/schema-type": "2.2.18-
|
|
34
|
-
"@latticexyz/store": "2.2.18-
|
|
35
|
-
"@latticexyz/world": "2.2.18-
|
|
51
|
+
"@latticexyz/schema-type": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
|
|
52
|
+
"@latticexyz/store": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
|
|
53
|
+
"@latticexyz/world": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2"
|
|
36
54
|
},
|
|
37
55
|
"devDependencies": {
|
|
38
56
|
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
|
|
39
57
|
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
|
|
40
58
|
"solhint": "^3.3.7",
|
|
41
|
-
"@latticexyz/abi-ts": "2.2.18-
|
|
42
|
-
"@latticexyz/gas-report": "2.2.18-
|
|
59
|
+
"@latticexyz/abi-ts": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
|
|
60
|
+
"@latticexyz/gas-report": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2"
|
|
43
61
|
},
|
|
44
62
|
"publishConfig": {
|
|
45
63
|
"access": "public"
|