Skip to content

Commit

Permalink
[1.0.0]: Re export deps (#201)
Browse files Browse the repository at this point in the history
Re-exporting common crates from `near_sdk` to be reused by contracts and avoid version issues.
It still depends on the versions from `near-vm-logic` which can be addressed later.

Bump near-* dependencies to `1.0.0`.
Bump SDK version to `1.0.0`

Rebuild all examples.

Fixes: #142
  • Loading branch information
Evgeny Kuzyakov authored Jul 13, 2020
1 parent 3366367 commit 0de2f6e
Show file tree
Hide file tree
Showing 50 changed files with 411 additions and 342 deletions.
26 changes: 17 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
# Unpublished changes
# Changelog

## Other changes
## Pending release

...

## `1.0.0`

### Other changes

* Re-export common crates to be reused directly from `near_sdk`.
* Added `ValidAccountId` to `json_types` which validates the input string during deserialization to be a valid account ID.
* Added `Debug` to `Base58PublicKey`.
* Bumped dependency version of `borsh` to `0.6.2` for `near-sdk`.
* Bumped dependency version of `borsh` to `0.7.0`.
* Bumped dependency version of `near-vm-logic` and `near-runtime-fees` to `1.0.0`.
* Implemented Debug trait for Vector collection that can be enabled with `expensive-debug` feature.

## Contract changes

* Bumped `borsh` version to `0.6.2` everywhere.
* Explicit depencency versions for fungible token contract.
* Use re-exported crate dependencies through `near_sdk` crate.

## `0.11.0`

# 0.11.0
## API breaking changes
### API breaking changes

* Renamed `Map` to `UnorderedMap` and `Set` to `UnorderedSet` to reflect that one cannot rely on the order of the elements in them. In this PR and in https://github.com/near/near-sdk-rs/pull/154

## Other changes
### Other changes

* Added ordered tree implementation based on AVL, see `TreeMap`. https://github.com/near/near-sdk-rs/pull/154

* Made module generated by `ext_contract` macro public, providing more flexibility for the usage: https://github.com/near/near-sdk-rs/pull/150

## Contract changes
### Contract changes

* Fungible token now requires from the users to transfer NEAR tokens to pay for the storage increase to prevent the contract from locking the users from operating on it. https://github.com/near/near-sdk-rs/pull/173
* Renaming method of fungible token `set_allowance` => `inc_allowance`. Added `dec_allowance` method. https://github.com/near/near-sdk-rs/pull/174
Expand Down
53 changes: 36 additions & 17 deletions Cargo.lock

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

40 changes: 19 additions & 21 deletions examples/cross-contract-high-level/Cargo.lock

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

4 changes: 0 additions & 4 deletions examples/cross-contract-high-level/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ edition = "2018"
crate-type = ["cdylib", "rlib"]

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.45"
near-sdk = { path = "../../near-sdk" }
borsh = "0.6.2"
wee_alloc = { version = "0.4.5", default-features = false, features = [] }

[profile.release]
codegen-units = 1
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/cross-contract-high-level/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use borsh::{BorshDeserialize, BorshSerialize};
use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize};
use near_sdk::{
// callback,
// callback_vec,
Expand All @@ -10,7 +10,7 @@ use near_sdk::{
};

#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc<'_> = wee_alloc::WeeAlloc::INIT;
static ALLOC: near_sdk::wee_alloc::WeeAlloc<'_> = near_sdk::wee_alloc::WeeAlloc::INIT;

// Prepaid gas for making a single simple call.
const SINGLE_CALL_GAS: u64 = 200_000_000_000_000;
Expand Down
Loading

0 comments on commit 0de2f6e

Please sign in to comment.