Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update near-plugins #188

Merged
merged 5 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if: matrix.platform == 'near' || matrix.platform == 'solana'
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.79.0
toolchain: 1.80.0
target: wasm32-unknown-unknown

- name: Install NEAR CLI RS
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.79.0
toolchain: 1.80.0
components: clippy, rustfmt
target: wasm32-unknown-unknown

Expand All @@ -52,7 +52,7 @@ jobs:
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.79.0
toolchain: 1.80.0
target: wasm32-unknown-unknown

- name: Cache Rust dependencies
Expand Down
4 changes: 2 additions & 2 deletions near/Cargo.lock

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

2 changes: 1 addition & 1 deletion near/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ near-contract-standards = "5.2.0"
hex = "0.4.2"
borsh = "1.5.1"
serde = { version = "1.0.200", features = ["derive"] }
near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.3.0" }
near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.4.1" }
omni-types = { path = "omni-types" }
strum_macros = "0.26"
near-workspaces = "0.12.0"
Expand Down
6 changes: 6 additions & 0 deletions near/omni-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ impl Contract {
decimals,
);

require!(amount_to_transfer > 0, "Invalid amount to transfer");

let transfer_payload = TransferMessagePayload {
prefix: PayloadType::TransferMessage,
destination_nonce: transfer_message.destination_nonce,
Expand Down Expand Up @@ -906,6 +908,10 @@ impl Contract {
pub fn get_current_destination_nonce(&self, chain_kind: ChainKind) -> Nonce {
self.destination_nonces.get(&chain_kind).unwrap_or_default()
}

pub fn get_mpc_account(&self) -> AccountId {
self.mpc_signer.clone()
}
}

impl Contract {
Expand Down
Binary file modified near/res/evm_prover.wasm
Binary file not shown.
Binary file modified near/res/omni_bridge.wasm
Binary file not shown.
Binary file modified near/res/omni_prover.wasm
Binary file not shown.
Binary file modified near/res/omni_token.wasm
Binary file not shown.
Binary file modified near/res/token_deployer.wasm
Binary file not shown.
Binary file modified near/res/wormhole_omni_prover_proxy.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion near/rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.79.0"
channel = "1.80.0"
components = ["clippy", "rustfmt"]
Loading