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

IOS-8091 Core DAO SDK #856

Merged
merged 8 commits into from
Oct 4, 2024
Merged

IOS-8091 Core DAO SDK #856

merged 8 commits into from
Oct 4, 2024

Conversation

amuraveinik
Copy link
Contributor

@amuraveinik amuraveinik commented Sep 30, 2024

Copy link
Contributor

@m3g0byt3 m3g0byt3 left a comment

Choose a reason for hiding this comment

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

А это не L2 сетка, а просто EVM? Для L2 сеток в Blockchain.swift есть несколько отдельных пропертей, типа coinDisplayName, feeDisplayName

@@ -780,6 +786,7 @@ extension Blockchain {
case .base: return true
case .cyber: return false
case .blast: return false
case .core: return false
Copy link
Contributor

Choose a reason for hiding this comment

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

Тоже нет EIP1559?

Copy link
Collaborator

Choose a reason for hiding this comment

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

тоже глянул explorer там вроде как нет, вопрос как и у энерджи веб, что приходит в фи хистори

Copy link
Contributor Author

Choose a reason for hiding this comment

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

В фи хистори пришло:

EthereumFeeHistory(
    baseFee: 0, 
    lowBaseFee: 0, 
    marketBaseFee: 0, 
    fastBaseFee: 0, 
    lowPriorityFee: 30000000000, 
    marketPriorityFee: 36000000000,
    fastPriorityFee: 45000000000
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Более низкоуровнево вот так, но тут в целом то же самое

(lldb) po response
▿ EthereumFeeHistoryResponse
  ▿ baseFeePerGas : 2 elements
    - 0 : "0x0"
    - 1 : "0x0"
  ▿ reward : 1 element
    ▿ 0 : 3 elements
      - 0 : "0x70e054f00"
      - 1 : "0x737be7600"
      - 2 : "0x9502f9000"

Copy link
Collaborator

Choose a reason for hiding this comment

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

кажется просто фоллбэк сработал на gasPrice и заполнил фи хистори, ну чет нули странно, видимо не поддерживает

@@ -49,7 +49,8 @@ public struct DerivationConfigV1: DerivationConfig {
.taraxa,
.base,
.cyber,
.blast:
.blast,
.core:
Copy link
Collaborator

Choose a reason for hiding this comment

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

в slip44 ничего нет?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Вот тут есть энтри
1116 | 0x8000045c | CORE | Core

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Честно говоря не припомню в чем разница v1, v2 и v3

Но судя по вопросу и по аналогии с другими сетям надо

case .core:
            return "m/44'/1116'/0'/0/0"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Вроде да, надо было просто комменты почитать)

Copy link
Collaborator

Choose a reason for hiding this comment

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

да, если есть в слипе, то для в1 меняется

@@ -780,6 +786,7 @@ extension Blockchain {
case .base: return true
case .cyber: return false
case .blast: return false
case .core: return false
Copy link
Collaborator

Choose a reason for hiding this comment

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

тоже глянул explorer там вроде как нет, вопрос как и у энерджи веб, что приходит в фи хистори

@amuraveinik
Copy link
Contributor Author

А это не L2 сетка, а просто EVM? Для L2 сеток в Blockchain.swift есть несколько отдельных пропертей, типа coinDisplayName, feeDisplayName

Это l1,

https://docs.coredao.org/docs/intro
Core is the first Bitcoin-aligned EVM-compatible Layer-1 blockchain ...

Copy link
Contributor

@skibinalexander skibinalexander left a comment

Choose a reason for hiding this comment

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

Вроде все комменты обсудили , честно сказать добавить нечего

@amuraveinik amuraveinik merged commit e24ab25 into develop Oct 4, 2024
1 check passed
@amuraveinik amuraveinik deleted the feature/IOS-8091_core branch October 4, 2024 10:12
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.

5 participants