Documentation ¶
Index ¶
Constants ¶
View Source
const ( CLSchemaType = "CL-Schema" SchemaData = "{\"attr\":[\"name\",\"age\"]}" TestResourceName = "Test Resource Name" JsonResourceType = "application/json" ResourceId = "988b0ab3-6a39-4598-83ec-b84c6cf8da15" AnotherResourceId = "71583c78-f16f-11ec-9dd4-cba0f34eb177" IncorrectResourceId = "1234" NotFoundDIDIdentifier = "nfdnfdnfdnfdnfdd" ExistingDIDIdentifier = "eeeeeeeeeeeeeeee" ExistingDID = "did:cheqd:test:" + ExistingDIDIdentifier ExistingDIDKey = ExistingDID + "#key-1" )
Variables ¶
This section is empty.
Functions ¶
func ExistingResource ¶
func GenerateCreateResourcePayload ¶
func GenerateCreateResourcePayload(resource types.Resource) *types.MsgCreateResourcePayload
func GenerateTestKeys ¶
func GenerateTestKeys() map[string]cheqdtests.KeyPair
Types ¶
type TestSetup ¶
type TestSetup struct { cheqdtests.TestSetup ResourceKeeper keeper.Keeper ResourceHandler sdk.Handler QueryServer types.QueryServer }
func (*TestSetup) SendCreateResource ¶
func (s *TestSetup) SendCreateResource(msg *types.MsgCreateResourcePayload, keys map[string]ed25519.PrivateKey) (*types.Resource, error)
func (*TestSetup) WrapCreateRequest ¶
func (s *TestSetup) WrapCreateRequest(payload *types.MsgCreateResourcePayload, keys map[string]ed25519.PrivateKey) *types.MsgCreateResource
Click to show internal directories.
Click to hide internal directories.