Expand description
Aftermath’s extensions to sui_sdk_types.
Includes some types and constants from the original sui_types and move_core_types that
are not present in sui_sdk_types. This crate also re-exports a lot of the types in
sui_sdk_types.
This crate was originally conceived with the following objectives:
serdecompatibility with the full Sui checkpoint data- avoiding dynamic error types so that callers could match against errors and react accordingly
- using a minimal set of dependencies
- SemVer compatibility
The long-term plan is to deprecate most of this in favor of sui_sdk_types. However, there
are some types in that crate that don’t expose all of the attributes/methods we need yet.
Re-exports§
pub use sui_sdk_types::ActiveJwk;pub use sui_sdk_types::Address;pub use sui_sdk_types::Argument;pub use sui_sdk_types::CheckpointCommitment;pub use sui_sdk_types::CheckpointContents;pub use sui_sdk_types::CheckpointData;pub use sui_sdk_types::CheckpointSequenceNumber;pub use sui_sdk_types::CheckpointSummary;pub use sui_sdk_types::CheckpointTimestamp;pub use sui_sdk_types::CheckpointTransaction;pub use sui_sdk_types::Command;pub use sui_sdk_types::Digest;pub use sui_sdk_types::EndOfEpochData;pub use sui_sdk_types::EpochId;pub use sui_sdk_types::Event;pub use sui_sdk_types::ExecutionError;pub use sui_sdk_types::ExecutionStatus;pub use sui_sdk_types::GasCostSummary;pub use sui_sdk_types::IdOperation;pub use sui_sdk_types::Identifier;pub use sui_sdk_types::Jwk;pub use sui_sdk_types::JwkId;pub use sui_sdk_types::MoveCall;pub use sui_sdk_types::MovePackage;pub use sui_sdk_types::Object;pub use sui_sdk_types::ObjectIn;pub use sui_sdk_types::ObjectOut;pub use sui_sdk_types::Owner;pub use sui_sdk_types::ProgrammableTransaction;pub use sui_sdk_types::ProtocolVersion;pub use sui_sdk_types::SignedTransaction;pub use sui_sdk_types::StructTag;pub use sui_sdk_types::Transaction;pub use sui_sdk_types::TransactionEffects;pub use sui_sdk_types::TransactionEffectsV1;pub use sui_sdk_types::TransactionEffectsV2;pub use sui_sdk_types::TransactionEvents;pub use sui_sdk_types::TransactionExpiration;pub use sui_sdk_types::TransactionKind;pub use sui_sdk_types::TypeOrigin;pub use sui_sdk_types::TypeParseError;pub use sui_sdk_types::TypeTag;pub use sui_sdk_types::UnchangedConsensusKind;pub use sui_sdk_types::UpgradeInfo;pub use sui_sdk_types::UserSignature;pub use sui_sdk_types::Version;
Modules§
Structs§
- Chain
Identifier - Representation of a network’s identifier by the genesis checkpoint’s digest
- GasData
Deprecated - Gas payment information for a transaction.
- Ident
Str - A borrowed identifier.
- ImmOwned
OrReceiving Error - Invalid
Identifier Error - Move
Object Type - Wrapper around
StructTagwith a space-efficient representation for common types like coins. - Transaction
Data V1 Deprecated - U256
u256
Enums§
- Object
Arg - Object argument for a programmable transaction.
- Transaction
Data Deprecated - The payload that gets sent to the full node as base64 BCS bytes.
- Transaction
From Base64 Error Deprecated
Constants§
- ADD_
STAKE_ FUN_ NAME - ADD_
STAKE_ MUL_ COIN_ FUN_ NAME - BRIDGE_
ADDRESS - BRIDGE_
PACKAGE_ ID - CLOCK_
ID - Object ID of the onchain
Clock. - COIN_
METADATA_ STRUCT_ NAME - COIN_
MODULE_ NAME - COIN_
STRUCT_ NAME - COIN_
TREASURE_ CAP_ NAME - DEEPBOOK_
ADDRESS - DEEPBOOK_
PACKAGE_ ID - DYNAMIC_
FIELD_ FIELD_ STRUCT_ NAME - DYNAMIC_
FIELD_ MODULE_ NAME - DYNAMIC_
OBJECT_ FIELD_ MODULE_ NAME - DYNAMIC_
OBJECT_ FIELD_ WRAPPER_ STRUCT_ NAME - GAS_
MODULE_ NAME - GAS_
STRUCT_ NAME - MAX_
VALIDATOR_ COUNT - Maximum number of active validators at any moment. We do not allow the number of validators in any epoch to go above this.
- MIN_
VALIDATOR_ JOINING_ STAKE_ MIST - Lower-bound on the amount of stake required to become a validator.
- MIST_
PER_ SUI - MOVE_
STDLIB_ ADDRESS - MOVE_
STDLIB_ PACKAGE_ ID - OBJECT_
DIGEST_ CANCELLED - OBJECT_
DIGEST_ DELETED - A marker that signifies the object is deleted.
- OBJECT_
DIGEST_ WRAPPED - A marker that signifies the object is wrapped into another object.
- PAY_
JOIN_ FUNC_ NAME - PAY_
MODULE_ NAME - PAY_
SPLIT_ N_ FUNC_ NAME - PAY_
SPLIT_ VEC_ FUNC_ NAME - STAKED_
SUI_ STRUCT_ NAME - STAKING_
POOL_ MODULE_ NAME - SUI_
FRAMEWORK_ ADDRESS - SUI_
FRAMEWORK_ PACKAGE_ ID - SUI_
SYSTEM_ ADDRESS - SUI_
SYSTEM_ PACKAGE_ ID - SYSTEM_
PACKAGE_ ADDRESSES - TOTAL_
SUPPLY_ MIST - Total supply denominated in Mist
- TOTAL_
SUPPLY_ SUI - Total supply denominated in Sui
- VALIDATOR_
LOW_ STAKE_ GRACE_ PERIOD - A validator can have stake below
validator_low_stake_thresholdfor this many epochs before being kicked out. - VALIDATOR_
LOW_ STAKE_ THRESHOLD_ MIST - Threshold below which validators enter a grace period to be removed.
- VALIDATOR_
VERY_ LOW_ STAKE_ THRESHOLD_ MIST - Validators with stake below
validator_very_low_stake_thresholdwill be removed immediately at epoch change, no grace period. - WITHDRAW_
STAKE_ FUN_ NAME
Traits§
- Transaction
DataAPI Deprecated - Transaction
EffectsAPI - Common interface for all transaction effect versions.
Functions§
- address
Deprecated const-ructor for Sui addresses.- decode_
base64_ default - Convenience method for decoding base64 bytes the way Sui expects.
- encode_
base64_ default - Convenience method for encoding bytes to base64 the way Sui expects.
- hex_
address_ bytes Deprecated - 32-byte address from a hex byte vector, optionally
0x-prefixed. - is_
system_ package
Type Aliases§
- Object
Ref - Reference to a particular object.