Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Update soroban-sdk (#98)
Browse files Browse the repository at this point in the history
* Update soroban-sdk

* missed one
  • Loading branch information
leighmcculloch committed Aug 30, 2022
1 parent 1ee8149 commit a1fb93b
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ soroban-token-contract = { path = ".", features = ["export", "testutils"] }
rand = { version = "0.7.3" }

[patch.crates-io]
soroban-sdk = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "2c93d3cf" }
soroban-sdk-auth = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "2c93d3cf" }
soroban-sdk-macros = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "2c93d3cf" }
soroban-sdk = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "499c1013" }
soroban-sdk-auth = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "499c1013" }
soroban-sdk-macros = { git = "https://github.com/stellar/rs-soroban-sdk", rev = "499c1013" }
soroban-env-common = { git = "https://github.com/stellar/rs-soroban-env", rev = "16fcb333" }
soroban-env-guest = { git = "https://github.com/stellar/rs-soroban-env", rev = "16fcb333" }
soroban-env-host = { git = "https://github.com/stellar/rs-soroban-env", rev = "16fcb333" }
Expand Down
2 changes: 1 addition & 1 deletion src/admin.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::storage_types::DataKey;
use soroban_sdk::Env;
use soroban_sdk_auth::public_types::{Identifier, Signature};
use soroban_sdk_auth::{Identifier, Signature};

pub fn has_administrator(e: &Env) -> bool {
let key = DataKey::Admin;
Expand Down
2 changes: 1 addition & 1 deletion src/allowance.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::storage_types::{AllowanceDataKey, DataKey};
use soroban_sdk::{BigInt, Env};
use soroban_sdk_auth::public_types::Identifier;
use soroban_sdk_auth::Identifier;

pub fn read_allowance(e: &Env, from: Identifier, spender: Identifier) -> BigInt {
let key = DataKey::Allowance(AllowanceDataKey { from, spender });
Expand Down
2 changes: 1 addition & 1 deletion src/balance.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::storage_types::DataKey;
use soroban_sdk::{BigInt, Env};
use soroban_sdk_auth::public_types::Identifier;
use soroban_sdk_auth::Identifier;

pub fn read_balance(e: &Env, id: Identifier) -> BigInt {
let key = DataKey::Balance(id);
Expand Down
2 changes: 1 addition & 1 deletion src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use crate::metadata::{
};
use crate::storage_types::DataKey;
use soroban_sdk::{contractimpl, symbol, BigInt, Bytes, Env, IntoVal};
use soroban_sdk_auth::public_types::{Identifier, Signature};
use soroban_sdk_auth::{check_auth, NonceAuth};
use soroban_sdk_auth::{Identifier, Signature};

pub trait TokenTrait {
fn initialize(e: Env, admin: Identifier, decimal: u32, name: Bytes, symbol: Bytes);
Expand Down
2 changes: 1 addition & 1 deletion src/storage_types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use soroban_sdk::contracttype;
use soroban_sdk_auth::public_types::Identifier;
use soroban_sdk_auth::Identifier;

#[derive(Clone)]
#[contracttype]
Expand Down
2 changes: 1 addition & 1 deletion src/testutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::contract::TokenClient;
use ed25519_dalek::Keypair;
use soroban_sdk::testutils::ed25519::Sign;
use soroban_sdk::{symbol, BigInt, Bytes, BytesN, Env, IntoVal, RawVal, Vec};
use soroban_sdk_auth::public_types::{
use soroban_sdk_auth::{
Ed25519Signature, Identifier, Signature, SignaturePayload, SignaturePayloadV0,
};

Expand Down
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use ed25519_dalek::Keypair;
use rand::{thread_rng, RngCore};
use soroban_sdk::{BigInt, BytesN, Env, IntoVal};
use soroban_sdk_auth::public_types::{Ed25519Signature, Signature};
use soroban_sdk_auth::{Ed25519Signature, Signature};
use soroban_token_contract::testutils::{
register_test_contract as register_token, to_ed25519, Token,
};
Expand Down

0 comments on commit a1fb93b

Please sign in to comment.