Versions in this module Expand all Collapse all v0 v0.1.1 Apr 1, 2019 v0.1.0 Mar 28, 2019 Changes in this version + const GetGraph + const GetResource + const GetTest + const ListResources + const WirelineChainID + func BytesFromBase64(str string) []byte + func BytesFromHex(str string) []byte + func BytesToBase64(bytes []byte) string + func BytesToHex(bytes []byte) string + func GenRecordHash(r Record) []byte + func GetAddressFromPubKey(pubKey crypto.PubKey) string + func GetResourceSignature(record Record, name string) ([]byte, crypto.PubKey, error) + func GraphResourceNode(g *dot.Graph, r Record) dot.Node + func MarshalLinksToJSONBytes(val []map[string]interface{}) (bytes []byte) + func MarshalMapToJSONBytes(val map[string]interface{}) (bytes []byte) + func MarshalSliceToJSONBytes(val []interface{}) (bytes []byte) + func NewHandler(keeper Keeper) sdk.Handler + func NewQuerier(keeper Keeper) sdk.Querier + func RegisterCodec(cdc *codec.Codec) + func UnMarshalLinksFromJSONBytes(bytes []byte) []map[string]interface + func UnMarshalMapFromJSONBytes(bytes []byte) map[string]interface + func UnMarshalSliceFromJSONBytes(bytes []byte) []interface + type ID string + type Keeper struct + func NewKeeper(accountKeeper auth.AccountKeeper, coinKeeper bank.Keeper, ...) Keeper + func (k Keeper) ClearResources(ctx sdk.Context) + func (k Keeper) DeleteResource(ctx sdk.Context, id ID) + func (k Keeper) GetResource(ctx sdk.Context, id ID) Record + func (k Keeper) HasResource(ctx sdk.Context, id ID) bool + func (k Keeper) ListResources(ctx sdk.Context) []Record + func (k Keeper) PutResource(ctx sdk.Context, record Record) + type MsgClearRecords struct + Signer sdk.AccAddress + func NewMsgClearRecords(signer sdk.AccAddress) MsgClearRecords + func (msg MsgClearRecords) GetSignBytes() []byte + func (msg MsgClearRecords) GetSigners() []sdk.AccAddress + func (msg MsgClearRecords) Route() string + func (msg MsgClearRecords) Type() string + func (msg MsgClearRecords) ValidateBasic() sdk.Error + type MsgDeleteRecord struct + Payload PayloadObj + Signer sdk.AccAddress + func NewMsgDeleteRecord(payload PayloadObj, signer sdk.AccAddress) MsgDeleteRecord + func (msg MsgDeleteRecord) GetSignBytes() []byte + func (msg MsgDeleteRecord) GetSigners() []sdk.AccAddress + func (msg MsgDeleteRecord) Route() string + func (msg MsgDeleteRecord) Type() string + func (msg MsgDeleteRecord) ValidateBasic() sdk.Error + type MsgSetRecord struct + Payload PayloadObj + Signer sdk.AccAddress + func NewMsgSetRecord(payload PayloadObj, signer sdk.AccAddress) MsgSetRecord + func (msg MsgSetRecord) GetSignBytes() []byte + func (msg MsgSetRecord) GetSigners() []sdk.AccAddress + func (msg MsgSetRecord) Route() string + func (msg MsgSetRecord) Type() string + func (msg MsgSetRecord) ValidateBasic() sdk.Error + type Payload struct + Record Record + Signatures []Signature + func PayloadObjToPayload(payloadObj PayloadObj) Payload + type PayloadObj struct + Record RecordObj + Signatures []Signature + func PayloadToPayloadObj(payload Payload) PayloadObj + type Record struct + Attributes map[string]interface{} + ID ID + Owner string + Type string + func RecordObjToRecord(resourceObj RecordObj) Record + type RecordObj struct + Attributes []byte + ID ID + Owner string + Type string + func RecordToRecordObj(record Record) RecordObj + type Signature struct + PubKey string + Signature string