@nucypher/shared 0.1.0-rc.3 → 0.1.0-rc.5
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/README.md +1 -1
- package/dist/cjs/contracts/agents/coordinator.d.ts +6 -5
- package/dist/cjs/contracts/agents/coordinator.js +11 -9
- package/dist/cjs/contracts/agents/coordinator.js.map +1 -1
- package/dist/cjs/contracts/agents/global-allow-list.js +4 -3
- package/dist/cjs/contracts/agents/global-allow-list.js.map +1 -1
- package/dist/cjs/contracts/agents/subscription-manager.js +4 -3
- package/dist/cjs/contracts/agents/subscription-manager.js.map +1 -1
- package/dist/cjs/contracts/const.d.ts +1 -0
- package/dist/cjs/contracts/const.js +5 -0
- package/dist/cjs/contracts/const.js.map +1 -0
- package/dist/cjs/contracts/ethers-typechain/Coordinator.d.ts +282 -231
- package/dist/cjs/contracts/ethers-typechain/GlobalAllowList.d.ts +32 -348
- package/dist/cjs/contracts/ethers-typechain/SubscriptionManager.d.ts +71 -71
- package/dist/cjs/contracts/ethers-typechain/common.d.ts +3 -3
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +164 -30
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js +869 -692
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -1
- package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +22 -300
- package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.js +80 -435
- package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.js.map +1 -1
- package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.d.ts +3 -3
- package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.js +229 -229
- package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.js.map +1 -1
- package/dist/cjs/contracts/ethers-typechain/factories/index.d.ts +3 -3
- package/dist/cjs/contracts/ethers-typechain/index.d.ts +7 -7
- package/dist/cjs/contracts/index.d.ts +0 -1
- package/dist/cjs/contracts/index.js +0 -1
- package/dist/cjs/contracts/index.js.map +1 -1
- package/dist/cjs/porter.js +1 -1
- package/dist/cjs/porter.js.map +1 -1
- package/dist/cjs/utils.d.ts +1 -1
- package/dist/cjs/utils.js +9 -9
- package/dist/cjs/utils.js.map +1 -1
- package/dist/cjs/web3.d.ts +1 -0
- package/dist/cjs/web3.js +1 -0
- package/dist/cjs/web3.js.map +1 -1
- package/dist/es/contracts/agents/coordinator.d.ts +6 -5
- package/dist/es/contracts/agents/coordinator.js +9 -7
- package/dist/es/contracts/agents/coordinator.js.map +1 -1
- package/dist/es/contracts/agents/global-allow-list.js +2 -1
- package/dist/es/contracts/agents/global-allow-list.js.map +1 -1
- package/dist/es/contracts/agents/subscription-manager.js +2 -1
- package/dist/es/contracts/agents/subscription-manager.js.map +1 -1
- package/dist/es/contracts/const.d.ts +1 -0
- package/dist/es/contracts/const.js +2 -0
- package/dist/es/contracts/const.js.map +1 -0
- package/dist/es/contracts/ethers-typechain/Coordinator.d.ts +282 -231
- package/dist/es/contracts/ethers-typechain/GlobalAllowList.d.ts +32 -348
- package/dist/es/contracts/ethers-typechain/SubscriptionManager.d.ts +71 -71
- package/dist/es/contracts/ethers-typechain/common.d.ts +3 -3
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +164 -30
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js +870 -693
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -1
- package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +22 -300
- package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.js +81 -436
- package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.js.map +1 -1
- package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.d.ts +3 -3
- package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.js +230 -230
- package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.js.map +1 -1
- package/dist/es/contracts/ethers-typechain/factories/index.d.ts +3 -3
- package/dist/es/contracts/ethers-typechain/factories/index.js +3 -3
- package/dist/es/contracts/ethers-typechain/index.d.ts +7 -7
- package/dist/es/contracts/ethers-typechain/index.js +4 -4
- package/dist/es/contracts/index.d.ts +0 -1
- package/dist/es/contracts/index.js +0 -1
- package/dist/es/contracts/index.js.map +1 -1
- package/dist/es/porter.js +1 -1
- package/dist/es/porter.js.map +1 -1
- package/dist/es/utils.d.ts +1 -1
- package/dist/es/utils.js +7 -7
- package/dist/es/utils.js.map +1 -1
- package/dist/es/web3.d.ts +1 -0
- package/dist/es/web3.js +1 -0
- package/dist/es/web3.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/dist/cjs/contracts/registry.d.ts +0 -20
- package/dist/cjs/contracts/registry.js +0 -41
- package/dist/cjs/contracts/registry.js.map +0 -1
- package/dist/es/contracts/registry.d.ts +0 -20
- package/dist/es/contracts/registry.js +0 -34
- package/dist/es/contracts/registry.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Listener } from
|
|
2
|
-
import type { Event, EventFilter } from
|
|
1
|
+
import type { Listener } from '@ethersproject/providers';
|
|
2
|
+
import type { Event, EventFilter } from 'ethers';
|
|
3
3
|
export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
|
|
4
4
|
args: TArgsArray & TArgsObject;
|
|
5
5
|
}
|
|
@@ -17,5 +17,5 @@ export type MinEthersFactory<C, ARGS> = {
|
|
|
17
17
|
deploy(...a: ARGS[]): Promise<C>;
|
|
18
18
|
};
|
|
19
19
|
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
20
|
-
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F[
|
|
20
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F['deploy']> : never;
|
|
21
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import type { Coordinator, CoordinatorInterface } from
|
|
1
|
+
import type { Provider } from '@ethersproject/providers';
|
|
2
|
+
import { Signer } from 'ethers';
|
|
3
|
+
import type { Coordinator, CoordinatorInterface } from '../Coordinator';
|
|
4
4
|
export declare class Coordinator__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
6
|
readonly type: "constructor";
|
|
@@ -10,26 +10,98 @@ export declare class Coordinator__factory {
|
|
|
10
10
|
readonly type: "address";
|
|
11
11
|
readonly internalType: "contract ITACoChildApplication";
|
|
12
12
|
}, {
|
|
13
|
-
readonly name: "
|
|
14
|
-
readonly type: "
|
|
15
|
-
readonly internalType: "
|
|
16
|
-
}, {
|
|
17
|
-
readonly name: "_maxDkgSize";
|
|
18
|
-
readonly type: "uint16";
|
|
19
|
-
readonly internalType: "uint16";
|
|
13
|
+
readonly name: "_currency";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
readonly internalType: "contract IERC20";
|
|
20
16
|
}, {
|
|
21
|
-
readonly name: "
|
|
17
|
+
readonly name: "_feeRatePerSecond";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
}];
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "error";
|
|
23
|
+
readonly name: "AccessControlBadConfirmation";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "error";
|
|
27
|
+
readonly name: "AccessControlEnforcedDefaultAdminDelay";
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly name: "schedule";
|
|
30
|
+
readonly type: "uint48";
|
|
31
|
+
readonly internalType: "uint48";
|
|
32
|
+
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "error";
|
|
35
|
+
readonly name: "AccessControlEnforcedDefaultAdminRules";
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
}, {
|
|
38
|
+
readonly type: "error";
|
|
39
|
+
readonly name: "AccessControlInvalidDefaultAdmin";
|
|
40
|
+
readonly inputs: readonly [{
|
|
41
|
+
readonly name: "defaultAdmin";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
}];
|
|
45
|
+
}, {
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly name: "account";
|
|
22
50
|
readonly type: "address";
|
|
23
51
|
readonly internalType: "address";
|
|
24
52
|
}, {
|
|
25
|
-
readonly name: "
|
|
53
|
+
readonly name: "neededRole";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
|
+
}];
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "error";
|
|
59
|
+
readonly name: "AddressEmptyCode";
|
|
60
|
+
readonly inputs: readonly [{
|
|
61
|
+
readonly name: "target";
|
|
26
62
|
readonly type: "address";
|
|
27
|
-
readonly internalType: "
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
}];
|
|
65
|
+
}, {
|
|
66
|
+
readonly type: "error";
|
|
67
|
+
readonly name: "AddressInsufficientBalance";
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly name: "account";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
}];
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "error";
|
|
75
|
+
readonly name: "FailedInnerCall";
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "error";
|
|
79
|
+
readonly name: "InvalidInitialization";
|
|
80
|
+
readonly inputs: readonly [];
|
|
81
|
+
}, {
|
|
82
|
+
readonly type: "error";
|
|
83
|
+
readonly name: "NotInitializing";
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
readonly name: "SafeCastOverflowedUintDowncast";
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly name: "bits";
|
|
90
|
+
readonly type: "uint8";
|
|
91
|
+
readonly internalType: "uint8";
|
|
28
92
|
}, {
|
|
29
|
-
readonly name: "
|
|
93
|
+
readonly name: "value";
|
|
30
94
|
readonly type: "uint256";
|
|
31
95
|
readonly internalType: "uint256";
|
|
32
96
|
}];
|
|
97
|
+
}, {
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
readonly name: "SafeERC20FailedOperation";
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly name: "token";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
}];
|
|
33
105
|
}, {
|
|
34
106
|
readonly type: "event";
|
|
35
107
|
readonly name: "AggregationPosted";
|
|
@@ -105,6 +177,16 @@ export declare class Coordinator__factory {
|
|
|
105
177
|
readonly indexed: false;
|
|
106
178
|
}];
|
|
107
179
|
readonly anonymous: false;
|
|
180
|
+
}, {
|
|
181
|
+
readonly type: "event";
|
|
182
|
+
readonly name: "Initialized";
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly name: "version";
|
|
185
|
+
readonly type: "uint64";
|
|
186
|
+
readonly internalType: "uint64";
|
|
187
|
+
readonly indexed: false;
|
|
188
|
+
}];
|
|
189
|
+
readonly anonymous: false;
|
|
108
190
|
}, {
|
|
109
191
|
readonly type: "event";
|
|
110
192
|
readonly name: "MaxDkgSizeChanged";
|
|
@@ -153,6 +235,36 @@ export declare class Coordinator__factory {
|
|
|
153
235
|
readonly indexed: false;
|
|
154
236
|
}];
|
|
155
237
|
readonly anonymous: false;
|
|
238
|
+
}, {
|
|
239
|
+
readonly type: "event";
|
|
240
|
+
readonly name: "ReimbursementPoolSet";
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly name: "pool";
|
|
243
|
+
readonly type: "address";
|
|
244
|
+
readonly internalType: "address";
|
|
245
|
+
readonly indexed: true;
|
|
246
|
+
}];
|
|
247
|
+
readonly anonymous: false;
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "event";
|
|
250
|
+
readonly name: "RitualAuthorityTransferred";
|
|
251
|
+
readonly inputs: readonly [{
|
|
252
|
+
readonly name: "ritualId";
|
|
253
|
+
readonly type: "uint32";
|
|
254
|
+
readonly internalType: "uint32";
|
|
255
|
+
readonly indexed: true;
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "previousAuthority";
|
|
258
|
+
readonly type: "address";
|
|
259
|
+
readonly internalType: "address";
|
|
260
|
+
readonly indexed: true;
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "newAuthority";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
readonly internalType: "address";
|
|
265
|
+
readonly indexed: true;
|
|
266
|
+
}];
|
|
267
|
+
readonly anonymous: false;
|
|
156
268
|
}, {
|
|
157
269
|
readonly type: "event";
|
|
158
270
|
readonly name: "RoleAdminChanged";
|
|
@@ -663,6 +775,24 @@ export declare class Coordinator__factory {
|
|
|
663
775
|
readonly type: "bool";
|
|
664
776
|
readonly internalType: "bool";
|
|
665
777
|
}];
|
|
778
|
+
}, {
|
|
779
|
+
readonly type: "function";
|
|
780
|
+
readonly name: "initialize";
|
|
781
|
+
readonly stateMutability: "nonpayable";
|
|
782
|
+
readonly inputs: readonly [{
|
|
783
|
+
readonly name: "_timeout";
|
|
784
|
+
readonly type: "uint32";
|
|
785
|
+
readonly internalType: "uint32";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "_maxDkgSize";
|
|
788
|
+
readonly type: "uint16";
|
|
789
|
+
readonly internalType: "uint16";
|
|
790
|
+
}, {
|
|
791
|
+
readonly name: "_admin";
|
|
792
|
+
readonly type: "address";
|
|
793
|
+
readonly internalType: "address";
|
|
794
|
+
}];
|
|
795
|
+
readonly outputs: readonly [];
|
|
666
796
|
}, {
|
|
667
797
|
readonly type: "function";
|
|
668
798
|
readonly name: "initiateRitual";
|
|
@@ -737,7 +867,7 @@ export declare class Coordinator__factory {
|
|
|
737
867
|
}];
|
|
738
868
|
}, {
|
|
739
869
|
readonly type: "function";
|
|
740
|
-
readonly name: "
|
|
870
|
+
readonly name: "isRitualActive";
|
|
741
871
|
readonly stateMutability: "view";
|
|
742
872
|
readonly inputs: readonly [{
|
|
743
873
|
readonly name: "ritualId";
|
|
@@ -881,7 +1011,11 @@ export declare class Coordinator__factory {
|
|
|
881
1011
|
readonly type: "uint32";
|
|
882
1012
|
readonly internalType: "uint32";
|
|
883
1013
|
}];
|
|
884
|
-
readonly outputs: readonly [
|
|
1014
|
+
readonly outputs: readonly [{
|
|
1015
|
+
readonly name: "refundableFee";
|
|
1016
|
+
readonly type: "uint256";
|
|
1017
|
+
readonly internalType: "uint256";
|
|
1018
|
+
}];
|
|
885
1019
|
}, {
|
|
886
1020
|
readonly type: "function";
|
|
887
1021
|
readonly name: "renounceRole";
|
|
@@ -1026,20 +1160,6 @@ export declare class Coordinator__factory {
|
|
|
1026
1160
|
readonly internalType: "contract IReimbursementPool";
|
|
1027
1161
|
}];
|
|
1028
1162
|
readonly outputs: readonly [];
|
|
1029
|
-
}, {
|
|
1030
|
-
readonly type: "function";
|
|
1031
|
-
readonly name: "setRitualAuthority";
|
|
1032
|
-
readonly stateMutability: "nonpayable";
|
|
1033
|
-
readonly inputs: readonly [{
|
|
1034
|
-
readonly name: "ritualId";
|
|
1035
|
-
readonly type: "uint32";
|
|
1036
|
-
readonly internalType: "uint32";
|
|
1037
|
-
}, {
|
|
1038
|
-
readonly name: "authority";
|
|
1039
|
-
readonly type: "address";
|
|
1040
|
-
readonly internalType: "address";
|
|
1041
|
-
}];
|
|
1042
|
-
readonly outputs: readonly [];
|
|
1043
1163
|
}, {
|
|
1044
1164
|
readonly type: "function";
|
|
1045
1165
|
readonly name: "setTimeout";
|
|
@@ -1084,6 +1204,20 @@ export declare class Coordinator__factory {
|
|
|
1084
1204
|
readonly type: "uint256";
|
|
1085
1205
|
readonly internalType: "uint256";
|
|
1086
1206
|
}];
|
|
1207
|
+
}, {
|
|
1208
|
+
readonly type: "function";
|
|
1209
|
+
readonly name: "transferRitualAuthority";
|
|
1210
|
+
readonly stateMutability: "nonpayable";
|
|
1211
|
+
readonly inputs: readonly [{
|
|
1212
|
+
readonly name: "ritualId";
|
|
1213
|
+
readonly type: "uint32";
|
|
1214
|
+
readonly internalType: "uint32";
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly name: "newAuthority";
|
|
1217
|
+
readonly type: "address";
|
|
1218
|
+
readonly internalType: "address";
|
|
1219
|
+
}];
|
|
1220
|
+
readonly outputs: readonly [];
|
|
1087
1221
|
}, {
|
|
1088
1222
|
readonly type: "function";
|
|
1089
1223
|
readonly name: "withdrawTokens";
|