Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maticnetwork/maticjs

Package Overview
Dependencies
Maintainers
4
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maticnetwork/maticjs - npm Package Compare versions

Comparing version 3.7.7 to 3.7.8

1

dist/ts/zkevm/bridge_util.d.ts

@@ -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.

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc