Skip to content

Commit 08eb555

Browse files
committed
Insanity
1 parent 28bfbbb commit 08eb555

23 files changed

Lines changed: 992 additions & 1513 deletions

File tree

contracts/near/Cargo.lock

Lines changed: 795 additions & 1053 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/near/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ethereum_hashing = "1.0.0-beta.2"
3131
derive_more = "^0.99.2"
3232
hex = "0.4.2"
3333
bitvec = "1.0.0"
34-
near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.1.0" }
34+
near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.5.0" }
3535

3636
[patch]
3737
[patch.crates-io]

contracts/near/admin-controlled/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ edition = "2021"
88
crate-type = ["cdylib", "rlib"]
99

1010
[dependencies]
11-
near-sdk = "4.1.1"
11+
near-sdk = "5.12.0"

contracts/near/admin-controlled/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ macro_rules! impl_admin_controlled {
44
use admin_controlled::{AdminControlled as AdminControlledInner, Mask as MaskInner};
55
use near_sdk as near_sdk_inner;
66

7-
#[near_bindgen]
7+
#[near]
88
impl AdminControlledInner for $contract {
99
#[result_serializer(borsh)]
1010
fn get_paused(&self) -> MaskInner {

contracts/near/eth-client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ crate-type = ["cdylib", "rlib"]
99

1010
[dependencies]
1111
eth-types = { path = "../eth-types", default-features = false }
12-
near-sdk = "4.1.1"
12+
near-sdk = "5.12.0"
1313
borsh = "0.9.3"
1414
rlp = "0.5.2"
1515
primal = "0.2.3"
1616
arrutil = "0.1.2"
1717
ethash = { git = "https://github.com/aurora-is-near/rust-ethash", tag = "0.2.0", default-features = false }
1818
hex = "0.4.0"
1919
rustc-hex = "2.1.0"
20-
near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.1.0" }
20+
near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.5.0" }
2121

2222
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
2323
# serde's Serialize and Deserialize traits are required for `near_bindgen` macro for non-wasm32 targets
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.68.0"
2+
channel = "1.84.0"

contracts/near/eth-client/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub enum Role {
6969
DAO,
7070
}
7171

72-
#[near_bindgen]
72+
#[near]
7373
#[derive(BorshDeserialize, BorshSerialize, PanicOnDefault, Pausable, Upgradable)]
7474
#[access_control(role_type(Role))]
7575
#[pausable(manager_roles(Role::PauseManager))]
@@ -123,7 +123,7 @@ pub struct EthClient {
123123
paused: u128,
124124
}
125125

126-
#[near_bindgen]
126+
#[near]
127127
impl EthClient {
128128
#[init]
129129
#[private]

contracts/near/eth-prover/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ serde_json = "1.0"
2020
hex = { version = "0.4.3", features = ["serde"] }
2121
indicatif = "0.14"
2222
lazy_static = "*"
23-
near-crypto = "0.16.0"
24-
near-primitives = "0.16.0"
23+
near-crypto = "0.29.2"
24+
near-primitives = "0.29.2"
2525
workspaces = "0.6.0"
2626
tokio = { version = "1.18.1", features = ["full"] }
2727

contracts/near/eth-prover/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub enum Role {
2929
DAO,
3030
}
3131

32-
#[near_bindgen]
32+
#[near]
3333
#[derive(BorshDeserialize, BorshSerialize, PanicOnDefault, Pausable, Upgradable)]
3434
#[access_control(role_type(Role))]
3535
#[pausable(manager_roles(Role::PauseManager, Role::DAO))]
@@ -69,7 +69,7 @@ fn get_vec(data: &Rlp, pos: usize) -> Vec<u8> {
6969
data.at(pos).unwrap().as_val::<Vec<u8>>().unwrap()
7070
}
7171

72-
#[near_bindgen]
72+
#[near]
7373
impl EthProver {
7474
#[init]
7575
#[private]

contracts/near/eth-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["cdylib", "rlib"]
1010
[dependencies]
1111
serde = { version = "1.0", features = ["derive"] }
1212
near-sdk.workspace = true
13-
borsh.workspace = true
13+
borsh = "1.5.6"
1414
rlp.workspace = true
1515
rlp-derive.workspace = true
1616
ethereum-types.workspace = true

0 commit comments

Comments
 (0)