Preparing search index...
The search index is not available
Cosmwasm Simulate SDK
Cosmwasm Simulate SDK
index
VMInstance
Class VMInstance
Hierarchy
VMInstance
CWSimulateVMInstance
Index
Constructors
constructor
Properties
backend
debug
Msgs
env?
instance?
eddsa
wasm
Cache
wasm
Metering
Cache
Accessors
exports
gas
Limit
gas
Used
remaining
Gas
storage
Readonly
Methods
abort
addr_
canonicalize
addr_
humanize
addr_
validate
allocate
allocate_
b64
allocate_
bytes
allocate_
json
allocate_
str
build
curve_
hash
db_
next
db_
read
db_
remove
db_
scan
db_
write
deallocate
debug
do_
abort
do_
addr_
canonicalize
do_
addr_
humanize
do_
addr_
validate
do_
curve_
hash
do_
db_
next
do_
db_
read
do_
db_
remove
do_
db_
scan
do_
db_
write
do_
debug
do_
ed25519_
batch_
verify
do_
ed25519_
verify
do_
groth16_
verify
do_
keccak_
256
do_
poseidon_
hash
do_
query_
chain
do_
secp256k1_
recover_
pubkey
do_
secp256k1_
verify
do_
sha256
ed25519_
batch_
verify
ed25519_
verify
execute
groth16_
verify
ibc_
channel_
close
ibc_
channel_
connect
ibc_
channel_
open
ibc_
packet_
ack
ibc_
packet_
receive
ibc_
packet_
timeout
instantiate
json
keccak_
256
migrate
poseidon_
hash
query
query_
chain
region
reply
secp256k1_
recover_
pubkey
secp256k1_
verify
sha256
sudo
Constructors
constructor
new VMInstance
(
backend
,
env
?
)
:
VMInstance
Parameters
backend
:
IBackend
Optional
env
:
Environment
Returns
VMInstance
Properties
backend
backend
:
IBackend
debug
Msgs
debug
Msgs
:
string
[]
Optional
Readonly
env
env
?:
Environment
Optional
instance
instance
?:
Instance
Static
eddsa
eddsa
:
eddsa
Static
Private
wasm
Cache
wasm
Cache
:
any
Static
Private
wasm
Metering
Cache
wasm
Metering
Cache
:
any
Accessors
exports
get
exports
(
)
:
any
Returns
any
gas
Limit
get
gasLimit
(
)
:
number
Returns
number
gas
Used
get
gasUsed
(
)
:
number
Returns
number
remaining
Gas
get
remainingGas
(
)
:
number
Returns
number
storage
Readonly
set
storageReadonly
(
value
)
:
void
Parameters
value
:
boolean
Returns
void
Methods
abort
abort
(
message_ptr
)
:
void
Parameters
message_ptr
:
number
Returns
void
addr_
canonicalize
addr_
canonicalize
(
source_ptr
,
destination_ptr
)
:
number
Parameters
source_ptr
:
number
destination_ptr
:
number
Returns
number
addr_
humanize
addr_
humanize
(
source_ptr
,
destination_ptr
)
:
number
Parameters
source_ptr
:
number
destination_ptr
:
number
Returns
number
addr_
validate
addr_
validate
(
source_ptr
)
:
number
Parameters
source_ptr
:
number
Returns
number
allocate
allocate
(
size
)
:
Region
Parameters
size
:
number
Returns
Region
allocate_
b64
allocate_
b64
(
b64
)
:
Region
Parameters
b64
:
string
Returns
Region
allocate_
bytes
allocate_
bytes
(
bytes
)
:
Region
Parameters
bytes
:
Uint8Array
Returns
Region
allocate_
json
allocate_
json
(
obj
)
:
Region
Parameters
obj
:
object
Returns
Region
allocate_
str
allocate_
str
(
str
)
:
Region
Parameters
str
:
string
Returns
Region
build
build
(
wasmByteCode
,
checksum
?
)
:
Promise
<
void
>
Parameters
wasmByteCode
:
Uint8Array
Optional
checksum
:
string
Returns
Promise
<
void
>
curve_
hash
curve_
hash
(
input_ptr
,
curve
,
destination_ptr
)
:
number
Parameters
input_ptr
:
number
curve
:
number
destination_ptr
:
number
Returns
number
db_
next
db_
next
(
iterator_id_ptr
)
:
number
Parameters
iterator_id_ptr
:
number
Returns
number
db_
read
db_
read
(
key_ptr
)
:
number
Parameters
key_ptr
:
number
Returns
number
db_
remove
db_
remove
(
key_ptr
)
:
void
Parameters
key_ptr
:
number
Returns
void
db_
scan
db_
scan
(
start_ptr
,
end_ptr
,
order
)
:
number
Parameters
start_ptr
:
number
end_ptr
:
number
order
:
number
Returns
number
db_
write
db_
write
(
key_ptr
,
value_ptr
)
:
void
Parameters
key_ptr
:
number
value_ptr
:
number
Returns
void
deallocate
deallocate
(
region
)
:
void
Parameters
region
:
Region
Returns
void
debug
debug
(
message_ptr
)
:
void
Parameters
message_ptr
:
number
Returns
void
do_
abort
do_
abort
(
message
)
:
void
Parameters
message
:
Region
Returns
void
do_
addr_
canonicalize
do_
addr_
canonicalize
(
source
,
destination
)
:
Region
Parameters
source
:
Region
destination
:
Region
Returns
Region
do_
addr_
humanize
do_
addr_
humanize
(
source
,
destination
)
:
Region
Parameters
source
:
Region
destination
:
Region
Returns
Region
do_
addr_
validate
do_
addr_
validate
(
source
)
:
Region
Parameters
source
:
Region
Returns
Region
do_
curve_
hash
do_
curve_
hash
(
input
,
curve
,
destination
)
:
Region
Parameters
input
:
Region
curve
:
number
destination
:
Region
Returns
Region
do_
db_
next
do_
db_
next
(
iterator_id
)
:
Region
Parameters
iterator_id
:
Region
Returns
Region
do_
db_
read
do_
db_
read
(
key
)
:
Region
Parameters
key
:
Region
Returns
Region
do_
db_
remove
do_
db_
remove
(
key
)
:
void
Parameters
key
:
Region
Returns
void
do_
db_
scan
do_
db_
scan
(
start
,
end
,
order
)
:
Region
Parameters
start
:
Region
end
:
Region
order
:
number
Returns
Region
do_
db_
write
do_
db_
write
(
key
,
value
)
:
void
Parameters
key
:
Region
value
:
Region
Returns
void
do_
debug
do_
debug
(
message
)
:
void
Parameters
message
:
Region
Returns
void
do_
ed25519_
batch_
verify
do_
ed25519_
batch_
verify
(
messages_ptr
,
signatures_ptr
,
public_keys_ptr
)
:
number
Parameters
messages_ptr
:
Region
signatures_ptr
:
Region
public_keys_ptr
:
Region
Returns
number
do_
ed25519_
verify
do_
ed25519_
verify
(
message
,
signature
,
pubkey
)
:
number
Parameters
message
:
Region
signature
:
Region
pubkey
:
Region
Returns
number
do_
groth16_
verify
do_
groth16_
verify
(
input
,
proof
,
vk
,
curve
)
:
number
Parameters
input
:
Region
proof
:
Region
vk
:
Region
curve
:
number
Returns
number
do_
keccak_
256
do_
keccak_
256
(
input
,
destination
)
:
Region
Parameters
input
:
Region
destination
:
Region
Returns
Region
do_
poseidon_
hash
do_
poseidon_
hash
(
left_input
,
right_input
,
curve
,
destination
)
:
Region
Parameters
left_input
:
Region
right_input
:
Region
curve
:
number
destination
:
Region
Returns
Region
do_
query_
chain
do_
query_
chain
(
request
)
:
Region
Parameters
request
:
Region
Returns
Region
do_
secp256k1_
recover_
pubkey
do_
secp256k1_
recover_
pubkey
(
msgHash
,
signature
,
recover_param
)
:
Region
Parameters
msgHash
:
Region
signature
:
Region
recover_param
:
number
Returns
Region
do_
secp256k1_
verify
do_
secp256k1_
verify
(
hash
,
signature
,
pubkey
)
:
number
Parameters
hash
:
Region
signature
:
Region
pubkey
:
Region
Returns
number
do_
sha256
do_
sha256
(
input
,
destination
)
:
Region
Parameters
input
:
Region
destination
:
Region
Returns
Region
ed25519_
batch_
verify
ed25519_
batch_
verify
(
messages_ptr
,
signatures_ptr
,
public_keys_ptr
)
:
number
Parameters
messages_ptr
:
number
signatures_ptr
:
number
public_keys_ptr
:
number
Returns
number
ed25519_
verify
ed25519_
verify
(
message_ptr
,
signature_ptr
,
pubkey_ptr
)
:
number
Parameters
message_ptr
:
number
signature_ptr
:
number
pubkey_ptr
:
number
Returns
number
execute
execute
(
env
,
info
,
msg
)
:
object
Parameters
env
:
Env
info
:
MessageInfo
msg
:
object
Returns
object
groth16_
verify
groth16_
verify
(
input_ptr
,
public_ptr
,
vk_ptr
,
curve
)
:
number
Parameters
input_ptr
:
number
public_ptr
:
number
vk_ptr
:
number
curve
:
number
Returns
number
ibc_
channel_
close
ibc_
channel_
close
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
ibc_
channel_
connect
ibc_
channel_
connect
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
ibc_
channel_
open
ibc_
channel_
open
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
ibc_
packet_
ack
ibc_
packet_
ack
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
ibc_
packet_
receive
ibc_
packet_
receive
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
ibc_
packet_
timeout
ibc_
packet_
timeout
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
instantiate
instantiate
(
env
,
info
,
msg
)
:
object
Parameters
env
:
Env
info
:
MessageInfo
msg
:
object
Returns
object
json
json
(
ptr
)
:
object
Parameters
ptr
:
number
Returns
object
keccak_
256
keccak_
256
(
input_ptr
,
destination_ptr
)
:
number
Parameters
input_ptr
:
number
destination_ptr
:
number
Returns
number
migrate
migrate
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
poseidon_
hash
poseidon_
hash
(
left_input_ptr
,
right_input_ptr
,
curve
,
destination_ptr
)
:
number
Parameters
left_input_ptr
:
number
right_input_ptr
:
number
curve
:
number
destination_ptr
:
number
Returns
number
query
query
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
query_
chain
query_
chain
(
request_ptr
)
:
number
Parameters
request_ptr
:
number
Returns
number
region
region
(
ptr
)
:
Region
Parameters
ptr
:
number
Returns
Region
reply
reply
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
secp256k1_
recover_
pubkey
secp256k1_
recover_
pubkey
(
hash_ptr
,
signature_ptr
,
recover_param
)
:
bigint
Parameters
hash_ptr
:
number
signature_ptr
:
number
recover_param
:
number
Returns
bigint
secp256k1_
verify
secp256k1_
verify
(
hash_ptr
,
signature_ptr
,
pubkey_ptr
)
:
number
Parameters
hash_ptr
:
number
signature_ptr
:
number
pubkey_ptr
:
number
Returns
number
sha256
sha256
(
input_ptr
,
destination_ptr
)
:
number
Parameters
input_ptr
:
number
destination_ptr
:
number
Returns
number
sudo
sudo
(
env
,
msg
)
:
object
Parameters
env
:
Env
msg
:
object
Returns
object
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
backend
debug
Msgs
env
instance
eddsa
wasm
Cache
wasm
Metering
Cache
exports
gas
Limit
gas
Used
remaining
Gas
storage
Readonly
abort
addr_
canonicalize
addr_
humanize
addr_
validate
allocate
allocate_
b64
allocate_
bytes
allocate_
json
allocate_
str
build
curve_
hash
db_
next
db_
read
db_
remove
db_
scan
db_
write
deallocate
debug
do_
abort
do_
addr_
canonicalize
do_
addr_
humanize
do_
addr_
validate
do_
curve_
hash
do_
db_
next
do_
db_
read
do_
db_
remove
do_
db_
scan
do_
db_
write
do_
debug
do_
ed25519_
batch_
verify
do_
ed25519_
verify
do_
groth16_
verify
do_
keccak_
256
do_
poseidon_
hash
do_
query_
chain
do_
secp256k1_
recover_
pubkey
do_
secp256k1_
verify
do_
sha256
ed25519_
batch_
verify
ed25519_
verify
execute
groth16_
verify
ibc_
channel_
close
ibc_
channel_
connect
ibc_
channel_
open
ibc_
packet_
ack
ibc_
packet_
receive
ibc_
packet_
timeout
instantiate
json
keccak_
256
migrate
poseidon_
hash
query
query_
chain
region
reply
secp256k1_
recover_
pubkey
secp256k1_
verify
sha256
sudo
Cosmwasm
Simulate SDK
CWSimulate
App
CWSimulate
App
Querier
CWSimulate
App
Options
Chain
Data
Handle
Custom
Msg
Function
KVIter
Storage
Registry
Query
Custom
Msg
Function
Query
Message
CWSimulate
App.spec
Simulate
Cosm
Wasm
Client
Simulate
Cosm
Wasm
Client
Simulate
Cosm
Wasm
Client.spec
benchmark
download
State
download
State
Old
fork
Buffer
Collection
Buffer
Iter
Buffer
Stream
Download
State
fork-
old
Buffer
Collection
Buffer
Iter
Buffer
Stream
Download
State
index
App
Response
Buffer
Collection
Buffer
Iter
Buffer
Stream
CWSimulate
App
CWSimulate
App
Options
Chain
Data
Code
Info
Code
Info
Response
Contract
Info
Contract
Info
Response
Contract
Not
Found
Error
Debug
Log
Denom
Unit
Distribution
Query
Download
State
Execute
Trace
Log
Handle
Custom
Msg
Function
Ibc
Acknowledgement
Ibc
Basic
Response
Ibc
Channel
Ibc
Channel
Close
Msg
Ibc
Channel
Connect
Msg
Ibc
Channel
Open
Msg
Ibc
Channel
Open
Response
Ibc
Endpoint
Ibc
Order
Ibc
Packet
Ibc
Packet
Ack
Msg
Ibc
Packet
Receive
Msg
Ibc
Packet
Timeout
Msg
Ibc
Query
Ibc
Receive
Response
KVIter
Storage
Registry
Metadata
NEVER_
IMMUTIFY
Never
Immutify
Print
Debug
Log
Querier
Query
Custom
Msg
Function
Query
Message
Reply
Msg
Reply
Trace
Log
Rust
Result
Simulate
Cosm
Wasm
Client
Snapshot
Staking
Query
Token
Factory
Msg
Token
Factory
Msg
Options
Token
Factory
Query
Token
Factory
Query
Enum
Trace
Log
Transactional
Transactional
Lens
Uint128
Vm
Error
from
Immutable
load
save
serde
to
Immutable
Option
all
any
is
Option
Result
all
any
is
Result
wrap
wrap
Async
Sorted
Map
is
Sorted
Map
of
raw
Pack
Sorted
Set
from
Keys
is
Sorted
Set
of
Order
Reply
On
Vote
Option
Basic
Backend
Api
BasicKVIter
Storage
BasicKVStorage
Basic
Querier
BinaryKVIter
Storage
BinaryKVStorage
Environment
Gas
Info
Generic
Error
Querier
Base
Record
Region
VMInstance
Attribute
Block
Info
Context
Data
Contract
Response
Event
Execute
Gas
State
IBackend
IBackend
Api
IEnvironment
IGas
Info
IIter
Storage
IQuerier
IStorage
Ibc
Timeout
Ibc
Timeout
Block
Instantiate
Instantiate2
Iter
Message
Info
Migrate
Sorted
Map
Sorted
Set
Sub
Msg
Weighted
Vote
Option
Address
Bank
Msg
Binary
Cosmos
Msg
Decimal
Distribution
Msg
Env
Err
Gov
Msg
Ibc
Msg
Ibc
Msg
Close
Channel
Ibc
Msg
Send
Packet
Ibc
Msg
Transfer
None
Ok
Option
Result
Some
Staking
Msg
Wasm
Msg
CANONICAL_
LENGTH
DEFAULT_
GAS_
LIMIT
EDDSA_
PUBKEY_
LEN
EXCESS_
PADDING
GAS_
COST_
CANONICALIZE
GAS_
COST_
HUMANIZE
GAS_
COST_
LAST_
ITERATION
GAS_
COST_
RANGE
GAS_
MULTIPLIER
GAS_
PER_
OP
GAS_
PER_
US
MAX_
LENGTH_
CANONICAL_
ADDRESS
MAX_
LENGTH_
DB_
KEY
MAX_
LENGTH_
DB_
VALUE
MAX_
LENGTH_
ED25519_
MESSAGE
MAX_
LENGTH_
ED25519_
SIGNATURE
MAX_
LENGTH_
HUMAN_
ADDRESS
None
Err
Ok
Some
Sorted
Map
Sorted
Set
compare
decrease
Bytes
increase
Bytes
merge
Uint8
Array
to
Byte
Array
to
Number
writeUInt32BE
instrumentation/CWSimulateVMInstance
CWSimulateVMInstance
Debug
Function
modules/bank
Bank
Module
Parsed
Coin
All
Balances
Response
Balance
Response
Bank
Query
Supply
Response
lens
From
Snapshot
modules/bank.spec
modules/ibc
Ibc
Module
Ibc
Transfer
Data
ibc
Denom
modules/ibc.spec
modules/wasm
Code
Info
Query
Contract
Info
Query
Raw
Query
Smart
Query
Wasm
Module
Wasm
Query
lens
From
Snapshot
modules/wasm.spec
modules/wasm/contract
default
modules/wasm/error
Contract
Not
Found
Error
Vm
Error
modules/wasm/module
Wasm
Module
Code
Info
Query
Contract
Info
Query
Raw
Query
Smart
Query
Wasm
Query
lens
From
Snapshot
modules/wasm/wasm-
util
build
App
Response
build
Contract
Address
wrap
Reply
Response
persist
serde
load
save
store
NEVER_
IMMUTIFY
Never
Immutify
Transactional
Transactional
Lens
from
Immutable
to
Immutable
store/transactional
Transactional
Transactional
Lens
Never
Immutify
NEVER_
IMMUTIFY
from
Immutable
to
Immutable
sync
Sync
State
Chain
Config
Custom
Wasm
Code
Paths
Msg
Execute
Contract
With
Height
sync-
test
types
Ibc
Order
App
Response
Code
Info
Code
Info
Response
Contract
Info
Contract
Info
Response
Denom
Unit
Ibc
Acknowledgement
Ibc
Basic
Response
Ibc
Channel
Ibc
Channel
Open
Response
Ibc
Endpoint
Ibc
Packet
Ibc
Packet
Ack
Msg
Ibc
Packet
Receive
Msg
Ibc
Packet
Timeout
Msg
Ibc
Receive
Response
Metadata
Print
Debug
Log
Debug
Log
Distribution
Query
Execute
Trace
Log
Ibc
Channel
Close
Msg
Ibc
Channel
Connect
Msg
Ibc
Channel
Open
Msg
Ibc
Query
Reply
Msg
Reply
Trace
Log
Rust
Result
Snapshot
Staking
Query
Token
Factory
Msg
Token
Factory
Msg
Options
Token
Factory
Query
Token
Factory
Query
Enum
Trace
Log
Uint128
util
from
Rust
Result
get
Transaction
Hash
is
Array
Like
is
Rust
Result
isTSResult
print
Debug
to
Rust
Result
©2020 - 2024
Oraichain Foundation