chain

package
v1.106.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainClientInterface

type ChainClientInterface interface {
	Commit(data map[string]string) (string, error)
	Query(blockId string, data map[string]string) (string, error)
}

func NewChainClient

func NewChainClient(providerType string, clientId string, clientSecret string, region string, networkId string, chainId string) (ChainClientInterface, error)

type ChainTencentChainmakerClient

type ChainTencentChainmakerClient struct {
	ClientId     string
	ClientSecret string
	Region       string
	NetworkId    string
	ChainId      string
}

func (ChainTencentChainmakerClient) Commit

func (client ChainTencentChainmakerClient) Commit(data map[string]string) (string, error)

func (ChainTencentChainmakerClient) Query

func (client ChainTencentChainmakerClient) Query(blockId string, data map[string]string) (string, error)

Jump to

Keyboard shortcuts

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