Protected
contractProtected
contractProtected
dryThe dry-run instance accessible through the CISContract.dryRun dryRun
getter
Protected
grpcParameter schemas for each CIS4 update entrypoint. These are returned individually when creating update transactions to be used for serializing a corresponding JSON representation of the parameter.
A dry-run instance, providing access to methods for performing dry-run invocations of update instructions.
Check if the smart contract instance exists on the blockchain and whether it uses a matching contract name. Optionally a module reference can be provided to check if the contract instance uses this module.
If failing to communicate with the concordium node or if the instance does not exist on chain or fails the checks.
Optional
options: ContractCheckOnChainOptions = {}Options for checking information on chain.
Creates and sends a contract update transaction with parameter input
to entrypoint
.
If the query could not be invoked successfully.
The transaction hash of the update transaction
The type of the input
The name of the receive function to invoke.
A function to serialize the input
to bytes.
Metadata to be used for the transaction (with defaults).
Input for for contract function.
An object to use for signing the transaction.
Create the details necessary to submit a CIS4.registerCredential update transaction.
Transaction data for a CIS4.registerCredential update.
transaction metadata
the credential info to register
Optional
additionalData: string = ''any additional data to include
Create the details necessary to submit a CIS4.registerRevicationKeys update transaction.
Transaction data for a CIS4.registerRevicationKeys update.
transaction metadata
a single or list of hex encoded public keys to be used for revocation
Optional
additionalData: string = ''any additional data to include
Create the details necessary to submit a CIS4.removeRevicationKeys update transaction.
Transaction data for a CIS4.removeRevicationKeys update.
transaction metadata
a single or list of hex encoded public keys to be removed
Optional
additionalData: string = ''any additional data to include
Create the details necessary to submit a CIS4.revokeCredentialHolder update transaction.
Transaction data for a CIS4.revokeCredentialHolder update.
transaction metadata
A signer structure for the credential holder
the nonce of the owner inside the contract
Expiry time of the revocation message
Optional
reason: stringthe reason for the revocation
Create the details necessary to submit a CIS4.revokeCredentialIssuer update transaction.
Transaction data for a CIS4.revokeCredentialIssuer update.
transaction metadata
the public key of the credential holder (hex encoded)
Optional
reason: stringthe reason for the revocation
Optional
additionalData: string = ''any additional data to include
Create the details necessary to submit a CIS4.revokeCredentialOther update transaction.
Transaction data for a CIS4.revokeCredentialOther update.
transaction metadata
A signer structure for the revoker
the public key (hex encoded) for the credential to revoke
the nonce of the owner inside the contract
Expiry time of the revocation message
Optional
reason: stringthe reason for the revocation
Creates a ContractUpdateTransactionWithSchema contract update transaction, holding the necessary parts to sign/submit to the chain.
If the query could not be invoked successfully.
The transaction hash of the update transaction
The name of the receive function to invoke.
A function to serialize the input
to bytes.
Metadata to be used for the transaction creation (with defaults).
Input for for contract function.
Creates a ContractUpdateTransactionWithSchema contract update transaction, holding the necessary parts to sign/submit to the chain.
If the query could not be invoked successfully.
The transaction hash of the update transaction
The name of the receive function to invoke.
A function to serialize the input
to bytes.
Metadata to be used for the transaction creation (with defaults).
Input for for contract function.
A function to format the input
as JSON format serializable by the contract schema.
Look up an entry in the registry by the public key of its holder.
a corresponding credential entry.
public key identifying the credential holder
Optional
blockHash: BlockHashblock to perform query at.
Look up the status of a credential by the public key of its holder.
a corresponding credential status.
public key identifying the credential holder
Optional
blockHash: BlockHashblock to perform query at.
Get information on this smart contract instance.
if the InstanceInfo of the contract could not be found.
The instance info.
Optional
blockHash: BlockHashHash of the block to check information at. When not provided the last finalized block is used.
Invokes entrypoint
view function on contract.
If the query could not be invoked successfully.
The transaction hash of the update transaction
The type of the input
The type the invocation response should be deserialized into.
The name of the view function to invoke.
A function to serialize the input
to bytes.
A function to deserialize the value returned from the view invocation.
Input for for contract function.
Optional
blockHash: BlockHashThe hash of the block to perform the invocation of. Defaults to the latest finalized block on chain.
Protected
makeSubmit CIS4.registerCredential update transaction.
The hash of the submitted transaction
to be used for signing the transaction sent to the node.
transaction metadata
the credential info to register
Optional
additionalData: string = ''any additional data to include
Submit CIS4.registerRevocationKeys update transaction.
The hash of the submitted transaction
to be used for signing the transaction sent to the node.
transaction metadata
a single or list of hex encoded public keys to be used for revocation
Optional
additionalData: string = ''any additional data to include
Get the registry metadata.
a metadata URL.
Optional
blockHash: BlockHashblock to perform query at.
Submit CIS4.removeRevocationKeys update transaction.
The hash of the submitted transaction
to be used for signing the transaction sent to the node.
transaction metadata
a single or list of hex encoded public keys to be removed
Optional
additionalData: string = ''any additional data to include
Get list of all revocation keys and their corresponding nonces.
the revocation keys wityh corresponding nonces.
Optional
blockHash: BlockHashblock to perform query at.
Submit CIS4.revokeCredentialHolder update transaction.
The revocation message is set to expire at the same time as the transaction (from metadata.expiry
)
The hash of the submitted transaction
to be used for signing the transaction sent to the node.
transaction metadata
A signer structure for the credential holder
the nonce of the owner inside the contract
Optional
reason: stringthe reason for the revocation
Submit CIS4.revokeCredentialIssuer update transaction.
The hash of the submitted transaction
to be used for signing the transaction sent to the node.
transaction metadata
the public key of the credential holder (hex encoded)
Optional
reason: stringthe reason for the revocation
Optional
additionalData: string = ''any additional data to include
Submit CIS4.revokeCredentialOther update transaction.
The revocation message is set to expire at the same time as the transaction (from metadata.expiry
)
The hash of the submitted transaction
to be used for signing the transaction sent to the node.
transaction metadata
A signer structure for the credential holder
the public key (hex encoded) for the credential to revoke
the nonce of the owner inside the contract
Optional
reason: stringthe reason for the revocation
Protected
sendSubmits a ContractUpdateTransaction contract update transaction.
If the query could not be invoked successfully.
The transaction hash of the update transaction
The details of the transaction to send.
Metadata to be used for the transaction (with defaults).
An object to use for signing the transaction.
Static
createCreates a new CIS4Contract
instance by querying the node for the necessary information through the supplied grpcClient
.
If InstanceInfo
could not be received for the contract,
or if the contract name could not be parsed from the information received from the node.
The client used for contract invocations and updates.
Address of the contract instance.
Static
Protected
getHelper function for getting the name of a contract
if the InstanceInfo of the contract could not be found.
the name of the contract.
The GRPC client for accessing a node.
The address of the contract.
Static
Protected
getHelper function for getting the InstanceInfo of a contract
if the InstanceInfo of the contract could not be found.
the instance info.
The GRPC client for accessing a node.
The address of the contract.
Generated using TypeDoc
Defines methods for interacting with CIS4 contracts.