Skip to content

Commit

Permalink
Merge pull request #94 from near/add-lockup-methods
Browse files Browse the repository at this point in the history
Fixes: #93 

### `1.0.0`

- Fix a bug with the prepaid gas exceeded during the foundation callback by increasing base gas.
- Include minimum amount of gas needed for every call.
- Add new helper methods for the owner for staking.
    - `deposit_and_stake`, `unstake_all`, `withdraw_all_from_staking_pool`
- Add a new view method to `get_balance` of the account, that includes all tokens on this account and all tokens deposited to a staking pool.
- Cover foundation termination flow with the integration tests.
- Cover release schedule flow with integration tests.
- Updated `near-sdk` to `2.0.0`
  • Loading branch information
Evgeny Kuzyakov authored Aug 28, 2020
2 parents 6439d70 + 3a3684a commit 5f0970b
Show file tree
Hide file tree
Showing 15 changed files with 1,386 additions and 87 deletions.
56 changes: 28 additions & 28 deletions lockup/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 lockup/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[package]
name = "lockup-contract"
version = "0.3.0"
version = "1.0.0"
authors = ["Near Inc <hello@nearprotocol.com>"]
edition = "2018"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
near-sdk = "1.0.0"
near-sdk = "2.0.0"
uint = { version = "0.8.3", default-features = false }

[profile.release]
codegen-units = 1
# Tell `rustc` to optimize for small code size.
opt-level = "z"
opt-level = "s"
lto = true
debug = false
panic = "abort"
Expand Down
Loading

0 comments on commit 5f0970b

Please sign in to comment.