1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use fuel_tx::Word;
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

pub const WORD_SIZE: usize = core::mem::size_of::<Word>();
pub const ENUM_DISCRIMINANT_WORD_WIDTH: usize = 1;

// 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";