Crate stellar_axelar_std

Source

Re-exports§

pub use soroban_sdk;

Modules§

_migrating
Migrating from v21 to v22
address
auth
Auth contains types for building custom account contracts.
crypto
Crypto contains functions for cryptographic functions.
deploy
Deploy contains types for deploying contracts.
error
events
iter
Iterators for use with collections like [Map], Vec.
ledger
Ledger contains types for retrieving information about the current ledger.
logs
Logging contains types for logging debug events.
prng
Prng contains a pseudo-random number generator.
storage
Storage contains types for storing data for the currently executing contract.
token
Token contains types for calling and accessing token contracts, including the Stellar Asset Contract.
traits
ttl
types
xdr
Convert values to and from Bytes.

Macros§

assert_auth
Assert that a contract call with authentication succeeds
assert_auth_err
assert_contract_err
Assert that a Result from a contract call is Err and matches an error variant
assert_err
Assert that a Result is Err and matches an error variant
assert_in_contract
Assert in contract asserts that the contract is currently executing within a contract. The macro maps to code when testutils are enabled or in tests, otherwise maps to nothing.
assert_ok
Assert that a Result is Ok
assert_some
Assert that an Option is Some
assert_with_error
Assert a condition and panic with the given error if it is false.
bytes
Create a Bytes with an array, or an integer or hex literal.
bytesn
Create a BytesN with an array, or an integer or hex literal.
contractfile
contractimport
contractmeta
ensure
Return with an error if a condition is not met.
impl_bytesn_repr
log
Log a debug event.
map
Create a Map with the given key-value pairs.
mock_auth
panic_with_error
Panic with the given error.
symbol_short
vec
Create a Vec with the given items.

Structs§

Address
Address is a universal opaque identifier to use in contracts.
Bytes
Bytes is a contiguous growable array type containing u8s.
BytesN
BytesN is a contiguous fixed-size array type containing u8s.
ConversionError
Error type indicating a failure to convert some type to another; details of the failed conversion may be written to the debug log, when possible.
Duration
Duration holds a 64-bit unsigned integer.
Env
The Env type provides access to the environment the contract is executing within.
Error
Wrapper for a Val that is tagged with [Tag::Error], interpreting the Val’s body as a pair of a 28-bit error-type code and a 32-bit error code. The error-type codes correspond to the enumerated cases of ScErrorType, and the error codes correspond to the code values stored in each variant of the ScError union.
I256
I256 holds a 256-bit signed integer.
Map
Map is a ordered key-value dictionary.
MapObject
String
String is a contiguous growable array type containing u8s.
Symbol
Symbol is a short string with a limited character set.
SymbolStr
An expanded form of a Symbol that stores its characters as ASCII-range bytes in a u8 array – up to the maximum size of a large symbol object – rather than as packed 6-bit codes within a u64. Useful for interoperation with standard Rust string types.
Timepoint
Timepoint holds a 64-bit unsigned integer.
U256
U256 holds a 256-bit unsigned integer.
Val
Vec
Vec is a sequential and indexable growable collection type.
VecObject

Enums§

InvokeError
InvokeError captures errors returned from the invocation of another contract.

Traits§

ConstructorArgs
EnvBase
Base trait extended by the Env trait, providing various special-case functions that do not simply call across cross the guest/host interface.
FromVal
IntoVal
Topics
TryFromVal
Trait for types that can be fallibly converted to another type V, analogous to the standard Rust type TryFrom, but making use of the provided Env implementation E in order to convert parts of the type that require it. Mainly this exists because Val types that contain object handles need to delegate to the environment to look up and extract the content of those handles.
TryIntoVal
The opposite trait to TryFromVal, analogous to the way that TryInto exists as an opposite to TryFrom. Exists only for convenience of doing conversions via .try_into_val(e) or specifying convertability with a bound like TryIntoVal<E,Other>.

Attribute Macros§

contract
contractargs
contractclient
contracterror
contractimpl
contractspecfn
contracttype