@0xsequence/abi 2.3.8 → 2.3.10

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 (40) hide show
  1. package/dist/0xsequence-abi.cjs.dev.js +3639 -0
  2. package/dist/0xsequence-abi.cjs.prod.js +3639 -0
  3. package/dist/0xsequence-abi.esm.js +3622 -1
  4. package/dist/declarations/src/index.d.ts +18 -0
  5. package/dist/declarations/src/sale/erc1155Sale.d.ts +467 -0
  6. package/dist/declarations/src/sale/erc721Sale.d.ts +467 -0
  7. package/dist/declarations/src/saleItems/erc1155SaleItems.d.ts +672 -0
  8. package/dist/declarations/src/saleItems/erc721SaleItems.d.ts +794 -0
  9. package/dist/declarations/src/tokens/erc1155.d.ts +324 -0
  10. package/dist/declarations/src/tokens/erc20.d.ts +239 -0
  11. package/dist/declarations/src/tokens/erc6909.d.ts +308 -0
  12. package/dist/declarations/src/tokens/erc721.d.ts +335 -0
  13. package/dist/declarations/src/wallet/erc1271.d.ts +15 -13
  14. package/dist/declarations/src/wallet/erc5719.d.ts +13 -13
  15. package/dist/declarations/src/wallet/erc6492.d.ts +135 -25
  16. package/dist/declarations/src/wallet/factory.d.ts +13 -11
  17. package/dist/declarations/src/wallet/index.d.ts +3 -0
  18. package/dist/declarations/src/wallet/libs/requireFreshSigners.d.ts +11 -11
  19. package/dist/declarations/src/wallet/mainModule.d.ts +117 -51
  20. package/dist/declarations/src/wallet/mainModuleUpgradable.d.ts +21 -21
  21. package/dist/declarations/src/wallet/sequenceUtils.d.ts +393 -80
  22. package/package.json +1 -1
  23. package/src/index.ts +22 -0
  24. package/src/sale/erc1155Sale.ts +352 -0
  25. package/src/sale/erc721Sale.ts +352 -0
  26. package/src/saleItems/erc1155SaleItems.ts +377 -0
  27. package/src/saleItems/erc721SaleItems.ts +440 -0
  28. package/src/tokens/erc1155.ts +422 -3
  29. package/src/tokens/erc20.ts +316 -3
  30. package/src/tokens/erc6909.ts +404 -0
  31. package/src/tokens/erc721.ts +441 -3
  32. package/src/wallet/erc1271.ts +1 -1
  33. package/src/wallet/erc5719.ts +1 -1
  34. package/src/wallet/erc6492.ts +1 -1
  35. package/src/wallet/factory.ts +1 -1
  36. package/src/wallet/index.ts +3 -0
  37. package/src/wallet/libs/requireFreshSigners.ts +1 -1
  38. package/src/wallet/mainModule.ts +1 -1
  39. package/src/wallet/mainModuleUpgradable.ts +1 -1
  40. package/src/wallet/sequenceUtils.ts +1 -1
