Documentation
¶
Index ¶
- Constants
- func DeployContract(t *testing.T, app *app.ChainApp, ctx sdk.Context, contractAddr common.Address, ...) common.Address
- func DeployMigrationContract(t *testing.T, app *app.ChainApp, ctx sdk.Context) (common.Address, common.Address)
- func EncodeUniversalPayloadBorsh(up *uexecutortypes.UniversalPayload) (string, error)
- func ExecVoteChainMeta(t *testing.T, ctx sdk.Context, app *app.ChainApp, universalAddr string, ...) error
- func ExecVoteInbound(t *testing.T, ctx sdk.Context, app *app.ChainApp, universalAddr string, ...) error
- func ExecVoteOutbound(t *testing.T, ctx sdk.Context, app *app.ChainApp, universalAddr string, ...) error
- func GetHandlerBytecode() string
- func GetUEAEVMBytecode() string
- func GetUEAProxyBytecode() string
- func SetAppWithMultipleValidators(t *testing.T, numVals int) (*app.ChainApp, sdk.Context, []sdk.AccountI, []stakingtypes.Validator)
- func SetAppWithValidators(t *testing.T) (*app.ChainApp, sdk.Context, sdk.AccountI)
- func SetupApp(t *testing.T) *app.ChainApp
- func SetupValidators(t *testing.T, chainApp *app.ChainApp, ctx sdk.Context, accounts []sdk.AccountI, ...) ([]stakingtypes.Validator, []cryptotypes.PubKey)
- type Addresses
- type AppSetupOptions
- type TestAccounts
- type TestConfig
Constants ¶
View Source
const ABI_MIGRATION = `` /* 726-byte string literal not displayed */
View Source
const HANDLER_CONTRACT_BYTECODE = "" /* 47886-byte string literal not displayed */
View Source
const MintModule string = "mint"
View Source
const PRC20_CREATION_BYTECODE = "" /* 13512-byte string literal not displayed */
View Source
const UEA_EVM_BYTECODE = "" /* 16116-byte string literal not displayed */
View Source
const UEA_MIGRATION_BYTECODE = "" /* 1392-byte string literal not displayed */
View Source
const UEA_PROXY_BYTECODE = "" /* 1968-byte string literal not displayed */
View Source
const UEA_SVM_BYTECODE = "" /* 14558-byte string literal not displayed */
View Source
const UNIVERSAL_GATEWAY_PC_BYTECODE = "" /* 1968-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func DeployContract ¶
func DeployMigrationContract ¶
func EncodeUniversalPayloadBorsh ¶ added in v0.0.29
func EncodeUniversalPayloadBorsh(up *uexecutortypes.UniversalPayload) (string, error)
EncodeUniversalPayloadBorsh Borsh-encodes a UniversalPayload into a hex string. Matches the Rust Anchor/Borsh layout used by the Solana gateway program.
func ExecVoteChainMeta ¶ added in v0.0.19
func ExecVoteChainMeta( t *testing.T, ctx sdk.Context, app *app.ChainApp, universalAddr string, coreValAddr string, chainID string, price uint64, blockNumber uint64, ) error
ExecVoteChainMeta executes a MsgVoteChainMeta on behalf of the core validator through the universal validator using authz Exec.
func ExecVoteInbound ¶
func ExecVoteOutbound ¶ added in v0.0.13
func GetHandlerBytecode ¶
func GetHandlerBytecode() string
GetHandlerBytecode returns the Handler contract bytecode
func GetUEAEVMBytecode ¶
func GetUEAEVMBytecode() string
GetUEAEVMBytecode returns the UEA EVM implementation contract bytecode
func GetUEAProxyBytecode ¶
func GetUEAProxyBytecode() string
GetUEAProxyBytecode returns the UEA proxy contract bytecode
func SetAppWithValidators ¶
func SetupValidators ¶
Types ¶
type Addresses ¶
type Addresses struct {
// Contract addresses
FactoryAddr common.Address
UEProxyAddr common.Address
EVMImplAddr common.Address
SVMImplAddr common.Address
NewEVMImplAddr common.Address
NewSVMImplAddr common.Address
MigratedUEAAddr common.Address
HandlerAddr common.Address
PRC20USDCAddr common.Address
ExternalUSDCAddr common.Address
UniversalGatewayPCAddr common.Address
// Account addresses (hex format)
DefaultTestAddr string
CosmosTestAddr string
TargetAddr string
TargetAddr2 string
}
func GetDefaultAddresses ¶
func GetDefaultAddresses() Addresses
type AppSetupOptions ¶
type AppSetupOptions struct {
TestConfig TestConfig
Addresses Addresses
}
type TestAccounts ¶
type TestAccounts struct {
DefaultAccount sdk.AccountI
CosmosAccount sdk.AccountI
TargetAccount sdk.AccountI
}
func SetupTestAccounts ¶
func SetupTestAccounts(t *testing.T, app *app.ChainApp, ctx sdk.Context, opt AppSetupOptions) TestAccounts
type TestConfig ¶
func GetDefaultTestConfig ¶
func GetDefaultTestConfig() TestConfig
Click to show internal directories.
Click to hide internal directories.