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

v0 source pure

Package entity provides an interface that abstracts a notion of entity which can under the hood be an EOA (address), ...

Readme View source

gno.land/p/moul/entity/v0

TODO: describe this package.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.

Overview

Package entity provides an interface that abstracts a notion of entity which can under the hood be an EOA (address), a package realm (PkgPath, address). It also tries to give a notion of type where for instance, a user can be either a simple user or a team, and a contract can be either an arbitrary contract, or one that implements a famous pattern/interface, such as a DAO. It also provides some composition utilities so that an entity can be a flow that matches multiple other entities.

Functions 3

Types 4

type Entity

interface
1type Entity interface {
2	Addr() address
3	Path() string
4	Kind
5	isEntity()
6}
source

type Kind

interface
1type Kind interface {
2	kind()
3}
source

Imports 1

  • chain/runtime stdlib

Source Files 3