Class: BiatecIdentityProviderClient
A client to make calls to the BiatecIdentityProvider smart contract
Constructors
Constructor
new BiatecIdentityProviderClient(
appClient):BiatecIdentityProviderClient
Creates a new instance of BiatecIdentityProviderClient
Parameters
appClient
_AppClient
An AppClient instance which has been created with the BiatecIdentityProvider app spec
Returns
BiatecIdentityProviderClient
Constructor
new BiatecIdentityProviderClient(
params):BiatecIdentityProviderClient
Creates a new instance of BiatecIdentityProviderClient
Parameters
params
Omit<AppClientParams, "appSpec">
The parameters to initialise the app client with
Returns
BiatecIdentityProviderClient
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 BiatecIdentityProvider smart contract using the updateApplication(uint64,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 BiatecIdentityProvider 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 BiatecIdentityProvider smart contract using the bootstrap(uint64,address,address,address)void ABI method.
Biatec deploys single identity provider smart contract
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
selfRegistration()
selfRegistration: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the selfRegistration(address,(uint64,bool,uint64,uint64,uint64,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,bool))void ABI method.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
setInfo()
setInfo: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the setInfo(address,(uint64,bool,uint64,uint64,uint64,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,bool))void ABI method.
This method can set fees, verification class, engagement class .. Only engagementSetter is allowed to execute this method.
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 BiatecIdentityProvider smart contract using the sendOnlineKeyRegistration(uint64,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
getUser()
getUser: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the getUser(address,uint8)(uint8,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,bool,uint64,uint64,bool) ABI method.
This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
Returns user information - fee multiplier, verification class, engagement class ..
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call params
getUserShort()
getUserShort: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the getUserShort(address,uint8)(uint8,uint64,uint64,uint64,bool) ABI method.
This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
Returns short user information - fee multiplier, verification class, engagement class ..
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 BiatecIdentityProvider smart contract using the withdrawExcessAssets(uint64,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 BiatecIdentityProvider smart contract using the updateApplication(uint64,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 BiatecIdentityProvider 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 BiatecIdentityProvider smart contract using the bootstrap(uint64,address,address,address)void ABI method.
Biatec deploys single identity provider smart contract
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
selfRegistration()
selfRegistration: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the selfRegistration(address,(uint64,bool,uint64,uint64,uint64,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,bool))void ABI method.
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
setInfo()
setInfo: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the setInfo(address,(uint64,bool,uint64,uint64,uint64,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,bool))void ABI method.
This method can set fees, verification class, engagement class .. Only engagementSetter is allowed to execute this method.
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 BiatecIdentityProvider smart contract using the sendOnlineKeyRegistration(uint64,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
getUser()
getUser: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the getUser(address,uint8)(uint8,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,bool,uint64,uint64,bool) ABI method.
This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
Returns user information - fee multiplier, verification class, engagement class ..
Parameters
params
object & object
The params for the smart contract call
Returns
any
The call transaction
getUserShort()
getUserShort: (
params) =>any
Makes a call to the BiatecIdentityProvider smart contract using the getUserShort(address,uint8)(uint8,uint64,uint64,uint64,bool) ABI method.
This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
Returns short user information - fee multiplier, verification class, engagement class ..
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 BiatecIdentityProvider smart contract using the withdrawExcessAssets(uint64,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 transaction
send
readonlysend:object
Send calls to the current app
update
update:
object
Gets available update methods
update.updateApplication()
updateApplication: (
params) =>Promise<any>
Updates an existing instance of the BiatecIdentityProvider smart contract using the updateApplication(uint64,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
Promise<any>
The update result
clearState()
clearState: (
params?) =>any
Makes a clear_state call to an existing instance of the BiatecIdentityProvider smart contract.
Parameters
params?
any
The params for the bare (raw) call
Returns
any
The clearState result
bootstrap()
bootstrap: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the bootstrap(uint64,address,address,address)void ABI method.
Biatec deploys single identity provider smart contract
Parameters
params
any
The params for the smart contract call
Returns
Promise<any>
The call result
selfRegistration()
selfRegistration: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the selfRegistration(address,(uint64,bool,uint64,uint64,uint64,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,bool))void ABI method.
Parameters
params
any
The params for the smart contract call
Returns
Promise<any>
The call result
setInfo()
setInfo: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the setInfo(address,(uint64,bool,uint64,uint64,uint64,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,bool))void ABI method.
This method can set fees, verification class, engagement class .. Only engagementSetter is allowed to execute this method.
Parameters
params
any
The params for the smart contract call
Returns
Promise<any>
The call result
sendOnlineKeyRegistration()
sendOnlineKeyRegistration: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the sendOnlineKeyRegistration(uint64,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
any
The params for the smart contract call
Returns
Promise<any>
The call result
getUser()
getUser: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the getUser(address,uint8)(uint8,uint64,uint64,bool,string,string,uint64,uint64,uint64,uint64,uint64,uint64,uint64,uint64,bool,uint64,uint64,bool) ABI method.
This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
Returns user information - fee multiplier, verification class, engagement class ..
Parameters
params
any
The params for the smart contract call
Returns
Promise<any>
The call result
getUserShort()
getUserShort: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the getUserShort(address,uint8)(uint8,uint64,uint64,uint64,bool) ABI method.
This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
Returns short user information - fee multiplier, verification class, engagement class ..
Parameters
params
any
The params for the smart contract call
Returns
Promise<any>
The call result
withdrawExcessAssets()
withdrawExcessAssets: (
params) =>Promise<any>
Makes a call to the BiatecIdentityProvider smart contract using the withdrawExcessAssets(uint64,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
any
The params for the smart contract call
Returns
Promise<any>
The call result
state
state:
object
Methods to access state for the current BiatecIdentityProvider app
global
global:
object
Methods to access global state for the current BiatecIdentityProvider app
global.getAll()
getAll: () =>
Promise<Partial<{governor:string;verificationSetter:string;engagementSetter:string;appBiatecConfigProvider:bigint;version:BinaryState; }>>
Get all current keyed values from global state
Returns
Promise<Partial<{ governor: string; verificationSetter: string; engagementSetter: string; appBiatecConfigProvider: bigint; version: BinaryState; }>>
global.governor()
governor: () =>
Promise<string|undefined>
Get the current value of the governor key in global state
Returns
Promise<string | undefined>
global.verificationSetter()
verificationSetter: () =>
Promise<string|undefined>
Get the current value of the verificationSetter key in global state
Returns
Promise<string | undefined>
global.engagementSetter()
engagementSetter: () =>
Promise<string|undefined>
Get the current value of the engagementSetter key in global state
Returns
Promise<string | undefined>
global.appBiatecConfigProvider()
appBiatecConfigProvider: () =>
Promise<bigint|undefined>
Get the current value of the appBiatecConfigProvider key in global state
Returns
Promise<bigint | undefined>
global.version()
version: () =>
Promise<BinaryState>
Get the current value of the version key in global state
Returns
Promise<BinaryState>