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(Gmx): Gmx swap #28

Merged
merged 41 commits into from
Sep 22, 2023
Merged

Feat(Gmx): Gmx swap #28

merged 41 commits into from
Sep 22, 2023

Conversation

Quazia
Copy link
Member

@Quazia Quazia commented Sep 21, 2023

This is blocked by rabbitholegg/questdk#14

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2023

🦋 Changeset detected

Latest commit: cddb762

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@rabbitholegg/questdk-plugin-registry Minor
@rabbitholegg/questdk-plugin-gmx Minor

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Member

@jimobrien jimobrien left a comment

Choose a reason for hiding this comment

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

LGTM - will make another pass once the GMX v2 is worked in!

return data.map((token) => token.id)
} else {
console.error(`Request failed with status code: ${response.status}`)
return []
Copy link
Member

Choose a reason for hiding this comment

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

Should we fail over to a static list of the majors?

Copy link
Member Author

Choose a reason for hiding this comment

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

Great idea - I've added sensible defaults to a static list equivalent to what the API currently returns.

packages/gmx/src/GMX.ts Outdated Show resolved Hide resolved
packages/gmx/src/GMX.ts Outdated Show resolved Hide resolved
$abi: GMX_SWAPV2_ABI,
data: {
$some: {
$abi: GMX_SWAPV2_ABI,
Copy link
Member

Choose a reason for hiding this comment

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

👏 👏 👏

Copy link
Member

@jimobrien jimobrien left a comment

Choose a reason for hiding this comment

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

Some nits on typing the addresses differently but otherwise LGTM

Nice work!

@Quazia Quazia merged commit 7eb94c3 into main Sep 22, 2023
Quazia added a commit that referenced this pull request Feb 16, 2024
mmackz added a commit that referenced this pull request Mar 4, 2024
* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing
mmackz added a commit that referenced this pull request Mar 8, 2024
* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* Testing (#28)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* update action

* simulate new plugin

* Testing (#29)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* simulate new plugin

* update details test

* Testing (#30)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* simulate new plugin

* update details test

* add to existing package test

* Testing (#31)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* simulate new plugin

* update details test

* add to existing package test

* non-config changes test

* Testing (#32)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* simulate new plugin

* update details test

* add to existing package test

* non-config changes test

* fail test

* image too big

* invalid image url

* invalid appling

* add plugin without config

* add valid details

* log

* re-add details

* valid details

* Fail Testing (#33)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* simulate new plugin

* update details test

* add to existing package test

* non-config changes test

* fail test

* image too big

* invalid image url

* invalid appling

* add plugin without config

* add valid details

* log

* re-add details

* valid details

* invalid to new

* last test

* fix details

* Testing (#34)

* appky patch

* change url for testing

* update url

* setup action

* setup actions for testing

* simulate new plugin

* update details test

* add to existing package test

* non-config changes test

* fail test

* image too big

* invalid image url

* invalid appling

* add plugin without config

* add valid details

* log

* re-add details

* valid details

* invalid to new

* last test

* fix details

* update icon

* Mmackz/plugin details config (#36)

* feat: add plugin details to db on pr

* refactor(builder): use required params for mint/burn

* refactor: use different logic for fetching updated config files

* refactor: change name of action

* fix: fetch origin

* docs: add comments

* feat: allow for multiple tasks

* tasks
@mmackz mmackz deleted the gmx_swap branch March 14, 2024 17:40
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