web: update ABI
This commit is contained in:
parent
a2bd5fbb11
commit
7dc309c490
File diff suppressed because one or more lines are too long
|
@ -35,12 +35,13 @@ interface WormholeInterface extends Interface {
|
||||||
submitVAA: TypedFunctionDescription<{ encode([vaa]: [Arrayish]): string }>;
|
submitVAA: TypedFunctionDescription<{ encode([vaa]: [Arrayish]): string }>;
|
||||||
|
|
||||||
lockAssets: TypedFunctionDescription<{
|
lockAssets: TypedFunctionDescription<{
|
||||||
encode([asset, amount, recipient, target_chain, nonce]: [
|
encode([asset, amount, recipient, target_chain, nonce, refund_dust]: [
|
||||||
string,
|
string,
|
||||||
BigNumberish,
|
BigNumberish,
|
||||||
Arrayish,
|
Arrayish,
|
||||||
BigNumberish,
|
BigNumberish,
|
||||||
BigNumberish
|
BigNumberish,
|
||||||
|
boolean
|
||||||
]): string;
|
]): string;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
@ -189,15 +190,17 @@ export class Wormhole extends Contract {
|
||||||
recipient: Arrayish,
|
recipient: Arrayish,
|
||||||
target_chain: BigNumberish,
|
target_chain: BigNumberish,
|
||||||
nonce: BigNumberish,
|
nonce: BigNumberish,
|
||||||
|
refund_dust: boolean,
|
||||||
overrides?: TransactionOverrides
|
overrides?: TransactionOverrides
|
||||||
): Promise<ContractTransaction>;
|
): Promise<ContractTransaction>;
|
||||||
|
|
||||||
"lockAssets(address,uint256,bytes32,uint8,uint32)"(
|
"lockAssets(address,uint256,bytes32,uint8,uint32,bool)"(
|
||||||
asset: string,
|
asset: string,
|
||||||
amount: BigNumberish,
|
amount: BigNumberish,
|
||||||
recipient: Arrayish,
|
recipient: Arrayish,
|
||||||
target_chain: BigNumberish,
|
target_chain: BigNumberish,
|
||||||
nonce: BigNumberish,
|
nonce: BigNumberish,
|
||||||
|
refund_dust: boolean,
|
||||||
overrides?: TransactionOverrides
|
overrides?: TransactionOverrides
|
||||||
): Promise<ContractTransaction>;
|
): Promise<ContractTransaction>;
|
||||||
|
|
||||||
|
@ -304,15 +307,17 @@ export class Wormhole extends Contract {
|
||||||
recipient: Arrayish,
|
recipient: Arrayish,
|
||||||
target_chain: BigNumberish,
|
target_chain: BigNumberish,
|
||||||
nonce: BigNumberish,
|
nonce: BigNumberish,
|
||||||
|
refund_dust: boolean,
|
||||||
overrides?: TransactionOverrides
|
overrides?: TransactionOverrides
|
||||||
): Promise<ContractTransaction>;
|
): Promise<ContractTransaction>;
|
||||||
|
|
||||||
"lockAssets(address,uint256,bytes32,uint8,uint32)"(
|
"lockAssets(address,uint256,bytes32,uint8,uint32,bool)"(
|
||||||
asset: string,
|
asset: string,
|
||||||
amount: BigNumberish,
|
amount: BigNumberish,
|
||||||
recipient: Arrayish,
|
recipient: Arrayish,
|
||||||
target_chain: BigNumberish,
|
target_chain: BigNumberish,
|
||||||
nonce: BigNumberish,
|
nonce: BigNumberish,
|
||||||
|
refund_dust: boolean,
|
||||||
overrides?: TransactionOverrides
|
overrides?: TransactionOverrides
|
||||||
): Promise<ContractTransaction>;
|
): Promise<ContractTransaction>;
|
||||||
|
|
||||||
|
@ -433,15 +438,17 @@ export class Wormhole extends Contract {
|
||||||
recipient: Arrayish,
|
recipient: Arrayish,
|
||||||
target_chain: BigNumberish,
|
target_chain: BigNumberish,
|
||||||
nonce: BigNumberish,
|
nonce: BigNumberish,
|
||||||
|
refund_dust: boolean,
|
||||||
overrides?: TransactionOverrides
|
overrides?: TransactionOverrides
|
||||||
): Promise<BigNumber>;
|
): Promise<BigNumber>;
|
||||||
|
|
||||||
"lockAssets(address,uint256,bytes32,uint8,uint32)"(
|
"lockAssets(address,uint256,bytes32,uint8,uint32,bool)"(
|
||||||
asset: string,
|
asset: string,
|
||||||
amount: BigNumberish,
|
amount: BigNumberish,
|
||||||
recipient: Arrayish,
|
recipient: Arrayish,
|
||||||
target_chain: BigNumberish,
|
target_chain: BigNumberish,
|
||||||
nonce: BigNumberish,
|
nonce: BigNumberish,
|
||||||
|
refund_dust: boolean,
|
||||||
overrides?: TransactionOverrides
|
overrides?: TransactionOverrides
|
||||||
): Promise<BigNumber>;
|
): Promise<BigNumber>;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -31,7 +31,7 @@ async function lockAssets(asset: string,
|
||||||
let wh = WormholeFactory.connect(BRIDGE_ADDRESS, signer);
|
let wh = WormholeFactory.connect(BRIDGE_ADDRESS, signer);
|
||||||
try {
|
try {
|
||||||
message.loading({content: "Signing transaction...", key: "eth_tx", duration: 1000},)
|
message.loading({content: "Signing transaction...", key: "eth_tx", duration: 1000},)
|
||||||
let res = await wh.lockAssets(asset, amount, recipient, target_chain, 10)
|
let res = await wh.lockAssets(asset, amount, recipient, target_chain, 10, false)
|
||||||
message.loading({content: "Waiting for transaction to be mined...", key: "eth_tx", duration: 1000})
|
message.loading({content: "Waiting for transaction to be mined...", key: "eth_tx", duration: 1000})
|
||||||
await res.wait(1);
|
await res.wait(1);
|
||||||
message.success({content: "Transfer on ETH succeeded!", key: "eth_tx"})
|
message.success({content: "Transfer on ETH succeeded!", key: "eth_tx"})
|
||||||
|
|
Loading…
Reference in New Issue