aptos_network_sdk/
global.rs

1/// global parameters
2pub mod rpc {
3    /// aptos rpc url
4    pub const APTOS_MAINNET_URL: &str = "https://fullnode.mainnet.aptoslabs.com/v1";
5    pub const APTOS_TESTNET_URL: &str = "https://fullnode.testnet.aptoslabs.com/v1";
6    pub const APTOS_DEVNET_URL: &str = "https://fullnode.devnet.aptoslabs.com/v1";
7}
8pub mod mainnet {
9    /// system reserved address.
10    pub mod sys_address {
11        /// aptos framework, token standards, account management, time, etc.
12        pub const X_1: &str = "0x1";
13        pub const X_2: &str = "0x2";
14        /// NFT / token standards
15        pub const X_3: &str = "0x3";
16        pub const X_4: &str = "0x4";
17        pub const X_5: &str = "0x5";
18    }
19    /// system module
20    pub mod sys_module {
21        pub mod token {
22            pub const name: &str = "token";
23            pub const create_collection_script: &str = "create_collection_script";
24            pub const create_token_script: &str = "create_token_script";
25            pub const transfer_script: &str = "transfer_script";
26            pub const collections: &str = "0x3::token::Collections";
27            pub const token_store: &str = "0x3::token::TokenStore";
28        }
29        pub mod managed_coin {
30            pub const name: &str = "managed_coin";
31            pub const initialize: &str = "initialize";
32            pub const mint: &str = "mint";
33            pub const burn: &str = "burn";
34            pub const register: &str = "register";
35            pub const supply: &str = "supply";
36        }
37        pub mod coin {
38            pub const name: &str = "coin";
39            pub const create_currency: &str = "create_currency";
40            pub const mint: &str = "mint";
41            pub const burn: &str = "burn";
42            pub const register: &str = "register";
43            pub const supply: &str = "supply";
44            pub const is_coin_initialized: &str = "is_coin_initialized";
45            pub const is_account_registered: &str = "is_account_registered";
46            pub const deposit: &str = "deposit";
47            pub const withdraw: &str = "withdraw";
48            pub const transfer: &str = "transfer";
49            pub const balance: &str = "balance";
50            pub const value: &str = "value";
51            pub const zero: &str = "zero";
52            pub const destroy_zero: &str = "destroy_zero";
53        }
54    }
55    pub mod protocol_address {
56        // thala protocol address
57        pub const THALA_PROTOCOL_ADDRESS: &str =
58            "0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615";
59        // liquidswap protocol address
60        pub const LIQUIDSWAP_PROTOCOL_ADDRESS: &str =
61            "0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12";
62        // pancakeswap factory protocol address
63        pub const PANCAKESWAP_FACTORY_PROTOCOL_ADDRESS: &str =
64            "0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa";
65        // anime swap protocol address
66        pub const ANIMESWAP_PROTOCOL_ADDRESS: &str =
67            "0x16fe2df00ea7dde4a63409201f7f4e536bde7bb7335526a35d05111e68aa322c";
68        // Aux swap protocol address
69        pub const AUXSWAP_PROTOCOL_ADDRESS: &str =
70            "0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541";
71        // cellana swap protocol address
72        pub const CELLANASWAP_PROTOCOL_ADDRESS: &str =
73            "0x9b5a27d3e7c7c8f7f313f43e4bdc00d8b652b0c5e0e0e0e0e0e0e0e0e0e0e0e0";
74    }
75    pub mod nft_market {
76        pub const TOPAZ: &'static str =
77            "0x5c738c6a1fd8f29b7e5b6e6f79d6bd13d18083e6e3f3a43d1a8c5f3d6e6f79d6";
78        pub const SOUFFL3: &'static str =
79            "0x31f6d548c8e0b07ed82b4fd5377a61ddb064bb59e9a4c5e8e5e6f79d6bd13d18";
80        pub const BLUEMOVE: &'static str =
81            "0x6f5e58d4f7e8c3a9d4c5e8e5e6f79d6bd13d18083e6e3f3a43d1a8c5f3d6e6f79";
82        pub const MERCATO: &'static str =
83            "0x8c5f3d6e6f79d6bd13d18083e6e3f3a43d1a8c5f3d6e6f79d6bd13d18083e6e";
84        pub const AUX_EXCHANGE: &'static str =
85            "0xbd13d18083e6e3f3a43d1a8c5f3d6e6f79d6bd13d18083e6e3f3a43d1a8c5f3";
86        pub const PANCAKE_SWAP_NFT: &'static str =
87            "0x8e5e6f79d6bd13d18083e6e3f3a43d1a8c5f3d6e6f79d6bd13d18083e6e3f3a";
88        pub const TRADEPORT: &'static str =
89            "0x117f6a5d6e4c8f4d7e2c9c3d8b1a0e5c8a3b2d1c4e6f7a8b9c0d1e2f3a4b5c6d";
90        pub const WAPAL: &'static str =
91            "0x2a0c6a5d8e4f7b3c1d9e8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7";
92    }
93    pub mod token_address {
94        pub const APT: &str = "0x1::aptos_coin::AptosCoin";
95        pub const USDC: &str =
96            "0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T";
97        pub const USDT: &str =
98            "0x6f986d62e504433e05552cde45c4c6d9008ebafe47678d7f6a13ed8f6acd0e6::coin::T";
99        pub const WORMHOLE_USDC: &str =
100            "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC";
101        pub const CAKE: &str =
102            "0x159df6b7689437016108a019fd5bef736bac692b6d4a1f10c941f6fbb9a74ca6::oft::CakeOFT";
103        pub const THL: &str =
104            "0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL";
105    }
106}