@snowbridge/contract-types 1.0.5 → 1.0.6

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.
Files changed (54) hide show
  1. package/.turbo/turbo-build.log +10 -0
  2. package/dist/BeefyClient.d.ts +78 -2
  3. package/dist/BeefyClient.d.ts.map +1 -1
  4. package/dist/IGateway.sol/IGatewayV1.d.ts +1 -9
  5. package/dist/IGateway.sol/IGatewayV1.d.ts.map +1 -1
  6. package/dist/ISwapLegacyRouter.d.ts +62 -0
  7. package/dist/ISwapLegacyRouter.d.ts.map +1 -0
  8. package/dist/ISwapLegacyRouter.js +2 -0
  9. package/dist/ISwapQuoter.d.ts +76 -0
  10. package/dist/ISwapQuoter.d.ts.map +1 -0
  11. package/dist/ISwapQuoter.js +2 -0
  12. package/dist/ISwapRouter.d.ts +65 -0
  13. package/dist/ISwapRouter.d.ts.map +1 -0
  14. package/dist/ISwapRouter.js +2 -0
  15. package/dist/SnowbridgeL1Adaptor.d.ts +116 -0
  16. package/dist/SnowbridgeL1Adaptor.d.ts.map +1 -0
  17. package/dist/SnowbridgeL1Adaptor.js +2 -0
  18. package/dist/SnowbridgeL2Adaptor.d.ts +160 -0
  19. package/dist/SnowbridgeL2Adaptor.d.ts.map +1 -0
  20. package/dist/SnowbridgeL2Adaptor.js +2 -0
  21. package/dist/factories/BeefyClient__factory.d.ts +242 -11
  22. package/dist/factories/BeefyClient__factory.d.ts.map +1 -1
  23. package/dist/factories/BeefyClient__factory.js +316 -15
  24. package/dist/factories/IGateway.sol/IGatewayV1__factory.d.ts +0 -20
  25. package/dist/factories/IGateway.sol/IGatewayV1__factory.d.ts.map +1 -1
  26. package/dist/factories/IGateway.sol/IGatewayV1__factory.js +0 -26
  27. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts +4 -0
  28. package/dist/factories/IGateway.sol/IGatewayV2__factory.d.ts.map +1 -1
  29. package/dist/factories/IGateway.sol/IGatewayV2__factory.js +5 -0
  30. package/dist/factories/ISwapLegacyRouter__factory.d.ts +51 -0
  31. package/dist/factories/ISwapLegacyRouter__factory.d.ts.map +1 -0
  32. package/dist/factories/ISwapLegacyRouter__factory.js +75 -0
  33. package/dist/factories/ISwapQuoter__factory.d.ts +55 -0
  34. package/dist/factories/ISwapQuoter__factory.d.ts.map +1 -0
  35. package/dist/factories/ISwapQuoter__factory.js +80 -0
  36. package/dist/factories/ISwapRouter__factory.d.ts +55 -0
  37. package/dist/factories/ISwapRouter__factory.d.ts.map +1 -0
  38. package/dist/factories/ISwapRouter__factory.js +80 -0
  39. package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts +177 -0
  40. package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts.map +1 -0
  41. package/dist/factories/SnowbridgeL1Adaptor__factory.js +238 -0
  42. package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts +276 -0
  43. package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts.map +1 -0
  44. package/dist/factories/SnowbridgeL2Adaptor__factory.js +365 -0
  45. package/dist/factories/WETH9__factory.d.ts +1 -1
  46. package/dist/factories/WETH9__factory.d.ts.map +1 -1
  47. package/dist/factories/WETH9__factory.js +1 -1
  48. package/dist/factories/index.d.ts +5 -0
  49. package/dist/factories/index.d.ts.map +1 -1
  50. package/dist/factories/index.js +11 -1
  51. package/dist/index.d.ts +10 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +11 -1
  54. package/package.json +9 -9
