Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Apr 10, 2024
1 parent 9934f26 commit d475cd7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PLATFORM_KEY=example
KEY_PASS=example
PLATFORM_KEY=0wzzxrIpAJUa85t30BBVzEonF3rIt6FtxMe2uRqB07622f43
KEY_PASS=one-key-here
CONFIG_FILE=/opt/app/config.json
RUST_LOG=wallet_lib=warn
RUST_LOG=wallet_lib=debug
3 changes: 2 additions & 1 deletion config-test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"node": "wss://rpc.matrix.canary.enjin.io:443",
"relay_node": "wss://rpc.relay.canary.enjin.io:443",
"api": "http://localhost:8000/graphql",
"master_key": "../store"
"master_key": "store"
}
7 changes: 4 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"node": "wss://rpc.matrix.blockchain.enjin.io:443",
"api": "https://platform.enjin.io/graphql",
"master_key": "/opt/app/storage"
"node": "wss://rpc.matrix.canary.enjin.io:443",
"relay_node": "wss://rpc.relay.canary.enjin.io:443",
"api": "https://platform.canary.enjin.io/graphql",
"master_key": "store"
}
9 changes: 6 additions & 3 deletions lib/src/config_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,22 @@ pub type PairSig<T> = PairSigner<T, Sr25519Pair>;
/// See the `config.json` file on the root directory to see an example.
#[derive(Deserialize, Clone, Debug, PartialEq)]
pub struct Configuration {
/// Url of the node to connect to.
/// Url of the matrix.
node: String,
/// Url of the relay.
relay_node: String,
/// Stored key path
master_key: PathBuf,
/// Endpoint for the graphql api
/// Platform GraphQL endpoint.
api: String,
}

#[cfg(test)]
impl Configuration {
pub(crate) fn new(node: String, master_key: PathBuf, api: String) -> Self {
pub(crate) fn new(node: String, relay_node: String, master_key: PathBuf, api: String) -> Self {
Self {
node,
relay_node,
master_key,
api,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mutation MarkAndListPendingTransactions($after: String, $first: Int) {
node {
id
encodedData
network
wallet {
externalId
managed
Expand Down
1 change: 1 addition & 0 deletions lib/src/graphql_schemas/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Transaction {
transactionHash: String
wallet: Wallet
encodedData: String!
network: String!
}

type Account {
Expand Down

0 comments on commit d475cd7

Please sign in to comment.