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

Auto deploy playground to provide latest SDK implementation #1398

Merged
merged 22 commits into from
Sep 17, 2024

Conversation

bangtoven
Copy link
Contributor

@bangtoven bangtoven commented Sep 16, 2024

Summary

How did you test your changes?

test deploy succeeded
https://github.com/coinbase/coinbase-wallet-sdk/actions/runs/10911132262
image

This reverts commit f74ba03.

# Conflicts:
#	package.json
#	yarn.lock
@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Sep 16, 2024

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@bangtoven bangtoven force-pushed the jungho/revive-playground branch 3 times, most recently from aad4010 to 62f642d Compare September 16, 2024 22:22
bangtoven and others added 5 commits September 16, 2024 15:23
* delete non pg code

* Separate branch for playground

* cleanup

* yarn export

* fix package.json

* fix ci

* ci. no unit test on pg

* fix

* update testapp to 4.0.1 (#1300)

* 4.0.2

---------

Co-authored-by: Nate <nate.reiners@coinbase.com>

Separate branch for playground (#1304)

* delete non pg code

* Separate branch for playground

* cleanup

* yarn export

* fix package.json

* fix ci

* ci. no unit test on pg

* fix

* update testapp to 4.0.1 (#1300)

* 4.0.2

---------

Co-authored-by: Nate <nate.reiners@coinbase.com>
* Use viem to verify 6492 signed messages

* Keep track of the switch chain state to make the verify message functionality more robust

* Fix whitespace

* Set chain id based on current provider state

* Fix npe when using extension
@bangtoven bangtoven force-pushed the jungho/revive-playground branch 6 times, most recently from c5882c1 to e2e32db Compare September 16, 2024 23:22
@bangtoven bangtoven force-pushed the jungho/revive-playground branch 2 times, most recently from 63ad60c to 7ecdea9 Compare September 16, 2024 23:34
@@ -17,26 +17,29 @@ concurrency:
jobs:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
build job has been verified
depoly is expected to fail due to branch restriction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bangtoven bangtoven force-pushed the jungho/revive-playground branch 6 times, most recently from 7dcb354 to 445214f Compare September 17, 2024 01:01
@bangtoven bangtoven force-pushed the jungho/revive-playground branch from 445214f to 48be703 Compare September 17, 2024 01:08
import HEAD
@@ -0,0 +1,29 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

The dev script doesn't seem to be working. Its starting the sdk but not the playground

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
fixed

@bangtoven bangtoven marked this pull request as draft September 17, 2024 20:28
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bring back previous yarn setup #1069
ty @cb-jake

this.utils.printDiffOrStringify(expected, received, 'Expected', 'Received', true),
};
},
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this custom helper started causing some tsc typecheck bugs with newer yarn version for some reason.
deprecating and replacing with standard toMatchObject

@@ -53,6 +53,7 @@
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"glob": "^11.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.

adding it as dev dep. yarn 3.6 complains this is not found otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe in a future PR we can work on upgrading to yarn 4+. Not critical for now

@bangtoven bangtoven force-pushed the jungho/revive-playground branch from 014a95d to 2ada27e Compare September 17, 2024 21:05
@bangtoven bangtoven force-pushed the jungho/revive-playground branch from 2ada27e to 4d332ba Compare September 17, 2024 21:06
Comment on lines +2716 to +2732
"@coinbase/wallet-sdk-4.0.4@npm:@coinbase/wallet-sdk@latest":
version: 4.0.4
resolution: "@coinbase/wallet-sdk@npm:4.0.4"
dependencies:
buffer: "npm:^6.0.3"
clsx: "npm:^1.2.1"
eventemitter3: "npm:^5.0.1"
keccak: "npm:^3.0.3"
preact: "npm:^10.16.0"
sha.js: "npm:^2.4.11"
checksum: 002d03d791683a15b465a285d7293a7994684f6f91d67c01b52ee9a07ba62f555a12d5c9471c964ccae0df048190f9c2e82929aeba9247e6d97ad1a9e9dd4132
languageName: node
linkType: hard

"@coinbase/wallet-sdk@workspace:*, @coinbase/wallet-sdk@workspace:packages/wallet-sdk":
version: 0.0.0-use.local
resolution: "@coinbase/wallet-sdk@workspace:packages/wallet-sdk"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

importing the latest npm published version and local workspace version

@bangtoven bangtoven marked this pull request as ready for review September 17, 2024 21:11
Copy link
Contributor

@cb-jake cb-jake left a comment

Choose a reason for hiding this comment

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

Awesome work @jungho! The dev script is working again. Tested making changes locally and the playground is picking them up in real time!

@bangtoven
Copy link
Contributor Author

thanks for your help and guidance @cb-jake 🙇

@bangtoven bangtoven merged commit 7dd339a into master Sep 17, 2024
10 checks passed
@bangtoven bangtoven deleted the jungho/revive-playground branch September 17, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants