@latticexyz/world-module-callwithsignature 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2 → 2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940
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.js +1 -13
- package/dist/internal.js.map +1 -1
- package/dist/mud.config.js +1 -16
- package/dist/mud.config.js.map +1 -1
- package/package.json +10 -27
- package/dist/internal.cjs +0 -41
- package/dist/internal.cjs.map +0 -1
- package/dist/internal.d.cts +0 -20
- package/dist/mud.config.cjs +0 -38
- package/dist/mud.config.cjs.map +0 -1
- package/dist/mud.config.d.cts +0 -103
package/dist/internal.js
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
1
|
+
var e={Call:[{name:"signer",type:"address"},{name:"systemNamespace",type:"string"},{name:"systemName",type:"string"},{name:"callData",type:"bytes"},{name:"nonce",type:"uint256"}]};export{e as callWithSignatureTypes};
|
|
14
2
|
//# 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":"
|
|
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,IAAMA,EAAyB,CACpC,KAAM,CACJ,CAAE,KAAM,SAAU,KAAM,SAAU,EAClC,CAAE,KAAM,kBAAmB,KAAM,QAAS,EAC1C,CAAE,KAAM,aAAc,KAAM,QAAS,EACrC,CAAE,KAAM,WAAY,KAAM,OAAQ,EAClC,CAAE,KAAM,QAAS,KAAM,SAAU,CACnC,CACF","names":["callWithSignatureTypes"]}
|
package/dist/mud.config.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
1
|
+
import{defineWorld as e}from"@latticexyz/world";var r=e({userTypes:{ResourceId:{filePath:"@latticexyz/store/src/ResourceId.sol",type:"bytes32"}},tables:{CallWithSignatureNonces:{schema:{signer:"address",nonce:"uint256"},key:["signer"]}}});export{r as default};
|
|
17
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 CallWithSignatureNonces: {\n schema: { signer: \"address\", nonce: \"uint256\" },\n key: [\"signer\"],\n },\n },\n});\n"],"mappings":"
|
|
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,OAAS,eAAAA,MAAmB,oBAE5B,IAAOC,EAAQD,EAAY,CACzB,UAAW,CACT,WAAY,CAAE,SAAU,uCAAwC,KAAM,SAAU,CAClF,EACA,OAAQ,CACN,wBAAyB,CACvB,OAAQ,CAAE,OAAQ,UAAW,MAAO,SAAU,EAC9C,IAAK,CAAC,QAAQ,CAChB,CACF,CACF,CAAC","names":["defineWorld","mud_config_default"]}
|
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-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
4
4
|
"description": "CallWithSignature world module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,26 +10,8 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|
|
13
|
-
"./internal":
|
|
14
|
-
|
|
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
|
-
},
|
|
13
|
+
"./internal": "./dist/internal.js",
|
|
14
|
+
"./mud.config": "./dist/mud.config.js",
|
|
33
15
|
"./out/*": "./out/*"
|
|
34
16
|
},
|
|
35
17
|
"typesVersions": {
|
|
@@ -48,16 +30,17 @@
|
|
|
48
30
|
"src"
|
|
49
31
|
],
|
|
50
32
|
"dependencies": {
|
|
51
|
-
"@latticexyz/schema-type": "2.2.18-
|
|
52
|
-
"@latticexyz/store": "2.2.18-
|
|
53
|
-
"@latticexyz/world": "2.2.18-
|
|
33
|
+
"@latticexyz/schema-type": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
34
|
+
"@latticexyz/store": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
35
|
+
"@latticexyz/world": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940"
|
|
54
36
|
},
|
|
55
37
|
"devDependencies": {
|
|
56
38
|
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
|
|
57
39
|
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
|
|
58
40
|
"solhint": "^3.3.7",
|
|
59
|
-
"
|
|
60
|
-
"@latticexyz/
|
|
41
|
+
"vitest": "0.34.6",
|
|
42
|
+
"@latticexyz/abi-ts": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940",
|
|
43
|
+
"@latticexyz/gas-report": "2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940"
|
|
61
44
|
},
|
|
62
45
|
"publishConfig": {
|
|
63
46
|
"access": "public"
|
|
@@ -75,7 +58,7 @@
|
|
|
75
58
|
"dev": "tsup --watch",
|
|
76
59
|
"gas-report": "gas-report --save gas-report.json",
|
|
77
60
|
"lint": "solhint --config ./.solhint.json 'src/**/*.sol'",
|
|
78
|
-
"test": "
|
|
61
|
+
"test": "forge test",
|
|
79
62
|
"test:ci": "pnpm run test"
|
|
80
63
|
}
|
|
81
64
|
}
|
package/dist/internal.cjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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
|
package/dist/internal.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/internal.d.cts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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/mud.config.cjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
package/dist/mud.config.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/mud.config.d.cts
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
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 };
|