Documentation
¶
Index ¶
- Variables
- func GetAllChains() map[string]*ConfiguredChain
- func GetMethodSpecNameByChain(chain Chain) string
- func GetMethodSpecNameByChainName(chainName string) string
- func IsSupported(chainName string) bool
- type BlockchainType
- type ChainConfig
- type ChainData
- type ChainSettings
- type ConfiguredChain
- type Protocol
- type Settings
Constants ¶
This section is empty.
Variables ¶
View Source
var UnknownChain = &ConfiguredChain{ ChainId: "0x0", NetVersion: "0", ShortNames: []string{}, Settings: Settings{}, Chain: -1, }
Functions ¶
func GetAllChains ¶
func GetAllChains() map[string]*ConfiguredChain
func GetMethodSpecNameByChain ¶
func GetMethodSpecNameByChain(chain Chain) string
func IsSupported ¶
Types ¶
type BlockchainType ¶
type BlockchainType string
const ( Bitcoin BlockchainType = "bitcoin" Cosmos BlockchainType = "cosmos" Ethereum BlockchainType = "eth" EthereumBeaconChain BlockchainType = "eth-beacon-chain" Near BlockchainType = "near" Polkadot BlockchainType = "polkadot" Solana BlockchainType = "solana" Starknet BlockchainType = "starknet" Ton BlockchainType = "ton" Aztec BlockchainType = "aztec" )
type ChainConfig ¶
type ChainConfig struct {
ChainSettings ChainSettings `yaml:"chain-settings"`
}
type ChainSettings ¶
type ConfiguredChain ¶
type ConfiguredChain struct {
ChainId string
NetVersion string
ShortNames []string
Type BlockchainType
Settings Settings
Chain Chain
MethodSpec string
}
func GetChain ¶
func GetChain(chainName string) *ConfiguredChain
func GetChainByChainIdAndVersion ¶
func GetChainByChainIdAndVersion(chainId, netVersion string) *ConfiguredChain
type Protocol ¶
type Protocol struct {
Chains []ChainData `yaml:"chains"`
Settings map[string]interface{} `yaml:"settings"`
Type BlockchainType `yaml:"type"`
}
Click to show internal directories.
Click to hide internal directories.