@@ -1,25 +1,135 @@
1
- export declare const abi: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- name: string;
8
- type: string;
9
- outputs?: undefined;
10
- stateMutability?: undefined;
11
- } | {
12
- inputs: {
13
- internalType: string;
14
- name: string;
15
- type: string;
16
- }[];
17
- name: string;
18
- outputs: {
19
- internalType: string;
20
- name: string;
21
- type: string;
22
- }[];
23
- stateMutability: string;
24
- type: string;
25
- })[];
1
+ export declare const abi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "bytes";
4
+ readonly name: "error";
5
+ readonly type: "bytes";
6
+ }];
7
+ readonly name: "ERC1271Revert";
8
+ readonly type: "error";
9
+ }, {
10
+ readonly inputs: readonly [{
11
+ readonly internalType: "bytes";
12
+ readonly name: "error";
13
+ readonly type: "bytes";
14
+ }];
15
+ readonly name: "ERC6492DeployFailed";
16
+ readonly type: "error";
17
+ }, {
18
+ readonly inputs: readonly [{
19
+ readonly internalType: "address";
20
+ readonly name: "_signer";
21
+ readonly type: "address";
22
+ }, {
23
+ readonly internalType: "bytes32";
24
+ readonly name: "_hash";
25
+ readonly type: "bytes32";
26
+ }, {
27
+ readonly internalType: "bytes";
28
+ readonly name: "_signature";
29
+ readonly type: "bytes";
30
+ }];
31
+ readonly name: "isValidSig";
32
+ readonly outputs: readonly [{
33
+ readonly internalType: "bool";
34
+ readonly name: "";
35
+ readonly type: "bool";
36
+ }];
37
+ readonly stateMutability: "nonpayable";
38
+ readonly type: "function";
39
+ }, {
40
+ readonly inputs: readonly [{
41
+ readonly internalType: "address";
42
+ readonly name: "_signer";
43
+ readonly type: "address";
44
+ }, {
45
+ readonly internalType: "bytes32";
46
+ readonly name: "_hash";
47
+ readonly type: "bytes32";
48
+ }, {
49
+ readonly internalType: "bytes";
50
+ readonly name: "_signature";
51
+ readonly type: "bytes";
52
+ }, {
53
+ readonly internalType: "bool";
54
+ readonly name: "allowSideEffects";
55
+ readonly type: "bool";
56
+ }, {
57
+ readonly internalType: "bool";
58
+ readonly name: "deployAlreadyDeployed";
59
+ readonly type: "bool";
60
+ }];
61
+ readonly name: "isValidSigImpl";
62
+ readonly outputs: readonly [{
63
+ readonly internalType: "bool";
64
+ readonly name: "";
65
+ readonly type: "bool";
66
+ }];
67
+ readonly stateMutability: "nonpayable";
68
+ readonly type: "function";
69
+ }, {
70
+ readonly inputs: readonly [{
71
+ readonly internalType: "address";
72
+ readonly name: "_signer";
73
+ readonly type: "address";
74
+ }, {
75
+ readonly internalType: "bytes32";
76
+ readonly name: "_hash";
77
+ readonly type: "bytes32";
78
+ }, {
79
+ readonly internalType: "bytes";
80
+ readonly name: "_signature";
81
+ readonly type: "bytes";
82
+ }];
83
+ readonly name: "isValidSigNoThrow";
84
+ readonly outputs: readonly [{
85
+ readonly internalType: "bool";
86
+ readonly name: "";
87
+ readonly type: "bool";
88
+ }];
89
+ readonly stateMutability: "nonpayable";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly inputs: readonly [{
93
+ readonly internalType: "address";
94
+ readonly name: "_signer";
95
+ readonly type: "address";
96
+ }, {
97
+ readonly internalType: "bytes32";
98
+ readonly name: "_hash";
99
+ readonly type: "bytes32";
100
+ }, {
101
+ readonly internalType: "bytes";
102
+ readonly name: "_signature";
103
+ readonly type: "bytes";
104
+ }];
105
+ readonly name: "isValidSigWithSideEffects";
106
+ readonly outputs: readonly [{
107
+ readonly internalType: "bool";
108
+ readonly name: "";
109
+ readonly type: "bool";
110
+ }];
111
+ readonly stateMutability: "nonpayable";
112
+ readonly type: "function";
113
+ }, {
114
+ readonly inputs: readonly [{
115
+ readonly internalType: "address";
116
+ readonly name: "_signer";
117
+ readonly type: "address";
118
+ }, {
119
+ readonly internalType: "bytes32";
120
+ readonly name: "_hash";
121
+ readonly type: "bytes32";
122
+ }, {
123
+ readonly internalType: "bytes";
124
+ readonly name: "_signature";
125
+ readonly type: "bytes";
126
+ }];
127
+ readonly name: "isValidSigWithSideEffectsNoThrow";
128
+ readonly outputs: readonly [{
129
+ readonly internalType: "bool";
130
+ readonly name: "";
131
+ readonly type: "bool";
132
+ }];
133
+ readonly stateMutability: "nonpayable";
134
+ readonly type: "function";
135
+ }];
@@ -1,11 +1,13 @@
1
- export declare const abi: {
2
- type: string;
3
- name: string;
4
- constant: boolean;
5
- inputs: {
6
- type: string;
7
- }[];
8
- outputs: never[];
9
- payable: boolean;
10
- stateMutability: string;
11
- }[];
1
+ export declare const abi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "deploy";
4
+ readonly constant: false;
5
+ readonly inputs: readonly [{
6
+ readonly type: "address";
7
+ }, {
8
+ readonly type: "bytes32";
9
+ }];
10
+ readonly outputs: readonly [];
11
+ readonly payable: true;
12
+ readonly stateMutability: "payable";
13
+ }];
@@ -8,6 +8,9 @@ import * as moduleHooks from "./moduleHooks.js";
8
8
  import * as sequenceUtils from "./sequenceUtils.js";