@@ -0,0 +1,51 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { ISwapLegacyRouter, ISwapLegacyRouterInterface } from "../ISwapLegacyRouter";
3
+ export declare class ISwapLegacyRouter__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "exactOutputSingle";
7
+ readonly inputs: readonly [{
8
+ readonly name: "params";
9
+ readonly type: "tuple";
10
+ readonly internalType: "struct ISwapLegacyRouter.ExactOutputSingleParams";
11
+ readonly components: readonly [{
12
+ readonly name: "tokenIn";
13
+ readonly type: "address";
14
+ readonly internalType: "address";
15
+ }, {
16
+ readonly name: "tokenOut";
17
+ readonly type: "address";
18
+ readonly internalType: "address";
19
+ }, {
20
+ readonly name: "fee";
21
+ readonly type: "uint24";
22
+ readonly internalType: "uint24";
23
+ }, {
24
+ readonly name: "recipient";
25
+ readonly type: "address";
26
+ readonly internalType: "address";
27
+ }, {
28
+ readonly name: "amountOut";
29
+ readonly type: "uint256";
30
+ readonly internalType: "uint256";
31
+ }, {
32
+ readonly name: "amountInMaximum";
33
+ readonly type: "uint256";
34
+ readonly internalType: "uint256";
35
+ }, {
36
+ readonly name: "sqrtPriceLimitX96";
37
+ readonly type: "uint160";
38
+ readonly internalType: "uint160";
39
+ }];
40
+ }];
41
+ readonly outputs: readonly [{
42
+ readonly name: "amountIn";
43
+ readonly type: "uint256";
44
+ readonly internalType: "uint256";
45
+ }];
46
+ readonly stateMutability: "nonpayable";
47
+ }];
48
+ static createInterface(): ISwapLegacyRouterInterface;
49
+ static connect(address: string, runner?: ContractRunner | null): ISwapLegacyRouter;
50
+ }
51
+ //# sourceMappingURL=ISwapLegacyRouter__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISwapLegacyRouter__factory.d.ts","sourceRoot":"","sources":["../../src/factories/ISwapLegacyRouter__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AA6D9B,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,0BAA0B;IAGpD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,iBAAiB;CAGrB"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ISwapLegacyRouter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "function",
11
+ name: "exactOutputSingle",
12
+ inputs: [
13
+ {
14
+ name: "params",
15
+ type: "tuple",
16
+ internalType: "struct ISwapLegacyRouter.ExactOutputSingleParams",
17
+ components: [
18
+ {
19
+ name: "tokenIn",
20
+ type: "address",
21
+ internalType: "address",
22
+ },
23
+ {
24
+ name: "tokenOut",
25
+ type: "address",
26
+ internalType: "address",
27
+ },
28
+ {
29
+ name: "fee",
30
+ type: "uint24",
31
+ internalType: "uint24",
32
+ },
33
+ {
34
+ name: "recipient",
35
+ type: "address",
36
+ internalType: "address",
37
+ },
38
+ {
39
+ name: "amountOut",
40
+ type: "uint256",
41
+ internalType: "uint256",
42
+ },
43
+ {
44
+ name: "amountInMaximum",
45
+ type: "uint256",
46
+ internalType: "uint256",
47
+ },
48
+ {
49
+ name: "sqrtPriceLimitX96",
50
+ type: "uint160",
51
+ internalType: "uint160",
52
+ },
53
+ ],
54
+ },
55
+ ],
56
+ outputs: [
57
+ {
58
+ name: "amountIn",
59
+ type: "uint256",
60
+ internalType: "uint256",
61
+ },
62
+ ],
63
+ stateMutability: "nonpayable",
64
+ },
65
+ ];
66
+ class ISwapLegacyRouter__factory {
67
+ static createInterface() {
68
+ return new ethers_1.Interface(_abi);
69
+ }
70
+ static connect(address, runner) {
71
+ return new ethers_1.Contract(address, _abi, runner);
72
+ }
73
+ }
74
+ exports.ISwapLegacyRouter__factory = ISwapLegacyRouter__factory;
75
+ ISwapLegacyRouter__factory.abi = _abi;
@@ -0,0 +1,55 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { ISwapQuoter, ISwapQuoterInterface } from "../ISwapQuoter";
3
+ export declare class ISwapQuoter__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "quoteExactOutputSingle";
7
+ readonly inputs: readonly [{
8
+ readonly name: "params";
9
+ readonly type: "tuple";
10
+ readonly internalType: "struct ISwapQuoter.QuoteExactOutputSingleParams";
11
+ readonly components: readonly [{
12
+ readonly name: "tokenIn";
13
+ readonly type: "address";
14
+ readonly internalType: "address";
15
+ }, {
16
+ readonly name: "tokenOut";
17
+ readonly type: "address";
18
+ readonly internalType: "address";
19
+ }, {
20
+ readonly name: "amount";
21
+ readonly type: "uint256";
22
+ readonly internalType: "uint256";
23
+ }, {
24
+ readonly name: "fee";
25
+ readonly type: "uint24";
26
+ readonly internalType: "uint24";
27
+ }, {
28
+ readonly name: "sqrtPriceLimitX96";
29
+ readonly type: "uint160";
30
+ readonly internalType: "uint160";
31
+ }];
32
+ }];
33
+ readonly outputs: readonly [{
34
+ readonly name: "amountIn";
35
+ readonly type: "uint256";
36
+ readonly internalType: "uint256";
37
+ }, {
38
+ readonly name: "sqrtPriceX96After";
39
+ readonly type: "uint160";
40
+ readonly internalType: "uint160";
41
+ }, {
42
+ readonly name: "initializedTicksCrossed";
43
+ readonly type: "uint32";
44
+ readonly internalType: "uint32";
45
+ }, {
46
+ readonly name: "gasEstimate";
47
+ readonly type: "uint256";
48
+ readonly internalType: "uint256";
49
+ }];
50
+ readonly stateMutability: "nonpayable";
51
+ }];
52
+ static createInterface(): ISwapQuoterInterface;
53
+ static connect(address: string, runner?: ContractRunner | null): ISwapQuoter;
54
+ }
55
+ //# sourceMappingURL=ISwapQuoter__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISwapQuoter__factory.d.ts","sourceRoot":"","sources":["../../src/factories/ISwapQuoter__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAkExE,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,oBAAoB;IAG9C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,WAAW;CAG7E"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ISwapQuoter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "function",
11
+ name: "quoteExactOutputSingle",
12
+ inputs: [
13
+ {
14
+ name: "params",
15
+ type: "tuple",
16
+ internalType: "struct ISwapQuoter.QuoteExactOutputSingleParams",
17
+ components: [
18
+ {
19
+ name: "tokenIn",
20
+ type: "address",
21
+ internalType: "address",
22
+ },
23
+ {
24
+ name: "tokenOut",
25
+ type: "address",
26
+ internalType: "address",
27
+ },
28
+ {
29
+ name: "amount",
30
+ type: "uint256",
31
+ internalType: "uint256",
32
+ },
33
+ {
34
+ name: "fee",
35
+ type: "uint24",
36
+ internalType: "uint24",
37
+ },
38
+ {
39
+ name: "sqrtPriceLimitX96",
40
+ type: "uint160",
41
+ internalType: "uint160",
42
+ },
43
+ ],
44
+ },
45
+ ],
46
+ outputs: [
47
+ {
48
+ name: "amountIn",
49
+ type: "uint256",
50
+ internalType: "uint256",
51
+ },
52
+ {
53
+ name: "sqrtPriceX96After",
54
+ type: "uint160",
55
+ internalType: "uint160",
56
+ },
57
+ {
58
+ name: "initializedTicksCrossed",
59
+ type: "uint32",
60
+ internalType: "uint32",
61
+ },
62
+ {
63
+ name: "gasEstimate",
64
+ type: "uint256",
65
+ internalType: "uint256",
66
+ },
67
+ ],
68
+ stateMutability: "nonpayable",
69
+ },
70
+ ];
71
+ class ISwapQuoter__factory {
72
+ static createInterface() {
73
+ return new ethers_1.Interface(_abi);
74
+ }
75
+ static connect(address, runner) {
76
+ return new ethers_1.Contract(address, _abi, runner);
77
+ }
78
+ }
79
+ exports.ISwapQuoter__factory = ISwapQuoter__factory;
80
+ ISwapQuoter__factory.abi = _abi;
@@ -0,0 +1,55 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { ISwapRouter, ISwapRouterInterface } from "../ISwapRouter";
3
+ export declare class ISwapRouter__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "exactOutputSingle";
7
+ readonly inputs: readonly [{
8
+ readonly name: "params";
9
+ readonly type: "tuple";
10
+ readonly internalType: "struct ISwapRouter.ExactOutputSingleParams";
11
+ readonly components: readonly [{
12
+ readonly name: "tokenIn";
13
+ readonly type: "address";
14
+ readonly internalType: "address";
15
+ }, {
16
+ readonly name: "tokenOut";
17
+ readonly type: "address";
18
+ readonly internalType: "address";
19
+ }, {
20
+ readonly name: "fee";
21
+ readonly type: "uint24";
22
+ readonly internalType: "uint24";
23
+ }, {
24
+ readonly name: "recipient";
25
+ readonly type: "address";
26
+ readonly internalType: "address";
27
+ }, {
28
+ readonly name: "deadline";
29
+ readonly type: "uint256";
30
+ readonly internalType: "uint256";
31
+ }, {
32
+ readonly name: "amountOut";
33
+ readonly type: "uint256";
34
+ readonly internalType: "uint256";
35
+ }, {
36
+ readonly name: "amountInMaximum";
37
+ readonly type: "uint256";
38
+ readonly internalType: "uint256";
39
+ }, {
40
+ readonly name: "sqrtPriceLimitX96";
41
+ readonly type: "uint160";
42
+ readonly internalType: "uint160";
43
+ }];
44
+ }];
45
+ readonly outputs: readonly [{
46
+ readonly name: "amountIn";
47
+ readonly type: "uint256";
48
+ readonly internalType: "uint256";
49
+ }];
50
+ readonly stateMutability: "nonpayable";
51
+ }];
52
+ static createInterface(): ISwapRouterInterface;
53
+ static connect(address: string, runner?: ContractRunner | null): ISwapRouter;
54
+ }
55
+ //# sourceMappingURL=ISwapRouter__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISwapRouter__factory.d.ts","sourceRoot":"","sources":["../../src/factories/ISwapRouter__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAkExE,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,oBAAoB;IAG9C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,WAAW;CAG7E"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ISwapRouter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "function",
11
+ name: "exactOutputSingle",
12
+ inputs: [
13
+ {
14
+ name: "params",
15
+ type: "tuple",
16
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
17
+ components: [
18
+ {
19
+ name: "tokenIn",
20
+ type: "address",
21
+ internalType: "address",
22
+ },
23
+ {
24
+ name: "tokenOut",
25
+ type: "address",
26
+ internalType: "address",
27
+ },
28
+ {
29
+ name: "fee",
30
+ type: "uint24",
31
+ internalType: "uint24",
32
+ },
33
+ {
34
+ name: "recipient",
35
+ type: "address",
36
+ internalType: "address",
37
+ },
38
+ {
39
+ name: "deadline",
40
+ type: "uint256",
41
+ internalType: "uint256",
42
+ },
43
+ {
44
+ name: "amountOut",
45
+ type: "uint256",
46
+ internalType: "uint256",
47
+ },
48
+ {
49
+ name: "amountInMaximum",
50
+ type: "uint256",
51
+ internalType: "uint256",
52
+ },
53
+ {
54
+ name: "sqrtPriceLimitX96",
55
+ type: "uint160",
56
+ internalType: "uint160",
57
+ },
58
+ ],
59
+ },
60
+ ],
61
+ outputs: [
62
+ {
63
+ name: "amountIn",
64
+ type: "uint256",
65
+ internalType: "uint256",
66
+ },
67
+ ],
68
+ stateMutability: "nonpayable",
69
+ },
70
+ ];
71
+ class ISwapRouter__factory {
72
+ static createInterface() {
73
+ return new ethers_1.Interface(_abi);
74
+ }
75
+ static connect(address, runner) {
76
+ return new ethers_1.Contract(address, _abi, runner);
77
+ }
78
+ }
79
+ exports.ISwapRouter__factory = ISwapRouter__factory;
80
+ ISwapRouter__factory.abi = _abi;
@@ -0,0 +1,177 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../common";
4
+ import type { SnowbridgeL1Adaptor, SnowbridgeL1AdaptorInterface } from "../SnowbridgeL1Adaptor";
5
+ type SnowbridgeL1AdaptorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class SnowbridgeL1Adaptor__factory extends ContractFactory {
7
+ constructor(...args: SnowbridgeL1AdaptorConstructorParams);
8
+ getDeployTransaction(_spokePool: AddressLike, _l1weth9: AddressLike, overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(_spokePool: AddressLike, _l1weth9: AddressLike, overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<SnowbridgeL1Adaptor & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): SnowbridgeL1Adaptor__factory;
17
+ static readonly bytecode = "0x60c060405234801561000f575f5ffd5b50604051610d54380380610d5483398101604081905261002e91610060565b6001600160a01b039182166080521660a052610091565b80516001600160a01b038116811461005b575f5ffd5b919050565b5f5f60408385031215610071575f5ffd5b61007a83610045565b915061008860208401610045565b90509250929050565b60805160a051610c816100d35f395f818160ac015261086701525f8181605d015281816101b7015281816103020152818161048601526104d70152610c815ff3fe608060405260043610610041575f3560e01c80638021fef71461004c578063a76a50f61461009b578063c554c2ef146100ce578063d14484ad146100ef575f5ffd5b3661004857005b5f5ffd5b348015610057575f5ffd5b5061007f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100a6575f5ffd5b5061007f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156100d9575f5ffd5b506100ed6100e8366004610ac2565b61010e565b005b3480156100fa575f5ffd5b506100ed610109366004610ac2565b610408565b5f61011c6020850185610b03565b6001600160a01b03161461019d5760405162461bcd60e51b815260206004820152603860248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f20666f72206e617469766520455448206465706f73697473000000000000000060648201526084015b60405180910390fd5b6101a783836105f1565b5f6101b2848461084d565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168560400135836040516101f29190610b23565b5f6040518083038185875af1925050503d805f811461022c576040519150601f19603f3d011682016040523d82523d5f602084013e610231565b606091505b5090915047905080156102f7575f856001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610287576040519150601f19603f3d011682016040523d82523d5f602084013e61028c565b606091505b50509050806102f55760405162461bcd60e51b815260206004820152602f60248201527f4661696c656420746f207472616e736665722072656d61696e696e672065746860448201526e195c881d1bc81c9958da5c1a595b9d608a1b6064820152608401610194565b505b81156103cc575f60017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561035c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103809190610b39565b61038a9190610b64565b60408051878152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b3508910160405180910390a150610400565b6040518481527f759aee2ba41080c1e3a57140ba7b446c1347cff289214a2fd1c81554ddc173809060200160405180910390a15b505050505050565b5f6104166020850185610b03565b6001600160a01b0316036104775760405162461bcd60e51b815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f206164647265604482015261737360f01b6064820152608401610194565b61048183836105f1565b6104c77f000000000000000000000000000000000000000000000000000000000000000060408501356104b76020870187610b03565b6001600160a01b03169190610934565b5f6104d284846109b3565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168260405161050d9190610b23565b5f604051808303815f865af19150503d805f8114610546576040519150601f19603f3d011682016040523d82523d5f602084013e61054b565b606091505b509091505f905061055f6020870187610b03565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156105a3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105c79190610b39565b905080156102f7576102f785826105e160208a018a610b03565b6001600160a01b031691906109ee565b5f8260400135116106535760405162461bcd60e51b815260206004820152602660248201527f496e70757420616d6f756e74206d7573742062652067726561746572207468616044820152656e207a65726f60d01b6064820152608401610194565b5f8260600135116106b65760405162461bcd60e51b815260206004820152602760248201527f4f757470757420616d6f756e74206d7573742062652067726561746572207468604482015266616e207a65726f60c81b6064820152608401610194565b8160400135826060013511156107195760405162461bcd60e51b815260206004820152602260248201527f4f757470757420616d6f756e74206578636565647320696e70757420616d6f756044820152611b9d60f21b6064820152608401610194565b5f61072a60c0840160a08501610b77565b63ffffffff16116107945760405162461bcd60e51b815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201526d61746572207468616e207a65726f60901b6064820152608401610194565b81608001355f036107f35760405162461bcd60e51b815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201526265726f60e81b6064820152608401610194565b6001600160a01b0381166108495760405162461bcd60e51b815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f20616464726573736044820152606401610194565b5050565b60606356aa12e360e11b6001600160a01b038084169081907f0000000000000000000000000000000000000000000000000000000000000000166108976040880160208901610b03565b6001600160a01b03166040880135606089013560808a01355f426108c160c08e0160a08f01610b77565b6108d19063ffffffff1642610b9a565b604080516020810182525f80825291516108f99c9b9a99989796959493929190602401610bad565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290505b92915050565b6109408383835f6109fb565b6109ae5761095183835f60016109fb565b61097957604051635274afe760e01b81526001600160a01b0384166004820152602401610194565b61098683838360016109fb565b6109ae57604051635274afe760e01b81526001600160a01b0384166004820152602401610194565b505050565b60606356aa12e360e11b6001600160a01b038316806109d56020870187610b03565b6001600160a01b03166108976040880160208901610b03565b6109868383836001610a5d565b60405163095ea7b360e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316610a51578383151615610a45573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316610a51578383151615610a45573d5f823e3d81fd5b80356001600160a01b0381168114610abd575f5ffd5b919050565b5f5f5f838503610100811215610ad6575f5ffd5b60c0811215610ae3575f5ffd5b50839250610af360c08501610aa7565b915060e084013590509250925092565b5f60208284031215610b13575f5ffd5b610b1c82610aa7565b9392505050565b5f82518060208501845e5f920191825250919050565b5f60208284031215610b49575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561092e5761092e610b50565b5f60208284031215610b87575f5ffd5b813563ffffffff81168114610b1c575f5ffd5b8082018082111561092e5761092e610b50565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015260ff83166101408201526101806101608201525f61018082015f84518083528060208701602085015e5f602082850101526020601f19601f83011684010191505080925050509d9c5050505050505050505050505056fea26469706673582212206118c1f3bbbc56b78560ec3f430d7080e2c15c7a99b9a7d413f00b1b7e3587b364736f6c63430008220033";
18
+ static readonly abi: readonly [{
19
+ readonly type: "constructor";
20
+ readonly inputs: readonly [{
21
+ readonly name: "_spokePool";
22
+ readonly type: "address";
23
+ readonly internalType: "address";
24
+ }, {
25
+ readonly name: "_l1weth9";
26
+ readonly type: "address";
27
+ readonly internalType: "address";
28
+ }];
29
+ readonly stateMutability: "nonpayable";
30
+ }, {
31
+ readonly type: "receive";
32
+ readonly stateMutability: "payable";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "L1_WETH9";
36
+ readonly inputs: readonly [];
37
+ readonly outputs: readonly [{
38
+ readonly name: "";
39
+ readonly type: "address";
40
+ readonly internalType: "contract WETH9";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly name: "SPOKE_POOL";
46
+ readonly inputs: readonly [];
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly type: "address";
50
+ readonly internalType: "contract ISpokePool";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly name: "depositNativeEther";
56
+ readonly inputs: readonly [{
57
+ readonly name: "params";
58
+ readonly type: "tuple";
59
+ readonly internalType: "struct DepositParams";
60
+ readonly components: readonly [{
61
+ readonly name: "inputToken";
62
+ readonly type: "address";
63
+ readonly internalType: "address";
64
+ }, {
65
+ readonly name: "outputToken";
66
+ readonly type: "address";
67
+ readonly internalType: "address";
68
+ }, {
69
+ readonly name: "inputAmount";
70
+ readonly type: "uint256";
71
+ readonly internalType: "uint256";
72
+ }, {
73
+ readonly name: "outputAmount";
74
+ readonly type: "uint256";
75
+ readonly internalType: "uint256";
76
+ }, {
77
+ readonly name: "destinationChainId";
78
+ readonly type: "uint256";
79
+ readonly internalType: "uint256";
80
+ }, {
81
+ readonly name: "fillDeadlineBuffer";
82
+ readonly type: "uint32";
83
+ readonly internalType: "uint32";
84
+ }];
85
+ }, {
86
+ readonly name: "recipient";
87
+ readonly type: "address";
88
+ readonly internalType: "address";
89
+ }, {
90
+ readonly name: "topic";
91
+ readonly type: "bytes32";
92
+ readonly internalType: "bytes32";
93
+ }];
94
+ readonly outputs: readonly [];
95
+ readonly stateMutability: "nonpayable";
96
+ }, {
97
+ readonly type: "function";
98
+ readonly name: "depositToken";
99
+ readonly inputs: readonly [{
100
+ readonly name: "params";
101
+ readonly type: "tuple";
102
+ readonly internalType: "struct DepositParams";
103
+ readonly components: readonly [{
104
+ readonly name: "inputToken";
105
+ readonly type: "address";
106
+ readonly internalType: "address";
107
+ }, {
108
+ readonly name: "outputToken";
109
+ readonly type: "address";
110
+ readonly internalType: "address";
111
+ }, {
112
+ readonly name: "inputAmount";
113
+ readonly type: "uint256";
114
+ readonly internalType: "uint256";
115
+ }, {
116
+ readonly name: "outputAmount";
117
+ readonly type: "uint256";
118
+ readonly internalType: "uint256";
119
+ }, {
120
+ readonly name: "destinationChainId";
121
+ readonly type: "uint256";
122
+ readonly internalType: "uint256";
123
+ }, {
124
+ readonly name: "fillDeadlineBuffer";
125
+ readonly type: "uint32";
126
+ readonly internalType: "uint32";
127
+ }];
128
+ }, {
129
+ readonly name: "recipient";
130
+ readonly type: "address";
131
+ readonly internalType: "address";
132
+ }, {
133
+ readonly name: "topic";
134
+ readonly type: "bytes32";
135
+ readonly internalType: "bytes32";
136
+ }];
137
+ readonly outputs: readonly [];
138
+ readonly stateMutability: "nonpayable";
139
+ }, {
140
+ readonly type: "event";
141
+ readonly name: "DepositCallFailed";
142
+ readonly inputs: readonly [{
143
+ readonly name: "topic";
144
+ readonly type: "bytes32";
145
+ readonly indexed: false;
146
+ readonly internalType: "bytes32";
147
+ }];
148
+ readonly anonymous: false;
149
+ }, {
150
+ readonly type: "event";
151
+ readonly name: "DepositCallInvoked";
152
+ readonly inputs: readonly [{
153
+ readonly name: "topic";
154
+ readonly type: "bytes32";
155
+ readonly indexed: false;
156
+ readonly internalType: "bytes32";
157
+ }, {
158
+ readonly name: "depositId";
159
+ readonly type: "uint256";
160
+ readonly indexed: false;
161
+ readonly internalType: "uint256";
162
+ }];
163
+ readonly anonymous: false;
164
+ }, {
165
+ readonly type: "error";
166
+ readonly name: "SafeERC20FailedOperation";
167
+ readonly inputs: readonly [{
168
+ readonly name: "token";
169
+ readonly type: "address";
170
+ readonly internalType: "address";
171
+ }];
172
+ }];
173
+ static createInterface(): SnowbridgeL1AdaptorInterface;
174
+ static connect(address: string, runner?: ContractRunner | null): SnowbridgeL1Adaptor;
175
+ }
176
+ export {};
177
+ //# sourceMappingURL=SnowbridgeL1Adaptor__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SnowbridgeL1Adaptor__factory.d.ts","sourceRoot":"","sources":["../../src/factories/SnowbridgeL1Adaptor__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,yBAAyB,EACzB,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EACV,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AA+MhC,KAAK,oCAAoC,GACrC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,4BAA6B,SAAQ,eAAe;gBACnD,GAAG,IAAI,EAAE,oCAAoC;IAQhD,oBAAoB,CAC3B,UAAU,EAAE,WAAW,EACvB,QAAQ,EAAE,WAAW,EACrB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CACb,UAAU,EAAE,WAAW,EACvB,QAAQ,EAAE,WAAW,EACrB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAEW,OAAO,CACnE,mBAAmB,GAAG;QACpB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CACd,MAAM,EAAE,cAAc,GAAG,IAAI,GAC5B,4BAA4B;IAI/B,MAAM,CAAC,QAAQ,CAAC,QAAQ,grNAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,4BAA4B;IAGtD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,mBAAmB;CAOvB"}