timelock-sdk 0.0.247 → 0.0.249
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/abis.cjs +2 -3
- package/dist/abis.d.cts +9 -186
- package/dist/abis.d.ts +9 -186
- package/dist/abis.js +3 -3
- package/dist/client.cjs +9 -10
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +967 -963
- package/dist/client.d.ts +854 -850
- package/dist/client.js +9 -10
- package/dist/client.js.map +1 -1
- package/dist/{factory-CUMBEyKw.cjs → factory-CzYOPurN.cjs} +9 -4
- package/dist/factory-CzYOPurN.cjs.map +1 -0
- package/dist/{factory-DB64NQVz.js → factory-I_Evaj33.js} +9 -4
- package/dist/factory-I_Evaj33.js.map +1 -0
- package/dist/{index-D4EmMTld.d.cts → index-COoTZXEt.d.ts} +1926 -3794
- package/dist/{index-Dn37-mKt.d.ts → index-dMnVRK5K.d.cts} +1930 -3798
- package/dist/{numberUtils-CBParClR.cjs → numberUtils-BWJp8rjj.cjs} +3 -3
- package/dist/numberUtils-BWJp8rjj.cjs.map +1 -0
- package/dist/{numberUtils-B_tJmFF0.js → numberUtils-DyvyDfNK.js} +4 -4
- package/dist/numberUtils-DyvyDfNK.js.map +1 -0
- package/dist/{optionsMarket-fyNO91om.d.cts → optionsMarket-CWqoV_oC.d.cts} +65 -51
- package/dist/{optionsMarket-DrJWoxeN.d.ts → optionsMarket-nv8-ZmyL.d.ts} +65 -51
- package/dist/package.cjs +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/{stateView-CkfUE7Sg.cjs → stateView-BXg8tiiy.cjs} +81 -270
- package/dist/stateView-BXg8tiiy.cjs.map +1 -0
- package/dist/{stateView-DMydGVhr.js → stateView-BwLZDqqG.js} +82 -265
- package/dist/stateView-BwLZDqqG.js.map +1 -0
- package/package.json +1 -1
- package/dist/factory-CUMBEyKw.cjs.map +0 -1
- package/dist/factory-DB64NQVz.js.map +0 -1
- package/dist/numberUtils-B_tJmFF0.js.map +0 -1
- package/dist/numberUtils-CBParClR.cjs.map +0 -1
- package/dist/stateView-CkfUE7Sg.cjs.map +0 -1
- package/dist/stateView-DMydGVhr.js.map +0 -1
package/dist/abis.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_stateView = require('./stateView-
|
|
2
|
-
const require_factory = require('./factory-
|
|
1
|
+
const require_stateView = require('./stateView-BXg8tiiy.cjs');
|
|
2
|
+
const require_factory = require('./factory-CzYOPurN.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/abis/poolManager.ts
|
|
5
5
|
const poolManagerAbi = [
|
|
@@ -1189,7 +1189,6 @@ const poolManagerAbi = [
|
|
|
1189
1189
|
];
|
|
1190
1190
|
|
|
1191
1191
|
//#endregion
|
|
1192
|
-
exports.erc20Abi = require_stateView.erc20Abi;
|
|
1193
1192
|
exports.factoryAbi = require_factory.factoryAbi;
|
|
1194
1193
|
exports.guardianAbi = require_factory.guardianAbi;
|
|
1195
1194
|
exports.lensAbi = require_stateView.lensAbi;
|
package/dist/abis.d.cts
CHANGED
|
@@ -1,186 +1,5 @@
|
|
|
1
|
-
import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-
|
|
1
|
+
import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-CWqoV_oC.cjs";
|
|
2
2
|
|
|
3
|
-
//#region src/abis/erc20.d.ts
|
|
4
|
-
declare const erc20Abi: readonly [{
|
|
5
|
-
readonly type: "constructor";
|
|
6
|
-
readonly inputs: readonly [{
|
|
7
|
-
readonly name: "name_";
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
readonly internalType: "string";
|
|
10
|
-
}, {
|
|
11
|
-
readonly name: "symbol_";
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
readonly internalType: "string";
|
|
14
|
-
}];
|
|
15
|
-
readonly stateMutability: "nonpayable";
|
|
16
|
-
}, {
|
|
17
|
-
readonly type: "function";
|
|
18
|
-
readonly name: "allowance";
|
|
19
|
-
readonly inputs: readonly [{
|
|
20
|
-
readonly name: "owner";
|
|
21
|
-
readonly type: "address";
|
|
22
|
-
readonly internalType: "address";
|
|
23
|
-
}, {
|
|
24
|
-
readonly name: "spender";
|
|
25
|
-
readonly type: "address";
|
|
26
|
-
readonly internalType: "address";
|
|
27
|
-
}];
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly name: "";
|
|
30
|
-
readonly type: "uint256";
|
|
31
|
-
readonly internalType: "uint256";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
}, {
|
|
35
|
-
readonly type: "function";
|
|
36
|
-
readonly name: "approve";
|
|
37
|
-
readonly inputs: readonly [{
|
|
38
|
-
readonly name: "spender";
|
|
39
|
-
readonly type: "address";
|
|
40
|
-
readonly internalType: "address";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "amount";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
|
-
}];
|
|
46
|
-
readonly outputs: readonly [{
|
|
47
|
-
readonly name: "";
|
|
48
|
-
readonly type: "bool";
|
|
49
|
-
readonly internalType: "bool";
|
|
50
|
-
}];
|
|
51
|
-
readonly stateMutability: "nonpayable";
|
|
52
|
-
}, {
|
|
53
|
-
readonly type: "function";
|
|
54
|
-
readonly name: "balanceOf";
|
|
55
|
-
readonly inputs: readonly [{
|
|
56
|
-
readonly name: "account";
|
|
57
|
-
readonly type: "address";
|
|
58
|
-
readonly internalType: "address";
|
|
59
|
-
}];
|
|
60
|
-
readonly outputs: readonly [{
|
|
61
|
-
readonly name: "";
|
|
62
|
-
readonly type: "uint256";
|
|
63
|
-
readonly internalType: "uint256";
|
|
64
|
-
}];
|
|
65
|
-
readonly stateMutability: "view";
|
|
66
|
-
}, {
|
|
67
|
-
readonly type: "function";
|
|
68
|
-
readonly name: "decimals";
|
|
69
|
-
readonly inputs: readonly [];
|
|
70
|
-
readonly outputs: readonly [{
|
|
71
|
-
readonly name: "";
|
|
72
|
-
readonly type: "uint8";
|
|
73
|
-
readonly internalType: "uint8";
|
|
74
|
-
}];
|
|
75
|
-
readonly stateMutability: "view";
|
|
76
|
-
}, {
|
|
77
|
-
readonly type: "function";
|
|
78
|
-
readonly name: "decreaseAllowance";
|
|
79
|
-
readonly inputs: readonly [{
|
|
80
|
-
readonly name: "spender";
|
|
81
|
-
readonly type: "address";
|
|
82
|
-
readonly internalType: "address";
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "subtractedValue";
|
|
85
|
-
readonly type: "uint256";
|
|
86
|
-
readonly internalType: "uint256";
|
|
87
|
-
}];
|
|
88
|
-
readonly outputs: readonly [{
|
|
89
|
-
readonly name: "";
|
|
90
|
-
readonly type: "bool";
|
|
91
|
-
readonly internalType: "bool";
|
|
92
|
-
}];
|
|
93
|
-
readonly stateMutability: "nonpayable";
|
|
94
|
-
}, {
|
|
95
|
-
readonly type: "function";
|
|
96
|
-
readonly name: "increaseAllowance";
|
|
97
|
-
readonly inputs: readonly [{
|
|
98
|
-
readonly name: "spender";
|
|
99
|
-
readonly type: "address";
|
|
100
|
-
readonly internalType: "address";
|
|
101
|
-
}, {
|
|
102
|
-
readonly name: "addedValue";
|
|
103
|
-
readonly type: "uint256";
|
|
104
|
-
readonly internalType: "uint256";
|
|
105
|
-
}];
|
|
106
|
-
readonly outputs: readonly [{
|
|
107
|
-
readonly name: "";
|
|
108
|
-
readonly type: "bool";
|
|
109
|
-
readonly internalType: "bool";
|
|
110
|
-
}];
|
|
111
|
-
readonly stateMutability: "nonpayable";
|
|
112
|
-
}, {
|
|
113
|
-
readonly type: "function";
|
|
114
|
-
readonly name: "name";
|
|
115
|
-
readonly inputs: readonly [];
|
|
116
|
-
readonly outputs: readonly [{
|
|
117
|
-
readonly name: "";
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
readonly internalType: "string";
|
|
120
|
-
}];
|
|
121
|
-
readonly stateMutability: "view";
|
|
122
|
-
}, {
|
|
123
|
-
readonly type: "function";
|
|
124
|
-
readonly name: "symbol";
|
|
125
|
-
readonly inputs: readonly [];
|
|
126
|
-
readonly outputs: readonly [{
|
|
127
|
-
readonly name: "";
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
readonly internalType: "string";
|
|
130
|
-
}];
|
|
131
|
-
readonly stateMutability: "view";
|
|
132
|
-
}, {
|
|
133
|
-
readonly type: "function";
|
|
134
|
-
readonly name: "totalSupply";
|
|
135
|
-
readonly inputs: readonly [];
|
|
136
|
-
readonly outputs: readonly [{
|
|
137
|
-
readonly name: "";
|
|
138
|
-
readonly type: "uint256";
|
|
139
|
-
readonly internalType: "uint256";
|
|
140
|
-
}];
|
|
141
|
-
readonly stateMutability: "view";
|
|
142
|
-
}, {
|
|
143
|
-
readonly type: "function";
|
|
144
|
-
readonly name: "transfer";
|
|
145
|
-
readonly inputs: readonly [{
|
|
146
|
-
readonly name: "to";
|
|
147
|
-
readonly type: "address";
|
|
148
|
-
readonly internalType: "address";
|
|
149
|
-
}, {
|
|
150
|
-
readonly name: "amount";
|
|
151
|
-
readonly type: "uint256";
|
|
152
|
-
readonly internalType: "uint256";
|
|
153
|
-
}];
|
|
154
|
-
readonly outputs: readonly [{
|
|
155
|
-
readonly name: "";
|
|
156
|
-
readonly type: "bool";
|
|
157
|
-
readonly internalType: "bool";
|
|
158
|
-
}];
|
|
159
|
-
readonly stateMutability: "nonpayable";
|
|
160
|
-
}, {
|
|
161
|
-
readonly type: "function";
|
|
162
|
-
readonly name: "transferFrom";
|
|
163
|
-
readonly inputs: readonly [{
|
|
164
|
-
readonly name: "from";
|
|
165
|
-
readonly type: "address";
|
|
166
|
-
readonly internalType: "address";
|
|
167
|
-
}, {
|
|
168
|
-
readonly name: "to";
|
|
169
|
-
readonly type: "address";
|
|
170
|
-
readonly internalType: "address";
|
|
171
|
-
}, {
|
|
172
|
-
readonly name: "amount";
|
|
173
|
-
readonly type: "uint256";
|
|
174
|
-
readonly internalType: "uint256";
|
|
175
|
-
}];
|
|
176
|
-
readonly outputs: readonly [{
|
|
177
|
-
readonly name: "";
|
|
178
|
-
readonly type: "bool";
|
|
179
|
-
readonly internalType: "bool";
|
|
180
|
-
}];
|
|
181
|
-
readonly stateMutability: "nonpayable";
|
|
182
|
-
}];
|
|
183
|
-
//#endregion
|
|
184
3
|
//#region src/abis/factory.d.ts
|
|
185
4
|
declare const factoryAbi: readonly [{
|
|
186
5
|
readonly type: "function";
|
|
@@ -661,7 +480,7 @@ declare const guardianAbi: readonly [{
|
|
|
661
480
|
readonly type: "bool";
|
|
662
481
|
readonly internalType: "bool";
|
|
663
482
|
}, {
|
|
664
|
-
readonly name: "
|
|
483
|
+
readonly name: "tradingPaused";
|
|
665
484
|
readonly type: "bool";
|
|
666
485
|
readonly internalType: "bool";
|
|
667
486
|
}];
|
|
@@ -675,7 +494,7 @@ declare const guardianAbi: readonly [{
|
|
|
675
494
|
readonly type: "address";
|
|
676
495
|
readonly internalType: "address";
|
|
677
496
|
}, {
|
|
678
|
-
readonly name: "
|
|
497
|
+
readonly name: "tradingPaused";
|
|
679
498
|
readonly type: "bool";
|
|
680
499
|
readonly internalType: "bool";
|
|
681
500
|
}];
|
|
@@ -805,7 +624,7 @@ declare const guardianAbi: readonly [{
|
|
|
805
624
|
readonly indexed: false;
|
|
806
625
|
readonly internalType: "bool";
|
|
807
626
|
}, {
|
|
808
|
-
readonly name: "
|
|
627
|
+
readonly name: "tradingPaused";
|
|
809
628
|
readonly type: "bool";
|
|
810
629
|
readonly indexed: false;
|
|
811
630
|
readonly internalType: "bool";
|
|
@@ -937,6 +756,10 @@ declare const guardianAbi: readonly [{
|
|
|
937
756
|
readonly type: "bytes32";
|
|
938
757
|
readonly internalType: "bytes32";
|
|
939
758
|
}];
|
|
759
|
+
}, {
|
|
760
|
+
readonly type: "error";
|
|
761
|
+
readonly name: "ZeroAddress";
|
|
762
|
+
readonly inputs: readonly [];
|
|
940
763
|
}];
|
|
941
764
|
//#endregion
|
|
942
765
|
//#region src/abis/poolManager.d.ts
|
|
@@ -4247,5 +4070,5 @@ declare const quoterAbi: readonly [{
|
|
|
4247
4070
|
}];
|
|
4248
4071
|
}];
|
|
4249
4072
|
//#endregion
|
|
4250
|
-
export {
|
|
4073
|
+
export { factoryAbi, guardianAbi, lensAbi, optionsMarketAbi, poolManagerAbi, quoterAbi, singleOwnerVaultAbi, stateViewAbi };
|
|
4251
4074
|
//# sourceMappingURL=abis.d.cts.map
|
package/dist/abis.d.ts
CHANGED
|
@@ -1,186 +1,5 @@
|
|
|
1
|
-
import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-
|
|
1
|
+
import { n as lensAbi, t as optionsMarketAbi } from "./optionsMarket-nv8-ZmyL.js";
|
|
2
2
|
|
|
3
|
-
//#region src/abis/erc20.d.ts
|
|
4
|
-
declare const erc20Abi: readonly [{
|
|
5
|
-
readonly type: "constructor";
|
|
6
|
-
readonly inputs: readonly [{
|
|
7
|
-
readonly name: "name_";
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
readonly internalType: "string";
|
|
10
|
-
}, {
|
|
11
|
-
readonly name: "symbol_";
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
readonly internalType: "string";
|
|
14
|
-
}];
|
|
15
|
-
readonly stateMutability: "nonpayable";
|
|
16
|
-
}, {
|
|
17
|
-
readonly type: "function";
|
|
18
|
-
readonly name: "allowance";
|
|
19
|
-
readonly inputs: readonly [{
|
|
20
|
-
readonly name: "owner";
|
|
21
|
-
readonly type: "address";
|
|
22
|
-
readonly internalType: "address";
|
|
23
|
-
}, {
|
|
24
|
-
readonly name: "spender";
|
|
25
|
-
readonly type: "address";
|
|
26
|
-
readonly internalType: "address";
|
|
27
|
-
}];
|
|
28
|
-
readonly outputs: readonly [{
|
|
29
|
-
readonly name: "";
|
|
30
|
-
readonly type: "uint256";
|
|
31
|
-
readonly internalType: "uint256";
|
|
32
|
-
}];
|
|
33
|
-
readonly stateMutability: "view";
|
|
34
|
-
}, {
|
|
35
|
-
readonly type: "function";
|
|
36
|
-
readonly name: "approve";
|
|
37
|
-
readonly inputs: readonly [{
|
|
38
|
-
readonly name: "spender";
|
|
39
|
-
readonly type: "address";
|
|
40
|
-
readonly internalType: "address";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "amount";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
|
-
}];
|
|
46
|
-
readonly outputs: readonly [{
|
|
47
|
-
readonly name: "";
|
|
48
|
-
readonly type: "bool";
|
|
49
|
-
readonly internalType: "bool";
|
|
50
|
-
}];
|
|
51
|
-
readonly stateMutability: "nonpayable";
|
|
52
|
-
}, {
|
|
53
|
-
readonly type: "function";
|
|
54
|
-
readonly name: "balanceOf";
|
|
55
|
-
readonly inputs: readonly [{
|
|
56
|
-
readonly name: "account";
|
|
57
|
-
readonly type: "address";
|
|
58
|
-
readonly internalType: "address";
|
|
59
|
-
}];
|
|
60
|
-
readonly outputs: readonly [{
|
|
61
|
-
readonly name: "";
|
|
62
|
-
readonly type: "uint256";
|
|
63
|
-
readonly internalType: "uint256";
|
|
64
|
-
}];
|
|
65
|
-
readonly stateMutability: "view";
|
|
66
|
-
}, {
|
|
67
|
-
readonly type: "function";
|
|
68
|
-
readonly name: "decimals";
|
|
69
|
-
readonly inputs: readonly [];
|
|
70
|
-
readonly outputs: readonly [{
|
|
71
|
-
readonly name: "";
|
|
72
|
-
readonly type: "uint8";
|
|
73
|
-
readonly internalType: "uint8";
|
|
74
|
-
}];
|
|
75
|
-
readonly stateMutability: "view";
|
|
76
|
-
}, {
|
|
77
|
-
readonly type: "function";
|
|
78
|
-
readonly name: "decreaseAllowance";
|
|
79
|
-
readonly inputs: readonly [{
|
|
80
|
-
readonly name: "spender";
|
|
81
|
-
readonly type: "address";
|
|
82
|
-
readonly internalType: "address";
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "subtractedValue";
|
|
85
|
-
readonly type: "uint256";
|
|
86
|
-
readonly internalType: "uint256";
|
|
87
|
-
}];
|
|
88
|
-
readonly outputs: readonly [{
|
|
89
|
-
readonly name: "";
|
|
90
|
-
readonly type: "bool";
|
|
91
|
-
readonly internalType: "bool";
|
|
92
|
-
}];
|
|
93
|
-
readonly stateMutability: "nonpayable";
|
|
94
|
-
}, {
|
|
95
|
-
readonly type: "function";
|
|
96
|
-
readonly name: "increaseAllowance";
|
|
97
|
-
readonly inputs: readonly [{
|
|
98
|
-
readonly name: "spender";
|
|
99
|
-
readonly type: "address";
|
|
100
|
-
readonly internalType: "address";
|
|
101
|
-
}, {
|
|
102
|
-
readonly name: "addedValue";
|
|
103
|
-
readonly type: "uint256";
|
|
104
|
-
readonly internalType: "uint256";
|
|
105
|
-
}];
|
|
106
|
-
readonly outputs: readonly [{
|
|
107
|
-
readonly name: "";
|
|
108
|
-
readonly type: "bool";
|
|
109
|
-
readonly internalType: "bool";
|
|
110
|
-
}];
|
|
111
|
-
readonly stateMutability: "nonpayable";
|
|
112
|
-
}, {
|
|
113
|
-
readonly type: "function";
|
|
114
|
-
readonly name: "name";
|
|
115
|
-
readonly inputs: readonly [];
|
|
116
|
-
readonly outputs: readonly [{
|
|
117
|
-
readonly name: "";
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
readonly internalType: "string";
|
|
120
|
-
}];
|
|
121
|
-
readonly stateMutability: "view";
|
|
122
|
-
}, {
|
|
123
|
-
readonly type: "function";
|
|
124
|
-
readonly name: "symbol";
|
|
125
|
-
readonly inputs: readonly [];
|
|
126
|
-
readonly outputs: readonly [{
|
|
127
|
-
readonly name: "";
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
readonly internalType: "string";
|
|
130
|
-
}];
|
|
131
|
-
readonly stateMutability: "view";
|
|
132
|
-
}, {
|
|
133
|
-
readonly type: "function";
|
|
134
|
-
readonly name: "totalSupply";
|
|
135
|
-
readonly inputs: readonly [];
|
|
136
|
-
readonly outputs: readonly [{
|
|
137
|
-
readonly name: "";
|
|
138
|
-
readonly type: "uint256";
|
|
139
|
-
readonly internalType: "uint256";
|
|
140
|
-
}];
|
|
141
|
-
readonly stateMutability: "view";
|
|
142
|
-
}, {
|
|
143
|
-
readonly type: "function";
|
|
144
|
-
readonly name: "transfer";
|
|
145
|
-
readonly inputs: readonly [{
|
|
146
|
-
readonly name: "to";
|
|
147
|
-
readonly type: "address";
|
|
148
|
-
readonly internalType: "address";
|
|
149
|
-
}, {
|
|
150
|
-
readonly name: "amount";
|
|
151
|
-
readonly type: "uint256";
|
|
152
|
-
readonly internalType: "uint256";
|
|
153
|
-
}];
|
|
154
|
-
readonly outputs: readonly [{
|
|
155
|
-
readonly name: "";
|
|
156
|
-
readonly type: "bool";
|
|
157
|
-
readonly internalType: "bool";
|
|
158
|
-
}];
|
|
159
|
-
readonly stateMutability: "nonpayable";
|
|
160
|
-
}, {
|
|
161
|
-
readonly type: "function";
|
|
162
|
-
readonly name: "transferFrom";
|
|
163
|
-
readonly inputs: readonly [{
|
|
164
|
-
readonly name: "from";
|
|
165
|
-
readonly type: "address";
|
|
166
|
-
readonly internalType: "address";
|
|
167
|
-
}, {
|
|
168
|
-
readonly name: "to";
|
|
169
|
-
readonly type: "address";
|
|
170
|
-
readonly internalType: "address";
|
|
171
|
-
}, {
|
|
172
|
-
readonly name: "amount";
|
|
173
|
-
readonly type: "uint256";
|
|
174
|
-
readonly internalType: "uint256";
|
|
175
|
-
}];
|
|
176
|
-
readonly outputs: readonly [{
|
|
177
|
-
readonly name: "";
|
|
178
|
-
readonly type: "bool";
|
|
179
|
-
readonly internalType: "bool";
|
|
180
|
-
}];
|
|
181
|
-
readonly stateMutability: "nonpayable";
|
|
182
|
-
}];
|
|
183
|
-
//#endregion
|
|
184
3
|
//#region src/abis/factory.d.ts
|
|
185
4
|
declare const factoryAbi: readonly [{
|
|
186
5
|
readonly type: "function";
|
|
@@ -661,7 +480,7 @@ declare const guardianAbi: readonly [{
|
|
|
661
480
|
readonly type: "bool";
|
|
662
481
|
readonly internalType: "bool";
|
|
663
482
|
}, {
|
|
664
|
-
readonly name: "
|
|
483
|
+
readonly name: "tradingPaused";
|
|
665
484
|
readonly type: "bool";
|
|
666
485
|
readonly internalType: "bool";
|
|
667
486
|
}];
|
|
@@ -675,7 +494,7 @@ declare const guardianAbi: readonly [{
|
|
|
675
494
|
readonly type: "address";
|
|
676
495
|
readonly internalType: "address";
|
|
677
496
|
}, {
|
|
678
|
-
readonly name: "
|
|
497
|
+
readonly name: "tradingPaused";
|
|
679
498
|
readonly type: "bool";
|
|
680
499
|
readonly internalType: "bool";
|
|
681
500
|
}];
|
|
@@ -805,7 +624,7 @@ declare const guardianAbi: readonly [{
|
|
|
805
624
|
readonly indexed: false;
|
|
806
625
|
readonly internalType: "bool";
|
|
807
626
|
}, {
|
|
808
|
-
readonly name: "
|
|
627
|
+
readonly name: "tradingPaused";
|
|
809
628
|
readonly type: "bool";
|
|
810
629
|
readonly indexed: false;
|
|
811
630
|
readonly internalType: "bool";
|
|
@@ -937,6 +756,10 @@ declare const guardianAbi: readonly [{
|
|
|
937
756
|
readonly type: "bytes32";
|
|
938
757
|
readonly internalType: "bytes32";
|
|
939
758
|
}];
|
|
759
|
+
}, {
|
|
760
|
+
readonly type: "error";
|
|
761
|
+
readonly name: "ZeroAddress";
|
|
762
|
+
readonly inputs: readonly [];
|
|
940
763
|
}];
|
|
941
764
|
//#endregion
|
|
942
765
|
//#region src/abis/poolManager.d.ts
|
|
@@ -4247,5 +4070,5 @@ declare const quoterAbi: readonly [{
|
|
|
4247
4070
|
}];
|
|
4248
4071
|
}];
|
|
4249
4072
|
//#endregion
|
|
4250
|
-
export {
|
|
4073
|
+
export { factoryAbi, guardianAbi, lensAbi, optionsMarketAbi, poolManagerAbi, quoterAbi, singleOwnerVaultAbi, stateViewAbi };
|
|
4251
4074
|
//# sourceMappingURL=abis.d.ts.map
|
package/dist/abis.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as guardianAbi, r as singleOwnerVaultAbi, t as factoryAbi } from "./factory-
|
|
1
|
+
import { i as lensAbi, n as quoterAbi, r as optionsMarketAbi, t as stateViewAbi } from "./stateView-BwLZDqqG.js";
|
|
2
|
+
import { n as guardianAbi, r as singleOwnerVaultAbi, t as factoryAbi } from "./factory-I_Evaj33.js";
|
|
3
3
|
|
|
4
4
|
//#region src/abis/poolManager.ts
|
|
5
5
|
const poolManagerAbi = [
|
|
@@ -1189,5 +1189,5 @@ const poolManagerAbi = [
|
|
|
1189
1189
|
];
|
|
1190
1190
|
|
|
1191
1191
|
//#endregion
|
|
1192
|
-
export {
|
|
1192
|
+
export { factoryAbi, guardianAbi, lensAbi, optionsMarketAbi, poolManagerAbi, quoterAbi, singleOwnerVaultAbi, stateViewAbi };
|
|
1193
1193
|
//# sourceMappingURL=abis.js.map
|
package/dist/client.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
const require_numberUtils = require('./numberUtils-
|
|
4
|
-
const require_stateView = require('./stateView-
|
|
5
|
-
const require_factory = require('./factory-
|
|
3
|
+
const require_numberUtils = require('./numberUtils-BWJp8rjj.cjs');
|
|
4
|
+
const require_stateView = require('./stateView-BXg8tiiy.cjs');
|
|
5
|
+
const require_factory = require('./factory-CzYOPurN.cjs');
|
|
6
6
|
let viem = require("viem");
|
|
7
7
|
let react = require("react");
|
|
8
8
|
react = require_numberUtils.__toESM(react);
|
|
@@ -1308,8 +1308,8 @@ const swapperData = (0, viem.encodeAbiParameters)([
|
|
|
1308
1308
|
{ type: "uint160" },
|
|
1309
1309
|
{ type: "uint256" }
|
|
1310
1310
|
], [
|
|
1311
|
-
require_numberUtils.MIN_SQRT_RATIO,
|
|
1312
|
-
require_numberUtils.MAX_SQRT_RATIO,
|
|
1311
|
+
require_numberUtils.MIN_SQRT_RATIO + 1n,
|
|
1312
|
+
require_numberUtils.MAX_SQRT_RATIO - 1n,
|
|
1313
1313
|
BigInt(Math.floor(Date.now() / 1e3) + 600)
|
|
1314
1314
|
]);
|
|
1315
1315
|
const useOptionPnl = (option) => {
|
|
@@ -1731,15 +1731,14 @@ const useSetOperatorPerms = (marketAddr) => {
|
|
|
1731
1731
|
const hash = await writeContractAsync({
|
|
1732
1732
|
address: marketAddr,
|
|
1733
1733
|
abi: require_stateView.optionsMarketAbi,
|
|
1734
|
-
functionName: "
|
|
1735
|
-
args: [
|
|
1736
|
-
operator,
|
|
1734
|
+
functionName: "setOperatorsPerms",
|
|
1735
|
+
args: [[operator], [{
|
|
1737
1736
|
canExtend,
|
|
1738
1737
|
canExercise,
|
|
1739
1738
|
canTransfer,
|
|
1740
1739
|
canMint,
|
|
1741
1740
|
spendingApproval
|
|
1742
|
-
]
|
|
1741
|
+
}]]
|
|
1743
1742
|
});
|
|
1744
1743
|
await (0, viem_actions.waitForTransactionReceipt)(client, { hash });
|
|
1745
1744
|
queryClient.invalidateQueries({ queryKey: ["userOperators"] });
|
|
@@ -1871,7 +1870,7 @@ const useTokenBalance = (token, user) => {
|
|
|
1871
1870
|
const { decimals } = useTokenData(token);
|
|
1872
1871
|
const { data: raw, ...rest } = (0, wagmi.useReadContract)({
|
|
1873
1872
|
address: token,
|
|
1874
|
-
abi:
|
|
1873
|
+
abi: viem.erc20Abi,
|
|
1875
1874
|
functionName: "balanceOf",
|
|
1876
1875
|
args: user ? [user] : void 0,
|
|
1877
1876
|
query: { enabled: !!token && !!user }
|