@invisi-labs/protocol 1.1.5 → 1.1.6
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/{chunk-47SC3EAI.js → chunk-BYJ4LXCJ.js} +389 -9
- package/dist/chunk-BYJ4LXCJ.js.map +1 -0
- package/dist/contracts.cjs +389 -8
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +134 -3
- package/dist/contracts.d.ts +134 -3
- package/dist/contracts.js +3 -1
- package/dist/index.cjs +552 -187
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -11
- package/dist/index.d.ts +24 -11
- package/dist/index.js +296 -142
- package/dist/index.js.map +1 -1
- package/dist/{types-BCTQjKzw.d.cts → types-BmUlasOg.d.cts} +179 -7
- package/dist/{types-BCTQjKzw.d.ts → types-BmUlasOg.d.ts} +179 -7
- package/package.json +4 -4
- package/dist/chunk-47SC3EAI.js.map +0 -1
|
@@ -103,6 +103,24 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
103
103
|
readonly internalType: "contract IAddressRegistry";
|
|
104
104
|
}];
|
|
105
105
|
readonly stateMutability: "view";
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
readonly name: "broadcasterFeeBalance";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "token";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "recipient";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}];
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly name: "";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
readonly stateMutability: "view";
|
|
106
124
|
}, {
|
|
107
125
|
readonly type: "function";
|
|
108
126
|
readonly name: "cancelCredit";
|
|
@@ -147,6 +165,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
147
165
|
readonly name: "deadline";
|
|
148
166
|
readonly type: "uint256";
|
|
149
167
|
readonly internalType: "uint256";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "feeRecipient";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "feeAmount";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
readonly internalType: "uint256";
|
|
150
176
|
}];
|
|
151
177
|
}];
|
|
152
178
|
readonly outputs: readonly [];
|
|
@@ -213,6 +239,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
213
239
|
readonly name: "deadline";
|
|
214
240
|
readonly type: "uint256";
|
|
215
241
|
readonly internalType: "uint256";
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "feeRecipient";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "feeAmount";
|
|
248
|
+
readonly type: "uint256";
|
|
249
|
+
readonly internalType: "uint256";
|
|
216
250
|
}];
|
|
217
251
|
}, {
|
|
218
252
|
readonly name: "";
|
|
@@ -618,6 +652,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
618
652
|
readonly name: "deadline";
|
|
619
653
|
readonly type: "uint256";
|
|
620
654
|
readonly internalType: "uint256";
|
|
655
|
+
}, {
|
|
656
|
+
readonly name: "feeRecipient";
|
|
657
|
+
readonly type: "address";
|
|
658
|
+
readonly internalType: "address";
|
|
659
|
+
}, {
|
|
660
|
+
readonly name: "feeAmount";
|
|
661
|
+
readonly type: "uint256";
|
|
662
|
+
readonly internalType: "uint256";
|
|
621
663
|
}];
|
|
622
664
|
}, {
|
|
623
665
|
readonly name: "";
|
|
@@ -750,6 +792,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
750
792
|
readonly name: "deadline";
|
|
751
793
|
readonly type: "uint256";
|
|
752
794
|
readonly internalType: "uint256";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "feeRecipient";
|
|
797
|
+
readonly type: "address";
|
|
798
|
+
readonly internalType: "address";
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "feeAmount";
|
|
801
|
+
readonly type: "uint256";
|
|
802
|
+
readonly internalType: "uint256";
|
|
753
803
|
}];
|
|
754
804
|
}, {
|
|
755
805
|
readonly name: "creditSource";
|
|
@@ -843,9 +893,9 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
843
893
|
readonly type: "bytes";
|
|
844
894
|
readonly internalType: "bytes";
|
|
845
895
|
}, {
|
|
846
|
-
readonly name: "
|
|
847
|
-
readonly type: "tuple
|
|
848
|
-
readonly internalType: "struct IInvisiProtocol.TransactRequest
|
|
896
|
+
readonly name: "r";
|
|
897
|
+
readonly type: "tuple";
|
|
898
|
+
readonly internalType: "struct IInvisiProtocol.TransactRequest";
|
|
849
899
|
readonly components: readonly [{
|
|
850
900
|
readonly name: "params";
|
|
851
901
|
readonly type: "tuple";
|
|
@@ -887,6 +937,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
887
937
|
readonly name: "deadline";
|
|
888
938
|
readonly type: "uint256";
|
|
889
939
|
readonly internalType: "uint256";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "feeRecipient";
|
|
942
|
+
readonly type: "address";
|
|
943
|
+
readonly internalType: "address";
|
|
944
|
+
}, {
|
|
945
|
+
readonly name: "feeAmount";
|
|
946
|
+
readonly type: "uint256";
|
|
947
|
+
readonly internalType: "uint256";
|
|
890
948
|
}];
|
|
891
949
|
}, {
|
|
892
950
|
readonly name: "deliveries";
|
|
@@ -959,9 +1017,9 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
959
1017
|
readonly type: "bytes";
|
|
960
1018
|
readonly internalType: "bytes";
|
|
961
1019
|
}, {
|
|
962
|
-
readonly name: "
|
|
963
|
-
readonly type: "tuple";
|
|
964
|
-
readonly internalType: "struct IInvisiProtocol.TransactRequest";
|
|
1020
|
+
readonly name: "requests";
|
|
1021
|
+
readonly type: "tuple[]";
|
|
1022
|
+
readonly internalType: "struct IInvisiProtocol.TransactRequest[]";
|
|
965
1023
|
readonly components: readonly [{
|
|
966
1024
|
readonly name: "params";
|
|
967
1025
|
readonly type: "tuple";
|
|
@@ -1003,6 +1061,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1003
1061
|
readonly name: "deadline";
|
|
1004
1062
|
readonly type: "uint256";
|
|
1005
1063
|
readonly internalType: "uint256";
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly name: "feeRecipient";
|
|
1066
|
+
readonly type: "address";
|
|
1067
|
+
readonly internalType: "address";
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly name: "feeAmount";
|
|
1070
|
+
readonly type: "uint256";
|
|
1071
|
+
readonly internalType: "uint256";
|
|
1006
1072
|
}];
|
|
1007
1073
|
}, {
|
|
1008
1074
|
readonly name: "deliveries";
|
|
@@ -1099,6 +1165,24 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1099
1165
|
readonly internalType: "contract IVerifierRouter";
|
|
1100
1166
|
}];
|
|
1101
1167
|
readonly stateMutability: "view";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly type: "function";
|
|
1170
|
+
readonly name: "withdrawBroadcasterFees";
|
|
1171
|
+
readonly inputs: readonly [{
|
|
1172
|
+
readonly name: "token";
|
|
1173
|
+
readonly type: "address";
|
|
1174
|
+
readonly internalType: "address";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "recipient";
|
|
1177
|
+
readonly type: "address";
|
|
1178
|
+
readonly internalType: "address";
|
|
1179
|
+
}];
|
|
1180
|
+
readonly outputs: readonly [{
|
|
1181
|
+
readonly name: "";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
readonly internalType: "uint256";
|
|
1184
|
+
}];
|
|
1185
|
+
readonly stateMutability: "nonpayable";
|
|
1102
1186
|
}, {
|
|
1103
1187
|
readonly type: "event";
|
|
1104
1188
|
readonly name: "BatchOutputs";
|
|
@@ -1208,6 +1292,46 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1208
1292
|
readonly internalType: "bytes32";
|
|
1209
1293
|
}];
|
|
1210
1294
|
readonly anonymous: false;
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly type: "event";
|
|
1297
|
+
readonly name: "BroadcasterFee";
|
|
1298
|
+
readonly inputs: readonly [{
|
|
1299
|
+
readonly name: "token";
|
|
1300
|
+
readonly type: "address";
|
|
1301
|
+
readonly indexed: true;
|
|
1302
|
+
readonly internalType: "address";
|
|
1303
|
+
}, {
|
|
1304
|
+
readonly name: "recipient";
|
|
1305
|
+
readonly type: "address";
|
|
1306
|
+
readonly indexed: true;
|
|
1307
|
+
readonly internalType: "address";
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly name: "amount";
|
|
1310
|
+
readonly type: "uint256";
|
|
1311
|
+
readonly indexed: false;
|
|
1312
|
+
readonly internalType: "uint256";
|
|
1313
|
+
}];
|
|
1314
|
+
readonly anonymous: false;
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly type: "event";
|
|
1317
|
+
readonly name: "BroadcasterFeeWithdrawn";
|
|
1318
|
+
readonly inputs: readonly [{
|
|
1319
|
+
readonly name: "token";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
readonly indexed: true;
|
|
1322
|
+
readonly internalType: "address";
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly name: "recipient";
|
|
1325
|
+
readonly type: "address";
|
|
1326
|
+
readonly indexed: true;
|
|
1327
|
+
readonly internalType: "address";
|
|
1328
|
+
}, {
|
|
1329
|
+
readonly name: "amount";
|
|
1330
|
+
readonly type: "uint256";
|
|
1331
|
+
readonly indexed: false;
|
|
1332
|
+
readonly internalType: "uint256";
|
|
1333
|
+
}];
|
|
1334
|
+
readonly anonymous: false;
|
|
1211
1335
|
}, {
|
|
1212
1336
|
readonly type: "event";
|
|
1213
1337
|
readonly name: "CircuitPauseUpdated";
|
|
@@ -1489,6 +1613,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1489
1613
|
readonly name: "deadline";
|
|
1490
1614
|
readonly type: "uint256";
|
|
1491
1615
|
readonly internalType: "uint256";
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly name: "feeRecipient";
|
|
1618
|
+
readonly type: "address";
|
|
1619
|
+
readonly internalType: "address";
|
|
1620
|
+
}, {
|
|
1621
|
+
readonly name: "feeAmount";
|
|
1622
|
+
readonly type: "uint256";
|
|
1623
|
+
readonly internalType: "uint256";
|
|
1492
1624
|
}];
|
|
1493
1625
|
}, {
|
|
1494
1626
|
readonly name: "creditSource";
|
|
@@ -1849,6 +1981,22 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1849
1981
|
readonly internalType: "address";
|
|
1850
1982
|
}];
|
|
1851
1983
|
readonly anonymous: false;
|
|
1984
|
+
}, {
|
|
1985
|
+
readonly type: "error";
|
|
1986
|
+
readonly name: "AddressEmptyCode";
|
|
1987
|
+
readonly inputs: readonly [{
|
|
1988
|
+
readonly name: "target";
|
|
1989
|
+
readonly type: "address";
|
|
1990
|
+
readonly internalType: "address";
|
|
1991
|
+
}];
|
|
1992
|
+
}, {
|
|
1993
|
+
readonly type: "error";
|
|
1994
|
+
readonly name: "AddressInsufficientBalance";
|
|
1995
|
+
readonly inputs: readonly [{
|
|
1996
|
+
readonly name: "account";
|
|
1997
|
+
readonly type: "address";
|
|
1998
|
+
readonly internalType: "address";
|
|
1999
|
+
}];
|
|
1852
2000
|
}, {
|
|
1853
2001
|
readonly type: "error";
|
|
1854
2002
|
readonly name: "AddressScreeningFailed";
|
|
@@ -1893,6 +2041,10 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1893
2041
|
readonly type: "error";
|
|
1894
2042
|
readonly name: "ExpiryInPast";
|
|
1895
2043
|
readonly inputs: readonly [];
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly type: "error";
|
|
2046
|
+
readonly name: "FailedInnerCall";
|
|
2047
|
+
readonly inputs: readonly [];
|
|
1896
2048
|
}, {
|
|
1897
2049
|
readonly type: "error";
|
|
1898
2050
|
readonly name: "InexactTokenReceipt";
|
|
@@ -2029,6 +2181,10 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2029
2181
|
readonly type: "error";
|
|
2030
2182
|
readonly name: "LengthMismatch";
|
|
2031
2183
|
readonly inputs: readonly [];
|
|
2184
|
+
}, {
|
|
2185
|
+
readonly type: "error";
|
|
2186
|
+
readonly name: "NoBroadcasterFees";
|
|
2187
|
+
readonly inputs: readonly [];
|
|
2032
2188
|
}, {
|
|
2033
2189
|
readonly type: "error";
|
|
2034
2190
|
readonly name: "NotEmergencyAdmin";
|
|
@@ -2073,6 +2229,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2073
2229
|
readonly type: "error";
|
|
2074
2230
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
2075
2231
|
readonly inputs: readonly [];
|
|
2232
|
+
}, {
|
|
2233
|
+
readonly type: "error";
|
|
2234
|
+
readonly name: "SafeERC20FailedOperation";
|
|
2235
|
+
readonly inputs: readonly [{
|
|
2236
|
+
readonly name: "token";
|
|
2237
|
+
readonly type: "address";
|
|
2238
|
+
readonly internalType: "address";
|
|
2239
|
+
}];
|
|
2076
2240
|
}, {
|
|
2077
2241
|
readonly type: "error";
|
|
2078
2242
|
readonly name: "ShieldExpired";
|
|
@@ -3176,6 +3340,8 @@ interface ShieldParams {
|
|
|
3176
3340
|
token: Address;
|
|
3177
3341
|
outputCommitments: readonly Hex[];
|
|
3178
3342
|
deadline: bigint;
|
|
3343
|
+
feeRecipient?: Address;
|
|
3344
|
+
feeAmount?: bigint;
|
|
3179
3345
|
}
|
|
3180
3346
|
interface ShieldOutput {
|
|
3181
3347
|
identity: Hex;
|
|
@@ -3193,6 +3359,8 @@ interface CrossTreeTransactParams {
|
|
|
3193
3359
|
withdrawalAddress: Address;
|
|
3194
3360
|
withdrawalAmount: bigint;
|
|
3195
3361
|
deadline: bigint;
|
|
3362
|
+
feeRecipient?: Address;
|
|
3363
|
+
feeAmount?: bigint;
|
|
3196
3364
|
}
|
|
3197
3365
|
interface TransactRequest {
|
|
3198
3366
|
params: CrossTreeTransactParams;
|
|
@@ -3208,6 +3376,8 @@ interface CreateCreditParams {
|
|
|
3208
3376
|
owner: Address;
|
|
3209
3377
|
expiry: bigint;
|
|
3210
3378
|
deadline: bigint;
|
|
3379
|
+
feeRecipient?: Address;
|
|
3380
|
+
feeAmount?: bigint;
|
|
3211
3381
|
}
|
|
3212
3382
|
interface CreditDrawParams {
|
|
3213
3383
|
token: Address;
|
|
@@ -3227,6 +3397,8 @@ interface CancelCreditParams {
|
|
|
3227
3397
|
owner: Address;
|
|
3228
3398
|
amount: bigint;
|
|
3229
3399
|
deadline: bigint;
|
|
3400
|
+
feeRecipient?: Address;
|
|
3401
|
+
feeAmount?: bigint;
|
|
3230
3402
|
}
|
|
3231
3403
|
interface TopUpCreditParams {
|
|
3232
3404
|
creation: CreateCreditParams;
|
|
@@ -3239,7 +3411,7 @@ interface ReceivingKeys {
|
|
|
3239
3411
|
clueKey: Hex;
|
|
3240
3412
|
}
|
|
3241
3413
|
interface AddressRegistration {
|
|
3242
|
-
|
|
3414
|
+
ownerAddress: Hex;
|
|
3243
3415
|
keys: ReceivingKeys;
|
|
3244
3416
|
nonce: bigint;
|
|
3245
3417
|
deadline: bigint;
|
|
@@ -103,6 +103,24 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
103
103
|
readonly internalType: "contract IAddressRegistry";
|
|
104
104
|
}];
|
|
105
105
|
readonly stateMutability: "view";
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
readonly name: "broadcasterFeeBalance";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "token";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "recipient";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}];
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly name: "";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
readonly stateMutability: "view";
|
|
106
124
|
}, {
|
|
107
125
|
readonly type: "function";
|
|
108
126
|
readonly name: "cancelCredit";
|
|
@@ -147,6 +165,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
147
165
|
readonly name: "deadline";
|
|
148
166
|
readonly type: "uint256";
|
|
149
167
|
readonly internalType: "uint256";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "feeRecipient";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "feeAmount";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
readonly internalType: "uint256";
|
|
150
176
|
}];
|
|
151
177
|
}];
|
|
152
178
|
readonly outputs: readonly [];
|
|
@@ -213,6 +239,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
213
239
|
readonly name: "deadline";
|
|
214
240
|
readonly type: "uint256";
|
|
215
241
|
readonly internalType: "uint256";
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "feeRecipient";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "feeAmount";
|
|
248
|
+
readonly type: "uint256";
|
|
249
|
+
readonly internalType: "uint256";
|
|
216
250
|
}];
|
|
217
251
|
}, {
|
|
218
252
|
readonly name: "";
|
|
@@ -618,6 +652,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
618
652
|
readonly name: "deadline";
|
|
619
653
|
readonly type: "uint256";
|
|
620
654
|
readonly internalType: "uint256";
|
|
655
|
+
}, {
|
|
656
|
+
readonly name: "feeRecipient";
|
|
657
|
+
readonly type: "address";
|
|
658
|
+
readonly internalType: "address";
|
|
659
|
+
}, {
|
|
660
|
+
readonly name: "feeAmount";
|
|
661
|
+
readonly type: "uint256";
|
|
662
|
+
readonly internalType: "uint256";
|
|
621
663
|
}];
|
|
622
664
|
}, {
|
|
623
665
|
readonly name: "";
|
|
@@ -750,6 +792,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
750
792
|
readonly name: "deadline";
|
|
751
793
|
readonly type: "uint256";
|
|
752
794
|
readonly internalType: "uint256";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "feeRecipient";
|
|
797
|
+
readonly type: "address";
|
|
798
|
+
readonly internalType: "address";
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "feeAmount";
|
|
801
|
+
readonly type: "uint256";
|
|
802
|
+
readonly internalType: "uint256";
|
|
753
803
|
}];
|
|
754
804
|
}, {
|
|
755
805
|
readonly name: "creditSource";
|
|
@@ -843,9 +893,9 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
843
893
|
readonly type: "bytes";
|
|
844
894
|
readonly internalType: "bytes";
|
|
845
895
|
}, {
|
|
846
|
-
readonly name: "
|
|
847
|
-
readonly type: "tuple
|
|
848
|
-
readonly internalType: "struct IInvisiProtocol.TransactRequest
|
|
896
|
+
readonly name: "r";
|
|
897
|
+
readonly type: "tuple";
|
|
898
|
+
readonly internalType: "struct IInvisiProtocol.TransactRequest";
|
|
849
899
|
readonly components: readonly [{
|
|
850
900
|
readonly name: "params";
|
|
851
901
|
readonly type: "tuple";
|
|
@@ -887,6 +937,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
887
937
|
readonly name: "deadline";
|
|
888
938
|
readonly type: "uint256";
|
|
889
939
|
readonly internalType: "uint256";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "feeRecipient";
|
|
942
|
+
readonly type: "address";
|
|
943
|
+
readonly internalType: "address";
|
|
944
|
+
}, {
|
|
945
|
+
readonly name: "feeAmount";
|
|
946
|
+
readonly type: "uint256";
|
|
947
|
+
readonly internalType: "uint256";
|
|
890
948
|
}];
|
|
891
949
|
}, {
|
|
892
950
|
readonly name: "deliveries";
|
|
@@ -959,9 +1017,9 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
959
1017
|
readonly type: "bytes";
|
|
960
1018
|
readonly internalType: "bytes";
|
|
961
1019
|
}, {
|
|
962
|
-
readonly name: "
|
|
963
|
-
readonly type: "tuple";
|
|
964
|
-
readonly internalType: "struct IInvisiProtocol.TransactRequest";
|
|
1020
|
+
readonly name: "requests";
|
|
1021
|
+
readonly type: "tuple[]";
|
|
1022
|
+
readonly internalType: "struct IInvisiProtocol.TransactRequest[]";
|
|
965
1023
|
readonly components: readonly [{
|
|
966
1024
|
readonly name: "params";
|
|
967
1025
|
readonly type: "tuple";
|
|
@@ -1003,6 +1061,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1003
1061
|
readonly name: "deadline";
|
|
1004
1062
|
readonly type: "uint256";
|
|
1005
1063
|
readonly internalType: "uint256";
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly name: "feeRecipient";
|
|
1066
|
+
readonly type: "address";
|
|
1067
|
+
readonly internalType: "address";
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly name: "feeAmount";
|
|
1070
|
+
readonly type: "uint256";
|
|
1071
|
+
readonly internalType: "uint256";
|
|
1006
1072
|
}];
|
|
1007
1073
|
}, {
|
|
1008
1074
|
readonly name: "deliveries";
|
|
@@ -1099,6 +1165,24 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1099
1165
|
readonly internalType: "contract IVerifierRouter";
|
|
1100
1166
|
}];
|
|
1101
1167
|
readonly stateMutability: "view";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly type: "function";
|
|
1170
|
+
readonly name: "withdrawBroadcasterFees";
|
|
1171
|
+
readonly inputs: readonly [{
|
|
1172
|
+
readonly name: "token";
|
|
1173
|
+
readonly type: "address";
|
|
1174
|
+
readonly internalType: "address";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "recipient";
|
|
1177
|
+
readonly type: "address";
|
|
1178
|
+
readonly internalType: "address";
|
|
1179
|
+
}];
|
|
1180
|
+
readonly outputs: readonly [{
|
|
1181
|
+
readonly name: "";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
readonly internalType: "uint256";
|
|
1184
|
+
}];
|
|
1185
|
+
readonly stateMutability: "nonpayable";
|
|
1102
1186
|
}, {
|
|
1103
1187
|
readonly type: "event";
|
|
1104
1188
|
readonly name: "BatchOutputs";
|
|
@@ -1208,6 +1292,46 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1208
1292
|
readonly internalType: "bytes32";
|
|
1209
1293
|
}];
|
|
1210
1294
|
readonly anonymous: false;
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly type: "event";
|
|
1297
|
+
readonly name: "BroadcasterFee";
|
|
1298
|
+
readonly inputs: readonly [{
|
|
1299
|
+
readonly name: "token";
|
|
1300
|
+
readonly type: "address";
|
|
1301
|
+
readonly indexed: true;
|
|
1302
|
+
readonly internalType: "address";
|
|
1303
|
+
}, {
|
|
1304
|
+
readonly name: "recipient";
|
|
1305
|
+
readonly type: "address";
|
|
1306
|
+
readonly indexed: true;
|
|
1307
|
+
readonly internalType: "address";
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly name: "amount";
|
|
1310
|
+
readonly type: "uint256";
|
|
1311
|
+
readonly indexed: false;
|
|
1312
|
+
readonly internalType: "uint256";
|
|
1313
|
+
}];
|
|
1314
|
+
readonly anonymous: false;
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly type: "event";
|
|
1317
|
+
readonly name: "BroadcasterFeeWithdrawn";
|
|
1318
|
+
readonly inputs: readonly [{
|
|
1319
|
+
readonly name: "token";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
readonly indexed: true;
|
|
1322
|
+
readonly internalType: "address";
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly name: "recipient";
|
|
1325
|
+
readonly type: "address";
|
|
1326
|
+
readonly indexed: true;
|
|
1327
|
+
readonly internalType: "address";
|
|
1328
|
+
}, {
|
|
1329
|
+
readonly name: "amount";
|
|
1330
|
+
readonly type: "uint256";
|
|
1331
|
+
readonly indexed: false;
|
|
1332
|
+
readonly internalType: "uint256";
|
|
1333
|
+
}];
|
|
1334
|
+
readonly anonymous: false;
|
|
1211
1335
|
}, {
|
|
1212
1336
|
readonly type: "event";
|
|
1213
1337
|
readonly name: "CircuitPauseUpdated";
|
|
@@ -1489,6 +1613,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1489
1613
|
readonly name: "deadline";
|
|
1490
1614
|
readonly type: "uint256";
|
|
1491
1615
|
readonly internalType: "uint256";
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly name: "feeRecipient";
|
|
1618
|
+
readonly type: "address";
|
|
1619
|
+
readonly internalType: "address";
|
|
1620
|
+
}, {
|
|
1621
|
+
readonly name: "feeAmount";
|
|
1622
|
+
readonly type: "uint256";
|
|
1623
|
+
readonly internalType: "uint256";
|
|
1492
1624
|
}];
|
|
1493
1625
|
}, {
|
|
1494
1626
|
readonly name: "creditSource";
|
|
@@ -1849,6 +1981,22 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1849
1981
|
readonly internalType: "address";
|
|
1850
1982
|
}];
|
|
1851
1983
|
readonly anonymous: false;
|
|
1984
|
+
}, {
|
|
1985
|
+
readonly type: "error";
|
|
1986
|
+
readonly name: "AddressEmptyCode";
|
|
1987
|
+
readonly inputs: readonly [{
|
|
1988
|
+
readonly name: "target";
|
|
1989
|
+
readonly type: "address";
|
|
1990
|
+
readonly internalType: "address";
|
|
1991
|
+
}];
|
|
1992
|
+
}, {
|
|
1993
|
+
readonly type: "error";
|
|
1994
|
+
readonly name: "AddressInsufficientBalance";
|
|
1995
|
+
readonly inputs: readonly [{
|
|
1996
|
+
readonly name: "account";
|
|
1997
|
+
readonly type: "address";
|
|
1998
|
+
readonly internalType: "address";
|
|
1999
|
+
}];
|
|
1852
2000
|
}, {
|
|
1853
2001
|
readonly type: "error";
|
|
1854
2002
|
readonly name: "AddressScreeningFailed";
|
|
@@ -1893,6 +2041,10 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
1893
2041
|
readonly type: "error";
|
|
1894
2042
|
readonly name: "ExpiryInPast";
|
|
1895
2043
|
readonly inputs: readonly [];
|
|
2044
|
+
}, {
|
|
2045
|
+
readonly type: "error";
|
|
2046
|
+
readonly name: "FailedInnerCall";
|
|
2047
|
+
readonly inputs: readonly [];
|
|
1896
2048
|
}, {
|
|
1897
2049
|
readonly type: "error";
|
|
1898
2050
|
readonly name: "InexactTokenReceipt";
|
|
@@ -2029,6 +2181,10 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2029
2181
|
readonly type: "error";
|
|
2030
2182
|
readonly name: "LengthMismatch";
|
|
2031
2183
|
readonly inputs: readonly [];
|
|
2184
|
+
}, {
|
|
2185
|
+
readonly type: "error";
|
|
2186
|
+
readonly name: "NoBroadcasterFees";
|
|
2187
|
+
readonly inputs: readonly [];
|
|
2032
2188
|
}, {
|
|
2033
2189
|
readonly type: "error";
|
|
2034
2190
|
readonly name: "NotEmergencyAdmin";
|
|
@@ -2073,6 +2229,14 @@ declare const invisiProtocolAbi: readonly [{
|
|
|
2073
2229
|
readonly type: "error";
|
|
2074
2230
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
2075
2231
|
readonly inputs: readonly [];
|
|
2232
|
+
}, {
|
|
2233
|
+
readonly type: "error";
|
|
2234
|
+
readonly name: "SafeERC20FailedOperation";
|
|
2235
|
+
readonly inputs: readonly [{
|
|
2236
|
+
readonly name: "token";
|
|
2237
|
+
readonly type: "address";
|
|
2238
|
+
readonly internalType: "address";
|
|
2239
|
+
}];
|
|
2076
2240
|
}, {
|
|
2077
2241
|
readonly type: "error";
|
|
2078
2242
|
readonly name: "ShieldExpired";
|
|
@@ -3176,6 +3340,8 @@ interface ShieldParams {
|
|
|
3176
3340
|
token: Address;
|
|
3177
3341
|
outputCommitments: readonly Hex[];
|
|
3178
3342
|
deadline: bigint;
|
|
3343
|
+
feeRecipient?: Address;
|
|
3344
|
+
feeAmount?: bigint;
|
|
3179
3345
|
}
|
|
3180
3346
|
interface ShieldOutput {
|
|
3181
3347
|
identity: Hex;
|
|
@@ -3193,6 +3359,8 @@ interface CrossTreeTransactParams {
|
|
|
3193
3359
|
withdrawalAddress: Address;
|
|
3194
3360
|
withdrawalAmount: bigint;
|
|
3195
3361
|
deadline: bigint;
|
|
3362
|
+
feeRecipient?: Address;
|
|
3363
|
+
feeAmount?: bigint;
|
|
3196
3364
|
}
|
|
3197
3365
|
interface TransactRequest {
|
|
3198
3366
|
params: CrossTreeTransactParams;
|
|
@@ -3208,6 +3376,8 @@ interface CreateCreditParams {
|
|
|
3208
3376
|
owner: Address;
|
|
3209
3377
|
expiry: bigint;
|
|
3210
3378
|
deadline: bigint;
|
|
3379
|
+
feeRecipient?: Address;
|
|
3380
|
+
feeAmount?: bigint;
|
|
3211
3381
|
}
|
|
3212
3382
|
interface CreditDrawParams {
|
|
3213
3383
|
token: Address;
|
|
@@ -3227,6 +3397,8 @@ interface CancelCreditParams {
|
|
|
3227
3397
|
owner: Address;
|
|
3228
3398
|
amount: bigint;
|
|
3229
3399
|
deadline: bigint;
|
|
3400
|
+
feeRecipient?: Address;
|
|
3401
|
+
feeAmount?: bigint;
|
|
3230
3402
|
}
|
|
3231
3403
|
interface TopUpCreditParams {
|
|
3232
3404
|
creation: CreateCreditParams;
|
|
@@ -3239,7 +3411,7 @@ interface ReceivingKeys {
|
|
|
3239
3411
|
clueKey: Hex;
|
|
3240
3412
|
}
|
|
3241
3413
|
interface AddressRegistration {
|
|
3242
|
-
|
|
3414
|
+
ownerAddress: Hex;
|
|
3243
3415
|
keys: ReceivingKeys;
|
|
3244
3416
|
nonce: bigint;
|
|
3245
3417
|
deadline: bigint;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invisi-labs/protocol",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Deployment-scoped protocol statements, witnesses and contract operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"ethers": "^6.17.0",
|
|
23
|
-
"@invisi-labs/
|
|
24
|
-
"@invisi-labs/
|
|
25
|
-
"@invisi-labs/
|
|
23
|
+
"@invisi-labs/core": "1.1.6",
|
|
24
|
+
"@invisi-labs/prover": "1.1.6",
|
|
25
|
+
"@invisi-labs/rpc": "1.1.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"tsup": "^8.0.0",
|