Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SmartContract

The main snapp class. To write a snapp, extend this class as such:

class YourSmartContract extends SmartContract {
// your smart contract code here
}

Hierarchy

  • SmartContract

Index

Constructors

constructor

Properties

_executionState

_executionState: undefined | ExecutionState

address

address: PublicKey

Accessors

balance

nonce

protocolState

self

Methods

deploy

  • deploy(...args: any[]): void

emitEvent

  • emitEvent<T>(x: T): void

executionState

  • executionState(): ExecutionState

party

  • party(i: number): Body

transactionHash

Generated using TypeDoc