Documentation ¶
Index ¶
- Constants
- func BigMapKeyHash(node *base.Node) (string, error)
- func BigMapKeyHashFromNode(node Node) (string, error)
- func BigMapKeyHashFromString(str string) (string, error)
- func FindContractInterface(tree *TypedAst, name string) bool
- func FindContractInterfaces(tree *TypedAst) []string
- func Forge(node Base, optimized bool) (string, error)
- func Pack(node Base) (string, error)
- type Address
- func (a *Address) Compare(second Comparable) (int, error)
- func (a *Address) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (a *Address) FindByName(name string, isEntrypoint bool) Node
- func (a *Address) FromJSONSchema(data map[string]interface{}) error
- func (a *Address) GetJSONModel(model JSONModel)
- func (a *Address) ToBaseNode(optimized bool) (*base.Node, error)
- func (a *Address) ToJSONSchema() (*JSONSchema, error)
- func (a *Address) ToMiguel() (*MiguelNode, error)
- type BLS12381fr
- type BLS12381g1
- type BLS12381g2
- type BakerHash
- func (s *BakerHash) Compare(second Comparable) (int, error)
- func (s *BakerHash) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (s *BakerHash) FindByName(name string, isEntrypoint bool) Node
- func (s *BakerHash) FromJSONSchema(data map[string]interface{}) error
- func (s *BakerHash) ToBaseNode(optimized bool) (*base.Node, error)
- func (s *BakerHash) ToJSONSchema() (*JSONSchema, error)
- func (s *BakerHash) ToMiguel() (*MiguelNode, error)
- type Base
- type BigMap
- func (m *BigMap) AddDiffs(diffs ...*types.BigMapDiff)
- func (m *BigMap) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (m *BigMap) Docs(inferredName string) ([]Typedef, string, error)
- func (m *BigMap) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (m *BigMap) EqualType(node Node) bool
- func (m *BigMap) FindByName(name string, isEntrypoint bool) Node
- func (m *BigMap) FindPointers() map[int64]*BigMap
- func (m *BigMap) FromJSONSchema(data map[string]interface{}) error
- func (m *BigMap) GetDiffs() []*types.BigMapDiff
- func (m *BigMap) GetJSONModel(model JSONModel)
- func (m *BigMap) MarshalJSON() ([]byte, error)
- func (m *BigMap) ParseType(node *base.Node, id *int) error
- func (m *BigMap) ParseValue(node *base.Node) error
- func (m *BigMap) Range(handler func(node Node) error) error
- func (m *BigMap) SetKeyType(data []byte) error
- func (m *BigMap) SetValueType(data []byte) error
- func (m *BigMap) String() string
- func (m *BigMap) ToBaseNode(optimized bool) (*base.Node, error)
- func (m *BigMap) ToJSONSchema() (*JSONSchema, error)
- func (m *BigMap) ToMiguel() (*MiguelNode, error)
- func (m *BigMap) ToParameters() ([]byte, error)
- type Bool
- func (b *Bool) Compare(second Comparable) (int, error)
- func (b *Bool) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (b *Bool) FindByName(name string, isEntrypoint bool) Node
- func (b *Bool) ParseValue(node *base.Node) error
- func (b *Bool) ToBaseNode(optimized bool) (*base.Node, error)
- func (b *Bool) ToJSONSchema() (*JSONSchema, error)
- func (b *Bool) ToParameters() ([]byte, error)
- type Bytes
- func (b *Bytes) Compare(second Comparable) (int, error)
- func (b *Bytes) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (b *Bytes) FindByName(name string, isEntrypoint bool) Node
- func (b *Bytes) FromJSONSchema(data map[string]interface{}) error
- func (b *Bytes) ToJSONSchema() (*JSONSchema, error)
- func (b *Bytes) ToMiguel() (*MiguelNode, error)
- type ChainID
- func (c *ChainID) Compare(second Comparable) (int, error)
- func (c *ChainID) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (c *ChainID) FindByName(name string, isEntrypoint bool) Node
- func (c *ChainID) FromJSONSchema(data map[string]interface{}) error
- func (c *ChainID) ToBaseNode(optimized bool) (*base.Node, error)
- func (c *ChainID) ToJSONSchema() (*JSONSchema, error)
- func (c *ChainID) ToMiguel() (*MiguelNode, error)
- type Chest
- func (c *Chest) Compare(second Comparable) (int, error)
- func (c *Chest) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (c *Chest) FindByName(name string, isEntrypoint bool) Node
- func (c *Chest) FromJSONSchema(data map[string]interface{}) error
- func (c *Chest) ToJSONSchema() (*JSONSchema, error)
- func (c *Chest) ToMiguel() (*MiguelNode, error)
- type ChestKey
- func (c *ChestKey) Compare(second Comparable) (int, error)
- func (c *ChestKey) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (c *ChestKey) FindByName(name string, isEntrypoint bool) Node
- func (c *ChestKey) FromJSONSchema(data map[string]interface{}) error
- func (c *ChestKey) ToJSONSchema() (*JSONSchema, error)
- func (c *ChestKey) ToMiguel() (*MiguelNode, error)
- type Comparable
- type Constant
- func (c *Constant) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (c *Constant) Docs(inferredName string) ([]Typedef, string, error)
- func (c *Constant) EqualType(node Node) bool
- func (c *Constant) FindByName(name string, isEntrypoint bool) Node
- func (c *Constant) MarshalJSON() ([]byte, error)
- func (c *Constant) ParseType(node *base.Node, id *int) error
- func (c *Constant) ParseValue(node *base.Node) error
- func (c *Constant) String() string
- func (c *Constant) ToMiguel() (*MiguelNode, error)
- type Contract
- func (c *Contract) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (c *Contract) Docs(inferredName string) ([]Typedef, string, error)
- func (c *Contract) EqualType(node Node) bool
- func (c *Contract) FindByName(name string, isEntrypoint bool) Node
- func (c *Contract) MarshalJSON() ([]byte, error)
- func (c *Contract) ParseType(node *base.Node, id *int) error
- func (c *Contract) String() string
- func (c *Contract) ToJSONSchema() (*JSONSchema, error)
- func (c *Contract) ToMiguel() (*MiguelNode, error)
- type Default
- func (d *Default) Compare(second Comparable) (int, error)
- func (d *Default) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (d *Default) Docs(inferredName string) ([]Typedef, string, error)
- func (d *Default) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (d *Default) Equal(node Node) bool
- func (d *Default) EqualType(node Node) bool
- func (d *Default) FindByName(name string, isEntrypoint bool) Node
- func (d *Default) FindPointers() map[int64]*BigMap
- func (d *Default) FromJSONSchema(data map[string]interface{}) error
- func (d *Default) GetEntrypoints() []string
- func (d *Default) GetJSONModel(model JSONModel)
- func (d *Default) GetName() string
- func (d *Default) GetPrim() string
- func (d *Default) GetTypeName() string
- func (d *Default) GetValue() interface{}
- func (d *Default) IsNamed() bool
- func (d *Default) IsPrim(prim string) bool
- func (d Default) MarshalJSON() ([]byte, error)
- func (d *Default) ParseType(node *base.Node, id *int) error
- func (d *Default) ParseValue(node *base.Node) error
- func (d *Default) Range(handler func(node Node) error) error
- func (d *Default) String() string
- func (d *Default) ToBaseNode(optimized bool) (*base.Node, error)
- func (d *Default) ToJSONSchema() (*JSONSchema, error)
- func (d *Default) ToMiguel() (*MiguelNode, error)
- func (d *Default) ToParameters() ([]byte, error)
- type Distinguishable
- type EntrypointType
- type Int
- type JSONModel
- type JSONSchema
- type Key
- func (k *Key) Compare(second Comparable) (int, error)
- func (k *Key) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (k *Key) FindByName(name string, isEntrypoint bool) Node
- func (k *Key) FromJSONSchema(data map[string]interface{}) error
- func (k *Key) ToBaseNode(optimized bool) (*base.Node, error)
- func (k *Key) ToJSONSchema() (*JSONSchema, error)
- func (k *Key) ToMiguel() (*MiguelNode, error)
- type KeyHash
- func (k *KeyHash) Compare(second Comparable) (int, error)
- func (k *KeyHash) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (k *KeyHash) FindByName(name string, isEntrypoint bool) Node
- func (k *KeyHash) FromJSONSchema(data map[string]interface{}) error
- func (k *KeyHash) ToBaseNode(optimized bool) (*base.Node, error)
- func (k *KeyHash) ToJSONSchema() (*JSONSchema, error)
- func (k *KeyHash) ToMiguel() (*MiguelNode, error)
- type Lambda
- func (l *Lambda) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (l *Lambda) Docs(inferredName string) ([]Typedef, string, error)
- func (l *Lambda) EqualType(node Node) bool
- func (l *Lambda) FindByName(name string, isEntrypoint bool) Node
- func (l *Lambda) FromJSONSchema(data map[string]interface{}) error
- func (l *Lambda) GetJSONModel(model JSONModel)
- func (l *Lambda) MarshalJSON() ([]byte, error)
- func (l *Lambda) ParseType(node *base.Node, id *int) error
- func (l *Lambda) ParseValue(node *base.Node) error
- func (l *Lambda) ToBaseNode(optimized bool) (*base.Node, error)
- func (l *Lambda) ToJSONSchema() (*JSONSchema, error)
- func (l *Lambda) ToMiguel() (*MiguelNode, error)
- func (l *Lambda) ToParameters() ([]byte, error)
- type List
- func (list *List) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (list *List) Docs(inferredName string) ([]Typedef, string, error)
- func (list *List) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (list *List) EqualType(node Node) bool
- func (list *List) FindByName(name string, isEntrypoint bool) Node
- func (list *List) FindPointers() map[int64]*BigMap
- func (list *List) FromJSONSchema(data map[string]interface{}) error
- func (list *List) GetJSONModel(model JSONModel)
- func (list *List) MarshalJSON() ([]byte, error)
- func (list *List) ParseType(node *base.Node, id *int) error
- func (list *List) ParseValue(node *base.Node) error
- func (list *List) Range(handler func(node Node) error) error
- func (list *List) String() string
- func (list *List) ToBaseNode(optimized bool) (*base.Node, error)
- func (list *List) ToJSONSchema() (*JSONSchema, error)
- func (list *List) ToMiguel() (*MiguelNode, error)
- func (list *List) ToParameters() ([]byte, error)
- type Map
- func (m *Map) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (m *Map) Docs(inferredName string) ([]Typedef, string, error)
- func (m *Map) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (m *Map) EqualType(node Node) bool
- func (m *Map) FindByName(name string, isEntrypoint bool) Node
- func (m *Map) FindPointers() map[int64]*BigMap
- func (m *Map) FromJSONSchema(data map[string]interface{}) error
- func (m *Map) GetDefaultJSONModel(model JSONModel)
- func (m *Map) MarshalJSON() ([]byte, error)
- func (m *Map) ParseType(node *base.Node, id *int) error
- func (m *Map) ParseValue(node *base.Node) error
- func (m *Map) Range(handler func(node Node) error) error
- func (m *Map) String() string
- func (m *Map) ToBaseNode(optimized bool) (*base.Node, error)
- func (m *Map) ToJSONSchema() (*JSONSchema, error)
- func (m *Map) ToMiguel() (*MiguelNode, error)
- func (m *Map) ToParameters() ([]byte, error)
- type MiguelNode
- type Mutez
- func (m *Mutez) Compare(second Comparable) (int, error)
- func (m *Mutez) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (m *Mutez) FindByName(name string, isEntrypoint bool) Node
- func (m *Mutez) FromJSONSchema(data map[string]interface{}) error
- func (m *Mutez) ToJSONSchema() (*JSONSchema, error)
- type Nat
- type Never
- type Node
- type Operation
- type Option
- func (opt *Option) Compare(second Comparable) (int, error)
- func (opt *Option) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (opt *Option) Docs(inferredName string) ([]Typedef, string, error)
- func (opt *Option) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (opt *Option) EqualType(node Node) bool
- func (opt *Option) FindByName(name string, isEntrypoint bool) Node
- func (opt *Option) FindPointers() map[int64]*BigMap
- func (opt *Option) FromJSONSchema(data map[string]interface{}) error
- func (opt *Option) GetJSONModel(model JSONModel)
- func (opt *Option) IsNone() bool
- func (opt *Option) IsSome() bool
- func (opt *Option) MarshalJSON() ([]byte, error)
- func (opt *Option) ParseType(node *base.Node, id *int) error
- func (opt *Option) ParseValue(node *base.Node) error
- func (opt *Option) Range(handler func(node Node) error) error
- func (opt *Option) String() string
- func (opt *Option) ToBaseNode(optimized bool) (*base.Node, error)
- func (opt *Option) ToJSONSchema() (*JSONSchema, error)
- func (opt *Option) ToMiguel() (*MiguelNode, error)
- func (opt *Option) ToParameters() ([]byte, error)
- type Or
- func (or *Or) Compare(second Comparable) (int, error)
- func (or *Or) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (or *Or) Docs(inferredName string) ([]Typedef, string, error)
- func (or *Or) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (or *Or) EqualType(node Node) bool
- func (or *Or) FindByName(name string, isEntrypoint bool) Node
- func (or *Or) FindPointers() map[int64]*BigMap
- func (or *Or) FromJSONSchema(data map[string]interface{}) error
- func (or *Or) GetEntrypoints() []string
- func (or *Or) GetJSONModel(model JSONModel)
- func (or *Or) MarshalJSON() ([]byte, error)
- func (or *Or) ParseType(node *base.Node, id *int) error
- func (or *Or) ParseValue(node *base.Node) error
- func (or *Or) Range(handler func(node Node) error) error
- func (or *Or) String() string
- func (or *Or) ToBaseNode(optimized bool) (*base.Node, error)
- func (or *Or) ToJSONSchema() (*JSONSchema, error)
- func (or *Or) ToMiguel() (*MiguelNode, error)
- func (or *Or) ToParameters() ([]byte, error)
- type OrderedMap
- type Pair
- func (p *Pair) Compare(second Comparable) (int, error)
- func (p *Pair) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (p *Pair) Docs(inferredName string) ([]Typedef, string, error)
- func (p *Pair) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (p *Pair) EqualType(node Node) bool
- func (p *Pair) FindByName(name string, isEntrypoint bool) Node
- func (p *Pair) FindPointers() map[int64]*BigMap
- func (p *Pair) FromJSONSchema(data map[string]interface{}) error
- func (p *Pair) GetJSONModel(model JSONModel)
- func (p *Pair) MarshalJSON() ([]byte, error)
- func (p *Pair) ParseType(node *base.Node, id *int) error
- func (p *Pair) ParseValue(node *base.Node) error
- func (p *Pair) Range(handler func(node Node) error) error
- func (p *Pair) String() string
- func (p *Pair) ToBaseNode(optimized bool) (*base.Node, error)
- func (p *Pair) ToJSONSchema() (*JSONSchema, error)
- func (p *Pair) ToMiguel() (*MiguelNode, error)
- func (p *Pair) ToParameters() ([]byte, error)
- type Parameter
- type SaplingState
- func (ss *SaplingState) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (ss *SaplingState) Docs(inferredName string) ([]Typedef, string, error)
- func (ss *SaplingState) EqualType(node Node) bool
- func (ss *SaplingState) FindByName(name string, isEntrypoint bool) Node
- func (ss *SaplingState) MarshalJSON() ([]byte, error)
- func (ss *SaplingState) ParseType(node *base.Node, id *int) error
- func (ss *SaplingState) ParseValue(node *base.Node) error
- func (ss *SaplingState) String() string
- func (ss *SaplingState) ToBaseNode(optimized bool) (*base.Node, error)
- func (ss *SaplingState) ToMiguel() (*MiguelNode, error)
- type SaplingTransaction
- func (st *SaplingTransaction) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (st *SaplingTransaction) Docs(inferredName string) ([]Typedef, string, error)
- func (st *SaplingTransaction) FindByName(name string, isEntrypoint bool) Node
- func (st *SaplingTransaction) FromJSONSchema(data map[string]interface{}) error
- func (st *SaplingTransaction) MarshalJSON() ([]byte, error)
- func (st *SaplingTransaction) ParseType(node *base.Node, id *int) error
- func (st *SaplingTransaction) ParseValue(node *base.Node) error
- func (st *SaplingTransaction) String() string
- func (st *SaplingTransaction) ToBaseNode(optimized bool) (*base.Node, error)
- func (st *SaplingTransaction) ToMiguel() (*MiguelNode, error)
- func (st *SaplingTransaction) ToParameters() ([]byte, error)
- type Script
- type SectionType
- type Set
- func (set *Set) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (set *Set) Docs(inferredName string) ([]Typedef, string, error)
- func (set *Set) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (set *Set) EqualType(node Node) bool
- func (set *Set) FindByName(name string, isEntrypoint bool) Node
- func (set *Set) FindPointers() map[int64]*BigMap
- func (set *Set) FromJSONSchema(data map[string]interface{}) error
- func (set *Set) GetJSONModel(model JSONModel)
- func (set *Set) MarshalJSON() ([]byte, error)
- func (set *Set) ParseType(node *base.Node, id *int) error
- func (set *Set) ParseValue(node *base.Node) error
- func (set *Set) Range(handler func(node Node) error) error
- func (set *Set) String() string
- func (set *Set) ToBaseNode(optimized bool) (*base.Node, error)
- func (set *Set) ToJSONSchema() (*JSONSchema, error)
- func (set *Set) ToMiguel() (*MiguelNode, error)
- func (set *Set) ToParameters() ([]byte, error)
- type Signature
- func (s *Signature) Compare(second Comparable) (int, error)
- func (s *Signature) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (s *Signature) FindByName(name string, isEntrypoint bool) Node
- func (s *Signature) FromJSONSchema(data map[string]interface{}) error
- func (s *Signature) ToBaseNode(optimized bool) (*base.Node, error)
- func (s *Signature) ToJSONSchema() (*JSONSchema, error)
- func (s *Signature) ToMiguel() (*MiguelNode, error)
- type String
- type Ticket
- func (t *Ticket) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (t *Ticket) Docs(inferredName string) ([]Typedef, string, error)
- func (t *Ticket) EqualType(node Node) bool
- func (t *Ticket) FindByName(name string, isEntrypoint bool) Node
- func (t *Ticket) FromJSONSchema(data map[string]interface{}) error
- func (t *Ticket) MarshalJSON() ([]byte, error)
- func (t *Ticket) ParseType(node *base.Node, id *int) error
- func (t *Ticket) ParseValue(node *base.Node) error
- func (t *Ticket) String() string
- func (t *Ticket) ToBaseNode(optimized bool) (*base.Node, error)
- func (t *Ticket) ToMiguel() (*MiguelNode, error)
- func (t *Ticket) ToParameters() ([]byte, error)
- type Timestamp
- func (t *Timestamp) Compare(second Comparable) (int, error)
- func (t *Timestamp) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (t *Timestamp) FindByName(name string, isEntrypoint bool) Node
- func (t *Timestamp) FromJSONSchema(data map[string]interface{}) error
- func (t *Timestamp) GetJSONModel(model JSONModel)
- func (t *Timestamp) ParseValue(node *base.Node) error
- func (t *Timestamp) ToBaseNode(optimized bool) (*base.Node, error)
- func (t *Timestamp) ToJSONSchema() (*JSONSchema, error)
- func (t *Timestamp) ToParameters() ([]byte, error)
- type Type
- type TypedAst
- func (a *TypedAst) Compare(b *TypedAst) (int, error)
- func (a *TypedAst) Diff(b *TypedAst) (*MiguelNode, error)
- func (a *TypedAst) Docs(entrypoint string) ([]Typedef, error)
- func (a *TypedAst) EnrichBigMap(bmd []*types.BigMapDiff) error
- func (a *TypedAst) EqualType(b *TypedAst) bool
- func (a *TypedAst) FindBigMapByPtr() map[int64]*BigMap
- func (a *TypedAst) FindByName(name string, isEntrypoint bool) Node
- func (a *TypedAst) FromJSONSchema(data map[string]interface{}) error
- func (a *TypedAst) FromParameters(data *types.Parameters) (*TypedAst, error)
- func (a *TypedAst) GetEntrypoints() []string
- func (a *TypedAst) GetEntrypointsDocs() ([]EntrypointType, error)
- func (a *TypedAst) GetJSONModel(model JSONModel)
- func (a *TypedAst) IsSettled() bool
- func (a *TypedAst) ParametersForExecution(entrypoint string, data map[string]interface{}) (*types.Parameters, error)
- func (a *TypedAst) Settle(untyped UntypedAST) error
- func (a *TypedAst) SettleFromBytes(data []byte) error
- func (a *TypedAst) String() string
- func (a *TypedAst) ToBaseNode(optimized bool) (*base.Node, error)
- func (a *TypedAst) ToJSONSchema() (*JSONSchema, error)
- func (a *TypedAst) ToMiguel() ([]*MiguelNode, error)
- func (a *TypedAst) ToParameters(entrypoint string) ([]byte, error)
- func (ast *TypedAst) UnmarshalJSON(data []byte) error
- func (a *TypedAst) UnwrapAndGetEntrypointName() (Node, string)
- type Typedef
- type TypedefArg
- type Unit
- func (u *Unit) Compare(second Comparable) (int, error)
- func (u *Unit) Distinguish(x Distinguishable) (*MiguelNode, error)
- func (u *Unit) FindByName(name string, isEntrypoint bool) Node
- func (u *Unit) GetJSONModel(model JSONModel)
- func (u *Unit) ToBaseNode(optimized bool) (*base.Node, error)
- func (u *Unit) ToParameters() ([]byte, error)
- type UntypedAST
- func (u UntypedAST) Annotations() []string
- func (u UntypedAST) GetStrings(tryUnpack bool) ([]string, error)
- func (u UntypedAST) String() string
- func (u UntypedAST) Stringify() (string, error)
- func (u UntypedAST) ToTypedAST() (*TypedAst, error)
- func (u *UntypedAST) UnmarshalJSON(data []byte) error
- func (u UntypedAST) Unpack()
- type Value
- type View
Constants ¶
const ( MiguelKindCreate = "create" MiguelKindUpdate = "update" MiguelKindDelete = "delete" )
Miguel kinds
const ( ContractTagFA1 = "fa1" ContractTagFA1_2 = "fa1-2" ContractTagFA2 = "fa2" ContractTagViewNat = "view_nat" ContractTagViewAddress = "view_address" ContractTagViewBalanceOf = "view_balance_of" )
contract tags
const ( JSONSchemaTypeInt = "integer" JSONSchemaTypeString = "string" JSONSchemaTypeBool = "boolean" JSONSchemaTypeArray = "array" JSONSchemaTypeObject = "object" )
Schema types
const (
DocsFull = ""
)
docs constants
Variables ¶
This section is empty.
Functions ¶
func BigMapKeyHashFromNode ¶
BigMapKeyHashFromNode -
func BigMapKeyHashFromString ¶
BigMapKeyHashFromString -
func FindContractInterface ¶
FindContractInterface -
func FindContractInterfaces ¶
FindContractInterfaces -
Types ¶
type Address ¶
type Address struct {
Default
}
Address -
func (*Address) Distinguish ¶
func (a *Address) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Address) FindByName ¶
FindByName -
func (*Address) FromJSONSchema ¶
FromJSONSchema -
func (*Address) ToBaseNode ¶
ToBaseNode -
type BLS12381fr ¶
type BLS12381fr struct {
Default
}
BLS12381fr -
func (*BLS12381fr) Distinguish ¶
func (b *BLS12381fr) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*BLS12381fr) FindByName ¶
func (b *BLS12381fr) FindByName(name string, isEntrypoint bool) Node
FindByName -
func (*BLS12381fr) ToJSONSchema ¶
func (b *BLS12381fr) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type BLS12381g1 ¶
type BLS12381g1 struct {
Default
}
BLS12381g1 -
func (*BLS12381g1) Distinguish ¶
func (b *BLS12381g1) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*BLS12381g1) FindByName ¶
func (b *BLS12381g1) FindByName(name string, isEntrypoint bool) Node
FindByName -
func (*BLS12381g1) ToJSONSchema ¶
func (b *BLS12381g1) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type BLS12381g2 ¶
type BLS12381g2 struct {
Default
}
BLS12381g2 -
func (*BLS12381g2) Distinguish ¶
func (b *BLS12381g2) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*BLS12381g2) FindByName ¶
func (b *BLS12381g2) FindByName(name string, isEntrypoint bool) Node
FindByName -
func (*BLS12381g2) ToJSONSchema ¶
func (b *BLS12381g2) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type BakerHash ¶
type BakerHash struct {
Default
}
BakerHash -
func (*BakerHash) Distinguish ¶
func (s *BakerHash) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*BakerHash) FindByName ¶
FindByName -
func (*BakerHash) FromJSONSchema ¶
FromJSONSchema -
func (*BakerHash) ToBaseNode ¶
ToBaseNode -
func (*BakerHash) ToJSONSchema ¶
func (s *BakerHash) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type BigMap ¶
type BigMap struct { Default KeyType Node ValueType Node Data *OrderedMap Ptr *int64 // contains filtered or unexported fields }
BigMap -
func (*BigMap) Distinguish ¶
func (m *BigMap) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*BigMap) EnrichBigMap ¶
func (m *BigMap) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*BigMap) FindByName ¶
FindByName -
func (*BigMap) FromJSONSchema ¶
FromJSONSchema -
func (*BigMap) ToBaseNode ¶
ToBaseNode -
type Bool ¶
type Bool struct {
Default
}
Bool -
func (*Bool) Distinguish ¶
func (b *Bool) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Bool) FindByName ¶
FindByName -
func (*Bool) ToBaseNode ¶
ToBaseNode -
type Bytes ¶
type Bytes struct {
Default
}
Bytes -
func (*Bytes) Distinguish ¶
func (b *Bytes) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Bytes) FindByName ¶
FindByName -
func (*Bytes) FromJSONSchema ¶
FromJSONSchema -
type ChainID ¶
type ChainID struct {
Default
}
ChainID -
func (*ChainID) Distinguish ¶
func (c *ChainID) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*ChainID) FindByName ¶
FindByName -
func (*ChainID) FromJSONSchema ¶
FromJSONSchema -
func (*ChainID) ToBaseNode ¶
ToBaseNode -
type Chest ¶ added in v0.2.8
type Chest struct {
Default
}
Chest -
func (*Chest) Compare ¶ added in v0.2.8
func (c *Chest) Compare(second Comparable) (int, error)
Compare -
func (*Chest) Distinguish ¶ added in v0.2.8
func (c *Chest) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Chest) FindByName ¶ added in v0.2.8
FindByName -
func (*Chest) FromJSONSchema ¶ added in v0.2.8
FromJSONSchema -
func (*Chest) ToJSONSchema ¶ added in v0.2.8
func (c *Chest) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type ChestKey ¶ added in v0.2.8
type ChestKey struct {
Default
}
ChestKey -
func (*ChestKey) Compare ¶ added in v0.2.8
func (c *ChestKey) Compare(second Comparable) (int, error)
Compare -
func (*ChestKey) Distinguish ¶ added in v0.2.8
func (c *ChestKey) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*ChestKey) FindByName ¶ added in v0.2.8
FindByName -
func (*ChestKey) FromJSONSchema ¶ added in v0.2.8
FromJSONSchema -
func (*ChestKey) ToJSONSchema ¶ added in v0.2.8
func (c *ChestKey) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
func (*ChestKey) ToMiguel ¶ added in v0.2.8
func (c *ChestKey) ToMiguel() (*MiguelNode, error)
ToMiguel -
type Comparable ¶
type Comparable interface {
Compare(second Comparable) (int, error)
}
Comparable -
type Constant ¶ added in v0.2.8
Constant -
func (*Constant) Distinguish ¶ added in v0.2.8
func (c *Constant) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Constant) FindByName ¶ added in v0.2.8
FindByName -
func (*Constant) MarshalJSON ¶ added in v0.2.8
MarshalJSON -
func (*Constant) ParseValue ¶ added in v0.2.8
ParseValue -
func (*Constant) ToMiguel ¶ added in v0.2.8
func (c *Constant) ToMiguel() (*MiguelNode, error)
ToMiguel -
type Contract ¶
Contract -
func (*Contract) Distinguish ¶
func (c *Contract) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Contract) FindByName ¶
FindByName -
func (*Contract) ToJSONSchema ¶
func (c *Contract) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type Default ¶
type Default struct { ValueKind int ID int ArgsCount int Depth int Annots []string Prim string TypeName string FieldName string Value interface{} }
Default -
func (*Default) Distinguish ¶
func (d *Default) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Default) EnrichBigMap ¶
func (d *Default) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*Default) FindByName ¶
FindByName -
func (*Default) FromJSONSchema ¶
FromJSONSchema -
func (*Default) ToBaseNode ¶
ToBaseNode -
type Distinguishable ¶
type Distinguishable interface {
Distinguish(second Distinguishable) (*MiguelNode, error)
}
Distinguishable -
type EntrypointType ¶
EntrypointType -
type Int ¶
type Int struct {
Default
}
Int -
func (*Int) Distinguish ¶
func (i *Int) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Int) FromJSONSchema ¶
FromJSONSchema -
type JSONSchema ¶
type JSONSchema struct { Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` Prim string `json:"prim,omitempty"` Tag string `json:"tag,omitempty"` Format string `json:"format,omitempty"` Default interface{} `json:"default,omitempty"` MinLength int `json:"minLength,omitempty"` MaxLength int `json:"maxLength,omitempty"` Properties map[string]*JSONSchema `json:"properties,omitempty"` OneOf []*JSONSchema `json:"oneOf,omitempty"` Required []string `json:"required,omitempty"` XItemTitle string `json:"x-itemTitle,omitempty"` Const string `json:"const,omitempty"` SchemaKey *JSONSchema `json:"schemaKey,omitempty"` Items *JSONSchema `json:"items,omitempty"` XOptions map[string]interface{} `json:"x-options,omitempty"` }
JSONSchema -
func WrapEntrypointJSONSchema ¶
func WrapEntrypointJSONSchema(schema *JSONSchema) *JSONSchema
WrapEntrypointJSONSchema -
type Key ¶
type Key struct {
Default
}
Key -
func (*Key) Distinguish ¶
func (k *Key) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Key) FromJSONSchema ¶
FromJSONSchema -
type KeyHash ¶
type KeyHash struct {
Default
}
KeyHash -
func (*KeyHash) Distinguish ¶
func (k *KeyHash) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*KeyHash) FindByName ¶
FindByName -
func (*KeyHash) FromJSONSchema ¶
FromJSONSchema -
func (*KeyHash) ToBaseNode ¶
ToBaseNode -
type Lambda ¶
Lambda -
func (*Lambda) Distinguish ¶
func (l *Lambda) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Lambda) FindByName ¶
FindByName -
func (*Lambda) FromJSONSchema ¶
FromJSONSchema -
func (*Lambda) ToBaseNode ¶
ToBaseNode -
type List ¶
List -
func (*List) Distinguish ¶
func (list *List) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*List) EnrichBigMap ¶
func (list *List) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*List) FindByName ¶
FindByName -
func (*List) FromJSONSchema ¶
FromJSONSchema -
func (*List) ToBaseNode ¶
ToBaseNode -
type Map ¶
type Map struct { Default KeyType Node ValueType Node Data *OrderedMap }
Map -
func (*Map) Distinguish ¶
func (m *Map) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Map) FromJSONSchema ¶
FromJSONSchema -
func (*Map) GetDefaultJSONModel ¶
GetDefaultJSONModel -
type MiguelNode ¶
type MiguelNode struct { Prim string `json:"prim,omitempty"` Type string `json:"type,omitempty"` Name *string `json:"name,omitempty"` From interface{} `json:"from,omitempty"` DiffType string `json:"diff_type,omitempty"` Value interface{} `json:"value,omitempty"` Children []*MiguelNode `json:"children,omitempty"` }
MiguelNode -
type Mutez ¶
type Mutez struct {
Default
}
Mutez -
func (*Mutez) Distinguish ¶
func (m *Mutez) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Mutez) FindByName ¶
FindByName -
func (*Mutez) FromJSONSchema ¶
FromJSONSchema -
type Nat ¶
type Nat struct {
Default
}
Nat -
func (*Nat) Distinguish ¶
func (n *Nat) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Nat) FromJSONSchema ¶
FromJSONSchema -
type Never ¶
type Never struct {
Default
}
Never -
func (*Never) Distinguish ¶
func (n *Never) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Never) FindByName ¶
FindByName -
type Operation ¶
type Operation struct {
Default
}
Operation -
func (*Operation) Distinguish ¶
func (o *Operation) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
type Option ¶
Option -
func (*Option) Distinguish ¶
func (opt *Option) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Option) EnrichBigMap ¶
func (opt *Option) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*Option) FindByName ¶
FindByName -
func (*Option) FromJSONSchema ¶
FromJSONSchema -
func (*Option) ToBaseNode ¶
ToBaseNode -
type Or ¶
Or -
func (*Or) Distinguish ¶
func (or *Or) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Or) FromJSONSchema ¶
FromJSONSchema -
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
OrderedMap -
func (*OrderedMap) Range ¶
func (m *OrderedMap) Range(handler func(key, value Comparable) (bool, error)) error
Range -
type Pair ¶
Pair -
func (*Pair) Distinguish ¶
func (p *Pair) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Pair) EnrichBigMap ¶
func (p *Pair) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*Pair) FindByName ¶
FindByName -
func (*Pair) FromJSONSchema ¶
FromJSONSchema -
func (*Pair) ToBaseNode ¶
ToBaseNode -
type SaplingState ¶
SaplingState -
func (*SaplingState) Distinguish ¶
func (ss *SaplingState) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*SaplingState) Docs ¶
func (ss *SaplingState) Docs(inferredName string) ([]Typedef, string, error)
Docs -
func (*SaplingState) FindByName ¶
func (ss *SaplingState) FindByName(name string, isEntrypoint bool) Node
FindByName -
func (*SaplingState) MarshalJSON ¶
func (ss *SaplingState) MarshalJSON() ([]byte, error)
MarshalJSON -
func (*SaplingState) ParseType ¶
func (ss *SaplingState) ParseType(node *base.Node, id *int) error
ParseType -
func (*SaplingState) ParseValue ¶
func (ss *SaplingState) ParseValue(node *base.Node) error
ParseValue -
func (*SaplingState) ToBaseNode ¶
func (ss *SaplingState) ToBaseNode(optimized bool) (*base.Node, error)
ToBaseNode -
type SaplingTransaction ¶
SaplingTransaction -
func NewSaplingTransaction ¶
func NewSaplingTransaction(depth int) *SaplingTransaction
NewSaplingTransaction -
func (*SaplingTransaction) Distinguish ¶
func (st *SaplingTransaction) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*SaplingTransaction) Docs ¶
func (st *SaplingTransaction) Docs(inferredName string) ([]Typedef, string, error)
Docs -
func (*SaplingTransaction) FindByName ¶
func (st *SaplingTransaction) FindByName(name string, isEntrypoint bool) Node
FindByName -
func (*SaplingTransaction) FromJSONSchema ¶
func (st *SaplingTransaction) FromJSONSchema(data map[string]interface{}) error
FromJSONSchema -
func (*SaplingTransaction) MarshalJSON ¶
func (st *SaplingTransaction) MarshalJSON() ([]byte, error)
MarshalJSON -
func (*SaplingTransaction) ParseType ¶
func (st *SaplingTransaction) ParseType(node *base.Node, id *int) error
ParseType -
func (*SaplingTransaction) ParseValue ¶
func (st *SaplingTransaction) ParseValue(node *base.Node) error
ParseValue -
func (*SaplingTransaction) ToBaseNode ¶
func (st *SaplingTransaction) ToBaseNode(optimized bool) (*base.Node, error)
ToBaseNode -
func (*SaplingTransaction) ToMiguel ¶
func (st *SaplingTransaction) ToMiguel() (*MiguelNode, error)
ToMiguel -
func (*SaplingTransaction) ToParameters ¶
func (st *SaplingTransaction) ToParameters() ([]byte, error)
ToParameters -
type Script ¶
type Script struct { Code UntypedAST `json:"code"` Parameter UntypedAST `json:"parameter"` Storage UntypedAST `json:"storage"` Views []UntypedAST `json:"-"` }
Script -
func NewScriptWithoutCode ¶
NewScriptWithoutCode - creates `Script` object without code tree: storage and parameter
func (*Script) ParameterType ¶
ParameterType - returns parameter`s typed tree
func (*Script) StorageType ¶
StorageType - returns storage`s typed tree
type SectionType ¶
SectionType -
func (*SectionType) MarshalJSON ¶
func (st *SectionType) MarshalJSON() ([]byte, error)
MarshalJSON -
func (*SectionType) ParseType ¶
func (st *SectionType) ParseType(node *base.Node, id *int) error
ParseType -
func (*SectionType) ParseValue ¶
func (st *SectionType) ParseValue(node *base.Node) error
ParseValue -
type Set ¶
Set -
func (*Set) Distinguish ¶
func (set *Set) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Set) EnrichBigMap ¶
func (set *Set) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*Set) FindByName ¶
FindByName -
func (*Set) FromJSONSchema ¶
FromJSONSchema -
func (*Set) ToBaseNode ¶
ToBaseNode -
type Signature ¶
type Signature struct {
Default
}
Signature -
func (*Signature) Distinguish ¶
func (s *Signature) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Signature) FindByName ¶
FindByName -
func (*Signature) FromJSONSchema ¶
FromJSONSchema -
func (*Signature) ToBaseNode ¶
ToBaseNode -
func (*Signature) ToJSONSchema ¶
func (s *Signature) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type String ¶
type String struct {
Default
}
String -
func (*String) Distinguish ¶
func (s *String) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*String) FindByName ¶
FindByName -
type Ticket ¶
Ticket -
func (*Ticket) Distinguish ¶
func (t *Ticket) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Ticket) FindByName ¶
FindByName -
func (*Ticket) FromJSONSchema ¶
FromJSONSchema -
func (*Ticket) ToBaseNode ¶
ToBaseNode -
type Timestamp ¶
type Timestamp struct {
Default
}
Timestamp -
func (*Timestamp) Distinguish ¶
func (t *Timestamp) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Timestamp) FindByName ¶
FindByName -
func (*Timestamp) FromJSONSchema ¶
FromJSONSchema -
func (*Timestamp) ToBaseNode ¶
ToBaseNode -
func (*Timestamp) ToJSONSchema ¶
func (t *Timestamp) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
type Type ¶
type Type interface { Docs(inferredName string) ([]Typedef, string, error) EqualType(node Node) bool FindByName(name string, isEntrypoint bool) Node GetEntrypoints() []string GetJSONModel(JSONModel) GetName() string GetPrim() string GetTypeName() string IsNamed() bool IsPrim(prim string) bool ParseType(node *base.Node, id *int) error Range(handler func(node Node) error) error ToJSONSchema() (*JSONSchema, error) }
Type -
type TypedAst ¶
type TypedAst struct { Nodes []Node // contains filtered or unexported fields }
TypedAst -
func NewSettledTypedAst ¶
NewSettledTypedAst -
func NewTypedAstFromBytes ¶
NewTypedAstFromBytes -
func NewTypedAstFromString ¶
NewTypedAstFromString -
func (*TypedAst) EnrichBigMap ¶
func (a *TypedAst) EnrichBigMap(bmd []*types.BigMapDiff) error
EnrichBigMap -
func (*TypedAst) FindBigMapByPtr ¶
FindBigMapByPtr -
func (*TypedAst) FindByName ¶
FindByName -
func (*TypedAst) FromJSONSchema ¶
FromJSONSchema -
func (*TypedAst) FromParameters ¶
func (a *TypedAst) FromParameters(data *types.Parameters) (*TypedAst, error)
FromParameters - fill(settle) subtree in `a` with `data`. Returned settled subtree and error if occurred. If `entrypoint` is empty string it will try to settle main tree.
func (*TypedAst) GetEntrypointsDocs ¶
func (a *TypedAst) GetEntrypointsDocs() ([]EntrypointType, error)
GetEntrypointsDocs -
func (*TypedAst) ParametersForExecution ¶
func (a *TypedAst) ParametersForExecution(entrypoint string, data map[string]interface{}) (*types.Parameters, error)
ParametersForExecution -
func (*TypedAst) SettleFromBytes ¶
SettleFromBytes -
func (*TypedAst) ToBaseNode ¶
ToBaseNode -
func (*TypedAst) ToJSONSchema ¶
func (a *TypedAst) ToJSONSchema() (*JSONSchema, error)
ToJSONSchema -
func (*TypedAst) ToParameters ¶
ToParameters -
func (*TypedAst) UnmarshalJSON ¶
UnmarshalJSON -
func (*TypedAst) UnwrapAndGetEntrypointName ¶
Unwrap - clear parameters from Left/Right. Tree must be settled.
type Typedef ¶
type Typedef struct { Name string `json:"name"` Type string `json:"type,omitempty"` TypeDef []Typedef `json:"typedef,omitempty"` Args []TypedefArg `json:"args,omitempty"` }
Typedef -
type TypedefArg ¶
TypedefArg -
type Unit ¶
type Unit struct {
Default
}
Unit -
func (*Unit) Distinguish ¶
func (u *Unit) Distinguish(x Distinguishable) (*MiguelNode, error)
Distinguish -
func (*Unit) FindByName ¶
FindByName -
func (*Unit) ToBaseNode ¶
ToBaseNode -
type UntypedAST ¶
UntypedAST -
func (UntypedAST) GetStrings ¶
func (u UntypedAST) GetStrings(tryUnpack bool) ([]string, error)
GetStrings -
func (UntypedAST) Stringify ¶
func (u UntypedAST) Stringify() (string, error)
Stringify - make readable string
func (*UntypedAST) UnmarshalJSON ¶
func (u *UntypedAST) UnmarshalJSON(data []byte) error
UnmarshalJSON -
func (UntypedAST) Unpack ¶
func (u UntypedAST) Unpack()
Unpack - unpack all bytes and store data in the tree.
type Value ¶
type Value interface { Comparable Distinguishable EnrichBigMap(bmd []*types.BigMapDiff) error Equal(second Node) bool FindPointers() map[int64]*BigMap FromJSONSchema(data map[string]interface{}) error GetValue() interface{} ParseValue(node *base.Node) error ToMiguel() (*MiguelNode, error) ToParameters() ([]byte, error) }
Value -
Source Files ¶
- address.go
- ast.go
- baker_hash.go
- big_map.go
- bls.go
- bool.go
- bytes.go
- chain_id.go
- chest.go
- chest_key.go
- compare.go
- constant.go
- consts.go
- contract.go
- contract_interface.go
- default.go
- docstring.go
- forge.go
- int.go
- interface.go
- jsonschema.go
- key.go
- key_hash.go
- lambda.go
- list.go
- map.go
- miguel.go
- mutez.go
- nat.go
- never.go
- node.go
- operation.go
- option.go
- or.go
- ordered_map.go
- pack.go
- pair.go
- parameter.go
- parameter_builder.go
- sapling_state.go
- sapling_transaction.go
- script.go
- set.go
- signature.go
- string.go
- ticket.go
- timestamp.go
- unit.go
- untyped.go