Bridge Network
Search…
⌃K

Functions & Parameters

AssetAddress => This is the address of the token being bridged or being added to the bridge.
minAmount => This is the minimum amount threshold of the token a user can bridge
maxAmount => This is the maximum amount threshold of the token a user can bridge.
Amount => This is the amount of token to be bridged
Receiver => This is the address of the receiver on the destination chain.
burn => This function is called to destroy wrapped assets on the foreign chain and release the native asset on its native chain
send => This function is send a native asset from one chain to another.
supportedChains => This is an array of all the supported chains the token issuer would like to enable the asset to be available on
feeAccount => This is the address that receives a percentage of the fees earned when users bridge the integrated asset.
Manager => This is the address of the user that manages the token on Bridge Network. This user can active and deactivate the token, update the minimum and maximum bridging limits for this token and update the fee account.
Deploy with => This parameter controls what type of wrapped asset is deployed on the foreign chain. The default is the standard ERC20 token. We currently support the Lossless Token Standard in such a case where the Manager specifies that the wrapped asset be deployed with LSS standard. The asset would then follow the lossless standards. This is handled by the deployer contract and can updated and expanded to support other standards in the future.
chainTo => This is the chain ID of the network the user is sending the asset .
getBridgefee => This function takes the sender's address , the asset address and the destination chain ID and returns the fee expected by the send function. This function deducts all the incentives attached to the transaction.
transactionID => This is a transaction's unique identifier that is created once the send function is successfully called.
networkFee => This function takes the destination chain ID and returns the fees associated with the transfer of fees to that network.
isNetworkSupportedChain => This function checks if a chain ID is supported.
getNetworkSupportedChains() => This function returns the list of chains supported by the network.
minValdations() => This function returns the minimum number of validators required to validate a transaction.
feeRemitance()=> This function returns the address that receives accumulated bridging fee.
railRegistrationFee => This function returns the amount of BRG tokens required to add a token to Bridge Network. The amount is for one chain, to add to multiple chains the amount is multiplied by the number of chains.
railOwnerFeeShare() => This function returns the percentage fee a token deployer gets from the fee accumulated from the token bridging.
approvedToAdd => This function checks if a user is approved to register a specific asset to Bridge Network.
isSendTransaction => This function checks if a transaction is a send transaction.
isClaimTransaction => This function checks if a transaction is a claim transaction.
isMintTransaction => This function checks if a transaction is a mint transaction.
isburnTransaction =>This function checks if a transaction is a burn transaction.
transactionValidated=> This function checks if a transaction if a transaction is validated
getUserNonce => This function returns the nonce of the user.
assetChainBalance => This function is used to get the active amount of a certain asset bridged to a particular chain.
completeSendTransaction => This function change the state of a send transaction to completed.
completeBurnTransaction => This function change the state of a burn transaction to completed.
completeMintTransaction => This function change the state of a mint transaction to completed.
completeClaimTransaction => This function change the state of a claim transaction to completed.
sendTransactions => This function is used to get the transaction details of a send transaction.
claimTransactions => This function is used to get the transaction details of a claim transaction.
burnTransactions => This function is used to get the transaction details of a burn transaction.
mintTransactions=> This function is used to get the transaction details of a mint transaction.
isAssetSupportedChain => This function is used to check if an asset/token on a chain can be bridged to another chain.
claim => This function is used to claim a successfully validated claim transaction.
mint => This function is used to mint a successfully validated mint transaction.
foriegnAssetChainID => This function is used to get the chain ID of a foreign asset parameter.
foriegnAssets => This function is used to get the details of a foreign asset parameter.
nativeAssets => This function is used to get the details of a native asset parameter.
wrappedForiegnPair => This function is used to get the wrapped asset address of a foreign asset.
assetLimits => This function is used to get the transfer limits of an asset. The values returned are the minimum limit and maximum limit respectively.