9
9
  import * as requireFreshSigner from "./libs/requireFreshSigners.js";
10
10
  import * as walletProxyHook from "./walletProxyHook.js";
11
+ /**
12
+ * @deprecated import directly from @0xsequence/abi/* instead, omitting "walletContracts"
13
+ */
11
14
  export declare const walletContracts: {
12
15
  erc6492: typeof erc6492;
13
16
  erc5719: typeof erc5719;
@@ -1,11 +1,11 @@
1
- export declare const abi: {
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- name: string;
8
- outputs: never[];
9
- stateMutability: string;
10
- type: string;
11
- }[];
1
+ export declare const abi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "";
5
+ readonly type: "address";
6
+ }];
7
+ readonly name: "requireFreshSigner";
8
+ readonly outputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ readonly type: "function";
11
+ }];
@@ -1,51 +1,117 @@
1
- export declare const abi: ({
2
- type: string;
3
- name: string;
4
- constant: boolean;
5
- inputs: {
6
- type: string;
7
- }[];
8
- outputs: {
9
- type: string;
10
- }[];
11
- payable: boolean;
12
- stateMutability: string;
13
- } | {
14
- type: string;
15
- name: string;
16
- constant: boolean;
17
- inputs: ({
18
- components: {
19
- type: string;
20
- name: string;
21
- }[];
22
- type: string;
23
- } | {
24
- type: string;
25
- components?: undefined;
26
- })[];
27
- outputs: never[];
28
- payable: boolean;
29
- stateMutability: string;
30
- } | {
31
- type: string;
32
- name: string;
33
- inputs: {
34
- type: string;
35
- }[];
36
- payable: boolean;
37
- stateMutability: string;
38
- constant?: undefined;
39
- outputs?: undefined;
40
- } | {
41
- type: string;
42
- name: string;
43
- constant: boolean;
44
- inputs: {
45
- type: string;
46
- name: string;
47
- }[];
48
- outputs: never[];
49
- payable: boolean;
50
- stateMutability: string;
51
- })[];
1
+ export declare const abi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "nonce";
4
+ readonly constant: true;
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly type: "uint256";
8
+ }];
9
+ readonly payable: false;
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "readNonce";
14
+ readonly constant: true;
15
+ readonly inputs: readonly [{
16
+ readonly type: "uint256";
17
+ }];
18
+ readonly outputs: readonly [{
19
+ readonly type: "uint256";
20
+ }];
21
+ readonly payable: false;
22
+ readonly stateMutability: "view";
23
+ }, {
24
+ readonly type: "function";
25
+ readonly name: "updateImplementation";
26
+ readonly constant: false;
27
+ readonly inputs: readonly [{
28
+ readonly type: "address";
29
+ }];
30
+ readonly outputs: readonly [];
31
+ readonly payable: false;
32
+ readonly stateMutability: "nonpayable";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "selfExecute";
36
+ readonly constant: false;
37
+ readonly inputs: readonly [{
38
+ readonly components: readonly [{
39
+ readonly type: "bool";
40
+ readonly name: "delegateCall";
41
+ }, {
42
+ readonly type: "bool";
43
+ readonly name: "revertOnError";
44
+ }, {
45
+ readonly type: "uint256";
46
+ readonly name: "gasLimit";
47
+ }, {
48
+ readonly type: "address";
49
+ readonly name: "target";
50
+ }, {
51
+ readonly type: "uint256";
52
+ readonly name: "value";
53
+ }, {
54
+ readonly type: "bytes";
55
+ readonly name: "data";
56
+ }];
57
+ readonly type: "tuple[]";
58
+ }];
59
+ readonly outputs: readonly [];
60
+ readonly payable: false;
61
+ readonly stateMutability: "nonpayable";
62
+ }, {
63
+ readonly type: "function";
64
+ readonly name: "execute";
65
+ readonly constant: false;
66
+ readonly inputs: readonly [{
67
+ readonly components: readonly [{
68
+ readonly type: "bool";
69
+ readonly name: "delegateCall";
70
+ }, {
71
+ readonly type: "bool";
72
+ readonly name: "revertOnError";
73
+ }, {
74
+ readonly type: "uint256";
75
+ readonly name: "gasLimit";
76
+ }, {
77
+ readonly type: "address";
78
+ readonly name: "target";
79
+ }, {
80
+ readonly type: "uint256";
81
+ readonly name: "value";
82
+ }, {
83
+ readonly type: "bytes";
84
+ readonly name: "data";
85
+ }];
86
+ readonly type: "tuple[]";
87
+ }, {
88
+ readonly type: "uint256";
89
+ }, {
90
+ readonly type: "bytes";
91
+ }];
92
+ readonly outputs: readonly [];
93
+ readonly payable: false;
94
+ readonly stateMutability: "nonpayable";
95
+ }, {
96
+ readonly type: "function";
97
+ readonly name: "createContract";
98
+ readonly inputs: readonly [{
99
+ readonly type: "bytes";
100
+ }];
101
+ readonly payable: true;
102
+ readonly stateMutability: "payable";
103
+ }, {
104
+ readonly type: "function";
105
+ readonly name: "setExtraImageHash";
106
+ readonly constant: false;
107
+ readonly inputs: readonly [{
108
+ readonly type: "bytes32";
109
+ readonly name: "imageHash";
110
+ }, {
111
+ readonly type: "uint256";
112
+ readonly name: "expiration";
113
+ }];
114
+ readonly outputs: readonly [];
115
+ readonly payable: false;
116
+ readonly stateMutability: "nonpayable";
117
+ }];
@@ -1,21 +1,21 @@
1
- export declare const abi: ({
2
- type: string;
3
- name: string;
4
- constant: boolean;
5
- inputs: {
6
- type: string;
7
- }[];
8
- outputs: never[];
9
- payable: boolean;
10
- stateMutability: string;
11
- } | {
12
- type: string;
13
- name: string;
14
- constant: boolean;
15
- inputs: never[];
16
- outputs: {
17
- type: string;
18
- }[];
19
- payable: boolean;
20
- stateMutability: string;
21
- })[];
1
+ export declare const abi: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "updateImageHash";
4
+ readonly constant: true;
5
+ readonly inputs: readonly [{
6
+ readonly type: "bytes32";
7
+ }];
8
+ readonly outputs: readonly [];
9
+ readonly payable: false;
10
+ readonly stateMutability: "view";
11
+ }, {
12
+ readonly type: "function";
13
+ readonly name: "imageHash";
14
+ readonly constant: true;
15
+ readonly inputs: readonly [];
16
+ readonly outputs: readonly [{
17
+ readonly type: "bytes32";
18
+ }];
19
+ readonly payable: false;
20
+ readonly stateMutability: "view";
21
+ }];