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: update fuel-core v0.13 #563

Merged
merged 20 commits into from
Nov 3, 2022
Merged

feat: update fuel-core v0.13 #563

merged 20 commits into from
Nov 3, 2022

Conversation

luizstacio
Copy link
Member

This PR update fuels-ts to work with fuel-core v0.13.

On this PR, I had to update message handling. The previous implementation led to errors in the message Id calculation, it would be great to get a deeper look from @camsjams. Looking at the specs, it looks like message data should be encoded and decoded in the same way predicateData is.
On the sway side, we have a blocker related to storage persistency, as the latest is not yet compatible with fuel-core v0.13.

Blockers;
FuelLabs/sway#3181
FuelLabs/fuel-core#737

@luizstacio luizstacio linked an issue Oct 29, 2022 that may be closed by this pull request
Copy link
Contributor

@camsjams camsjams left a comment

Choose a reason for hiding this comment

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

Can you merge in master?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
89.87% (+2.22% 🔼)
3593/3998
🟡 Branches
71.86% (+4.41% 🔼)
692/963
🟢 Functions
87.14% (+4.21% 🔼)
718/824
🟢 Lines
89.87% (+1.91% 🔼)
3443/3831
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢 fuels/src/index.ts 100% 100% 100% 100%
🟢
... / index.ts
100% 100% 50% 100%
🟡
... / contract-factory.ts
78.38% 57.14% 80% 78.38%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / coin-quantity.ts
100% 83.33% 100% 100%
🟢
... / coin.ts
100% 100% 0% 100%
🟢
... / operations.ts
82.52% 100% 65.38% 82.35%
🟡
... / provider.ts
73.94% 60.87% 73.81% 72.44%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / consts.ts
100% 100% 100% 100%
🟢
... / resource.ts
83.33% 100% 50% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / input.ts
93.33% 85.71% 100% 92.86%
🟢
... / output.ts
92.86% 85.71% 100% 92.31%
🟡
... / transaction-request.ts
77.56% 65.67% 70.69% 77.48%
🟢
... / util.ts
100% 88.89% 100% 100%
🟢
... / storage-slot.ts
84.62% 50% 100% 83.33%
🟢
... / witness.ts
100% 100% 100% 100%
🟢
... / transaction-response.ts
84.62% 55.56% 100% 84.62%
🟢
... / index.ts
100% 100% 100% 100%
🟢 wallet/src/index.ts 100% 100% 100% 100%
🟢
... / base-locked-wallet.ts
92.16% 71.43% 93.75% 92.16%
🟢
... / constants.ts
100% 100% 100% 100%
🟢
... / base-unlocked-wallet.ts
100% 100% 100% 100%
🟢 hasher/src/index.ts 100% 100% 100% 100%
🟢
... / hasher.ts
100% 100% 100% 100%
🟢 signer/src/index.ts 100% 100% 100% 100%
🟢
... / signer.ts
97.44% 75% 100% 97.44%
🟢
... / wallet.ts
100% 100% 100% 100%
🟢
... / wallets.ts
95.45% 75% 85.71% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / hdwallet.ts
94.85% 80.39% 100% 95.79%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / test-utils.ts
100% 66.67% 100% 100%
🟢
... / util.ts
96.88% 0% 100% 96%
🟢 merkle/src/index.ts 100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / contract.ts
100% 80% 100% 100%
🟢
... / invocation-scope.ts
100% 57.14% 100% 100%
🟢
... / base-invocation-scope.ts
100% 92.86% 100% 100%
🟢
... / scripts.ts
94.23% 81.25% 100% 94%
🟢 script/src/index.ts 100% 100% 100% 100%
🟡
... / script.ts
75.86% 28.57% 83.33% 75.86%
🔴
... / errors.ts
30% 0% 0% 30%
🔴 script/src/utils.ts 44.44% 0% 0% 37.5%
🟢
... / constants.ts
100% 100% 100% 100%
🔴
... / scripts.ts
50% 100% 0% 50%
🟢
... / multicall-bin.ts
100% 100% 100% 100%
🟢
... / invocation-results.ts
100% 75% 100% 100%
🟢
... / multicall-scope.ts
100% 100% 100% 100%
🟢
... / utils.ts
100% 100% 100% 100%
🟡
... / abiParser.ts
64.13% 43.48% 86.96% 65.12%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / wallet-manager.ts
100% 100% 100% 100%
🟢
... / mnemonic-vault.ts
94.12% 87.5% 100% 94.12%
🟢
... / privatekey-vault.ts
95.24% 60% 100% 95.24%
🟢
... / wallet-manager-spec.ts
100% 100% 100% 100%
🟢
... / wallet-spec.ts
100% 100% 100% 100%
🟢
... / hdwallet-spec.ts
100% 100% 100% 100%
🟢
... / index.ts
100% 100% 100% 100%
🟢
... / ExampleContractAbi__factory.ts
83.33% 100% 50% 83.33%

Test suite run success

543 tests passing in 49 suites.

Report generated by 🧪jest coverage report action from 0ffdab9

@digorithm
Copy link
Member

@luizstacio Seems like all blockers for this are gone (the Rust SDK already supports core 0.13). Let me know if you need help with this, you can also check FuelLabs/fuels-rs#657 for some reference.

@camsjams
Copy link
Contributor

camsjams commented Nov 2, 2022

Seems like all blockers for this are gone

Yes I've taken over this PR, I have it down to 6 failing unit tests related to Storage, seems like values have changed so need to see what has to be updated.

@digorithm
Copy link
Member

Seems like all blockers for this are gone

Yes I've taken over this PR, I have it down to 6 failing unit tests related to Storage, seems like values have changed so need to see what has to be updated.

Sweet! As I said, the rust SDK PR I linked above has all the changes needed if you wanna take a peek.

@camsjams camsjams self-assigned this Nov 3, 2022
@camsjams camsjams marked this pull request as ready for review November 3, 2022 08:27
@camsjams camsjams removed the blocked label Nov 3, 2022
packages/forc-bin/package.json Outdated Show resolved Hide resolved
QuinnLee
QuinnLee previously approved these changes Nov 3, 2022
@camsjams camsjams self-requested a review November 3, 2022 14:32
@camsjams camsjams enabled auto-merge (squash) November 3, 2022 20:11
@camsjams camsjams merged commit 2a98c1e into master Nov 3, 2022
@camsjams camsjams deleted the ls/562 branch November 3, 2022 20:14
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.

Update fuels-ts to support fuel-core v0.13
5 participants