Skip to content

Commit

Permalink
refactor: Update near-sdk-rs from 4.1.1 to 5.0.0-alpha.2 (#87)
Browse files Browse the repository at this point in the history
- Updated near-sdk-rs from 4.1.1 to 5.0.0-alpha.2
- Updated near-sdk-rs in community and community-factory from
5.0.0-alpha.1 to 5.0.0-alpha.2
- Added #[borsh(crate = "near_sdk::borsh")] where it was necessary
- Added #[derive(Ord)] where it was necessary
- Used pub type Balance = u128; instead of  near_sdk::Balance
- Changed gas type for new one (including usage of construction and
operations with gas - div / sub / etc)
- Changed version.try_to_vec() to borsh::to_vec(&version)
- Changed u128 to NearToken
- Changed toolchain from 1.69.0 to 1.75.0 as in Near core
- Updated packages chrono and near-workspaces
  • Loading branch information
PolyProgrammist authored Jan 22, 2024
1 parent d956d42 commit 9c85c8e
Show file tree
Hide file tree
Showing 28 changed files with 753 additions and 989 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.2
default: true
- uses: Swatinem/rust-cache@v1
- run: rustup target add wasm32-unknown-unknown
- name: Build community contract
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.68.2
default: true
- uses: Swatinem/rust-cache@v1
- run: rustup target add wasm32-unknown-unknown
- name: Build community contract
Expand Down
Loading

0 comments on commit 9c85c8e

Please sign in to comment.