@@ -59,11 +59,21 @@ impl RPCEndpoint {
5959 Self :: new ( "https://free.rpc.fastnear.com" . parse ( ) . unwrap ( ) )
6060 }
6161
62+ /// Constructs default mainnet archival configuration.
63+ pub fn mainnet_archival ( ) -> Self {
64+ Self :: new ( "https://archival-rpc.mainnet.fastnear.com" . parse ( ) . unwrap ( ) )
65+ }
66+
6267 /// Constructs default testnet configuration.
6368 pub fn testnet ( ) -> Self {
6469 Self :: new ( "https://test.rpc.fastnear.com" . parse ( ) . unwrap ( ) )
6570 }
6671
72+ /// Constructs default testnet archival configuration.
73+ pub fn testnet_archival ( ) -> Self {
74+ Self :: new ( "https://archival-rpc.testnet.fastnear.com" . parse ( ) . unwrap ( ) )
75+ }
76+
6777 /// Set API key for the endpoint.
6878 pub fn with_api_key ( mut self , api_key : String ) -> Self {
6979 self . bearer_header = Some ( format ! ( "Bearer {api_key}" ) ) ;
@@ -177,6 +187,20 @@ impl NetworkConfig {
177187 }
178188 }
179189
190+ /// Constructs default mainnet archival configuration.
191+ pub fn mainnet_archival ( ) -> Self {
192+ Self {
193+ network_name : "mainnet-archival" . to_string ( ) ,
194+ rpc_endpoints : vec ! [ RPCEndpoint :: mainnet_archival( ) ] ,
195+ linkdrop_account_id : Some ( "near" . parse ( ) . unwrap ( ) ) ,
196+ near_social_db_contract_account_id : Some ( "social.near" . parse ( ) . unwrap ( ) ) ,
197+ faucet_url : None ,
198+ meta_transaction_relayer_url : None ,
199+ fastnear_url : Some ( "https://api.fastnear.com/" . parse ( ) . unwrap ( ) ) ,
200+ staking_pools_factory_account_id : Some ( "poolv1.near" . parse ( ) . unwrap ( ) ) ,
201+ }
202+ }
203+
180204 /// Constructs default testnet configuration.
181205 pub fn testnet ( ) -> Self {
182206 Self {
@@ -191,6 +215,20 @@ impl NetworkConfig {
191215 }
192216 }
193217
218+ /// Constructs default testnet archival configuration.
219+ pub fn testnet_archival ( ) -> Self {
220+ Self {
221+ network_name : "testnet-archival" . to_string ( ) ,
222+ rpc_endpoints : vec ! [ RPCEndpoint :: testnet_archival( ) ] ,
223+ linkdrop_account_id : Some ( "testnet" . parse ( ) . unwrap ( ) ) ,
224+ near_social_db_contract_account_id : Some ( "v1.social08.testnet" . parse ( ) . unwrap ( ) ) ,
225+ faucet_url : Some ( "https://helper.nearprotocol.com/account" . parse ( ) . unwrap ( ) ) ,
226+ meta_transaction_relayer_url : None ,
227+ fastnear_url : None ,
228+ staking_pools_factory_account_id : Some ( "pool.f863973.m0" . parse ( ) . unwrap ( ) ) ,
229+ }
230+ }
231+
194232 pub fn from_rpc_url ( name : & str , rpc_url : Url ) -> Self {
195233 Self {
196234 network_name : name. to_string ( ) ,
0 commit comments