Casper.Network.SDK
Show / Hide Table of Contents

Enum EntryPointType

Defines whether the code runs in the contract's or the session context.

Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public enum EntryPointType

Fields

Name Description
Called

Runs using the called entity's context.

Caller

Runs using the calling entity's context. In v1.x this was used for both "session" code run using the originating Account's context, and also for "StoredSession" code that ran in the caller's context. While this made systemic sense due to the way the runtime context nesting works, this dual usage was very confusing to most human beings. In v2.x the renamed Caller variant is exclusively used for wasm run using the initiating account entity's context. Previously installed 1.x stored session code should continue to work as the binary value matches but we no longer allow such logic to be upgraded, nor do we allow new stored session to be installed.

Contract

Casper v1.x only. Executes in the contract context.

Factory

Extract a subset of bytecode and installs it as a new smart contract. Runs using the called entity's context.

Session

Casper v1.x only. Executes in the caller account context.

  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC