Documentation ¶
Index ¶
- Constants
- Variables
- func NewDecoder(_ uint64) metadata.Decoder
- type Claim
- type Decoder
- func (d *Decoder) DecodeParams(buf []byte) (p Params, err error)
- func (d *Decoder) DecodeStorage(buf []byte) (c Storage, err error)
- func (d *Decoder) Namespace() string
- func (d *Decoder) OnOperation(_ context.Context, op *model.Op) ([]*metadata.Event, error)
- func (d *Decoder) OnTaskComplete(ctx context.Context, meta *model.Metadata, res *task.TaskResult) ([]*metadata.Event, error)
- type Params
- type Storage
Constants ¶
View Source
const ( TzProfileV0 uint64 = 0x30794422432f1557 TzProfileV1 uint64 = 0x60ad2404b71de830 )
Variables ¶
View Source
var ( StorageType = m.MustParseType(`{"prim":"pair","args":[{"prim":"pair","args":[{"prim":"set","annots":["%claims"],"args":[{"prim":"pair","args":[{"prim":"pair","args":[{"prim":"string","annots":["%url"]},{"prim":"bytes","annots":["%sign"]}]},{"prim":"string"}]}]},{"prim":"string","annots":["%contract_type"]}]},{"prim":"pair","args":[{"prim":"big_map","annots":["%metadata"],"args":[{"prim":"string"},{"prim":"bytes"}]},{"prim":"address","annots":["%owner"]}]}]}`) ParamsType = m.MustParseType(`{"prim":"pair","args":[{"prim":"list","args":[{"prim":"pair","args":[{"prim":"pair","args":[{"prim":"string"},{"prim":"bytes"}]},{"prim":"string"}]}]},{"prim":"bool"}]}`) )
Functions ¶
func NewDecoder ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func (*Decoder) OnOperation ¶
Click to show internal directories.
Click to hide internal directories.