Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SmartContractAtRest

Example SmartContract At Rest Object

name

SmartContract::L1::AtRest

example

{
  "dcrn": "SmartContract::L1::AtRest",
  "version": "1",
  "txn_type": "c1",
  "id": "ec3e6dac-da91-4186-9c21-3f996b4462ab",
  "status": {
    "state": "active",
    "msg": "Creation success",
    "timestamp": "2019-05-21 20:19:10.519848"
  },
  "image": "ubuntu:latest",
  "auth_key_id": "SC_ELDVFTEQWXCW",
  "image_digest": "sha256:9cf55af627c98299a13aac1349936128770bb0ce44b65344779034f52b2a7934",
  "cmd": "cat",
  "args": [
    "-"
  ],
  "env": {
    "STAGE": "dev",
    "DRAGONCHAIN_ID": "ec67bbf5-b41e-4526-95fd-6a7c3abdd058",
    "SMART_CONTRACT_ID": "ec3e6dac-da91-4186-9c21-3f996b4462ab",
    "SMART_CONTRACT_NAME": "c1"
  },
  "existing_secrets": [
    "secret-key",
    "auth-key-id"
  ],
  "cron": null,
  "seconds": null,
  "execution_order": "parallel"
}

Hierarchy

  • SmartContractAtRest

Index

Properties

args

args: string[] | null

args passed into the command on execution of the smart contract

auth_key_id

auth_key_id: string | null

id of the auth key that is used by the smart contract for communication back with the chain

cmd

cmd: string

command that is run on execution of the smart contract

cron

cron: string | null

cron expression for scheduling automatic execution of the smart contract

dcrn

dcrn: "SmartContract::L1::AtRest"

string representing this Dragonchain Resource Name

env

env: object | null

environment variables given to the smart contract

execution_order

execution order of the contract, whether it gets invoked asap (parallel), or in a single queue (serial)

existing_secrets

existing_secrets: string[] | null

array of secret names for this smart contract

id

id: string

The unique guid identifier for this contract

image

image: string

docker image of the smart contract

image_digest

image_digest: string | null

docker image pull digest of the deployed smart contract

seconds

seconds: number | null

number of seconds between automatic executions of the smart contract

status

status: { msg: string; state: "active" | "inactive"; timestamp: string }

data about the current status of the smart contract

Type declaration

  • msg: string
  • state: "active" | "inactive"
  • timestamp: string

txn_type

txn_type: string

the name (and also transaction type to invoke) this smart contract

version

version: "3"

string representing the version of this DataTransferObject