Skip to content

Commit

Permalink
upd: conversion auth data
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Dec 17, 2024
1 parent 7169e7d commit 5aa9f36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/interfaces/gas_porter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export interface ICargo {
swapCalldata: string;
tokenPermitData: string;
forceUpdateGlobalExitRoot: boolean;
// Tracking:
trackingNumber: string;
}

export interface IConversionAuthorization {
Expand All @@ -42,6 +44,7 @@ export interface IConversionAuthorization {
gassetDestinationAddress: string;
gassetDestinationPermitData: string;
gassetDestinationAmount: string;
destinationSwapCalldata: string;
destinationNativeTokenMinimumAmount: string;
deadline: number;
}
20 changes: 11 additions & 9 deletions src/lxly/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ export class ERC20 extends Token {
'bool',
'uint32',
'address',
'uint256',
'address',
'uint32',
'bytes',
Expand All @@ -809,14 +810,15 @@ export class ERC20 extends Token {
forceUpdateGlobalExitRoot: callDataParams[1],
destinationNetwork: callDataParams[2],
destinationAddress: callDataParams[3],
gasset: callDataParams[4],
gassetSource: callDataParams[5],
gassetPermitData: callDataParams[6] || '0x',
gassetAmount: callDataParams[7],
swapCalldata: callDataParams[8] || '0x',
token: callDataParams[9],
tokenAmount: callDataParams[10],
tokenPermitData: callDataParams[11] || '0x'
trackingNumber: callDataParams[4],
gasset: callDataParams[5],
gassetSource: callDataParams[6],
gassetPermitData: callDataParams[7] || '0x',
gassetAmount: callDataParams[8],
swapCalldata: callDataParams[9] || '0x',
token: callDataParams[10],
tokenAmount: callDataParams[11],
tokenPermitData: callDataParams[12] || '0x'
},
callData: data.callData,
msgValue: data.msgValue
Expand Down Expand Up @@ -892,7 +894,7 @@ export class ERC20 extends Token {
data.bridgeAssetAndGas.forceUpdateGlobalExitRoot,
data.bridgeAssetAndGas.destinationNetwork,
data.bridgeAssetAndGas.destinationAddress,
Date.now(),
data.bridgeAssetAndGas.trackingNumber,
data.bridgeAssetAndGas.gasset,
data.bridgeAssetAndGas.gassetSource,
data.bridgeAssetAndGas.gassetPermitData,
Expand Down

0 comments on commit 5aa9f36

Please sign in to comment.