Documentation ¶
Index ¶
- Constants
- Variables
- func GetEnvOrDefault(key, defaultValue string) string
- type AdminKey
- type Admins
- type BufferArray
- type Chain
- type ChainConfig
- type ContractKey
- type ContractName
- type DockerImage
- type Event
- type EventListener
- type Filter
- type InitMessage
- type InitMessageKey
- type LastBlock
- type MinimumGasPriceEntity
- type Mykey
- type PacketTransferResponse
- type Param
- type Query
- type TimeoutResponse
- type XCallConnection
- type XCallResponse
Constants ¶
View Source
const ( DefaultNumValidators = 1 DefaultNumFullNodes = 1 )
View Source
const ( //read only method HasPacketReceipt = "has-packet-receipt" GetNextSequenceReceive = "get-next-sequence-receive" GetClientState = "get-client-state" GetNextClientSequence = "get-next-client-sequence" GetConnection = "get-connection" GetNextConnectionSequence = "get-next-connection-sequence" GetChannel = "get-channel" GetNextChannelSequence = "get-next-channel-sequence" //execute methods BindPort = "bind_port" //mock dapp SendMessage = "send_message" )
View Source
const (
BASE_PATH = "BASE_PATH"
)
Variables ¶
View Source
var Response interface{}
Functions ¶
func GetEnvOrDefault ¶
Types ¶
type BufferArray ¶
type BufferArray []byte
func (BufferArray) MarshalJSON ¶
func (u BufferArray) MarshalJSON() ([]byte, error)
type Chain ¶
type Chain interface { // ibc.Chain Height(ctx context.Context) (uint64, error) Config() ChainConfig GetRelayConfig(ctx context.Context, rlyHome string, keyName string) ([]byte, error) SetupXCall(ctx context.Context) error SetupConnection(ctx context.Context, target Chain) error FindTargetXCallMessage(ctx context.Context, target Chain, height uint64, to string) (*XCallResponse, error) SendPacketXCall(ctx context.Context, keyName, _to string, data, rollback []byte) (context.Context, error) XCall(ctx context.Context, targetChain Chain, keyName, _to string, data, rollback []byte) (*XCallResponse, error) FindCallMessage(ctx context.Context, startHeight uint64, from, to, sn string) (string, string, error) FindCallResponse(ctx context.Context, startHeight uint64, sn string) (string, error) FindRollbackExecutedMessage(ctx context.Context, startHeight uint64, sn string) (string, error) GetContractAddress(key string) string DeployXCallMockApp(ctx context.Context, keyName string, connections []XCallConnection) error }
type ChainConfig ¶
type ChainConfig struct { Type string `mapstructure:"type"` Name string `mapstructure:"name"` ChainID string `mapstructure:"chain_id"` Images DockerImage `mapstructure:"image"` Bin string `mapstructure:"bin"` Bech32Prefix string `mapstructure:"bech32_prefix"` Denom string `mapstructure:"denom"` SkipGenTx bool `mapstructure:"skip_gen_tx"` CoinType string `mapstructure:"coin_type"` GasPrices string `mapstructure:"gas_prices"` GasAdjustment float64 `mapstructure:"gas_adjustment"` TrustingPeriod string `mapstructure:"trusting_period"` NoHostMount bool `mapstructure:"no_host_mount"` BlockInterval int `mapstructure:"block_interval"` }
func (*ChainConfig) FromIBCChainConfig ¶
func (c *ChainConfig) FromIBCChainConfig(ibc ibcv8.ChainConfig) ChainConfig
func (*ChainConfig) GetIBCChainConfig ¶
func (c *ChainConfig) GetIBCChainConfig(chain *Chain) ibc.ChainConfig
type ContractKey ¶
type ContractName ¶
type ContractName struct {
ContractName string
}
type DockerImage ¶
type EventListener ¶
type InitMessage ¶
type InitMessage struct {
Message map[string]interface{}
}
type InitMessageKey ¶
type InitMessageKey string
type MinimumGasPriceEntity ¶
type PacketTransferResponse ¶
type TimeoutResponse ¶
type XCallConnection ¶
type XCallResponse ¶
Click to show internal directories.
Click to hide internal directories.