Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

impl/v1 package

Overview

Package impl is version 1 of the implementation realm of the "self-registering implementation" upgrade pattern (pattern E; see ../../README.md).

Identical wiring to v0, different behaviour. Deploying it takes the facade over on the spot, with no transaction from anybody.

Function

Instance

func Instance() facade.Impl
Ask AI Claude ChatGPT

Instance exposes the singleton so a test (or a rollback) can re-register it without redeploying.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/upgrade/selfreg/impl/v1.Instance()"

Result