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

refactored sdk to use viem #48

Conversation

peersky
Copy link
Member

@peersky peersky commented Dec 6, 2024

No description provided.

Copy link

changeset-bot bot commented Dec 6, 2024

⚠️ No Changeset found

Latest commit: fe8b2b4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@peersky peersky requested a review from theKosmoss December 6, 2024 09:11
src/multipass.ts Outdated
walletClient: WalletClient;
}) {
const artifact = getArtifact(chainName, "Multipass");
this.chainId = chainName;
Copy link
Contributor

@theKosmoss theKosmoss Dec 9, 2024

Choose a reason for hiding this comment

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

this is not correct chainName: SupportedChains; can't be set to chainId. later or there is problem to convert chainName to int

@peersky peersky requested a review from theKosmoss December 9, 2024 16:04
@peersky peersky merged commit 39eca72 into 40-add-support-to-interact-with-010-rankify-interfaces Dec 9, 2024
@peersky peersky deleted the peersky/40-add-support-010-rankify/with-viem branch December 9, 2024 16:05
peersky added a commit that referenced this pull request Dec 19, 2024
* added 0.10 rankify contracts basic support

* updated index file

* moved rank token methods to separate class

* refactored sdk to use viem  (#48)

* build suceeds

* added prebuild step to copy and use abi's within srcs

* fix wrong imports

* update prebuild script

* update multipass class to use chain ID as a number

---------

Co-authored-by: theKosmoss <[email protected]>

* Peersky/40 add support 010 rankify/with viem (#49)

* build suceeds

* added prebuild step to copy and use abi's within srcs

* fix wrong imports

* generate chain id mapping to supported chains path during sdk build

* Refactored sdk to accept chainId instead of chain

* made linter to highlight more issues and fixed those

* added jest for TDD

* multipass unit test

* updated ci cd

* upd ci

* added tests to player, fixed bug

* validate address in distributor constructor

* multipass constructor tweaks

* added abi files to index & generator

* export abis as object

* reexport abis

* fix dist import require paths

* Revert "fix dist import require paths"

This reverts commit cf816da.

* modified build scipt instead

* up ci

* upd MAO distributor class getter namings

* updated generation scripts and decoupled multipass in base and registrar classes

* added block range for getEvents

* tests mock deployments, removed console logs

* remove console logs

* happy linter - happy life

* added types node

* lockfile

* add readme and setup local dev script

* env sertup process

* fix bug

* docstrings & readme upd

* changeset

* upodate docs generation

* No need to source env here. Sourcing is inside script

---------

Co-authored-by: theKosmoss <[email protected]>
peersky added a commit that referenced this pull request Dec 19, 2024
* added 0.10 rankify contracts basic support

* updated index file

* moved rank token methods to separate class

* refactored sdk to use viem  (#48)

* build suceeds

* added prebuild step to copy and use abi's within srcs

* fix wrong imports

* update prebuild script

* update multipass class to use chain ID as a number

---------

Co-authored-by: theKosmoss <[email protected]>

* Peersky/40 add support 010 rankify/with viem (#49)

* build suceeds

* added prebuild step to copy and use abi's within srcs

* fix wrong imports

* generate chain id mapping to supported chains path during sdk build

* Refactored sdk to accept chainId instead of chain

* made linter to highlight more issues and fixed those

* added jest for TDD

* multipass unit test

* updated ci cd

* upd ci

* added tests to player, fixed bug

* validate address in distributor constructor

* multipass constructor tweaks

* added abi files to index & generator

* export abis as object

* reexport abis

* fix dist import require paths

* Revert "fix dist import require paths"

This reverts commit cf816da.

* modified build scipt instead

* up ci

* upd MAO distributor class getter namings

* updated generation scripts and decoupled multipass in base and registrar classes

* added block range for getEvents

* tests mock deployments, removed console logs

* remove console logs

* happy linter - happy life

* added types node

* lockfile

* add readme and setup local dev script

* env sertup process

* fix bug

* docstrings & readme upd

* changeset

* upodate docs generation

* wip

* wip

* TDD game master

* updates for monitor

---------

Co-authored-by: theKosmoss <[email protected]>
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