@maticnetwork/lxlyjs
Advanced tools
Comparing version 2.3.1 to 2.3.2
/*! | ||
* @license :@maticnetwork/lxlyjs - V2.3.1 - 27/11/2024 | ||
* @license :@maticnetwork/lxlyjs - V2.3.2 - 18/12/2024 | ||
* https://github.com/0xpolygon/lxly.js | ||
@@ -4,0 +4,0 @@ * Copyright (c) 2024 @Polygon Labs; Licensed MIT |
/*! | ||
* @license :@maticnetwork/lxlyjs - V2.3.1 - 27/11/2024 | ||
* @license :@maticnetwork/lxlyjs - V2.3.2 - 18/12/2024 | ||
* https://github.com/0xpolygon/lxly.js | ||
* Copyright (c) 2024 @Polygon Labs; Licensed MIT | ||
*/ |
declare const _default: ({ | ||
type: string; | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
stateMutability: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
stateMutability: string; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
type: string; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
} | { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components?: undefined; | ||
})[]; | ||
}[]; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
internalType: string; | ||
} | { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: ({ | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
internalType: string; | ||
}[]; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
indexed: boolean; | ||
internalType: string; | ||
}[]; | ||
anonymous: boolean; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
stateMutability: string; | ||
type: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
})[]; | ||
export default _default; |
declare const _default: { | ||
GasPorter: ({ | ||
type: string; | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
stateMutability: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
stateMutability: string; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
type: string; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
} | { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components?: undefined; | ||
})[]; | ||
}[]; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
internalType: string; | ||
} | { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: ({ | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
internalType: string; | ||
}[]; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
indexed: boolean; | ||
internalType: string; | ||
}[]; | ||
anonymous: boolean; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
stateMutability: string; | ||
type: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
})[]; | ||
@@ -126,0 +126,0 @@ ERC20: ({ |
declare const _default: ({ | ||
type: string; | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
stateMutability: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
stateMutability: string; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
type: string; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
} | { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components?: undefined; | ||
})[]; | ||
}[]; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
internalType: string; | ||
} | { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: ({ | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
internalType: string; | ||
}[]; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
indexed: boolean; | ||
internalType: string; | ||
}[]; | ||
anonymous: boolean; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
stateMutability: string; | ||
type: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
})[]; | ||
export default _default; |
declare const _default: { | ||
GasPorter: ({ | ||
type: string; | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
stateMutability: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
stateMutability: string; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
type: string; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
} | { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components?: undefined; | ||
})[]; | ||
}[]; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: ({ | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
internalType: string; | ||
} | { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: ({ | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
components: { | ||
name: string; | ||
type: string; | ||
} | { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
components?: undefined; | ||
})[]; | ||
internalType: string; | ||
}[]; | ||
}[]; | ||
outputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
name: string; | ||
outputs: any[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
inputs: { | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
indexed: boolean; | ||
internalType: string; | ||
}[]; | ||
anonymous: boolean; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
type: string; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
inputs: { | ||
name: string; | ||
type: string; | ||
internalType: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
anonymous?: undefined; | ||
} | { | ||
stateMutability: string; | ||
type: string; | ||
inputs?: undefined; | ||
name?: undefined; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
})[]; | ||
@@ -126,0 +126,0 @@ ERC20: ({ |
@@ -27,12 +27,15 @@ export declare enum GassetType { | ||
forceUpdateGlobalExitRoot: boolean; | ||
trackingNumber: string; | ||
} | ||
export interface IConversionAuthorization { | ||
originNetworkID: number; | ||
originNetworkTxHash: string; | ||
trackingNumber: number; | ||
signer: string; | ||
conversionNonce: number; | ||
settlementTokenDestinationAddress: string; | ||
settlementTokenDestinationPermitData: string; | ||
settlementTokenDestinationAmount: string; | ||
gassetDestinationAddress: string; | ||
gassetDestinationPermitData: string; | ||
gassetDestinationAmount: string; | ||
destinationSwapCalldata: string; | ||
destinationNativeTokenMinimumAmount: string; | ||
deadline: number; | ||
} |
@@ -238,2 +238,3 @@ import { ITransactionOption } from "../interfaces"; | ||
destinationAddress: any; | ||
trackingNumber: any; | ||
gasset: any; | ||
@@ -270,3 +271,3 @@ gassetSource: any; | ||
*/ | ||
bridgeAssetAndGas(requestConversion: boolean, forceUpdateGlobalExitRoot: boolean, destinationNetwork: number, destinationAddress: string, gasset: string, gassetSource: GassetSource, gassetPermitData: string, gassetAmount: string, swapCalldata: string, token: string, tokenAmount: string, tokenPermitData: string, option?: ITransactionOption): Promise<import("..").ITransactionWriteResult>; | ||
bridgeAssetAndGas(requestConversion: boolean, forceUpdateGlobalExitRoot: boolean, destinationNetwork: number, destinationAddress: string, trackingNumber: number, gasset: string, gassetSource: GassetSource, gassetPermitData: string, gassetAmount: string, swapCalldata: string, token: string, tokenAmount: string, tokenPermitData: string, option?: ITransactionOption): Promise<import("..").ITransactionWriteResult>; | ||
/** | ||
@@ -273,0 +274,0 @@ * Get the plot route call data for bridge asset and gas and then do the bridgeAssetAndGas transaction |
@@ -7,3 +7,3 @@ import { BaseToken, Web3SideChainClient } from "../utils"; | ||
plotRoute(cargo: ICargo, option?: ITransactionOption): Promise<unknown>; | ||
bridgeAssetAndGas(requestConversion: boolean, forceUpdateGlobalExitRoot: boolean, destinationNetwork: number, destinationAddress: string, gasset: string, gassetSource: GassetSource, gassetPermitData: string, gassetAmount: string, swapCalldata: string, token: string, tokenAmount: string, tokenPermitData: string, option?: ITransactionOption): Promise<import("../interfaces").ITransactionWriteResult>; | ||
bridgeAssetAndGas(requestConversion: boolean, forceUpdateGlobalExitRoot: boolean, destinationNetwork: number, destinationAddress: string, trackingNumber: number, gasset: string, gassetSource: GassetSource, gassetPermitData: string, gassetAmount: string, swapCalldata: string, token: string, tokenAmount: string, tokenPermitData: string, option?: ITransactionOption): Promise<import("../interfaces").ITransactionWriteResult>; | ||
convertGasset(data: IConversionAuthorization, signature: string, option?: ITransactionOption): Promise<import("../interfaces").ITransactionWriteResult>; | ||
@@ -10,0 +10,0 @@ determineGasset(destinationNetworkGasTokenNetwork: number, destinationNetworkGasTokenAddress: string, gassetType: GassetType, option?: ITransactionOption): Promise<unknown>; |
{ | ||
"name": "@maticnetwork/lxlyjs", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Javascript developer library for interacting with Polygon LxLy Bridge", | ||
@@ -5,0 +5,0 @@ "main": "dist/lxly.node.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3909307
16949