@snowbridge/contract-types 0.3.0 → 0.3.1
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/.turbo/turbo-build.log +3115 -2571
- package/dist/ISwapQuoter.d.ts +76 -0
- package/dist/ISwapQuoter.d.ts.map +1 -0
- package/dist/ISwapQuoter.js +2 -0
- package/dist/SnowbridgeL1Adaptor.d.ts +110 -0
- package/dist/SnowbridgeL1Adaptor.d.ts.map +1 -0
- package/dist/SnowbridgeL1Adaptor.js +2 -0
- package/dist/SnowbridgeL2Adaptor.d.ts +164 -0
- package/dist/SnowbridgeL2Adaptor.d.ts.map +1 -0
- package/dist/SnowbridgeL2Adaptor.js +2 -0
- package/dist/factories/ISwapQuoter__factory.d.ts +55 -0
- package/dist/factories/ISwapQuoter__factory.d.ts.map +1 -0
- package/dist/factories/ISwapQuoter__factory.js +80 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts +195 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.d.ts.map +1 -0
- package/dist/factories/SnowbridgeL1Adaptor__factory.js +261 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts +290 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.d.ts.map +1 -0
- package/dist/factories/SnowbridgeL2Adaptor__factory.js +383 -0
- package/dist/factories/index.d.ts +3 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +7 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/package.json +3 -3
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../common";
|
|
4
|
+
import type { SnowbridgeL2Adaptor, SnowbridgeL2AdaptorInterface } from "../SnowbridgeL2Adaptor";
|
|
5
|
+
type SnowbridgeL2AdaptorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class SnowbridgeL2Adaptor__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: SnowbridgeL2AdaptorConstructorParams);
|
|
8
|
+
getDeployTransaction(_spokePool: AddressLike, _handler: AddressLike, _gateway: AddressLike, _l1weth9: AddressLike, _l2weth9: AddressLike, _swapRouter: AddressLike, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(_spokePool: AddressLike, _handler: AddressLike, _gateway: AddressLike, _l1weth9: AddressLike, _l2weth9: AddressLike, _swapRouter: AddressLike, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<SnowbridgeL2Adaptor & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): SnowbridgeL2Adaptor__factory;
|
|
17
|
+
static readonly bytecode = "0x610140604052348015610010575f5ffd5b50604051612bc2380380612bc283398101604081905261002f9161007a565b6001600160a01b0395861660805292851660c05292841660a052831660e0529082166101005216610120526100ea565b80516001600160a01b0381168114610075575f5ffd5b919050565b5f5f5f5f5f5f60c0878903121561008f575f5ffd5b6100988761005f565b95506100a66020880161005f565b94506100b46040880161005f565b93506100c26060880161005f565b92506100d06080880161005f565b91506100de60a0880161005f565b90509295509295509295565b60805160a05160c05160e05161010051610120516129d66101ec5f395f81816101f401528181610c5c01528181610d6b0152610e4d01525f818161018d0152818161049501528181610748015281816107e60152818161082c0152611f8101525f818161015a01528181610ec301528181611093015281816110cf01528181611c5c01528181611c980152611fba01525f818160f4015281816111fb0152818161130c015281816113f10152611d5a01525f8181609801528181610f1c015281816115eb0152611f4801525f8181610127015281816103b30152818161084e015281816115960152818161170d01528181611ef3015261207601526129d65ff3fe60806040526004361061007c575f3560e01c8063b18ccf0d1161004c578063b18ccf0d1461017c578063ba68167e146101af578063bed250e9146101d0578063c6005893146101e3575f5ffd5b8063134c319b14610087578063338c5371146100e35780638021fef714610116578063a76a50f614610149575f5ffd5b3661008357005b5f5ffd5b348015610092575f5ffd5b506100ba7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100ee575f5ffd5b506100ba7f000000000000000000000000000000000000000000000000000000000000000081565b348015610121575f5ffd5b506100ba7f000000000000000000000000000000000000000000000000000000000000000081565b348015610154575f5ffd5b506100ba7f000000000000000000000000000000000000000000000000000000000000000081565b348015610187575f5ffd5b506100ba7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101ba575f5ffd5b506101ce6101c936600461227d565b610216565b005b6101ce6101de36600461231f565b610453565b3480156101ee575f5ffd5b506100ba7f000000000000000000000000000000000000000000000000000000000000000081565b5f6102246020870187612386565b73ffffffffffffffffffffffffffffffffffffffff16036102cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f496e70757420746f6b656e2063616e6e6f74206265207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102d88585858561092e565b6102e7843560608701356123d5565b856040013511610379576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f496e70757420616d6f756e74206d75737420636f766572206f7574707574206160448201527f6d6f756e7420616e642066656520616d6f756e7400000000000000000000000060648201526084016102c3565b6103ae3330604088013561039060208a018a612386565b73ffffffffffffffffffffffffffffffffffffffff16929190610a70565b6104017f000000000000000000000000000000000000000000000000000000000000000060408701356103e46020890189612386565b73ffffffffffffffffffffffffffffffffffffffff169190610acc565b5f61040e86868686610b97565b60408051848152602081018390529192507f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b350891015b60405180910390a1505050505050565b5f6104616020860186612386565b73ffffffffffffffffffffffffffffffffffffffff1614806104da575073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000166104c26020860186612386565b73ffffffffffffffffffffffffffffffffffffffff16145b61058c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604b60248201527f496e70757420746f6b656e206d757374206265207a65726f206164647265737360448201527f206f72204c322057455448206164647265737320666f72206e6174697665204560648201527f5448206465706f73697473000000000000000000000000000000000000000000608482015260a4016102c3565b6105978484846117ae565b5f6105a860a08501608086016123ee565b6fffffffffffffffffffffffffffffffff166105ca60808601606087016123ee565b6105ea906fffffffffffffffffffffffffffffffff1660608801356123d5565b6105f491906123d5565b905080856040013511610689576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f496e70757420616d6f756e74206d75737420636f766572206f7574707574206160448201527f6d6f756e7420616e642066656520616d6f756e7400000000000000000000000060648201526084016102c3565b5f6106976020870187612386565b73ffffffffffffffffffffffffffffffffffffffff16036107cc578460400135341015610746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f53656e742076616c7565206d7573742062652067726561746572207468616e2060448201527f6f7220657175616c20746f20746f74616c20616d6f756e74000000000000000060648201526084016102c3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db086604001356040518263ffffffff1660e01b81526004015f604051808303818588803b1580156107b0575f5ffd5b505af11580156107c2573d5f5f3e3d5ffd5b5050505050610812565b61081273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633306040890135610a70565b61087773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006040880135610acc565b5f61088486868685611be8565b90505f6108946020880188612386565b73ffffffffffffffffffffffffffffffffffffffff161480156108ba5750856040013534115b156108f857336108fc6108d160408901353461241d565b6040518115909202915f818181858888f193505050501580156108f6573d5f5f3e3d5ffd5b505b60408051848152602081018390527f14bfd4fd7e654256d3222db5d1ec5e59cd23dd5df10bd8faccc1cabe984b35089101610443565b6109398483836117ae565b82356109c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e70757420616d6f756e7420666f7220666565206d7573742062652067726560448201527f61746572207468616e207a65726f00000000000000000000000000000000000060648201526084016102c3565b5f6109d86040850160208601612430565b62ffffff1611610a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f506f6f6c20666565206d7573742062652067726561746572207468616e207a6560448201527f726f00000000000000000000000000000000000000000000000000000000000060648201526084016102c3565b50505050565b610a7e848484846001612118565b610a6a576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024016102c3565b610ad88383835f6121ab565b610b9257610ae983835f60016121ab565b610b37576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024016102c3565b610b4483838360016121ab565b610b92576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024016102c3565b505050565b5f80610ba960c0870160a08801612452565b610bb99063ffffffff16426123d5565b60408051600780825261010082019092529192505f9190816020015b610c0d60405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f81525090565b815260200190600190039081610bd5575050604080516060810182529192508190610c3d908a0160208b01612386565b73ffffffffffffffffffffffffffffffffffffffff90811682526040517f000000000000000000000000000000000000000000000000000000000000000090911660248201525f6044820152602090910190606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f91018190528251839190610d2357610d23612475565b60200260200101819052506040518060600160405280886020016020810190610d4c9190612386565b73ffffffffffffffffffffffffffffffffffffffff90811682526040517f0000000000000000000000000000000000000000000000000000000000000000909116602482015288356044820152602090910190606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f910152815182906001908110610e3557610e35612475565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020016040518061010001604052808a6020016020810190610ea69190612386565b73ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168152602001896020016020810190610f109190612430565b62ffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020018563ffffffff168152602001886060016020810190610f7591906123ee565b610f8560a08b0160808c016123ee565b610f8f91906124a2565b6fffffffffffffffffffffffffffffffff16815289356020820152604090810190610fc09060608c01908c01612386565b73ffffffffffffffffffffffffffffffffffffffff169052604051610fe891906024016124ca565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fdb3e2198000000000000000000000000000000000000000000000000000000001790529082525f91015281518290600290811061107b5761107b612475565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d88606001602081019061111c91906123ee565b61112c60a08b0160808c016123ee565b61113691906124a2565b6040516fffffffffffffffffffffffffffffffff9091166024820152604401604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505081526020015f815250816003815181106111b3576111b3612475565b602002602001018190525060405180606001604052808860200160208101906111dc9190612386565b73ffffffffffffffffffffffffffffffffffffffff90811682526040517f000000000000000000000000000000000000000000000000000000000000000090911660248201525f6044820152602090910190606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f9101528151829060049081106112c4576112c4612475565b602002602001018190525060405180606001604052808860200160208101906112ed9190612386565b73ffffffffffffffffffffffffffffffffffffffff90811682526040517f0000000000000000000000000000000000000000000000000000000000000000909116602482015260608a01356044820152602090910190606401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790529082525f9101528151829060059081106113d9576113d9612475565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260200186805f019061143a919061258f565b61144760208a018a6125f7565b61145460408c018c61258f565b61146460808e0160608f016123ee565b8d608001602081019061147791906123ee565b60405160240161148e9897969594939291906126a2565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff2e500b2000000000000000000000000000000000000000000000000000000001790529082520161151960808801606089016123ee565b61152960a0890160808a016123ee565b61153391906124a2565b6fffffffffffffffffffffffffffffffff168152508160068151811061155b5761155b612475565b60200260200101819052505f60405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff1681525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ad5425c68673ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b8b5f0160208101906116349190612386565b73ffffffffffffffffffffffffffffffffffffffff1661165a60408e0160208f01612386565b73ffffffffffffffffffffffffffffffffffffffff165f1b8d604001358d5f01358f6060013561168a91906123d5565b8f608001355f5f1b428d5f8d6040516020016116a69190612826565b6040516020818303038152906040526040518d63ffffffff1660e01b81526004016116dc9c9b9a9998979695949392919061290b565b5f604051808303815f87803b1580156116f3575f5ffd5b505af1158015611705573d5f5f3e3d5ffd5b5050505060017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611774573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117989190612989565b6117a2919061241d565b98975050505050505050565b5f836040013511611841576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f496e70757420616d6f756e74206d75737420626520677265617465722074686160448201527f6e207a65726f000000000000000000000000000000000000000000000000000060648201526084016102c3565b5f8360600135116118d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4f757470757420616d6f756e74206d757374206265206772656174657220746860448201527f616e207a65726f0000000000000000000000000000000000000000000000000060648201526084016102c3565b5f6118e560a08401608085016123ee565b6fffffffffffffffffffffffffffffffff1611611984576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f52656c6179657220666565206d7573742062652067726561746572207468616e60448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016102c3565b5f61199560808401606085016123ee565b6fffffffffffffffffffffffffffffffff1611611a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f457865637574696f6e20666565206d757374206265206772656174657220746860448201527f616e207a65726f0000000000000000000000000000000000000000000000000060648201526084016102c3565b5f611a4560c0850160a08601612452565b63ffffffff1611611ad8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f46696c6c20646561646c696e6520627566666572206d7573742062652067726560448201527f61746572207468616e207a65726f00000000000000000000000000000000000060648201526084016102c3565b82608001355f03611b6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f44657374696e6174696f6e20636861696e2049442063616e6e6f74206265207a60448201527f65726f000000000000000000000000000000000000000000000000000000000060648201526084016102c3565b73ffffffffffffffffffffffffffffffffffffffff8116610b92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f526563697069656e742063616e6e6f74206265207a65726f206164647265737360448201526064016102c3565b604080516002808252606082019092525f91829190816020015b611c3a60405180606001604052805f73ffffffffffffffffffffffffffffffffffffffff168152602001606081526020015f81525090565b815260200190600190039081611c0257905050905060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d86604051602401611ce591815260200190565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505081526020015f815250815f81518110611d4257611d42612475565b602002602001018190525060405180606001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260200186805f0190611da3919061258f565b611db060208a018a6125f7565b611dbd60408c018c61258f565b611dcd60808e0160608f016123ee565b8d6080016020810190611de091906123ee565b604051602401611df79897969594939291906126a2565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052602080820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff2e500b20000000000000000000000000000000000000000000000000000000017905290825201849052815182906001908110611e8a57611e8a612475565b60200260200101819052505f60405180604001604052808381526020018673ffffffffffffffffffffffffffffffffffffffff1681525090505f8760a0016020810190611ed79190612452565b611ee79063ffffffff16426123d5565b90505f886080013590507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ad5425c68873ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff165f1b8e604001358c885f5f1b428c5f8f60405160200161200f9190612826565b6040516020818303038152906040526040518d63ffffffff1660e01b81526004016120459c9b9a9998979695949392919061290b565b5f604051808303815f87803b15801561205c575f5ffd5b505af115801561206e573d5f5f3e3d5ffd5b5050505060017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a1244c676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121019190612989565b61210b919061241d565b9998505050505050505050565b6040517f23b872dd000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8781166004528616602452604485905291602083606481808c5af1925060015f5114831661219a57838315161561218e573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000005f81815273ffffffffffffffffffffffffffffffffffffffff8616600452602485905291602083604481808b5af1925060015f5114831661222757838315161561221b573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b5f60c08284031215612243575f5ffd5b50919050565b5f60a08284031215612243575f5ffd5b73ffffffffffffffffffffffffffffffffffffffff8116811461227a575f5ffd5b50565b5f5f5f5f5f858703610180811215612293575f5ffd5b61229d8888612233565b955060607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40820112156122ce575f5ffd5b5060c08601935061012086013567ffffffffffffffff8111156122ef575f5ffd5b6122fb88828901612249565b93505061014086013561230d81612259565b94979396509194610160013592915050565b5f5f5f5f6101208587031215612333575f5ffd5b61233d8686612233565b935060c085013567ffffffffffffffff811115612358575f5ffd5b61236487828801612249565b93505060e085013561237581612259565b939692955092936101000135925050565b5f60208284031215612396575f5ffd5b81356123a181612259565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808201808211156123e8576123e86123a8565b92915050565b5f602082840312156123fe575f5ffd5b81356fffffffffffffffffffffffffffffffff811681146123a1575f5ffd5b818103818111156123e8576123e86123a8565b5f60208284031215612440575f5ffd5b813562ffffff811681146123a1575f5ffd5b5f60208284031215612462575f5ffd5b813563ffffffff811681146123a1575f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b6fffffffffffffffffffffffffffffffff81811683821601908111156123e8576123e86123a8565b5f6101008201905073ffffffffffffffffffffffffffffffffffffffff835116825273ffffffffffffffffffffffffffffffffffffffff602084015116602083015262ffffff60408401511660408301526060830151612542606084018273ffffffffffffffffffffffffffffffffffffffff169052565b506080830151608083015260a083015160a083015260c083015160c083015260e083015161258860e084018273ffffffffffffffffffffffffffffffffffffffff169052565b5092915050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126125c2575f5ffd5b83018035915067ffffffffffffffff8211156125dc575f5ffd5b6020019150368190038213156125f0575f5ffd5b9250929050565b5f5f83357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261262a575f5ffd5b83018035915067ffffffffffffffff821115612644575f5ffd5b6020019150600581901b36038213156125f0575f5ffd5b81835281816020850137505f602082840101525f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b60a081525f6126b560a083018a8c61265b565b82810360208401528088825260208201905060208960051b8301018a5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18d3603015b8c821015612784577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08685030185528235818112612734575f5ffd5b8e0160208101903567ffffffffffffffff811115612750575f5ffd5b80360382131561275e575f5ffd5b61276986828461265b565b955050506020830192506020850194506001820191506126f8565b505050848103604086015261279a81898b61265b565b93505050506127bd60608301856fffffffffffffffffffffffffffffffff169052565b6fffffffffffffffffffffffffffffffff8316608083015261210b565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f6060820183516040602085015281815180845260808601915060808160051b87010193506020830192505f5b818110156128de577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80878603018352835173ffffffffffffffffffffffffffffffffffffffff81511686526020810151606060208801526128bb60608801826127da565b604092830151979092019690965294506020938401939290920191600101612857565b50505050602084015173ffffffffffffffffffffffffffffffffffffffff81166040850152509392505050565b8c81528b60208201528a60408201528960608201528860808201528760a08201528660c08201528560e082015263ffffffff851661010082015263ffffffff841661012082015263ffffffff83166101408201526101806101608201525f6129776101808301846127da565b9e9d5050505050505050505050505050565b5f60208284031215612999575f5ffd5b505191905056fea26469706673582212208756db8f62e5861a1b0584d01305ece9e0d1073362b874e56c8c1e0eff898c7b64736f6c634300081c0033";
|
|
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: "_handler";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "_gateway";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "_l1weth9";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "_l2weth9";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "_swapRouter";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
}];
|
|
45
|
+
readonly stateMutability: "nonpayable";
|
|
46
|
+
}, {
|
|
47
|
+
readonly type: "receive";
|
|
48
|
+
readonly stateMutability: "payable";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
readonly name: "GATEWAY";
|
|
52
|
+
readonly inputs: readonly [];
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly name: "";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
readonly internalType: "contract IGatewayV2";
|
|
57
|
+
}];
|
|
58
|
+
readonly stateMutability: "view";
|
|
59
|
+
}, {
|
|
60
|
+
readonly type: "function";
|
|
61
|
+
readonly name: "L1_WETH9";
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly outputs: readonly [{
|
|
64
|
+
readonly name: "";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
readonly internalType: "contract WETH9";
|
|
67
|
+
}];
|
|
68
|
+
readonly stateMutability: "view";
|
|
69
|
+
}, {
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
readonly name: "L2_WETH9";
|
|
72
|
+
readonly inputs: readonly [];
|
|
73
|
+
readonly outputs: readonly [{
|
|
74
|
+
readonly name: "";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
readonly internalType: "contract WETH9";
|
|
77
|
+
}];
|
|
78
|
+
readonly stateMutability: "view";
|
|
79
|
+
}, {
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
readonly name: "MULTI_CALL_HANDLER";
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly outputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
readonly internalType: "contract IMessageHandler";
|
|
87
|
+
}];
|
|
88
|
+
readonly stateMutability: "view";
|
|
89
|
+
}, {
|
|
90
|
+
readonly type: "function";
|
|
91
|
+
readonly name: "SPOKE_POOL";
|
|
92
|
+
readonly inputs: readonly [];
|
|
93
|
+
readonly outputs: readonly [{
|
|
94
|
+
readonly name: "";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
readonly internalType: "contract ISpokePool";
|
|
97
|
+
}];
|
|
98
|
+
readonly stateMutability: "view";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "function";
|
|
101
|
+
readonly name: "SWAP_ROUTER";
|
|
102
|
+
readonly inputs: readonly [];
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
readonly internalType: "contract ISwapRouter";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "view";
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
readonly name: "sendEtherAndCall";
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly name: "params";
|
|
114
|
+
readonly type: "tuple";
|
|
115
|
+
readonly internalType: "struct DepositParams";
|
|
116
|
+
readonly components: readonly [{
|
|
117
|
+
readonly name: "inputToken";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "outputToken";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "inputAmount";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "outputAmount";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
readonly internalType: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "destinationChainId";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "fillDeadlineBuffer";
|
|
138
|
+
readonly type: "uint32";
|
|
139
|
+
readonly internalType: "uint32";
|
|
140
|
+
}];
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "sendParams";
|
|
143
|
+
readonly type: "tuple";
|
|
144
|
+
readonly internalType: "struct SendParams";
|
|
145
|
+
readonly components: readonly [{
|
|
146
|
+
readonly name: "xcm";
|
|
147
|
+
readonly type: "bytes";
|
|
148
|
+
readonly internalType: "bytes";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "assets";
|
|
151
|
+
readonly type: "bytes[]";
|
|
152
|
+
readonly internalType: "bytes[]";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "claimer";
|
|
155
|
+
readonly type: "bytes";
|
|
156
|
+
readonly internalType: "bytes";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "executionFee";
|
|
159
|
+
readonly type: "uint128";
|
|
160
|
+
readonly internalType: "uint128";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "relayerFee";
|
|
163
|
+
readonly type: "uint128";
|
|
164
|
+
readonly internalType: "uint128";
|
|
165
|
+
}];
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "recipient";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "topic";
|
|
172
|
+
readonly type: "bytes32";
|
|
173
|
+
readonly internalType: "bytes32";
|
|
174
|
+
}];
|
|
175
|
+
readonly outputs: readonly [];
|
|
176
|
+
readonly stateMutability: "payable";
|
|
177
|
+
}, {
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
readonly name: "sendTokenAndCall";
|
|
180
|
+
readonly inputs: readonly [{
|
|
181
|
+
readonly name: "params";
|
|
182
|
+
readonly type: "tuple";
|
|
183
|
+
readonly internalType: "struct DepositParams";
|
|
184
|
+
readonly components: readonly [{
|
|
185
|
+
readonly name: "inputToken";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
readonly internalType: "address";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "outputToken";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "inputAmount";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
readonly internalType: "uint256";
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "outputAmount";
|
|
198
|
+
readonly type: "uint256";
|
|
199
|
+
readonly internalType: "uint256";
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "destinationChainId";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "fillDeadlineBuffer";
|
|
206
|
+
readonly type: "uint32";
|
|
207
|
+
readonly internalType: "uint32";
|
|
208
|
+
}];
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "swapParams";
|
|
211
|
+
readonly type: "tuple";
|
|
212
|
+
readonly internalType: "struct SwapParams";
|
|
213
|
+
readonly components: readonly [{
|
|
214
|
+
readonly name: "inputAmountForFee";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
readonly internalType: "uint256";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "poolFee";
|
|
219
|
+
readonly type: "uint24";
|
|
220
|
+
readonly internalType: "uint24";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "sqrtPriceLimitX96";
|
|
223
|
+
readonly type: "uint160";
|
|
224
|
+
readonly internalType: "uint160";
|
|
225
|
+
}];
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "sendParams";
|
|
228
|
+
readonly type: "tuple";
|
|
229
|
+
readonly internalType: "struct SendParams";
|
|
230
|
+
readonly components: readonly [{
|
|
231
|
+
readonly name: "xcm";
|
|
232
|
+
readonly type: "bytes";
|
|
233
|
+
readonly internalType: "bytes";
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "assets";
|
|
236
|
+
readonly type: "bytes[]";
|
|
237
|
+
readonly internalType: "bytes[]";
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "claimer";
|
|
240
|
+
readonly type: "bytes";
|
|
241
|
+
readonly internalType: "bytes";
|
|
242
|
+
}, {
|
|
243
|
+
readonly name: "executionFee";
|
|
244
|
+
readonly type: "uint128";
|
|
245
|
+
readonly internalType: "uint128";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "relayerFee";
|
|
248
|
+
readonly type: "uint128";
|
|
249
|
+
readonly internalType: "uint128";
|
|
250
|
+
}];
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "recipient";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "topic";
|
|
257
|
+
readonly type: "bytes32";
|
|
258
|
+
readonly internalType: "bytes32";
|
|
259
|
+
}];
|
|
260
|
+
readonly outputs: readonly [];
|
|
261
|
+
readonly stateMutability: "nonpayable";
|
|
262
|
+
}, {
|
|
263
|
+
readonly type: "event";
|
|
264
|
+
readonly name: "DepositCallInvoked";
|
|
265
|
+
readonly inputs: readonly [{
|
|
266
|
+
readonly name: "topic";
|
|
267
|
+
readonly type: "bytes32";
|
|
268
|
+
readonly indexed: false;
|
|
269
|
+
readonly internalType: "bytes32";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "depositId";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
readonly indexed: false;
|
|
274
|
+
readonly internalType: "uint256";
|
|
275
|
+
}];
|
|
276
|
+
readonly anonymous: false;
|
|
277
|
+
}, {
|
|
278
|
+
readonly type: "error";
|
|
279
|
+
readonly name: "SafeERC20FailedOperation";
|
|
280
|
+
readonly inputs: readonly [{
|
|
281
|
+
readonly name: "token";
|
|
282
|
+
readonly type: "address";
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
}];
|
|
285
|
+
}];
|
|
286
|
+
static createInterface(): SnowbridgeL2AdaptorInterface;
|
|
287
|
+
static connect(address: string, runner?: ContractRunner | null): SnowbridgeL2Adaptor;
|
|
288
|
+
}
|
|
289
|
+
export {};
|
|
290
|
+
//# sourceMappingURL=SnowbridgeL2Adaptor__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SnowbridgeL2Adaptor__factory.d.ts","sourceRoot":"","sources":["../../src/factories/SnowbridgeL2Adaptor__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;AAgWhC,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,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,WAAW,EACxB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAW5B,MAAM,CACb,UAAU,EAAE,WAAW,EACvB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,WAAW,EACxB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAU9C,OAAO,CACV,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,44rBAAa;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"}
|