@instadapp/avocado-base 0.0.1 → 0.0.3

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.
@@ -0,0 +1,181 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ AvoFactoryProxy,
9
+ AvoFactoryProxyInterface,
10
+ } from "../AvoFactoryProxy";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "contract IAvoVersionsRegistry",
17
+ name: "avoVersionsRegistry_",
18
+ type: "address",
19
+ },
20
+ ],
21
+ stateMutability: "nonpayable",
22
+ type: "constructor",
23
+ },
24
+ {
25
+ inputs: [],
26
+ name: "AvoFactory__InvalidParams",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "AvoFactory__NotEOA",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "AvoFactory__Unauthorized",
37
+ type: "error",
38
+ },
39
+ {
40
+ anonymous: false,
41
+ inputs: [
42
+ {
43
+ indexed: true,
44
+ internalType: "address",
45
+ name: "owner",
46
+ type: "address",
47
+ },
48
+ {
49
+ indexed: true,
50
+ internalType: "address",
51
+ name: "avoSafe",
52
+ type: "address",
53
+ },
54
+ ],
55
+ name: "AvoSafeDeployed",
56
+ type: "event",
57
+ },
58
+ {
59
+ anonymous: false,
60
+ inputs: [
61
+ {
62
+ indexed: false,
63
+ internalType: "uint8",
64
+ name: "version",
65
+ type: "uint8",
66
+ },
67
+ ],
68
+ name: "Initialized",
69
+ type: "event",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "avoSafeBytecode",
74
+ outputs: [
75
+ {
76
+ internalType: "bytes32",
77
+ name: "",
78
+ type: "bytes32",
79
+ },
80
+ ],
81
+ stateMutability: "view",
82
+ type: "function",
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "avoVersionsRegistry",
87
+ outputs: [
88
+ {
89
+ internalType: "contract IAvoVersionsRegistry",
90
+ name: "",
91
+ type: "address",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: "avoWalletImpl",
100
+ outputs: [
101
+ {
102
+ internalType: "address",
103
+ name: "",
104
+ type: "address",
105
+ },
106
+ ],
107
+ stateMutability: "view",
108
+ type: "function",
109
+ },
110
+ {
111
+ inputs: [
112
+ {
113
+ internalType: "address",
114
+ name: "owner_",
115
+ type: "address",
116
+ },
117
+ ],
118
+ name: "computeAddress",
119
+ outputs: [
120
+ {
121
+ internalType: "address",
122
+ name: "",
123
+ type: "address",
124
+ },
125
+ ],
126
+ stateMutability: "view",
127
+ type: "function",
128
+ },
129
+ {
130
+ inputs: [
131
+ {
132
+ internalType: "address",
133
+ name: "owner_",
134
+ type: "address",
135
+ },
136
+ ],
137
+ name: "deploy",
138
+ outputs: [
139
+ {
140
+ internalType: "address",
141
+ name: "",
142
+ type: "address",
143
+ },
144
+ ],
145
+ stateMutability: "nonpayable",
146
+ type: "function",
147
+ },
148
+ {
149
+ inputs: [],
150
+ name: "initialize",
151
+ outputs: [],
152
+ stateMutability: "nonpayable",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [
157
+ {
158
+ internalType: "address",
159
+ name: "avoWalletImpl_",
160
+ type: "address",
161
+ },
162
+ ],
163
+ name: "setAvoWalletImpl",
164
+ outputs: [],
165
+ stateMutability: "nonpayable",
166
+ type: "function",
167
+ },
168
+ ] as const;
169
+
170
+ export class AvoFactoryProxy__factory {
171
+ static readonly abi = _abi;
172
+ static createInterface(): AvoFactoryProxyInterface {
173
+ return new utils.Interface(_abi) as AvoFactoryProxyInterface;
174
+ }
175
+ static connect(
176
+ address: string,
177
+ signerOrProvider: Signer | Provider
178
+ ): AvoFactoryProxy {
179
+ return new Contract(address, _abi, signerOrProvider) as AvoFactoryProxy;
180
+ }
181
+ }
@@ -0,0 +1,212 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ BalanceResolver,
9
+ BalanceResolverInterface,
10
+ } from "../BalanceResolver";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "owner",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "spender",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "address[]",
27
+ name: "tknAddress",
28
+ type: "address[]",
29
+ },
30
+ ],
31
+ name: "getAllowances",
32
+ outputs: [
33
+ {
34
+ internalType: "uint256[]",
35
+ name: "",
36
+ type: "uint256[]",
37
+ },
38
+ ],
39
+ stateMutability: "view",
40
+ type: "function",
41
+ },
42
+ {
43
+ inputs: [
44
+ {
45
+ internalType: "address",
46
+ name: "owner",
47
+ type: "address",
48
+ },
49
+ {
50
+ internalType: "address[]",
51
+ name: "tknAddress",
52
+ type: "address[]",
53
+ },
54
+ ],
55
+ name: "getBalances",
56
+ outputs: [
57
+ {
58
+ internalType: "uint256[]",
59
+ name: "",
60
+ type: "uint256[]",
61
+ },
62
+ ],
63
+ stateMutability: "view",
64
+ type: "function",
65
+ },
66
+ {
67
+ inputs: [
68
+ {
69
+ internalType: "address[]",
70
+ name: "owners",
71
+ type: "address[]",
72
+ },
73
+ {
74
+ internalType: "address[]",
75
+ name: "tokens",
76
+ type: "address[]",
77
+ },
78
+ ],
79
+ name: "getBalancesOfOwners",
80
+ outputs: [
81
+ {
82
+ components: [
83
+ {
84
+ internalType: "address",
85
+ name: "owner",
86
+ type: "address",
87
+ },
88
+ {
89
+ internalType: "uint256[]",
90
+ name: "balances",
91
+ type: "uint256[]",
92
+ },
93
+ ],
94
+ internalType: "struct Resolver.BalanceReturnData[]",
95
+ name: "",
96
+ type: "tuple[]",
97
+ },
98
+ ],
99
+ stateMutability: "view",
100
+ type: "function",
101
+ },
102
+ {
103
+ inputs: [
104
+ {
105
+ components: [
106
+ {
107
+ internalType: "address",
108
+ name: "owner",
109
+ type: "address",
110
+ },
111
+ {
112
+ internalType: "address[]",
113
+ name: "tokens",
114
+ type: "address[]",
115
+ },
116
+ ],
117
+ internalType: "struct Resolver.BalanceData[]",
118
+ name: "datas",
119
+ type: "tuple[]",
120
+ },
121
+ ],
122
+ name: "getBalancesOfOwnersWithTokens",
123
+ outputs: [
124
+ {
125
+ components: [
126
+ {
127
+ internalType: "address",
128
+ name: "owner",
129
+ type: "address",
130
+ },
131
+ {
132
+ internalType: "uint256[]",
133
+ name: "balances",
134
+ type: "uint256[]",
135
+ },
136
+ ],
137
+ internalType: "struct Resolver.BalanceReturnData[]",
138
+ name: "",
139
+ type: "tuple[]",
140
+ },
141
+ ],
142
+ stateMutability: "view",
143
+ type: "function",
144
+ },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "address[]",
149
+ name: "tknAddress",
150
+ type: "address[]",
151
+ },
152
+ ],
153
+ name: "getTokenDetails",
154
+ outputs: [
155
+ {
156
+ components: [
157
+ {
158
+ internalType: "bool",
159
+ name: "isToken",
160
+ type: "bool",
161
+ },
162
+ {
163
+ internalType: "string",
164
+ name: "name",
165
+ type: "string",
166
+ },
167
+ {
168
+ internalType: "string",
169
+ name: "symbol",
170
+ type: "string",
171
+ },
172
+ {
173
+ internalType: "uint256",
174
+ name: "decimals",
175
+ type: "uint256",
176
+ },
177
+ ],
178
+ internalType: "struct Resolver.TokenData[]",
179
+ name: "",
180
+ type: "tuple[]",
181
+ },
182
+ ],
183
+ stateMutability: "view",
184
+ type: "function",
185
+ },
186
+ {
187
+ inputs: [],
188
+ name: "name",
189
+ outputs: [
190
+ {
191
+ internalType: "string",
192
+ name: "",
193
+ type: "string",
194
+ },
195
+ ],
196
+ stateMutability: "view",
197
+ type: "function",
198
+ },
199
+ ] as const;
200
+
201
+ export class BalanceResolver__factory {
202
+ static readonly abi = _abi;
203
+ static createInterface(): BalanceResolverInterface {
204
+ return new utils.Interface(_abi) as BalanceResolverInterface;
205
+ }
206
+ static connect(
207
+ address: string,
208
+ signerOrProvider: Signer | Provider
209
+ ): BalanceResolver {
210
+ return new Contract(address, _abi, signerOrProvider) as BalanceResolver;
211
+ }
212
+ }