Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "smartcontract/nativevm/ontidContractTxBuilder"

Index

Variables

Const ONTID_CONTRACT

ONTID_CONTRACT: "0000000000000000000000000000000000000003" = "0000000000000000000000000000000000000003"

Address of ONT ID contract

Functions

buildAddAttributeTx

buildAddAttributesByIndexTx

  • buildAddAttributesByIndexTx(ontid: string, attributes: DDOAttribute[], index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildAddAttributesByMultiControllerTx

buildAddContextTx

  • buildAddContextTx(ontid: string, context: string[], pkIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildAddKeyByIndexTx

  • buildAddKeyByIndexTx(ontid: string, newPk: PublicKey, index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildAddKeyByMultiControllerTx

  • buildAddKeyByMultiControllerTx(ontid: string, newPk: PublicKey, signers: Signer[], controller: string, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildAddKeyByRecoveryTx

buildAddNewAuthKeyByControllerTx

  • buildAddNewAuthKeyByControllerTx(ontid: string, pubkey: PublicKey, controller: string, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildAddNewAuthKeyByRecoveryTx

  • buildAddNewAuthKeyByRecoveryTx(ontid: string, pubkey: PublicKey, controller: string, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildAddNewAuthKeyTx

  • buildAddNewAuthKeyTx(ontid: string, pubkey: PublicKey, controller: string, signIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction
  • Add auth key to ONT ID

    Parameters

    • ontid: string

      User's ONT ID

    • pubkey: PublicKey

      If isNewPublicKey set false, this is the new public key to set as auth key

    • controller: string

      ONT ID of the new auth key

    • signIndex: number

      Index of signer's pubkey

    • gasPrice: string

      Gas price

    • gasLimit: string

      Gas limit

    • Optional payer: Address

      Payer. Optional.

    Returns Transaction

buildAddPubKeyTx

buildAddServiceTx

  • buildAddServiceTx(ontid: string, serviceId: string, type: string, serviceEndpoint: string, pkIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction
  • Add service to ONT ID

    Parameters

    • ontid: string

      User's ONT ID

    • serviceId: string

      Identifier of service

    • type: string

      Type of service

    • serviceEndpoint: string

      Endpoint of service

    • pkIndex: number
    • gasPrice: string

      Gas price

    • gasLimit: string

      Gas limit

    • Optional payer: Address

      Payer. Optional.

    Returns Transaction

buildGetAttributesTx

buildGetControllerTx

buildGetDDOTx

buildGetDocumentTx

buildGetPublicKeyStateTx

  • buildGetPublicKeyStateTx(ontid: string, pkId: number): Transaction

buildGetPublicKeysTx

buildGetServiceTx

  • buildGetServiceTx(ontid: string, serviceId: string): Transaction

buildMakeRevokeIdTx

  • buildMakeRevokeIdTx(ontid: string, index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRegIDWithPublicKeyTx

buildRegIdWithAttributesTx

buildRegIdWithMultiControllerTx

  • buildRegIdWithMultiControllerTx(ontid: string, controllers: Group, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRegisterOntidTx

buildRemoveAttributeTx

  • buildRemoveAttributeTx(ontid: string, key: string, publicKey: PublicKey, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveAttributesByIndexTx

  • buildRemoveAttributesByIndexTx(ontid: string, key: string, index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveAttributesByMultiControllerTx

  • buildRemoveAttributesByMultiControllerTx(ontid: string, key: string, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveAuthKeyByControllerTx

  • buildRemoveAuthKeyByControllerTx(ontid: string, index: number, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveAuthKeyByRecoveryTx

  • buildRemoveAuthKeyByRecoveryTx(ontid: string, index: number, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveAuthKeyTx

  • buildRemoveAuthKeyTx(ontid: string, index: number, signIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveContextTx

  • buildRemoveContextTx(ontid: string, context: string[], pkIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveControllerTx

  • buildRemoveControllerTx(ontid: string, index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveKeyByIndexTx

  • buildRemoveKeyByIndexTx(ontid: string, newPk: PublicKey, index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveKeyByMultiControllerTx

  • buildRemoveKeyByMultiControllerTx(ontid: string, pubkeyIndex: number, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemoveKeyByRecoveryTx

  • buildRemoveKeyByRecoveryTx(ontid: string, pubkeyIndex: number, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRemovePubKeyTx

buildRemoveServiceTx

  • buildRemoveServiceTx(ontid: string, serviceId: string, pkIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildRevokeIdByMultiController

  • buildRevokeIdByMultiController(ontid: string, signers: Signer[], gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildSetRecoveryTx

  • buildSetRecoveryTx(ontid: string, newRecovery: Group, index: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction

buildUpdateRecoveryTx

buildUpdateServiceTx

  • buildUpdateServiceTx(ontid: string, serviceId: string, type: string, serviceEndpoint: string, pkIndex: number, gasPrice: string, gasLimit: string, payer?: Address): Transaction
  • Update service to ONT ID

    Parameters

    • ontid: string

      User's ONT ID

    • serviceId: string

      Identifier of service

    • type: string

      Type of service

    • serviceEndpoint: string

      Endpoint of service

    • pkIndex: number

      Index of signer's pubkey

    • gasPrice: string

      Gas price

    • gasLimit: string

      Gas limit

    • Optional payer: Address

      Payer. Optional.

    Returns Transaction

buildVerifyMultiControllerTx

buildVerifySignatureTx

  • buildVerifySignatureTx(ontid: string, keyIndex: number): Transaction

getDocumentJson

  • getDocumentJson(ontid: string, restNode: string): Promise<Document>

Object literals

Const ONTID_METHOD

ONTID_METHOD: object

Method names in ONT ID contract

addAttributes

addAttributes: string = "addAttributes"

addAttributesByController

addAttributesByController: string = "addAttributesByController"

addAttributesByIndex

addAttributesByIndex: string = "addAttributesByIndex"

addContext

addContext: string = "addContext"

addKey

addKey: string = "addKey"

addKeyByController

addKeyByController: string = "addKeyByController"

addKeyByIndex

addKeyByIndex: string = "addKeyByIndex"

addKeyByRecovery

addKeyByRecovery: string = "addKeyByRecovery"

addNewAuthKey

addNewAuthKey: string = "addNewAuthKey"

addNewAuthKeyByController

addNewAuthKeyByController: string = "addNewAuthKeyByController"

addNewAuthKeyByRecovery

addNewAuthKeyByRecovery: string = "addNewAuthKeyByRecovery"

addRecovery

addRecovery: string = "addRecovery"

addService

addService: string = "addService"

changeRecovery

changeRecovery: string = "changeRecovery"

getAttributes

getAttributes: string = "getAttributes"

getController

getController: string = "getControllerJson"

getDDO

getDDO: string = "getDDO"

getDocument

getDocument: string = "getDocumentJson"

getKeyState

getKeyState: string = "getKeyState"

getPublicKeys

getPublicKeys: string = "getPublicKeysJson"

getService

getService: string = "getServiceJson"

regIDWithAttributes

regIDWithAttributes: string = "regIDWithAttributes"

regIDWithPublicKey

regIDWithPublicKey: string = "regIDWithPublicKey"

regIdWithController

regIdWithController: string = "regIDWithController"

removeAttribute

removeAttribute: string = "removeAttribute"

removeAttributesByController

removeAttributesByController: string = "removeAttributesByController"

removeAttributesByIndex

removeAttributesByIndex: string = "removeAttributesByIndex"

removeAuthKey

removeAuthKey: string = "removeAuthKey"

removeAuthKeyByController

removeAuthKeyByController: string = "removeAuthKeyByController"

removeAuthKeyByRecovery

removeAuthKeyByRecovery: string = "removeAuthKeyByRecovery"

removeContext

removeContext: string = "removeContext"

removeController

removeController: string = "removeController"

removeKey

removeKey: string = "removeKey"

removeKeyByController

removeKeyByController: string = "removeKeyByController"

removeKeyByIndex

removeKeyByIndex: string = "removeKeyByIndex"

removeKeyByRecovery

removeKeyByRecovery: string = "removeKeyByRecovery"

removeService

removeService: string = "removeService"

revokeID

revokeID: string = "revokeID"

revokeIDByController

revokeIDByController: string = "revokeIDByController"

setAuthKeyByController

setAuthKeyByController: string = "setAuthKeyByController"

setKeyAccess

setKeyAccess: string = "setKeyAccess"

setRecovery

setRecovery: string = "setRecovery"

updateRecovery

updateRecovery: string = "updateRecovery"

updateService

updateService: string = "updateService"

verifyController

verifyController: string = "verifyController"

verifySignature

verifySignature: string = "verifySignature"

Generated using TypeDoc