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

feat: Aptos Client #1

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

feat: Aptos Client #1

wants to merge 18 commits into from

Conversation

0x5ea000000
Copy link

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing
  • Other (please describe):

What is the current behavior?

Resolves: #NA

What is the new behavior?

Does this introduce a breaking change?

Other information

@Tranduy1dol Tranduy1dol force-pushed the feat/aptos branch 2 times, most recently from 4d0f0e1 to 93a27bd Compare September 4, 2024 04:56
Cargo.toml Outdated
@@ -17,6 +17,7 @@ members = [
"crates/primitives/state_update",
"crates/primitives/utils",
"crates/tests",
"crates/client/aptos",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rearrange it to near crates/client

license.workspace = true

[dependencies]
alloy = { workspace = true}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need alloy here? on Aptos?

l1_block_number: registry
.register(Gauge::new("deoxys_l1_block_number", "Gauge for deoxys L1 block number")?)?,

l1_gas_price_wei: registry.register(Gauge::new("deoxys_l1_gas_price", "Gauge for deoxys L1 gas price")?)?,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be l1_gas_price_octas? (minium unit in Aptos)

}
}

impl AptosClient {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should define trait for swapping out between many types of Client easier

@0x5ea000000
Copy link
Author

0x5ea000000 commented Sep 5, 2024

@Tranduy1dol
error no method named `disable_lifo_slot` found for mutable reference happened when building the feat/aptos branch

we need to add

[build]
rustflags = ["--cfg", "tokio_unstable"]

to ./cargo/config.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants