@snowbridge/contract-types 0.1.2 → 0.1.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,323 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WETH9__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "receive",
11
+ stateMutability: "payable",
12
+ },
13
+ {
14
+ type: "function",
15
+ name: "allowance",
16
+ inputs: [
17
+ {
18
+ name: "",
19
+ type: "address",
20
+ internalType: "address",
21
+ },
22
+ {
23
+ name: "",
24
+ type: "address",
25
+ internalType: "address",
26
+ },
27
+ ],
28
+ outputs: [
29
+ {
30
+ name: "",
31
+ type: "uint256",
32
+ internalType: "uint256",
33
+ },
34
+ ],
35
+ stateMutability: "view",
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "approve",
40
+ inputs: [
41
+ {
42
+ name: "guy",
43
+ type: "address",
44
+ internalType: "address",
45
+ },
46
+ {
47
+ name: "wad",
48
+ type: "uint256",
49
+ internalType: "uint256",
50
+ },
51
+ ],
52
+ outputs: [
53
+ {
54
+ name: "",
55
+ type: "bool",
56
+ internalType: "bool",
57
+ },
58
+ ],
59
+ stateMutability: "nonpayable",
60
+ },
61
+ {
62
+ type: "function",
63
+ name: "balanceOf",
64
+ inputs: [
65
+ {
66
+ name: "",
67
+ type: "address",
68
+ internalType: "address",
69
+ },
70
+ ],
71
+ outputs: [
72
+ {
73
+ name: "",
74
+ type: "uint256",
75
+ internalType: "uint256",
76
+ },
77
+ ],
78
+ stateMutability: "view",
79
+ },
80
+ {
81
+ type: "function",
82
+ name: "decimals",
83
+ inputs: [],
84
+ outputs: [
85
+ {
86
+ name: "",
87
+ type: "uint8",
88
+ internalType: "uint8",
89
+ },
90
+ ],
91
+ stateMutability: "view",
92
+ },
93
+ {
94
+ type: "function",
95
+ name: "deposit",
96
+ inputs: [],
97
+ outputs: [],
98
+ stateMutability: "payable",
99
+ },
100
+ {
101
+ type: "function",
102
+ name: "name",
103
+ inputs: [],
104
+ outputs: [
105
+ {
106
+ name: "",
107
+ type: "string",
108
+ internalType: "string",
109
+ },
110
+ ],
111
+ stateMutability: "view",
112
+ },
113
+ {
114
+ type: "function",
115
+ name: "symbol",
116
+ inputs: [],
117
+ outputs: [
118
+ {
119
+ name: "",
120
+ type: "string",
121
+ internalType: "string",
122
+ },
123
+ ],
124
+ stateMutability: "view",
125
+ },
126
+ {
127
+ type: "function",
128
+ name: "totalSupply",
129
+ inputs: [],
130
+ outputs: [
131
+ {
132
+ name: "",
133
+ type: "uint256",
134
+ internalType: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "view",
138
+ },
139
+ {
140
+ type: "function",
141
+ name: "transfer",
142
+ inputs: [
143
+ {
144
+ name: "dst",
145
+ type: "address",
146
+ internalType: "address",
147
+ },
148
+ {
149
+ name: "wad",
150
+ type: "uint256",
151
+ internalType: "uint256",
152
+ },
153
+ ],
154
+ outputs: [
155
+ {
156
+ name: "",
157
+ type: "bool",
158
+ internalType: "bool",
159
+ },
160
+ ],
161
+ stateMutability: "nonpayable",
162
+ },
163
+ {
164
+ type: "function",
165
+ name: "transferFrom",
166
+ inputs: [
167
+ {
168
+ name: "src",
169
+ type: "address",
170
+ internalType: "address",
171
+ },
172
+ {
173
+ name: "dst",
174
+ type: "address",
175
+ internalType: "address",
176
+ },
177
+ {
178
+ name: "wad",
179
+ type: "uint256",
180
+ internalType: "uint256",
181
+ },
182
+ ],
183
+ outputs: [
184
+ {
185
+ name: "",
186
+ type: "bool",
187
+ internalType: "bool",
188
+ },
189
+ ],
190
+ stateMutability: "nonpayable",
191
+ },
192
+ {
193
+ type: "function",
194
+ name: "withdraw",
195
+ inputs: [
196
+ {
197
+ name: "wad",
198
+ type: "uint256",
199
+ internalType: "uint256",
200
+ },
201
+ ],
202
+ outputs: [],
203
+ stateMutability: "nonpayable",
204
+ },
205
+ {
206
+ type: "event",
207
+ name: "Approval",
208
+ inputs: [
209
+ {
210
+ name: "src",
211
+ type: "address",
212
+ indexed: true,
213
+ internalType: "address",
214
+ },
215
+ {
216
+ name: "guy",
217
+ type: "address",
218
+ indexed: true,
219
+ internalType: "address",
220
+ },
221
+ {
222
+ name: "wad",
223
+ type: "uint256",
224
+ indexed: false,
225
+ internalType: "uint256",
226
+ },
227
+ ],
228
+ anonymous: false,
229
+ },
230
+ {
231
+ type: "event",
232
+ name: "Deposit",
233
+ inputs: [
234
+ {
235
+ name: "dst",
236
+ type: "address",
237
+ indexed: true,
238
+ internalType: "address",
239
+ },
240
+ {
241
+ name: "wad",
242
+ type: "uint256",
243
+ indexed: false,
244
+ internalType: "uint256",
245
+ },
246
+ ],
247
+ anonymous: false,
248
+ },
249
+ {
250
+ type: "event",
251
+ name: "Transfer",
252
+ inputs: [
253
+ {
254
+ name: "src",
255
+ type: "address",
256
+ indexed: true,
257
+ internalType: "address",
258
+ },
259
+ {
260
+ name: "dst",
261
+ type: "address",
262
+ indexed: true,
263
+ internalType: "address",
264
+ },
265
+ {
266
+ name: "wad",
267
+ type: "uint256",
268
+ indexed: false,
269
+ internalType: "uint256",
270
+ },
271
+ ],
272
+ anonymous: false,
273
+ },
274
+ {
275
+ type: "event",
276
+ name: "Withdrawal",
277
+ inputs: [
278
+ {
279
+ name: "src",
280
+ type: "address",
281
+ indexed: true,
282
+ internalType: "address",
283
+ },
284
+ {
285
+ name: "wad",
286
+ type: "uint256",
287
+ indexed: false,
288
+ internalType: "uint256",
289
+ },
290
+ ],
291
+ anonymous: false,
292
+ },
293
+ ];
294
+ const _bytecode = "0x6080604052346100cb57600061001581546100d0565b601f81116100a1575b50601a6c2bb930b83832b21022ba3432b960991b0181556001906100436001546100d0565b90601f8211610077575b6008630ae8aa8960e31b016001556002805460ff191660121790556040516108d8908161010b8239f35b60018152601f60208220920160051c8201915b828110610097575061004d565b818155830161008a565b818052601f60208320910160051c8101905b8181106100c0575061001e565b8281556001016100b3565b600080fd5b90600182811c92168015610100575b60208310146100ea57565b634e487b7160e01b600052602260045260246000fd5b91607f16916100df56fe60806040818152600480361015610029575b505050361561001f57600080fd5b610027610859565b005b600092833560e01c90816306fdde03146104f257508063095ea7b31461047657806318160ddd1461045b57806323b872dd146104295780632e1a7d4d14610397578063313ce5671461037557806370a082311461033157806395d89b4114610154578063a9059cbb1461011d578063d0e30db0146101035763dd62ed3e0361001157346100ff57816003193601126100ff5760209282916100c8610679565b6100d06106a1565b9173ffffffffffffffffffffffffffffffffffffffff8092168452865283832091168252845220549051908152f35b8280fd5b838060031936011261011a57610117610859565b80f35b80fd5b50503461015057806003193601126101505760209061014761013d610679565b602435903361070d565b90519015158152f35b5080fd5b509190346101505781600319360112610150578051908260018054908160011c9060018316928315610327575b60209384841081146102fb5783885287959493929181156102a05750600114610223575b50505003601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019267ffffffffffffffff8411838510176101f757508291826101f3925282610613565b0390f35b806041867f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b600188529193925086917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b82841061028a57505050907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe092601f928201019181936101a5565b805488850187015287945092850192810161024f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016848701525050151560051b830101905081601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06101a5565b60248960228c7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b91607f1691610181565b505034610150576020600319360112610150578060209273ffffffffffffffffffffffffffffffffffffffff610365610679565b1681526003845220549051908152f35b50503461015057816003193601126101505760209060ff600254169051908152f35b50346100ff5760206003193601126100ff5735903383526003602052808320805483811061042557836103c9916106c4565b9055828083801561041b575b8280929181923390f11561041057519081527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6560203392a280f35b51913d9150823e3d90fd5b6108fc91506103d5565b8480fd5b5050346101505760606003193601126101505760209061014761044a610679565b6104526106a1565b6044359161070d565b50503461015057816003193601126101505751478152602090f35b50346100ff57816003193601126100ff57602092610492610679565b9183602435928392338252875273ffffffffffffffffffffffffffffffffffffffff8282209516948582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b84915083346100ff57826003193601126100ff5782835460018160011c9060018316928315610609575b60209384841081146102fb5783885287959493929181156102a0575060011461058d5750505003601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019267ffffffffffffffff8411838510176101f757508291826101f3925282610613565b8780529193925086917f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106105f357505050907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe092601f928201019181936101a5565b80548885018701528794509285019281016105b8565b91607f169161051c565b60208082528251818301819052939260005b858110610665575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b818101830151848201604001528201610625565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361069c57565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361069c57565b919082039182116106d157565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b919082018092116106d157565b91909173ffffffffffffffffffffffffffffffffffffffff809116916000938385526020926003845260409183838820541061081c573386141580610820575b6107b1575b9180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9594938789526003865282892061078e8682546106c4565b9055169687815260038552206107a5838254610700565b905551908152a3600190565b85875260048552828720338852855283838820541061081c579180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95949387895260048652828920338a52865282892061080e8682546106c4565b905591509192939450610752565b8680fd5b506004855282872033885285527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83882054141561074d565b3360005260036020526040600020610872348254610700565b90556040513481527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a256fea2646970667358221220fff724ce99a8dc98c8a38838ac7db0f81faf809bcc52e4c70f12f14487255b5064736f6c63430008170033";
295
+ const isSuperArgs = (xs) => xs.length > 1;
296
+ class WETH9__factory extends ethers_1.ContractFactory {
297
+ constructor(...args) {
298
+ if (isSuperArgs(args)) {
299
+ super(...args);
300
+ }
301
+ else {
302
+ super(_abi, _bytecode, args[0]);
303
+ }
304
+ }
305
+ getDeployTransaction(overrides) {
306
+ return super.getDeployTransaction(overrides || {});
307
+ }
308
+ deploy(overrides) {
309
+ return super.deploy(overrides || {});
310
+ }
311
+ connect(runner) {
312
+ return super.connect(runner);
313
+ }
314
+ static createInterface() {
315
+ return new ethers_1.Interface(_abi);
316
+ }
317
+ static connect(address, runner) {
318
+ return new ethers_1.Contract(address, _abi, runner);
319
+ }
320
+ }
321
+ exports.WETH9__factory = WETH9__factory;
322
+ WETH9__factory.bytecode = _bytecode;
323
+ WETH9__factory.abi = _abi;
@@ -1,4 +1,6 @@
1
1
  export { BeefyClient__factory } from "./BeefyClient__factory";
2
2
  export { IERC20__factory } from "./IERC20__factory";
3
+ export { IERC20Metadata__factory } from "./IERC20Metadata__factory";
3
4
  export { IGateway__factory } from "./IGateway__factory";
5
+ export { WETH9__factory } from "./WETH9__factory";
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IGateway__factory = exports.IERC20__factory = exports.BeefyClient__factory = void 0;
3
+ exports.WETH9__factory = exports.IGateway__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.BeefyClient__factory = void 0;
4
4
  /* Autogenerated file. Do not edit manually. */
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
@@ -8,5 +8,9 @@ var BeefyClient__factory_1 = require("./BeefyClient__factory");
8
8
  Object.defineProperty(exports, "BeefyClient__factory", { enumerable: true, get: function () { return BeefyClient__factory_1.BeefyClient__factory; } });
9
9
  var IERC20__factory_1 = require("./IERC20__factory");
10
10
  Object.defineProperty(exports, "IERC20__factory", { enumerable: true, get: function () { return IERC20__factory_1.IERC20__factory; } });
11
+ var IERC20Metadata__factory_1 = require("./IERC20Metadata__factory");
12
+ Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
11
13
  var IGateway__factory_1 = require("./IGateway__factory");
12
14
  Object.defineProperty(exports, "IGateway__factory", { enumerable: true, get: function () { return IGateway__factory_1.IGateway__factory; } });
15
+ var WETH9__factory_1 = require("./WETH9__factory");
16
+ Object.defineProperty(exports, "WETH9__factory", { enumerable: true, get: function () { return WETH9__factory_1.WETH9__factory; } });
package/dist/index.d.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  export type { BeefyClient } from "./BeefyClient";
2
2
  export type { IERC20 } from "./IERC20";
3
+ export type { IERC20Metadata } from "./IERC20Metadata";
3
4
  export type { IGateway } from "./IGateway";
5
+ export type { WETH9 } from "./WETH9";
4
6
  export * as factories from "./factories";
5
7
  export { BeefyClient__factory } from "./factories/BeefyClient__factory";
6
8
  export { IERC20__factory } from "./factories/IERC20__factory";
9
+ export { IERC20Metadata__factory } from "./factories/IERC20Metadata__factory";
7
10
  export { IGateway__factory } from "./factories/IGateway__factory";
11
+ export { WETH9__factory } from "./factories/WETH9__factory";
8
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -23,11 +23,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.IGateway__factory = exports.IERC20__factory = exports.BeefyClient__factory = exports.factories = void 0;
26
+ exports.WETH9__factory = exports.IGateway__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.BeefyClient__factory = exports.factories = void 0;
27
27
  exports.factories = __importStar(require("./factories"));
28
28
  var BeefyClient__factory_1 = require("./factories/BeefyClient__factory");
29
29
  Object.defineProperty(exports, "BeefyClient__factory", { enumerable: true, get: function () { return BeefyClient__factory_1.BeefyClient__factory; } });
30
30
  var IERC20__factory_1 = require("./factories/IERC20__factory");
31
31
  Object.defineProperty(exports, "IERC20__factory", { enumerable: true, get: function () { return IERC20__factory_1.IERC20__factory; } });
32
+ var IERC20Metadata__factory_1 = require("./factories/IERC20Metadata__factory");
33
+ Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
32
34
  var IGateway__factory_1 = require("./factories/IGateway__factory");
33
35
  Object.defineProperty(exports, "IGateway__factory", { enumerable: true, get: function () { return IGateway__factory_1.IGateway__factory; } });
36
+ var WETH9__factory_1 = require("./factories/WETH9__factory");
37
+ Object.defineProperty(exports, "WETH9__factory", { enumerable: true, get: function () { return WETH9__factory_1.WETH9__factory; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowbridge/contract-types",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Snowbridge contract type bindings",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -18,10 +18,10 @@
18
18
  "typescript": "^5.4.5"
19
19
  },
20
20
  "dependencies": {
21
- "ethers": "^6.11.1"
21
+ "ethers": "^6.12.1"
22
22
  },
23
23
  "scripts": {
24
24
  "build": "tsc",
25
- "typechain": "typechain --target ethers-v6 '../../../contracts/out/?(IERC20.sol|IGateway.sol|BeefyClient.sol)/!(*.abi).json' --out-dir src"
25
+ "typechain": "typechain --target ethers-v6 '../../../contracts/out/?(IERC20.sol|IERC20Metadata.sol|IGateway.sol|BeefyClient.sol|WETH9.sol)/!(*.abi).json' --out-dir src"
26
26
  }
27
27
  }