@lidofinance/lsv-cli 1.7.0 → 1.9.0
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 +9 -1
- package/dist/abi/defi-wrapper/GenericStrategy.d.ts +308 -0
- package/dist/abi/defi-wrapper/GenericStrategy.js +409 -0
- package/dist/abi/defi-wrapper/GenericStrategy.js.map +1 -0
- package/dist/abi/defi-wrapper/MellowStrategy.d.ts +429 -0
- package/dist/abi/defi-wrapper/MellowStrategy.js +892 -0
- package/dist/abi/defi-wrapper/MellowStrategy.js.map +1 -0
- package/dist/abi/defi-wrapper/index.d.ts +2 -0
- package/dist/abi/defi-wrapper/index.js +2 -0
- package/dist/abi/defi-wrapper/index.js.map +1 -1
- package/dist/abi/defi-wrapper/sources.d.ts +103 -0
- package/dist/abi/defi-wrapper/sources.js +104 -0
- package/dist/abi/defi-wrapper/sources.js.map +1 -0
- package/dist/configs/constants.d.ts +7 -1
- package/dist/configs/deployed.d.ts +5 -0
- package/dist/configs/deployed.js +20 -2
- package/dist/configs/deployed.js.map +1 -1
- package/dist/configs/envs.js +2 -0
- package/dist/configs/envs.js.map +1 -1
- package/dist/contracts/defi-wrapper/generic-strategy.d.ts +5 -0
- package/dist/contracts/defi-wrapper/generic-strategy.js +12 -0
- package/dist/contracts/defi-wrapper/generic-strategy.js.map +1 -0
- package/dist/contracts/defi-wrapper/index.d.ts +1 -0
- package/dist/contracts/defi-wrapper/index.js +1 -0
- package/dist/contracts/defi-wrapper/index.js.map +1 -1
- package/dist/features/defi-wrapper/defi-wrapper-factory.d.ts +3 -0
- package/dist/features/defi-wrapper/defi-wrapper-factory.js +4 -1
- package/dist/features/defi-wrapper/defi-wrapper-factory.js.map +1 -1
- package/dist/features/defi-wrapper/index.d.ts +1 -0
- package/dist/features/defi-wrapper/index.js +1 -0
- package/dist/features/defi-wrapper/index.js.map +1 -1
- package/dist/features/defi-wrapper/pool-info.d.ts +18 -1
- package/dist/features/defi-wrapper/pool-info.js +47 -3
- package/dist/features/defi-wrapper/pool-info.js.map +1 -1
- package/dist/features/defi-wrapper/timelock-roles.d.ts +5 -0
- package/dist/features/defi-wrapper/timelock-roles.js +43 -0
- package/dist/features/defi-wrapper/timelock-roles.js.map +1 -0
- package/dist/features/defi-wrapper/timelock.d.ts +8929 -8
- package/dist/features/defi-wrapper/timelock.js +83 -52
- package/dist/features/defi-wrapper/timelock.js.map +1 -1
- package/dist/features/defi-wrapper/verify-contracts.d.ts +20 -0
- package/dist/features/defi-wrapper/verify-contracts.js +145 -0
- package/dist/features/defi-wrapper/verify-contracts.js.map +1 -0
- package/dist/features/utils/try-fetch.js +2 -0
- package/dist/features/utils/try-fetch.js.map +1 -1
- package/dist/programs/account/write.js +2 -1
- package/dist/programs/account/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/factory/write.js +77 -6
- package/dist/programs/defi-wrapper/contracts/factory/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/index.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/index.js +1 -0
- package/dist/programs/defi-wrapper/contracts/index.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/strategy/config.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/strategy/config.js +40 -0
- package/dist/programs/defi-wrapper/contracts/strategy/config.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/index.d.ts +3 -0
- package/dist/programs/defi-wrapper/contracts/strategy/index.js +4 -0
- package/dist/programs/defi-wrapper/contracts/strategy/index.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/main.js +6 -0
- package/dist/programs/defi-wrapper/contracts/strategy/main.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/read.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/read.js +30 -0
- package/dist/programs/defi-wrapper/contracts/strategy/read.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/contracts/strategy/write.js +34 -0
- package/dist/programs/defi-wrapper/contracts/strategy/write.js.map +1 -0
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js +25 -21
- package/dist/programs/defi-wrapper/contracts/stv-steth-pool/write.js.map +1 -1
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js +3 -4
- package/dist/programs/defi-wrapper/contracts/withdrawal-queue/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js +1 -0
- package/dist/programs/defi-wrapper/use-cases/distributor/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js +25 -7
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/read.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js +195 -17
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/common/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/dashboard/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/index.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js +4 -4
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/pool/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js +3 -3
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/proxy/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.d.ts +2 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js +3 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/index.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js +6 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/main.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.d.ts +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js +57 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/strategy/write.js.map +1 -0
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js +4 -4
- package/dist/programs/defi-wrapper/use-cases/timelock-governance/withdrawal-queue/write.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js +32 -11
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/read.js.map +1 -1
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js +14 -12
- package/dist/programs/defi-wrapper/use-cases/wrapper-operations/write.js.map +1 -1
- package/dist/programs/use-cases/consolidation/write.js +2 -0
- package/dist/programs/use-cases/consolidation/write.js.map +1 -1
- package/dist/providers/wallet.d.ts +2936 -8456
- package/dist/providers/wallet.js +74 -2
- package/dist/providers/wallet.js.map +1 -1
- package/dist/tests/integration/gas-estimation.test.d.ts +1 -0
- package/dist/tests/integration/gas-estimation.test.js +76 -0
- package/dist/tests/integration/gas-estimation.test.js.map +1 -0
- package/dist/tests/integration/helpers/test-client.d.ts +2071 -5761
- package/dist/tests/utils/arguments-security.test.d.ts +1 -0
- package/dist/tests/utils/arguments-security.test.js +34 -0
- package/dist/tests/utils/arguments-security.test.js.map +1 -0
- package/dist/tests/utils/arguments.test.js +2 -20
- package/dist/tests/utils/arguments.test.js.map +1 -1
- package/dist/tests/utils/cache-security.test.d.ts +1 -0
- package/dist/tests/utils/cache-security.test.js +62 -0
- package/dist/tests/utils/cache-security.test.js.map +1 -0
- package/dist/tests/utils/contract-write-stateoverride.test.d.ts +1 -0
- package/dist/tests/utils/contract-write-stateoverride.test.js +135 -0
- package/dist/tests/utils/contract-write-stateoverride.test.js.map +1 -0
- package/dist/tests/utils/data-validators.test.js +21 -5
- package/dist/tests/utils/data-validators.test.js.map +1 -1
- package/dist/tests/utils/deployed-security.test.d.ts +1 -0
- package/dist/tests/utils/deployed-security.test.js +51 -0
- package/dist/tests/utils/deployed-security.test.js.map +1 -0
- package/dist/tests/utils/get-confirmations.test.d.ts +1 -0
- package/dist/tests/utils/get-confirmations.test.js +40 -0
- package/dist/tests/utils/get-confirmations.test.js.map +1 -0
- package/dist/tests/utils/ipfs-security.test.d.ts +1 -0
- package/dist/tests/utils/ipfs-security.test.js +232 -0
- package/dist/tests/utils/ipfs-security.test.js.map +1 -0
- package/dist/tests/utils/ipfs.test.js +8 -8
- package/dist/tests/utils/ipfs.test.js.map +1 -1
- package/dist/tests/utils/parse-abi-arguments.test.d.ts +1 -0
- package/dist/tests/utils/parse-abi-arguments.test.js +399 -0
- package/dist/tests/utils/parse-abi-arguments.test.js.map +1 -0
- package/dist/tests/utils/public-client-gas-estimation.test.d.ts +1 -0
- package/dist/tests/utils/public-client-gas-estimation.test.js +231 -0
- package/dist/tests/utils/public-client-gas-estimation.test.js.map +1 -0
- package/dist/tests/utils/rate-limit-security.test.d.ts +1 -0
- package/dist/tests/utils/rate-limit-security.test.js +82 -0
- package/dist/tests/utils/rate-limit-security.test.js.map +1 -0
- package/dist/tests/utils/salt.test.d.ts +1 -0
- package/dist/tests/utils/salt.test.js +20 -0
- package/dist/tests/utils/salt.test.js.map +1 -0
- package/dist/tests/utils/stream-helpers.d.ts +1 -0
- package/dist/tests/utils/stream-helpers.js +11 -0
- package/dist/tests/utils/stream-helpers.js.map +1 -0
- package/dist/utils/arguments.d.ts +2 -7
- package/dist/utils/arguments.js +21 -17
- package/dist/utils/arguments.js.map +1 -1
- package/dist/utils/cache.js +15 -13
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/data-validators.d.ts +3 -2
- package/dist/utils/data-validators.js +8 -11
- package/dist/utils/data-validators.js.map +1 -1
- package/dist/utils/env.d.ts +1 -0
- package/dist/utils/env.js +8 -0
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/fetch-cl.js +2 -1
- package/dist/utils/fetch-cl.js.map +1 -1
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.js +6 -5
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/ipfs.d.ts +4 -2
- package/dist/utils/ipfs.js +93 -11
- package/dist/utils/ipfs.js.map +1 -1
- package/dist/utils/logging/console.d.ts +1 -0
- package/dist/utils/logging/console.js +23 -2
- package/dist/utils/logging/console.js.map +1 -1
- package/dist/utils/parse-abi-arguments.d.ts +24 -0
- package/dist/utils/parse-abi-arguments.js +159 -0
- package/dist/utils/parse-abi-arguments.js.map +1 -0
- package/dist/utils/prompts/account.d.ts +1 -0
- package/dist/utils/prompts/account.js +13 -0
- package/dist/utils/prompts/account.js.map +1 -0
- package/dist/utils/prompts/index.d.ts +3 -0
- package/dist/utils/prompts/index.js +3 -0
- package/dist/utils/prompts/index.js.map +1 -1
- package/dist/utils/prompts/strategy.d.ts +15398 -0
- package/dist/utils/prompts/strategy.js +10 -0
- package/dist/utils/prompts/strategy.js.map +1 -0
- package/dist/utils/prompts/timelock-roles.d.ts +1 -0
- package/dist/utils/prompts/timelock-roles.js +13 -0
- package/dist/utils/prompts/timelock-roles.js.map +1 -0
- package/dist/utils/rate-limit.d.ts +6 -0
- package/dist/utils/rate-limit.js +22 -5
- package/dist/utils/rate-limit.js.map +1 -1
- package/dist/utils/salt.d.ts +3 -0
- package/dist/utils/salt.js +8 -0
- package/dist/utils/salt.js.map +1 -0
- package/dist/utils/transactions/tx-private-key.d.ts +2 -1
- package/dist/utils/transactions/tx-private-key.js +5 -8
- package/dist/utils/transactions/tx-private-key.js.map +1 -1
- package/dist/utils/transactions/tx-wc.js +3 -7
- package/dist/utils/transactions/tx-wc.js.map +1 -1
- package/dist/utils/transactions/utils.d.ts +1 -0
- package/dist/utils/transactions/utils.js +12 -0
- package/dist/utils/transactions/utils.js.map +1 -1
- package/dist/version/index.js +1 -1
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ For changes between versions see [Changelog](./CHANGELOG.md)
|
|
|
26
26
|
|
|
27
27
|
## Prerequisites
|
|
28
28
|
|
|
29
|
-
- **Node.js**: Ensure you have Node.js (
|
|
29
|
+
- **Node.js**: Ensure you have Node.js (v22 or later) installed.
|
|
30
30
|
- **Yarn**: Yarn package manager is required to install dependencies.
|
|
31
31
|
|
|
32
32
|
## Installation
|
|
@@ -78,6 +78,14 @@ PRIVATE_KEY=0x
|
|
|
78
78
|
# Note: WALLET_CONNECT_PROJECT_ID is NOT a secret. It is a public identifier
|
|
79
79
|
# of the application using WalletConnect.
|
|
80
80
|
WALLET_CONNECT_PROJECT_ID=ee928c025792b10a6daa97d85328c433
|
|
81
|
+
|
|
82
|
+
# IPFS (optional)
|
|
83
|
+
# Maximum size, in bytes, of content fetched from an IPFS gateway. Oversized
|
|
84
|
+
# objects are rejected before they are buffered into memory, guarding against
|
|
85
|
+
# out-of-memory DoS from a hostile or mistaken CID. Defaults to 20 MiB
|
|
86
|
+
# (20971520). Applications embedding the CLI as a package can also override
|
|
87
|
+
# this per call via the `maxBytes` argument of the fetch helpers.
|
|
88
|
+
# IPFS_MAX_CONTENT_BYTES=20971520
|
|
81
89
|
```
|
|
82
90
|
|
|
83
91
|
If you plan to manage contracts, **PRIVATE_KEY** (or an encrypted account file) is required for write operations.
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
export declare const GenericStrategyAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "ALLOW_LIST_ENABLED";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "bool";
|
|
8
|
+
readonly internalType: "bool";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "isAllowListed";
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "_user";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
readonly internalType: "address";
|
|
18
|
+
}];
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "bool";
|
|
22
|
+
readonly internalType: "bool";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "safeTransferERC20";
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly name: "_token";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "_recipient";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "_amount";
|
|
38
|
+
readonly type: "uint256";
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
}];
|
|
41
|
+
readonly outputs: readonly [];
|
|
42
|
+
readonly stateMutability: "nonpayable";
|
|
43
|
+
}, {
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly name: "STRATEGY_ID";
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly name: "";
|
|
49
|
+
readonly type: "bytes32";
|
|
50
|
+
readonly internalType: "bytes32";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly name: "WSTETH";
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly internalType: "contract IWstETH";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "burnWsteth";
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly name: "_wstethToBurn";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
}];
|
|
71
|
+
readonly outputs: readonly [];
|
|
72
|
+
readonly stateMutability: "nonpayable";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly name: "mintedStethSharesOf";
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly name: "_user";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
}];
|
|
81
|
+
readonly outputs: readonly [{
|
|
82
|
+
readonly name: "mintedStethShares";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
}];
|
|
86
|
+
readonly stateMutability: "view";
|
|
87
|
+
}, {
|
|
88
|
+
readonly type: "function";
|
|
89
|
+
readonly name: "requestWithdrawalFromPool";
|
|
90
|
+
readonly inputs: readonly [{
|
|
91
|
+
readonly name: "_recipient";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "_stvToWithdraw";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "_stethSharesToRebalance";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
}];
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "requestId";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
readonly internalType: "uint256";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "nonpayable";
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
readonly name: "supply";
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly name: "_referral";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "_wstethToMint";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "_params";
|
|
122
|
+
readonly type: "bytes";
|
|
123
|
+
readonly internalType: "bytes";
|
|
124
|
+
}];
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly name: "stv";
|
|
127
|
+
readonly type: "uint256";
|
|
128
|
+
readonly internalType: "uint256";
|
|
129
|
+
}];
|
|
130
|
+
readonly stateMutability: "payable";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "function";
|
|
133
|
+
readonly name: "wstethOf";
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly name: "_user";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
}];
|
|
139
|
+
readonly outputs: readonly [{
|
|
140
|
+
readonly name: "";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
}];
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
}, {
|
|
146
|
+
readonly type: "function";
|
|
147
|
+
readonly name: "getStrategyCallForwarderAddress";
|
|
148
|
+
readonly inputs: readonly [{
|
|
149
|
+
readonly name: "_user";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
readonly internalType: "address";
|
|
152
|
+
}];
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly name: "callForwarder";
|
|
155
|
+
readonly type: "address";
|
|
156
|
+
readonly internalType: "contract IStrategyCallForwarder";
|
|
157
|
+
}];
|
|
158
|
+
readonly stateMutability: "view";
|
|
159
|
+
}, {
|
|
160
|
+
readonly type: "error";
|
|
161
|
+
readonly name: "ZeroArgument";
|
|
162
|
+
readonly inputs: readonly [{
|
|
163
|
+
readonly name: "name";
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly internalType: "string";
|
|
166
|
+
}];
|
|
167
|
+
}, {
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly internalType: "bytes32";
|
|
172
|
+
readonly name: "";
|
|
173
|
+
readonly type: "bytes32";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
readonly name: "ALLOW_LIST_MANAGER_ROLE";
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly name: "";
|
|
183
|
+
readonly type: "bytes32";
|
|
184
|
+
readonly internalType: "bytes32";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "view";
|
|
187
|
+
}, {
|
|
188
|
+
readonly inputs: readonly [{
|
|
189
|
+
readonly internalType: "bytes32";
|
|
190
|
+
readonly name: "role";
|
|
191
|
+
readonly type: "bytes32";
|
|
192
|
+
}, {
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly name: "account";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
}];
|
|
197
|
+
readonly name: "grantRole";
|
|
198
|
+
readonly outputs: readonly [];
|
|
199
|
+
readonly stateMutability: "nonpayable";
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
}, {
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly internalType: "bytes32";
|
|
204
|
+
readonly name: "role";
|
|
205
|
+
readonly type: "bytes32";
|
|
206
|
+
}, {
|
|
207
|
+
readonly internalType: "address";
|
|
208
|
+
readonly name: "account";
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
}];
|
|
211
|
+
readonly name: "hasRole";
|
|
212
|
+
readonly outputs: readonly [{
|
|
213
|
+
readonly internalType: "bool";
|
|
214
|
+
readonly name: "";
|
|
215
|
+
readonly type: "bool";
|
|
216
|
+
}];
|
|
217
|
+
readonly stateMutability: "view";
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly internalType: "bytes32";
|
|
222
|
+
readonly name: "role";
|
|
223
|
+
readonly type: "bytes32";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "address";
|
|
226
|
+
readonly name: "callerConfirmation";
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
}];
|
|
229
|
+
readonly name: "renounceRole";
|
|
230
|
+
readonly outputs: readonly [];
|
|
231
|
+
readonly stateMutability: "nonpayable";
|
|
232
|
+
readonly type: "function";
|
|
233
|
+
}, {
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly internalType: "bytes32";
|
|
236
|
+
readonly name: "role";
|
|
237
|
+
readonly type: "bytes32";
|
|
238
|
+
}, {
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
readonly name: "account";
|
|
241
|
+
readonly type: "address";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "revokeRole";
|
|
244
|
+
readonly outputs: readonly [];
|
|
245
|
+
readonly stateMutability: "nonpayable";
|
|
246
|
+
readonly type: "function";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
readonly name: "getRoleAdmin";
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "role";
|
|
252
|
+
readonly type: "bytes32";
|
|
253
|
+
readonly internalType: "bytes32";
|
|
254
|
+
}];
|
|
255
|
+
readonly outputs: readonly [{
|
|
256
|
+
readonly name: "";
|
|
257
|
+
readonly type: "bytes32";
|
|
258
|
+
readonly internalType: "bytes32";
|
|
259
|
+
}];
|
|
260
|
+
readonly stateMutability: "view";
|
|
261
|
+
}, {
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
readonly name: "getRoleMember";
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly name: "role";
|
|
266
|
+
readonly type: "bytes32";
|
|
267
|
+
readonly internalType: "bytes32";
|
|
268
|
+
}, {
|
|
269
|
+
readonly name: "index";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
readonly internalType: "uint256";
|
|
272
|
+
}];
|
|
273
|
+
readonly outputs: readonly [{
|
|
274
|
+
readonly name: "";
|
|
275
|
+
readonly type: "address";
|
|
276
|
+
readonly internalType: "address";
|
|
277
|
+
}];
|
|
278
|
+
readonly stateMutability: "view";
|
|
279
|
+
}, {
|
|
280
|
+
readonly type: "function";
|
|
281
|
+
readonly name: "getRoleMemberCount";
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly name: "role";
|
|
284
|
+
readonly type: "bytes32";
|
|
285
|
+
readonly internalType: "bytes32";
|
|
286
|
+
}];
|
|
287
|
+
readonly outputs: readonly [{
|
|
288
|
+
readonly name: "";
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
readonly internalType: "uint256";
|
|
291
|
+
}];
|
|
292
|
+
readonly stateMutability: "view";
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "function";
|
|
295
|
+
readonly name: "getRoleMembers";
|
|
296
|
+
readonly inputs: readonly [{
|
|
297
|
+
readonly name: "role";
|
|
298
|
+
readonly type: "bytes32";
|
|
299
|
+
readonly internalType: "bytes32";
|
|
300
|
+
}];
|
|
301
|
+
readonly outputs: readonly [{
|
|
302
|
+
readonly name: "";
|
|
303
|
+
readonly type: "address[]";
|
|
304
|
+
readonly internalType: "address[]";
|
|
305
|
+
}];
|
|
306
|
+
readonly stateMutability: "view";
|
|
307
|
+
}];
|
|
308
|
+
export type GenericStrategyAbiType = typeof GenericStrategyAbi;
|