@nucypher/shared 0.1.0-rc.3 → 0.1.0-rc.4
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/cjs/contracts/ethers-typechain/Coordinator.d.ts +212 -212
- package/dist/cjs/contracts/ethers-typechain/GlobalAllowList.d.ts +98 -98
- 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 +3 -3
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js +683 -683
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -1
- package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +3 -3
- package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.js +244 -244
- 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/utils.d.ts +1 -1
- package/dist/cjs/utils.js +9 -9
- package/dist/cjs/utils.js.map +1 -1
- package/dist/es/contracts/ethers-typechain/Coordinator.d.ts +212 -212
- package/dist/es/contracts/ethers-typechain/GlobalAllowList.d.ts +98 -98
- 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 +3 -3
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js +684 -684
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -1
- package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +3 -3
- package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.js +245 -245
- 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/utils.d.ts +1 -1
- package/dist/es/utils.js +7 -7
- package/dist/es/utils.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { EventFragment, FunctionFragment, Result } from '@ethersproject/abi';
|
|
2
|
+
import type { Listener, Provider } from '@ethersproject/providers';
|
|
3
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from 'ethers';
|
|
4
|
+
import type { OnEvent, TypedEvent, TypedEventFilter, TypedListener } from './common';
|
|
5
5
|
export interface GlobalAllowListInterface extends utils.Interface {
|
|
6
6
|
functions: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
7
|
+
'DEFAULT_ADMIN_ROLE()': FunctionFragment;
|
|
8
|
+
'acceptDefaultAdminTransfer()': FunctionFragment;
|
|
9
|
+
'authorize(uint32,address[])': FunctionFragment;
|
|
10
|
+
'beginDefaultAdminTransfer(address)': FunctionFragment;
|
|
11
|
+
'cancelDefaultAdminTransfer()': FunctionFragment;
|
|
12
|
+
'changeDefaultAdminDelay(uint48)': FunctionFragment;
|
|
13
|
+
'coordinator()': FunctionFragment;
|
|
14
|
+
'deauthorize(uint32,address[])': FunctionFragment;
|
|
15
|
+
'defaultAdmin()': FunctionFragment;
|
|
16
|
+
'defaultAdminDelay()': FunctionFragment;
|
|
17
|
+
'defaultAdminDelayIncreaseWait()': FunctionFragment;
|
|
18
|
+
'getRoleAdmin(bytes32)': FunctionFragment;
|
|
19
|
+
'grantRole(bytes32,address)': FunctionFragment;
|
|
20
|
+
'hasRole(bytes32,address)': FunctionFragment;
|
|
21
|
+
'isAddressAuthorized(uint32,address)': FunctionFragment;
|
|
22
|
+
'isAuthorized(uint32,bytes,bytes)': FunctionFragment;
|
|
23
|
+
'owner()': FunctionFragment;
|
|
24
|
+
'pendingDefaultAdmin()': FunctionFragment;
|
|
25
|
+
'pendingDefaultAdminDelay()': FunctionFragment;
|
|
26
|
+
'renounceRole(bytes32,address)': FunctionFragment;
|
|
27
|
+
'revokeRole(bytes32,address)': FunctionFragment;
|
|
28
|
+
'rollbackDefaultAdminDelay()': FunctionFragment;
|
|
29
|
+
'setCoordinator(address)': FunctionFragment;
|
|
30
|
+
'supportsInterface(bytes4)': FunctionFragment;
|
|
31
31
|
};
|
|
32
|
-
getFunction(nameOrSignatureOrTopic:
|
|
33
|
-
encodeFunctionData(functionFragment:
|
|
34
|
-
encodeFunctionData(functionFragment:
|
|
35
|
-
encodeFunctionData(functionFragment:
|
|
36
|
-
encodeFunctionData(functionFragment:
|
|
37
|
-
encodeFunctionData(functionFragment:
|
|
38
|
-
encodeFunctionData(functionFragment:
|
|
39
|
-
encodeFunctionData(functionFragment:
|
|
40
|
-
encodeFunctionData(functionFragment:
|
|
41
|
-
encodeFunctionData(functionFragment:
|
|
42
|
-
encodeFunctionData(functionFragment:
|
|
43
|
-
encodeFunctionData(functionFragment:
|
|
44
|
-
encodeFunctionData(functionFragment:
|
|
45
|
-
encodeFunctionData(functionFragment:
|
|
46
|
-
encodeFunctionData(functionFragment:
|
|
47
|
-
encodeFunctionData(functionFragment:
|
|
48
|
-
encodeFunctionData(functionFragment:
|
|
49
|
-
encodeFunctionData(functionFragment:
|
|
50
|
-
encodeFunctionData(functionFragment:
|
|
51
|
-
encodeFunctionData(functionFragment:
|
|
52
|
-
encodeFunctionData(functionFragment:
|
|
53
|
-
encodeFunctionData(functionFragment:
|
|
54
|
-
encodeFunctionData(functionFragment:
|
|
55
|
-
encodeFunctionData(functionFragment:
|
|
56
|
-
encodeFunctionData(functionFragment:
|
|
57
|
-
decodeFunctionResult(functionFragment:
|
|
58
|
-
decodeFunctionResult(functionFragment:
|
|
59
|
-
decodeFunctionResult(functionFragment:
|
|
60
|
-
decodeFunctionResult(functionFragment:
|
|
61
|
-
decodeFunctionResult(functionFragment:
|
|
62
|
-
decodeFunctionResult(functionFragment:
|
|
63
|
-
decodeFunctionResult(functionFragment:
|
|
64
|
-
decodeFunctionResult(functionFragment:
|
|
65
|
-
decodeFunctionResult(functionFragment:
|
|
66
|
-
decodeFunctionResult(functionFragment:
|
|
67
|
-
decodeFunctionResult(functionFragment:
|
|
68
|
-
decodeFunctionResult(functionFragment:
|
|
69
|
-
decodeFunctionResult(functionFragment:
|
|
70
|
-
decodeFunctionResult(functionFragment:
|
|
71
|
-
decodeFunctionResult(functionFragment:
|
|
72
|
-
decodeFunctionResult(functionFragment:
|
|
73
|
-
decodeFunctionResult(functionFragment:
|
|
74
|
-
decodeFunctionResult(functionFragment:
|
|
75
|
-
decodeFunctionResult(functionFragment:
|
|
76
|
-
decodeFunctionResult(functionFragment:
|
|
77
|
-
decodeFunctionResult(functionFragment:
|
|
78
|
-
decodeFunctionResult(functionFragment:
|
|
79
|
-
decodeFunctionResult(functionFragment:
|
|
80
|
-
decodeFunctionResult(functionFragment:
|
|
32
|
+
getFunction(nameOrSignatureOrTopic: 'DEFAULT_ADMIN_ROLE' | 'acceptDefaultAdminTransfer' | 'authorize' | 'beginDefaultAdminTransfer' | 'cancelDefaultAdminTransfer' | 'changeDefaultAdminDelay' | 'coordinator' | 'deauthorize' | 'defaultAdmin' | 'defaultAdminDelay' | 'defaultAdminDelayIncreaseWait' | 'getRoleAdmin' | 'grantRole' | 'hasRole' | 'isAddressAuthorized' | 'isAuthorized' | 'owner' | 'pendingDefaultAdmin' | 'pendingDefaultAdminDelay' | 'renounceRole' | 'revokeRole' | 'rollbackDefaultAdminDelay' | 'setCoordinator' | 'supportsInterface'): FunctionFragment;
|
|
33
|
+
encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string;
|
|
34
|
+
encodeFunctionData(functionFragment: 'acceptDefaultAdminTransfer', values?: undefined): string;
|
|
35
|
+
encodeFunctionData(functionFragment: 'authorize', values: [BigNumberish, string[]]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: 'beginDefaultAdminTransfer', values: [string]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: 'cancelDefaultAdminTransfer', values?: undefined): string;
|
|
38
|
+
encodeFunctionData(functionFragment: 'changeDefaultAdminDelay', values: [BigNumberish]): string;
|
|
39
|
+
encodeFunctionData(functionFragment: 'coordinator', values?: undefined): string;
|
|
40
|
+
encodeFunctionData(functionFragment: 'deauthorize', values: [BigNumberish, string[]]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: 'defaultAdmin', values?: undefined): string;
|
|
42
|
+
encodeFunctionData(functionFragment: 'defaultAdminDelay', values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: 'defaultAdminDelayIncreaseWait', values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: 'getRoleAdmin', values: [BytesLike]): string;
|
|
45
|
+
encodeFunctionData(functionFragment: 'grantRole', values: [BytesLike, string]): string;
|
|
46
|
+
encodeFunctionData(functionFragment: 'hasRole', values: [BytesLike, string]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: 'isAddressAuthorized', values: [BigNumberish, string]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: 'isAuthorized', values: [BigNumberish, BytesLike, BytesLike]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
|
|
50
|
+
encodeFunctionData(functionFragment: 'pendingDefaultAdmin', values?: undefined): string;
|
|
51
|
+
encodeFunctionData(functionFragment: 'pendingDefaultAdminDelay', values?: undefined): string;
|
|
52
|
+
encodeFunctionData(functionFragment: 'renounceRole', values: [BytesLike, string]): string;
|
|
53
|
+
encodeFunctionData(functionFragment: 'revokeRole', values: [BytesLike, string]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: 'rollbackDefaultAdminDelay', values?: undefined): string;
|
|
55
|
+
encodeFunctionData(functionFragment: 'setCoordinator', values: [string]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string;
|
|
57
|
+
decodeFunctionResult(functionFragment: 'DEFAULT_ADMIN_ROLE', data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: 'acceptDefaultAdminTransfer', data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: 'authorize', data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: 'beginDefaultAdminTransfer', data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: 'cancelDefaultAdminTransfer', data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: 'changeDefaultAdminDelay', data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: 'coordinator', data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: 'deauthorize', data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: 'defaultAdmin', data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: 'defaultAdminDelay', data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: 'defaultAdminDelayIncreaseWait', data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: 'getRoleAdmin', data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: 'isAddressAuthorized', data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: 'isAuthorized', data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: 'pendingDefaultAdmin', data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: 'pendingDefaultAdminDelay', data: BytesLike): Result;
|
|
76
|
+
decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result;
|
|
77
|
+
decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result;
|
|
78
|
+
decodeFunctionResult(functionFragment: 'rollbackDefaultAdminDelay', data: BytesLike): Result;
|
|
79
|
+
decodeFunctionResult(functionFragment: 'setCoordinator', data: BytesLike): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result;
|
|
81
81
|
events: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
'DefaultAdminDelayChangeCanceled()': EventFragment;
|
|
83
|
+
'DefaultAdminDelayChangeScheduled(uint48,uint48)': EventFragment;
|
|
84
|
+
'DefaultAdminTransferCanceled()': EventFragment;
|
|
85
|
+
'DefaultAdminTransferScheduled(address,uint48)': EventFragment;
|
|
86
|
+
'RoleAdminChanged(bytes32,bytes32,bytes32)': EventFragment;
|
|
87
|
+
'RoleGranted(bytes32,address,address)': EventFragment;
|
|
88
|
+
'RoleRevoked(bytes32,address,address)': EventFragment;
|
|
89
89
|
};
|
|
90
|
-
getEvent(nameOrSignatureOrTopic:
|
|
91
|
-
getEvent(nameOrSignatureOrTopic:
|
|
92
|
-
getEvent(nameOrSignatureOrTopic:
|
|
93
|
-
getEvent(nameOrSignatureOrTopic:
|
|
94
|
-
getEvent(nameOrSignatureOrTopic:
|
|
95
|
-
getEvent(nameOrSignatureOrTopic:
|
|
96
|
-
getEvent(nameOrSignatureOrTopic:
|
|
90
|
+
getEvent(nameOrSignatureOrTopic: 'DefaultAdminDelayChangeCanceled'): EventFragment;
|
|
91
|
+
getEvent(nameOrSignatureOrTopic: 'DefaultAdminDelayChangeScheduled'): EventFragment;
|
|
92
|
+
getEvent(nameOrSignatureOrTopic: 'DefaultAdminTransferCanceled'): EventFragment;
|
|
93
|
+
getEvent(nameOrSignatureOrTopic: 'DefaultAdminTransferScheduled'): EventFragment;
|
|
94
|
+
getEvent(nameOrSignatureOrTopic: 'RoleAdminChanged'): EventFragment;
|
|
95
|
+
getEvent(nameOrSignatureOrTopic: 'RoleGranted'): EventFragment;
|
|
96
|
+
getEvent(nameOrSignatureOrTopic: 'RoleRevoked'): EventFragment;
|
|
97
97
|
}
|
|
98
98
|
export interface DefaultAdminDelayChangeCanceledEventObject {
|
|
99
99
|
}
|
|
@@ -309,19 +309,19 @@ export interface GlobalAllowList extends BaseContract {
|
|
|
309
309
|
supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<boolean>;
|
|
310
310
|
};
|
|
311
311
|
filters: {
|
|
312
|
-
|
|
312
|
+
'DefaultAdminDelayChangeCanceled()'(): DefaultAdminDelayChangeCanceledEventFilter;
|
|
313
313
|
DefaultAdminDelayChangeCanceled(): DefaultAdminDelayChangeCanceledEventFilter;
|
|
314
|
-
|
|
314
|
+
'DefaultAdminDelayChangeScheduled(uint48,uint48)'(newDelay?: null, effectSchedule?: null): DefaultAdminDelayChangeScheduledEventFilter;
|
|
315
315
|
DefaultAdminDelayChangeScheduled(newDelay?: null, effectSchedule?: null): DefaultAdminDelayChangeScheduledEventFilter;
|
|
316
|
-
|
|
316
|
+
'DefaultAdminTransferCanceled()'(): DefaultAdminTransferCanceledEventFilter;
|
|
317
317
|
DefaultAdminTransferCanceled(): DefaultAdminTransferCanceledEventFilter;
|
|
318
|
-
|
|
318
|
+
'DefaultAdminTransferScheduled(address,uint48)'(newAdmin?: string | null, acceptSchedule?: null): DefaultAdminTransferScheduledEventFilter;
|
|
319
319
|
DefaultAdminTransferScheduled(newAdmin?: string | null, acceptSchedule?: null): DefaultAdminTransferScheduledEventFilter;
|
|
320
|
-
|
|
320
|
+
'RoleAdminChanged(bytes32,bytes32,bytes32)'(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter;
|
|
321
321
|
RoleAdminChanged(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter;
|
|
322
|
-
|
|
322
|
+
'RoleGranted(bytes32,address,address)'(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter;
|
|
323
323
|
RoleGranted(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter;
|
|
324
|
-
|
|
324
|
+
'RoleRevoked(bytes32,address,address)'(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter;
|
|
325
325
|
RoleRevoked(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter;
|
|
326
326
|
};
|
|
327
327
|
estimateGas: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { EventFragment, FunctionFragment, Result } from '@ethersproject/abi';
|
|
2
|
+
import type { Listener, Provider } from '@ethersproject/providers';
|
|
3
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from 'ethers';
|
|
4
|
+
import type { OnEvent, TypedEvent, TypedEventFilter, TypedListener } from './common';
|
|
5
5
|
export declare namespace SubscriptionManager {
|
|
6
6
|
type PolicyStruct = {
|
|
7
7
|
sponsor: string;
|
|
@@ -20,71 +20,71 @@ export declare namespace SubscriptionManager {
|
|
|
20
20
|
}
|
|
21
21
|
export interface SubscriptionManagerInterface extends utils.Interface {
|
|
22
22
|
functions: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
'DEFAULT_ADMIN_ROLE()': FunctionFragment;
|
|
24
|
+
'SET_RATE_ROLE()': FunctionFragment;
|
|
25
|
+
'WITHDRAW_ROLE()': FunctionFragment;
|
|
26
|
+
'createPolicy(bytes16,address,uint16,uint32,uint32)': FunctionFragment;
|
|
27
|
+
'feeRate()': FunctionFragment;
|
|
28
|
+
'getPolicy(bytes16)': FunctionFragment;
|
|
29
|
+
'getPolicyCost(uint16,uint32,uint32)': FunctionFragment;
|
|
30
|
+
'getRoleAdmin(bytes32)': FunctionFragment;
|
|
31
|
+
'grantRole(bytes32,address)': FunctionFragment;
|
|
32
|
+
'hasRole(bytes32,address)': FunctionFragment;
|
|
33
|
+
'initialize(uint256)': FunctionFragment;
|
|
34
|
+
'isPolicyActive(bytes16)': FunctionFragment;
|
|
35
|
+
'renounceRole(bytes32,address)': FunctionFragment;
|
|
36
|
+
'revokeRole(bytes32,address)': FunctionFragment;
|
|
37
|
+
'setFeeRate(uint256)': FunctionFragment;
|
|
38
|
+
'supportsInterface(bytes4)': FunctionFragment;
|
|
39
|
+
'sweep(address)': FunctionFragment;
|
|
40
40
|
};
|
|
41
|
-
getFunction(nameOrSignatureOrTopic:
|
|
42
|
-
encodeFunctionData(functionFragment:
|
|
43
|
-
encodeFunctionData(functionFragment:
|
|
44
|
-
encodeFunctionData(functionFragment:
|
|
45
|
-
encodeFunctionData(functionFragment:
|
|
46
|
-
encodeFunctionData(functionFragment:
|
|
47
|
-
encodeFunctionData(functionFragment:
|
|
48
|
-
encodeFunctionData(functionFragment:
|
|
49
|
-
encodeFunctionData(functionFragment:
|
|
50
|
-
encodeFunctionData(functionFragment:
|
|
51
|
-
encodeFunctionData(functionFragment:
|
|
52
|
-
encodeFunctionData(functionFragment:
|
|
53
|
-
encodeFunctionData(functionFragment:
|
|
54
|
-
encodeFunctionData(functionFragment:
|
|
55
|
-
encodeFunctionData(functionFragment:
|
|
56
|
-
encodeFunctionData(functionFragment:
|
|
57
|
-
encodeFunctionData(functionFragment:
|
|
58
|
-
encodeFunctionData(functionFragment:
|
|
59
|
-
decodeFunctionResult(functionFragment:
|
|
60
|
-
decodeFunctionResult(functionFragment:
|
|
61
|
-
decodeFunctionResult(functionFragment:
|
|
62
|
-
decodeFunctionResult(functionFragment:
|
|
63
|
-
decodeFunctionResult(functionFragment:
|
|
64
|
-
decodeFunctionResult(functionFragment:
|
|
65
|
-
decodeFunctionResult(functionFragment:
|
|
66
|
-
decodeFunctionResult(functionFragment:
|
|
67
|
-
decodeFunctionResult(functionFragment:
|
|
68
|
-
decodeFunctionResult(functionFragment:
|
|
69
|
-
decodeFunctionResult(functionFragment:
|
|
70
|
-
decodeFunctionResult(functionFragment:
|
|
71
|
-
decodeFunctionResult(functionFragment:
|
|
72
|
-
decodeFunctionResult(functionFragment:
|
|
73
|
-
decodeFunctionResult(functionFragment:
|
|
74
|
-
decodeFunctionResult(functionFragment:
|
|
75
|
-
decodeFunctionResult(functionFragment:
|
|
41
|
+
getFunction(nameOrSignatureOrTopic: 'DEFAULT_ADMIN_ROLE' | 'SET_RATE_ROLE' | 'WITHDRAW_ROLE' | 'createPolicy' | 'feeRate' | 'getPolicy' | 'getPolicyCost' | 'getRoleAdmin' | 'grantRole' | 'hasRole' | 'initialize' | 'isPolicyActive' | 'renounceRole' | 'revokeRole' | 'setFeeRate' | 'supportsInterface' | 'sweep'): FunctionFragment;
|
|
42
|
+
encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: 'SET_RATE_ROLE', values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: 'WITHDRAW_ROLE', values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: 'createPolicy', values: [BytesLike, string, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
46
|
+
encodeFunctionData(functionFragment: 'feeRate', values?: undefined): string;
|
|
47
|
+
encodeFunctionData(functionFragment: 'getPolicy', values: [BytesLike]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: 'getPolicyCost', values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: 'getRoleAdmin', values: [BytesLike]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: 'grantRole', values: [BytesLike, string]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: 'hasRole', values: [BytesLike, string]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: 'initialize', values: [BigNumberish]): string;
|
|
53
|
+
encodeFunctionData(functionFragment: 'isPolicyActive', values: [BytesLike]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: 'renounceRole', values: [BytesLike, string]): string;
|
|
55
|
+
encodeFunctionData(functionFragment: 'revokeRole', values: [BytesLike, string]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: 'setFeeRate', values: [BigNumberish]): string;
|
|
57
|
+
encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string;
|
|
58
|
+
encodeFunctionData(functionFragment: 'sweep', values: [string]): string;
|
|
59
|
+
decodeFunctionResult(functionFragment: 'DEFAULT_ADMIN_ROLE', data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: 'SET_RATE_ROLE', data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: 'WITHDRAW_ROLE', data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: 'createPolicy', data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: 'feeRate', data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: 'getPolicy', data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: 'getPolicyCost', data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: 'getRoleAdmin', data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: 'isPolicyActive', data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: 'setFeeRate', data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: 'sweep', data: BytesLike): Result;
|
|
76
76
|
events: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
'FeeRateUpdated(uint256,uint256)': EventFragment;
|
|
78
|
+
'PolicyCreated(bytes16,address,address,uint16,uint32,uint32,uint256)': EventFragment;
|
|
79
|
+
'RoleAdminChanged(bytes32,bytes32,bytes32)': EventFragment;
|
|
80
|
+
'RoleGranted(bytes32,address,address)': EventFragment;
|
|
81
|
+
'RoleRevoked(bytes32,address,address)': EventFragment;
|
|
82
82
|
};
|
|
83
|
-
getEvent(nameOrSignatureOrTopic:
|
|
84
|
-
getEvent(nameOrSignatureOrTopic:
|
|
85
|
-
getEvent(nameOrSignatureOrTopic:
|
|
86
|
-
getEvent(nameOrSignatureOrTopic:
|
|
87
|
-
getEvent(nameOrSignatureOrTopic:
|
|
83
|
+
getEvent(nameOrSignatureOrTopic: 'FeeRateUpdated'): EventFragment;
|
|
84
|
+
getEvent(nameOrSignatureOrTopic: 'PolicyCreated'): EventFragment;
|
|
85
|
+
getEvent(nameOrSignatureOrTopic: 'RoleAdminChanged'): EventFragment;
|
|
86
|
+
getEvent(nameOrSignatureOrTopic: 'RoleGranted'): EventFragment;
|
|
87
|
+
getEvent(nameOrSignatureOrTopic: 'RoleRevoked'): EventFragment;
|
|
88
88
|
}
|
|
89
89
|
export interface FeeRateUpdatedEventObject {
|
|
90
90
|
oldFeeRate: BigNumber;
|
|
@@ -245,15 +245,15 @@ export interface SubscriptionManager extends BaseContract {
|
|
|
245
245
|
sweep(recipient: string, overrides?: CallOverrides): Promise<void>;
|
|
246
246
|
};
|
|
247
247
|
filters: {
|
|
248
|
-
|
|
248
|
+
'FeeRateUpdated(uint256,uint256)'(oldFeeRate?: null, newFeeRate?: null): FeeRateUpdatedEventFilter;
|
|
249
249
|
FeeRateUpdated(oldFeeRate?: null, newFeeRate?: null): FeeRateUpdatedEventFilter;
|
|
250
|
-
|
|
250
|
+
'PolicyCreated(bytes16,address,address,uint16,uint32,uint32,uint256)'(policyId?: BytesLike | null, sponsor?: string | null, owner?: string | null, size?: null, startTimestamp?: null, endTimestamp?: null, cost?: null): PolicyCreatedEventFilter;
|
|
251
251
|
PolicyCreated(policyId?: BytesLike | null, sponsor?: string | null, owner?: string | null, size?: null, startTimestamp?: null, endTimestamp?: null, cost?: null): PolicyCreatedEventFilter;
|
|
252
|
-
|
|
252
|
+
'RoleAdminChanged(bytes32,bytes32,bytes32)'(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter;
|
|
253
253
|
RoleAdminChanged(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter;
|
|
254
|
-
|
|
254
|
+
'RoleGranted(bytes32,address,address)'(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter;
|
|
255
255
|
RoleGranted(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter;
|
|
256
|
-
|
|
256
|
+
'RoleRevoked(bytes32,address,address)'(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter;
|
|
257
257
|
RoleRevoked(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter;
|
|
258
258
|
};
|
|
259
259
|
estimateGas: {
|
|
@@ -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";
|