[go: up one dir, main page]

fuels-core 0.19.0

Fuel Rust SDK core.
Documentation
use fuel_types::AssetId;

// ANCHOR: default_tx_parameters
pub const DEFAULT_GAS_LIMIT: u64 = 1_000_000;
pub const DEFAULT_GAS_PRICE: u64 = 0;
pub const DEFAULT_BYTE_PRICE: u64 = 0;
pub const DEFAULT_MATURITY: u64 = 0;
// ANCHOR_END: default_tx_parameters

// ANCHOR: default_call_parameters
// Limit for the actual contract call
pub const DEFAULT_FORWARDED_GAS: u64 = 1_000_000;
// Lower limit when querying spendable UTXOs
pub const DEFAULT_SPENDABLE_COIN_AMOUNT: u64 = 1_000_000;
// Bytes representation of the asset ID of the "base" asset used for gas fees.
pub const BASE_ASSET_ID: AssetId = AssetId::new([0u8; 32]);
// ANCHOR_END: default_call_parameters

pub const CONTRACT_ID_SWAY_NATIVE_TYPE: &str = "ContractId";
pub const ADDRESS_SWAY_NATIVE_TYPE: &str = "Address";