Documentation ¶
Index ¶
- func InitAssetContract(asset string, evmClient *evm.Client) (*wtoken.Wtoken, error)
- func InitWrappedAssetContract(nativeAsset string, assetsService service.Assets, ...) (*wtoken.Wtoken, error)
- func NativeToWrappedAsset(assetsService service.Assets, sourceChain, targetChain uint64, ...) (string, error)
- func WrappedToNativeAsset(assetsService service.Assets, sourceChainId uint64, asset string) (*asset.NativeAsset, error)
- type Config
- type EVMUtils
- type Hedera
- type Receiver
- type ScenarioConfig
- type Sender
- type Setup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAssetContract ¶
func NativeToWrappedAsset ¶
func WrappedToNativeAsset ¶
Types ¶
type Config ¶
type Config struct { Hedera Hedera EVM map[uint64]config.Evm Tokens e2eParser.Tokens ValidatorUrl string Bridge parser.Bridge AssetMappings service.Assets FeePercentages map[string]int64 NftConstantFees map[string]int64 NftDynamicFees map[string]decimal.Decimal Scenario e2eParser.ScenarioParser }
Config used to load and parse from application.yml
type EVMUtils ¶
type EVMUtils struct { EVMClient *evm.Client EVMFungibleTokenClients map[string]client.EvmFungibleToken EVMNftClients map[string]client.EvmNft RouterContract *router.Router KeyTransactor *bind.TransactOpts Signer *evm_signer.Signer Receiver common.Address RouterAddress common.Address WTokenContractAddress string }
type Hedera ¶
type Hedera struct { NetworkType string BridgeAccount string PayerAccount string Members []string TopicID string Sender Sender DbValidationProps []config.Database MirrorNode config.MirrorNode }
Hedera props from the application.yml
type ScenarioConfig ¶ added in v1.4.0
type Setup ¶
type Setup struct { BridgeAccount hederaSDK.AccountID PayerAccount hederaSDK.AccountID TopicID hederaSDK.TopicID TokenID hederaSDK.TokenID NativeEvmToken string NftTokenID hederaSDK.TokenID NftSerialNumber int64 NftConstantFees map[string]int64 NftDynamicFees map[string]decimal.Decimal FeePercentages map[string]int64 Members []hederaSDK.AccountID Clients *clients DbValidator *db_validation.Service AssetMappings service.Assets Scenario *ScenarioConfig }
Setup used by the e2e tests. Preloaded with all necessary dependencies
Click to show internal directories.
Click to hide internal directories.