Interface CheckpointRepo

Checkpoint implementation

Hierarchy

  • CheckpointRepo

Properties

allCPs: Checkpoints

All possible values that are loaded in advance. This allows to prevent asset name clashes between scripts.

getMetadata: ((networkName: string, key: string) => undefined | string)

Type declaration

    • (networkName: string, key: string): undefined | string
    • Gets metadata key-value for a specified network.

      Parameters

      • networkName: string
      • key: string

      Returns undefined | string

isDefined: ((networkName: string, name: string) => boolean)

Type declaration

    • (networkName: string, name: string): boolean
    • Parameters

      • networkName: string
      • name: string

      Returns boolean

merge: ((c: Checkpoints, scriptName: string) => CheckpointRepo)

Type declaration

mergeToGlobal: ((c: Checkpoints, scriptName: string) => CheckpointRepo)

Type declaration

networkExistsInCurrentCP: ((networkName: string) => boolean)

Type declaration

    • (networkName: string): boolean
    • Parameters

      • networkName: string

      Returns boolean

precedingCP: Checkpoints

Accumulates state as scripts are executed. This way it hides values generated by remaining checkpoints. It is what should be exposed to the running scripts.

putMetadata: ((networkName: string, key: string, value: string) => CheckpointRepo)

Type declaration

    • (networkName: string, key: string, value: string): CheckpointRepo
    • Sets metadata key-value for a specified network.

      Parameters

      • networkName: string
      • key: string
      • value: string

      Returns CheckpointRepo

registerASA: ((networkName: string, name: string, info: ASAInfo) => CheckpointRepo)

Type declaration

registerLsig: ((networkName: string, name: string, info: LsigInfo) => CheckpointRepo)

Type declaration

registerSSC: ((networkName: string, name: string, info: AppInfo) => CheckpointRepo)

Type declaration

strippedCP: Checkpoints

Variables that current script introduced, short version of what was added. Used for state persistence.

Generated using TypeDoc