test

module
v0.0.0-...-027dd3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0

README

x/test

Quality Gate Status Coverage Go Report Card

Abstract

Some modules have messages which may use other messages. Typical examples would be:

Testing those kind of messages requires messages with ownership semantics, however, the corresponding module often lacks such kind of messages. While implementing (or mocking) such messages by each module would be a good way to avoid compatibility issues on the test, it would be also resonable to prepare a simple, stable module only for the tests. That's the rationale of this module.

Contents

Concepts

Asset

Assets would be identified by its name in string. You cannot stack same assets on the same account. Anyone can create assets by their own.

State

Assets

One can change the prefix through the argument of the keeper.

  • Assets: 0xff | owner_address | asset_name -> ProtocolBuffer(Asset)

https://github.com/0Tech/andromeda/blob/f405ccd9e13c31233f4d34d46b500a05eb8ef8e7/x/test/proto/andromeda/test/v1alpha1/types.proto#L4-L5

Msg Service

Msg/Create

https://github.com/0Tech/andromeda/blob/f405ccd9e13c31233f4d34d46b500a05eb8ef8e7/x/test/proto/andromeda/test/v1alpha1/tx.proto#L18-L28

Msg/Send

https://github.com/0Tech/andromeda/blob/f405ccd9e13c31233f4d34d46b500a05eb8ef8e7/x/test/proto/andromeda/test/v1alpha1/tx.proto#L33-L46

Events

EventCreate

https://github.com/0Tech/andromeda/blob/f405ccd9e13c31233f4d34d46b500a05eb8ef8e7/x/test/proto/andromeda/test/v1alpha1/event.proto#L6-L13

EventSend

https://github.com/0Tech/andromeda/blob/f405ccd9e13c31233f4d34d46b500a05eb8ef8e7/x/test/proto/andromeda/test/v1alpha1/event.proto#L15-L25

Directories

Path Synopsis
andromeda
test/v1alpha1
Package testv1alpha1 is a reverse proxy.
Package testv1alpha1 is a reverse proxy.
api
andromeda/test/module/v1alpha1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.
andromeda/test/v1alpha1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL