Skip to content

Commit

Permalink
chore: merge and reusing transparent nodes from non-native
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Aug 22, 2023
1 parent 23c7642 commit 96d1ab2
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 249 deletions.
14 changes: 1 addition & 13 deletions yarn-project/aztec.js/src/abis/ecdsa_account_contract.json

Large diffs are not rendered by default.

14 changes: 1 addition & 13 deletions yarn-project/aztec.js/src/abis/schnorr_account_contract.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ type = "contract"

[dependencies]
aztec = { path = "../../../../noir-libs/noir-aztec" }
value_note = { path = "../../../../noir-libs/value-note"}
value_note = { path = "../../../../noir-libs/value-note"}
non_native = { path = "../non_native_token_contract"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
mod hash;
mod storage;
mod transparent_note;

// Testing token that can be bridged in and out.
// TODOS:
Expand All @@ -15,14 +13,15 @@ contract NativeToken {
value_note::{VALUE_NOTE_LEN, ValueNoteMethods},
};

use crate::transparent_note::{
TransparentNote,
TransparentNoteMethods,
TRANSPARENT_NOTE_LEN,
use dep::non_native::{
hash::{get_mint_content_hash, get_withdraw_content_hash},
transparent_note::{
TransparentNote,
TransparentNoteMethods
},
};

use crate::storage::Storage;
use crate::hash::{get_mint_content_hash, get_withdraw_content_hash};

use dep::aztec::context::{
PrivateContext,
Expand Down Expand Up @@ -458,7 +457,7 @@ contract NativeToken {
let storage = Storage::init();
let owner_balance = storage.balances.at(owner);

balance_utils::get_balance(owner_balance.storage_slot)
balance_utils::get_balance(owner_balance)
}

// Computes note hash and nullifier.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
mod transparent_note;

use crate::transparent_note::{
TransparentNote,
TransparentNoteMethods,
TRANSPARENT_NOTE_LEN,
};

use dep::value_note::value_note::{
ValueNote,
ValueNoteMethods,
VALUE_NOTE_LEN,
};

use dep::non_native::{
transparent_note::{
TransparentNote,
TransparentNoteMethods,
TRANSPARENT_NOTE_LEN,
},
};

use dep::aztec::{
state_vars::{
map::Map,
Expand Down

This file was deleted.

0 comments on commit 96d1ab2

Please sign in to comment.