web: update ABI

This commit is contained in:
Hendrik Hofstadt 2020-08-30 11:25:02 +02:00
parent a2bd5fbb11
commit 7dc309c490
4 changed files with 7233 additions and 4796 deletions

File diff suppressed because one or more lines are too long

View File

@ -35,12 +35,13 @@ interface WormholeInterface extends Interface {
submitVAA: TypedFunctionDescription<{ encode([vaa]: [Arrayish]): string }>;
lockAssets: TypedFunctionDescription<{
encode([asset, amount, recipient, target_chain, nonce]: [
encode([asset, amount, recipient, target_chain, nonce, refund_dust]: [
string,
BigNumberish,
Arrayish,
BigNumberish,
BigNumberish
BigNumberish,
boolean
]): string;
}>;
@ -189,15 +190,17 @@ export class Wormhole extends Contract {
recipient: Arrayish,
target_chain: BigNumberish,
nonce: BigNumberish,
refund_dust: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
"lockAssets(address,uint256,bytes32,uint8,uint32)"(
"lockAssets(address,uint256,bytes32,uint8,uint32,bool)"(
asset: string,
amount: BigNumberish,
recipient: Arrayish,
target_chain: BigNumberish,
nonce: BigNumberish,
refund_dust: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
@ -304,15 +307,17 @@ export class Wormhole extends Contract {
recipient: Arrayish,
target_chain: BigNumberish,
nonce: BigNumberish,
refund_dust: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
"lockAssets(address,uint256,bytes32,uint8,uint32)"(
"lockAssets(address,uint256,bytes32,uint8,uint32,bool)"(
asset: string,
amount: BigNumberish,
recipient: Arrayish,
target_chain: BigNumberish,
nonce: BigNumberish,
refund_dust: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
@ -433,15 +438,17 @@ export class Wormhole extends Contract {
recipient: Arrayish,
target_chain: BigNumberish,
nonce: BigNumberish,
refund_dust: boolean,
overrides?: TransactionOverrides
): Promise<BigNumber>;
"lockAssets(address,uint256,bytes32,uint8,uint32)"(
"lockAssets(address,uint256,bytes32,uint8,uint32,bool)"(
asset: string,
amount: BigNumberish,
recipient: Arrayish,
target_chain: BigNumberish,
nonce: BigNumberish,
refund_dust: boolean,
overrides?: TransactionOverrides
): Promise<BigNumber>;

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,7 @@ async function lockAssets(asset: string,
let wh = WormholeFactory.connect(BRIDGE_ADDRESS, signer);
try {
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})
await res.wait(1);
message.success({content: "Transfer on ETH succeeded!", key: "eth_tx"})