Skip to content

Commit

Permalink
feat(gsdk): Expose GearConfig and PairSigner (#3423)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukint-vs authored Oct 19, 2023
1 parent 928e7ec commit 622564d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 7 additions & 8 deletions gsdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,23 @@
//! Gear api
pub use crate::{
api::Api,
config::GearConfig,
metadata::Event,
result::{Error, Result},
signer::PairSigner,
subscription::{Blocks, Events},
};
use crate::{
config::GearConfig,
metadata::runtime_types::gear_common::{
gas_provider::node::{GasNode, GasNodeId},
ActiveProgram,
},
};
pub use gear_core::gas::GasInfo;
pub use subxt::dynamic::Value;

use crate::metadata::runtime_types::gear_common::{
gas_provider::node::{GasNode, GasNodeId},
ActiveProgram,
};
use gear_core::ids::{MessageId, ReservationId};
use parity_scale_codec::Decode;
use sp_runtime::AccountId32;
use std::collections::HashMap;
pub use subxt::dynamic::Value;
use subxt::{
tx::{TxInBlock as SubxtTxInBlock, TxStatus as SubxtTxStatus},
OnlineClient,
Expand Down
4 changes: 4 additions & 0 deletions gsdk/src/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ impl Inner {
pub fn api(&self) -> &Api {
&self.api
}

pub fn signer(&self) -> &PairSigner<GearConfig, Pair> {
&self.signer
}
}

impl From<(Api, PairSigner<GearConfig, Pair>)> for Signer {
Expand Down

0 comments on commit 622564d

Please sign in to comment.