Class: BiatecConfigProviderClient
A client to make calls to the BiatecConfigProvider smart contract
Constructors
Constructor
new BiatecConfigProviderClient(
appClient):BiatecConfigProviderClient
Creates a new instance of BiatecConfigProviderClient
Parameters
appClient
_AppClient
An AppClient instance which has been created with the BiatecConfigProvider app spec
Returns
BiatecConfigProviderClient
Constructor
new BiatecConfigProviderClient(
params):BiatecConfigProviderClient
Creates a new instance of BiatecConfigProviderClient
Parameters
params
Omit<AppClientParams, "appSpec">
The parameters to initialise the app client with
Returns
BiatecConfigProviderClient
Properties
appClient
readonlyappClient:_AppClient
The underlying AppClient for when you want to have more flexibility
params
readonlyparams:object
Get parameters to create transactions for the current app. A good mental model for this is that these parameters represent a deferred transaction creation.
update
update:
object
Gets available update methods
update.updateApplication()
updateApplication: (
params) =>any
Updates an existing instance of the BiatecConfigProvider smart contract using the updateApplication(byte[])void ABI method.
addressUdpater from global biatec configuration is allowed to update application
Parameters
params
any
The params for the smart contract call
Returns
any
The update params
clearState()
clearState: (
params?) =>any
Makes a clear_state call to an existing instance of the BiatecConfigProvider smart contract.
Parameters
params?
any
The params for the bare (raw) call
Returns
any
The clearState result
bootstrap()
bootstrap: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the bootstrap(uint256,uint64,uint64)void ABI method.
Setup the contract
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setAddressUdpater()
setAddressUdpater: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressUdpater(address)void ABI method.
Top secret account with which it is possible update contracts or identity provider
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setPaused()
setPaused: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setPaused(uint64)void ABI method.
Kill switch. In the extreme case all services (deposit, trading, withdrawal, identity modifications and more) can be suspended.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setAddressGov()
setAddressGov: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressGov(address)void ABI method.
Execution address with which it is possible to opt in for governance
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setAddressExecutive()
setAddressExecutive: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressExecutive(address)void ABI method.
Execution address with which it is possible to change global biatec fees
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setAddressExecutiveFee()
setAddressExecutiveFee: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressExecutiveFee(address)void ABI method.
Execution fee address is address which can take fees from pools.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setBiatecIdentity()
setBiatecIdentity: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setBiatecIdentity(uint64)void ABI method.
App identity setter
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setBiatecPool()
setBiatecPool: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setBiatecPool(uint64)void ABI method.
App identity setter
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setBiatecFee()
setBiatecFee: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setBiatecFee(uint256)void ABI method.
Fees in 9 decimals. 1_000_000_000 = 100% Fees in 9 decimals. 10_000_000 = 1% Fees in 9 decimals. 100_000 = 0,01%
Fees are respectful from the all fees taken to the LP providers. If LPs charge 1% fee, and biatec charges 10% fee, LP will receive 0.09% fee and biatec 0.01% fee
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
sendOnlineKeyRegistration()
sendOnlineKeyRegistration: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the sendOnlineKeyRegistration(byte[],byte[],byte[],uint64,uint64,uint64,uint64)void ABI method.
addressExecutiveFee can perfom key registration for this LP pool
Only addressExecutiveFee is allowed to execute this method.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
withdrawExcessAssets()
withdrawExcessAssets: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the withdrawExcessAssets(uint64,uint64)uint64 ABI method.
If someone deposits excess assets to this smart contract biatec can use them.
Only addressExecutiveFee is allowed to execute this method.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
createTransaction
readonlycreateTransaction:object
Create transactions for the current app
update
update:
object
Gets available update methods
update.updateApplication()
updateApplication: (
params) =>any
Updates an existing instance of the BiatecConfigProvider smart contract using the updateApplication(byte[])void ABI method.
addressUdpater from global biatec configuration is allowed to update application
Parameters
params
any
The params for the smart contract call
Returns
any
The update transaction
clearState()
clearState: (
params?) =>any
Makes a clear_state call to an existing instance of the BiatecConfigProvider smart contract.
Parameters
params?
any
The params for the bare (raw) call
Returns
any
The clearState result
bootstrap()
bootstrap: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the bootstrap(uint256,uint64,uint64)void ABI method.
Setup the contract
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setAddressUdpater()
setAddressUdpater: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressUdpater(address)void ABI method.
Top secret account with which it is possible update contracts or identity provider
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setPaused()
setPaused: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setPaused(uint64)void ABI method.
Kill switch. In the extreme case all services (deposit, trading, withdrawal, identity modifications and more) can be suspended.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setAddressGov()
setAddressGov: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressGov(address)void ABI method.
Execution address with which it is possible to opt in for governance
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setAddressExecutive()
setAddressExecutive: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressExecutive(address)void ABI method.
Execution address with which it is possible to change global biatec fees
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setAddressExecutiveFee()
setAddressExecutiveFee: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setAddressExecutiveFee(address)void ABI method.
Execution fee address is address which can take fees from pools.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setBiatecIdentity()
setBiatecIdentity: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setBiatecIdentity(uint64)void ABI method.
App identity setter
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setBiatecPool()
setBiatecPool: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setBiatecPool(uint64)void ABI method.
App identity setter
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setBiatecFee()
setBiatecFee: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the setBiatecFee(uint256)void ABI method.
Fees in 9 decimals. 1_000_000_000 = 100% Fees in 9 decimals. 10_000_000 = 1% Fees in 9 decimals. 100_000 = 0,01%
Fees are respectful from the all fees taken to the LP providers. If LPs charge 1% fee, and biatec charges 10% fee, LP will receive 0.09% fee and biatec 0.01% fee
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
sendOnlineKeyRegistration()
sendOnlineKeyRegistration: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the sendOnlineKeyRegistration(byte[],byte[],byte[],uint64,uint64,uint64,uint64)void ABI method.
addressExecutiveFee can perfom key registration for this LP pool
Only addressExecutiveFee is allowed to execute this method.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
withdrawExcessAssets()
withdrawExcessAssets: (
params) =>any
Makes a call to the BiatecConfigProvider smart contract using the withdrawExcessAssets(uint64,uint64)uint64 ABI method.
If someone deposits excess assets to this smart contract biatec can use them.
Only addressExecutiveFee is allowed to execute this method.