Skip to content

Commit

Permalink
update proto package name
Browse files Browse the repository at this point in the history
  • Loading branch information
melotik committed Jan 26, 2023
1 parent c83c3aa commit 62d5a70
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion eth-balance/proto/eth_balance.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package messari.evm_token.v1;
package messari.eth_balance.v1;

message Tokens {
repeated Token items = 1;
Expand Down
2 changes: 1 addition & 1 deletion eth-balance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub mod pb;

use substreams::Hex;
use substreams_ethereum::pb::eth as pbeth;
use substreams_helper::pb::evm_token::v1 as token;
use substreams_helper::pb::eth_balance::v1 as token;
use substreams_helper::token as token_helper;

#[substreams::handlers::map]
Expand Down
8 changes: 4 additions & 4 deletions eth-balance/src/pb.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[rustfmt::skip]
#[path = "../target/pb/messari.evm_token.v1.rs"]
pub(in crate::pb) mod evm_token_v1;
#[path = "../target/pb/messari.eth_balance.v1.rs"]
pub(in crate::pb) mod eth_balance_v1;

pub mod evm_token {
pub mod eth_balance {
pub mod v1 {
pub use super::super::evm_token_v1::*;
pub use super::super::eth_balance_v1::*;
}
}
8 changes: 4 additions & 4 deletions substreams-helper/src/pb.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[rustfmt::skip]
#[path = "../target/pb/messari.evm_token.v1.rs"]
pub(in crate::pb) mod evm_token_v1;
#[path = "../target/pb/messari.eth_balance.v1.rs"]
pub(in crate::pb) mod eth_balance_v1;

pub mod evm_token {
pub mod eth_balance {
pub mod v1 {
pub use super::super::evm_token_v1::*;
pub use super::super::eth_balance_v1::*;
}
}
2 changes: 1 addition & 1 deletion substreams-helper/src/token.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::pb::evm_token::v1::Token;
use crate::pb::eth_balance::v1::Token;
use num_bigint;
use substreams::scalar::BigInt;
use substreams_ethereum::pb::eth as pbeth;
Expand Down

0 comments on commit 62d5a70

Please sign in to comment.