Preparing search index...
The search index is not available
Connect SDK - v0.1.7
Connect SDK
@wormhole-foundation/sdk-definitions
testing
mocks
MockChain
Class MockChain<P>
Type Parameters
P
extends
PlatformName
Hierarchy
ChainContext
<
P
>
MockChain
Index
Constructors
constructor
Properties
auto
Circle
Bridge?
auto
Token
Bridge?
chain
circle
Bridge?
config
ibc
Bridge?
platform
rpc?
token
Bridge?
Methods
get
Automatic
Circle
Bridge
get
Automatic
Token
Bridge
get
Balance
get
Circle
Bridge
get
Current
Block
get
Decimals
get
Ibc
Bridge
get
Rpc
get
Token
Bridge
parse
Transaction
send
Wait
supports
Automatic
Circle
Bridge
supports
Automatic
Token
Bridge
supports
Circle
Bridge
supports
Ibc
Bridge
supports
Token
Bridge
Constructors
constructor
new
Mock
Chain
<
P
>
(
conf
)
:
testing
.
mocks
.
MockChain
<
P
>
Type Parameters
P
extends
"Evm"
|
"Solana"
|
"Cosmwasm"
|
"Btc"
|
"Algorand"
|
"Sui"
|
"Aptos"
|
"Near"
Parameters
conf
:
ChainConfig
Returns
testing
.
mocks
.
MockChain
<
P
>
Properties
Protected
Optional
auto
Circle
Bridge
auto
Circle
Bridge
?:
AutomaticCircleBridge
<
P
>
Protected
Optional
auto
Token
Bridge
auto
Token
Bridge
?:
AutomaticTokenBridge
<
P
>
Readonly
chain
chain
:
"Solana"
|
"Btc"
|
"Algorand"
|
"Sui"
|
"Aptos"
|
"Near"
|
"Ethereum"
|
"Terra"
|
"Bsc"
|
"Polygon"
|
"Avalanche"
|
"Oasis"
|
"Aurora"
|
"Fantom"
|
"Karura"
|
"Acala"
|
"Klaytn"
|
"Celo"
|
"Moonbeam"
|
"Neon"
|
"Terra2"
|
"Injective"
|
"Osmosis"
|
"Arbitrum"
|
"Optimism"
|
"Gnosis"
|
"Pythnet"
|
"Xpla"
|
"Base"
|
"Sei"
|
"Rootstock"
|
"Wormchain"
|
"Cosmoshub"
|
"Evmos"
|
"Kujira"
|
"Sepolia"
Protected
Optional
circle
Bridge
circle
Bridge
?:
CircleBridge
<
P
>
Readonly
config
config
:
ChainConfig
Protected
Optional
ibc
Bridge
ibc
Bridge
?:
IbcBridge
<
P
>
Readonly
platform
platform
:
Platform
<
P
>
Protected
Optional
rpc
rpc
?:
any
Protected
Optional
token
Bridge
token
Bridge
?:
TokenBridge
<
P
>
Methods
get
Automatic
Circle
Bridge
get
Automatic
Circle
Bridge
(
)
:
Promise
<
AutomaticCircleBridge
<
P
>
>
Returns
Promise
<
AutomaticCircleBridge
<
P
>
>
get
Automatic
Token
Bridge
get
Automatic
Token
Bridge
(
)
:
Promise
<
AutomaticTokenBridge
<
P
>
>
Returns
Promise
<
AutomaticTokenBridge
<
P
>
>
get
Balance
get
Balance
(
walletAddr
,
token
)
:
Promise
<
null
|
bigint
>
Parameters
walletAddr
:
string
token
:
UniversalAddress
|
"native"
|
GetNativeAddress
<
ChainOrPlatformToPlatform
<
P
>
>
Returns
Promise
<
null
|
bigint
>
get
Circle
Bridge
get
Circle
Bridge
(
)
:
Promise
<
CircleBridge
<
P
>
>
Returns
Promise
<
CircleBridge
<
P
>
>
get
Current
Block
get
Current
Block
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Decimals
get
Decimals
(
token
)
:
Promise
<
bigint
>
Parameters
token
:
UniversalAddress
|
"native"
|
GetNativeAddress
<
ChainOrPlatformToPlatform
<
P
>
>
Returns
Promise
<
bigint
>
get
Ibc
Bridge
get
Ibc
Bridge
(
)
:
Promise
<
IbcBridge
<
P
>
>
Returns
Promise
<
IbcBridge
<
P
>
>
get
Rpc
get
Rpc
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
get
Token
Bridge
get
Token
Bridge
(
)
:
Promise
<
TokenBridge
<
P
>
>
Returns
Promise
<
TokenBridge
<
P
>
>
parse
Transaction
parse
Transaction
(
txid
)
:
Promise
<
WormholeMessageId
[]
>
Parameters
txid
:
string
Returns
Promise
<
WormholeMessageId
[]
>
send
Wait
send
Wait
(
stxns
)
:
Promise
<
string
[]
>
Parameters
stxns
:
any
Returns
Promise
<
string
[]
>
supports
Automatic
Circle
Bridge
supports
Automatic
Circle
Bridge
(
)
:
boolean
Returns
boolean
supports
Automatic
Token
Bridge
supports
Automatic
Token
Bridge
(
)
:
boolean
Returns
boolean
supports
Circle
Bridge
supports
Circle
Bridge
(
)
:
boolean
Returns
boolean
supports
Ibc
Bridge
supports
Ibc
Bridge
(
)
:
boolean
Returns
boolean
supports
Token
Bridge
supports
Token
Bridge
(
)
:
boolean
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
auto
Circle
Bridge
auto
Token
Bridge
chain
circle
Bridge
config
ibc
Bridge
platform
rpc
token
Bridge
get
Automatic
Circle
Bridge
get
Automatic
Token
Bridge
get
Balance
get
Circle
Bridge
get
Current
Block
get
Decimals
get
Ibc
Bridge
get
Rpc
get
Token
Bridge
parse
Transaction
send
Wait
supports
Automatic
Circle
Bridge
supports
Automatic
Token
Bridge
supports
Circle
Bridge
supports
Ibc
Bridge
supports
Token
Bridge
Connect SDK -
v0.1.7
@wormhole-
foundation/connect-
sdk -
v0.1.7
@wormhole-
foundation/connect-
sdk-
solana -
v0.1.7
@wormhole-
foundation/connect-
sdk-
evm -
v0.1.7
@wormhole-
foundation/connect-
sdk-
cosmwasm -
v0.1.7
@wormhole-
foundation/sdk-
base -
v0.1.7
@wormhole-
foundation/sdk-
definitions -
v0.1.7
Token
Bridge
testing
mocks
Mock
Api
Mock
Chain
Mock
Contracts
Mock
Platform
Mock
Token
Bridge
chain
Factory
mock
Platform
Factory
utils
Chain
Context
Signature
Universal
Address
Address
Automatic
Circle
Bridge
Automatic
Token
Bridge
Circle
Bridge
Gateway
Ibc
Transfer
Msg
Gateway
Msg
Gateway
Transfer
Msg
Gateway
Transfer
With
Payload
Msg
Ibc
Bridge
Ibc
Transfer
Data
Ibc
Transfer
Info
Platform
Platform
Utils
Relayer
Sign
And
Send
Signer
Sign
Only
Signer
Supports
Automatic
Circle
Bridge
Supports
Automatic
Token
Bridge
Supports
Circle
Bridge
Supports
Ibc
Bridge
Supports
Token
Bridge
Supports
Wormhole
Core
Token
Bridge
Unsigned
Transaction
VAA
Wormhole
Core
Any
Address
Balances
Byteish
Chain
Address
Chain
Config
Chains
Config
Circle
Attestation
Circle
Message
Id
Circle
Transfer
Message
Contracts
DistributiveVAA
Extract
Literal
Gateway
Transfer
Details
Ibc
Message
Id
Layout
Literal
Mapped
Platforms
Named
Payloads
Native
Address
Payload
Discriminator
Payload
Literal
ProtocolVAA
Register
Payload
Types
Rpc
Connection
Sequence
Id
Signed
Tx
Signer
Token
Id
Transaction
Id
Tx
Hash
Universal
Or
Native
Wormhole
Message
Id
get
Circle
Attestation
get
Wormhole
Attestation
circle
Message
Layout
Err
Not
Wrapped
blind
Deserialize
Payload
compose
Literal
createVAA
deserialize
deserialize
Circle
Message
deserialize
Payload
gateway
Transfer
Msg
get
Contracts
is
Circle
Message
Id
is
Gateway
Ibc
Transfer
Msg
is
Gateway
Transfer
Details
is
Gateway
Transfer
Msg
is
Gateway
Transfer
With
Payload
Msg
is
Ibc
Message
Id
is
Ibc
Transfer
Info
is
Sign
And
Send
Signer
is
Sign
Only
Signer
is
Signer
is
Token
Id
is
Transaction
Identifier
is
Wormhole
Message
Id
make
Gateway
Transfer
Msg
native
Chain
Address
native
Is
Registered
payload
Discriminator
register
Native
register
Payload
Type
register
Payload
Types
serialize
serialize
Payload
supports
Automatic
Circle
Bridge
supports
Automatic
Token
Bridge
supports
Circle
Bridge
supports
Ibc
Bridge
supports
Token
Bridge
supports
Wormhole
Core
to
Gateway
Msg
to
Native
Generated using
TypeDoc