Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

ChainConfig

The chain-level configuration: owner, system contracts, permissions, cronjobs.

Definition

type ChainConfig = {
  owner: Address
  bank: Address
  taxman: Address
  cronjobs: Record<Address, Duration>
  permissions: {
    upload: Permission
    instantiate: Permission
  }
  maxOrphanAge: Duration
}
 
type Permission =
  | "everybody"
  | "nobody"
  | { somebodies: Address[] }

Fields

ownerAddress. Account that can update this config.

bankAddress. Bank contract (token transfers).

taxmanAddress. Fee handler contract.

cronjobs — map of contract address to interval (in seconds).

permissions.upload — who can storeCode.

permissions.instantiate — who can instantiate.

maxOrphanAgeDuration (seconds). Orphaned codes are deleted after this age.

See also