💻ABIs & Contract Addresses
Last updated
Last updated
The following contracts have been deployed on the Berachain bArtio Testnet - Chain id: 80084
Contract Name | Contract Address |
---|---|
The following functions are applicable to both Linear and Exponential Vaults.
This function is used to purchase tokens from a bonding curve. It should be called within the Linear or Exponential vault smart contract, which manages the bonding curve for the specific token you want to buy.
Use this function to sell tokens back to the bonding curve. This function should be called within the Linear or Exponential vault smart contract that manages the bonding curve for the specific token you want to sell.
Calculates and returns a quote of the amount of tokens that will be bought or sold at the current curve. This function should be called within the Linear or Exponential vault smart contract that manages the bonding curve for the specific token you want to get a quote for.
Function to create a new token
The following events are emitted from the Event Tracker contract when a trade or a token deployment occurs
Emitted when a new trade occurs
Emitted when a new token is deployed
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
0xf29c21854314Bae5db058932AfaD2c12A1e916BE
0x15003BD3651CddB0cB052608D025Db420EFEfAed
0x4A2E15159637A60a147D021BfC0F5FE4e049F22f
0x2f39b10CdDF881E0eE96e4c4e8926D8dD7107307
0x4998b057863cB66f6B7BBA6Fb9A400831B89daaa
token
address
The token address
minTokens
uint256
The minimum amount of tokens to buy, will revert if slippage exceeds this value. Must be greater than 1e15.
affiliate
address
The affiliate address, zero address if none
token
address
The token address
tokenAmount
uint256
The amount of tokens to sell
minBera
uint256
The minimum amount of Bera to receive, will revert if slippage exceeds this value. Must be greater than 1e15.
affiliate
address
The affiliate address, zero address if none
token
address
The token address
amount
uint256
The amount of tokens or Bera
isBuyOrder
bool
True if buying tokens, false if
selling tokens
amountOut
address
The amount of tokens or Bera that will be bought or sold
pricePerToken
uint256
The price per token, scaled by 1e18
pricePerBera
uint256
The price per Bera, scaled by 1e18
name
string
The token name
symbol
string
The token symbol
description
string
The token description
image
string
The IPFS uri of the token image
vault
address
The address of the Linear or Exponential vault to use.
salt
bytes32
A bytes32 salt that will determine the contract address
token
address
The token address
tokenAmount
uint256
The token amount bought/sold
beraAmount
uint256
The bera amount bought/sold
isBuyOrder
bool
True if buying tokens, false if
selling tokens
vault
address
The vault address that the trade occured in.
token
address
The address of the newly deployed token
name
string
The token name
symbol
string
The token symbol
description
string
The token description
image
string
The IPFS uri of the token image
deployer
address
The address of the token deployer
vault
address
The vault address that the trade occured in.