@maticnetwork/maticjs
Advanced tools
Comparing version 3.7.7 to 3.7.8
@@ -15,2 +15,3 @@ import { Web3SideChainClient } from "../utils"; | ||
smtProof: string[]; | ||
smtProofRollup?: string[]; | ||
index: number; | ||
@@ -17,0 +18,0 @@ mainnetExitRoot: string; |
@@ -41,2 +41,21 @@ import { BaseToken, Web3SideChainClient } from "../utils"; | ||
/** | ||
* Claim function to be called on the destination network | ||
* | ||
* @param {string[]} smtProof Merkle Proof | ||
* @param {string[]} smtProofRollup Roll up Merkle Proof | ||
* @param {number} index Deposit Index | ||
* @param {string} mainnetExitRoot Mainnet Exit Root | ||
* @param {string} rollupExitRoot RollUP Exit Root | ||
* @param {number} originNetwork Network at which token was initially deployed | ||
* @param {string} originTokenAddress Address of token at network where token was initially deployed | ||
* @param {string} destinationAddress Address to which tokens will be bridged | ||
* @param {TYPE_AMOUNT} amount amount of tokens | ||
* @param {string} [metadata] Metadata of token | ||
* @param {ITransactionOption} [option] | ||
* | ||
* @returns | ||
* @memberof ZkEvmBridge | ||
*/ | ||
claimAssetNew(smtProof: string[], smtProofRollup: string[], index: number, mainnetExitRoot: string, rollupExitRoot: string, originNetwork: number, originTokenAddress: string, destinationNetwork: number, destinationAddress: string, amount: TYPE_AMOUNT, metadata: string, option: ITransactionOption): Promise<import("../interfaces").ITransactionWriteResult>; | ||
/** | ||
* bridge function to be called on that network from where message is to be transferred to a different network | ||
@@ -74,2 +93,23 @@ * @param {number} destinationNetwork Network at which tokens will be bridged | ||
/** | ||
* Claim Message new function to be called on the destination network | ||
* If the receiving address is an EOA, the call will result as a success | ||
* Which means that the amount of ether will be transferred correctly, but the message | ||
* will not trigger any execution. this will work after Etrog changes | ||
* @param {string[]} smtProof Merkle Proof | ||
* @param {string[]} smtProofRollup Roll up Merkle Proof | ||
* @param {number} index Deposit Index | ||
* @param {string} mainnetExitRoot Mainnet Exit Root | ||
* @param {string} rollupExitRoot RollUP Exit Root | ||
* @param {number} originNetwork Network at which token was initially deployed | ||
* @param {string} originTokenAddress Address of token at network where token was initially deployed | ||
* @param {string} destinationAddress Address to which tokens will be bridged | ||
* @param {TYPE_AMOUNT} amount amount of tokens | ||
* @param {string} [metadata] Metadata of token | ||
* @param {ITransactionOption} [option] | ||
* | ||
* @returns | ||
* @memberof ZkEvmBridge | ||
*/ | ||
claimMessageNew(smtProof: string[], smtProofRollup: string[], index: number, mainnetExitRoot: string, rollupExitRoot: string, originNetwork: number, originTokenAddress: string, destinationNetwork: number, destinationAddress: string, amount: TYPE_AMOUNT, metadata: string, option: ITransactionOption): Promise<import("../interfaces").ITransactionWriteResult>; | ||
/** | ||
* get the address of token which is created by the bridge contract on the non origin chain | ||
@@ -90,3 +130,3 @@ * | ||
*/ | ||
isClaimed(index: number): Promise<string>; | ||
isClaimed(index: number, sourceBridgeNetwork: number): Promise<string>; | ||
/** | ||
@@ -93,0 +133,0 @@ * Even if the wrapped contract is not deployed on the destination chain, it will tell us the address which is going to be. |
{ | ||
"name": "@maticnetwork/maticjs", | ||
"version": "3.7.7", | ||
"version": "3.7.8", | ||
"description": "Javascript developer library for interacting with Matic Network", | ||
@@ -5,0 +5,0 @@ "main": "dist/npm.export.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
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
25203880
167218