Skip to main content

AvN Gateway Changelog


v4.0.0

🚀 Multi-Currency Payments

In this release, we have added support for multi-currency payments, allowing users to pay their Gateway service fees in currencies other than the native one. To enable this, we've introduced these two new fields.

  • When setting up/initialising the SDK, the options object can now take an optional property called paymentCurrencyToken. This should be the Ethereum address of the token, in Hex format.
  • When querying relayer fees, the function (getRelayerFees) accepts an extra mandatory parameter currencyToken. This should be the Ethereum address of the token, in Hex format.

v3.5.0

🚀 New Batch NFT Query Endpoints


v3.4.0

🚀 New NFT Query Endpoints


v3.3.0

🚀 Cross-chain NFT transactions

These are cross-chain transactions given that they require communication between the Aventus parachain and the Ethereum blockchain during the lifecycle of the transaction.

🚀 Request State

  • Validating - This state is restricted to cross-chain transactions.

v3.1.0

🚀 SetupMode

  • OfflineMode - Allows the API be set up in Offline mode, not requiring a SURI.

v3.0

💥 Breaking Change

  • SetupMode - Modes in which the API can be set up in. Either Single or Multi user modes.
  • SigningMode - Defines if the API should expect an external signer for transactions.
  • Nonce caching - Allows the user to specify a remote cache via an INonceCacheProvider or to specify a local cache.
  • Log Level - Specifies how detailed the logs from the API should be.

v2.4

Staking

  • getStakerRewardsEarned - Get the rewards earned by a staker. This can return either the total rewards earned by a staker or the rewards earned within a specified timeframe.

v2.0

💥 Breaking Change

  • Remote Signer: Introduces the possibility to authenticate a user without requesting their SURI but instead trigger their KMS to sign an action via a http call.

Query

Utils


v1.0

💥 Breaking Change

  • User nonce now required when submitting transactions via JSON-RPC.
  • For non-JSON-RPC implementations, the relayer address can now be declared during initialisation and does not need to be repeated later in the code.

v0.8

✂️ Split Fees

🚀 v8 New Feature

🖼️ Batch NFTs

  • mintBatchNft
  • createNftBatch
  • listFiatNftBatchForSale
  • endNftBatchSale

v0.7


🚀 v7 New Feature

Chain

  • getChainInfo
  • getCurrentBlock
  • getSummaryData

💵 Staking

  • getEraElectionStatus

🔍 Query

  • getTotalToken

v0.6


🚀 v6 New Features

💵 Staking

  • getActiveEra
  • stake
  • getStakingStatus
  • payoutStakers
  • unstake
  • withdrawUnlocked
  • getStakingStats

🔍 Query

  • getValidatorsToNominate
  • getAvnContractAddress
  • getNftContractAddress

🚅 Send

  • confirmLift
  • lowerToken

🧰 Utils

  • myAddress
  • myPublicKey
  • addressToPublicKey
  • setSURI

💥 Breaking Change

  • query.getNonce
    • getAccountNonce and getAccountPaymentNonce have now been merged into getNonce. Pass an additional nonceType argument, 'token' and 'payment' respectively. It also returns the nonce for staking and confirmation.
  • poll.requestState
    • Previously returned only the status of the transaction. Now returns a JSON that includes the transaction hash, transaction status, block number, and transaction index.

v0.5


🚀 v5 New Features

💰 AVT

  • getAvtContractAddress

💼 Account

  • getAccountPaymentNonce

🖼 NFT

  • getNftId
  • getNftNonce
  • getNftOwner

v0.4


🚀 v4 New Features

🖼️ NFT

  • mintSingleNft
  • transferFiatNft
  • ListNftOpenForSale
  • cancelListFiatNft
  • Royalties

v0.3


🚀 v3 New Features

🔍 Queries

  • getRelayerFees