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

Sc 4728 maple js add address constants to the repo #2

Merged

Conversation

xhad
Copy link
Contributor

@xhad xhad commented Feb 10, 2022

Description

This adds a local artifacts folder with addresses and a script that generates addresses for export from the main package. The addresses for all networks is exported from the sdk as an addresses object.

import { addresses } from '@maplelabs/maple-js

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #4728: [maple-js] Add address constants to the repo.

UniswapV2Router02: '0x1111111111111111111111111111111111111111',
Util: '0x4c729887C6538485B32A63c6Eb29feBC7a5A5656',
WBTC: '0xDEd32223ceDcf3f4655D36ed829Baeb1d916510e',
WETH: '0xbd7d6a9d4520E611113AaE5CddF3f1AC1ceCffD8',
Copy link
Contributor

Choose a reason for hiding this comment

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

Note in deploy, subgraph and webapp there has some confusion in naming between WETH vs. WETH9

This led to the withdrawal bug (where Apollo couldn't post collateral) so we should probably decide and standardize

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this WETH9 has been a real bother. I would say we go with WETH everywhere.

Jakkc
Jakkc previously approved these changes May 12, 2022
Copy link
Contributor

@michaelsmueller michaelsmueller left a comment

Choose a reason for hiding this comment

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

nice! just the block heights and we're good

artifacts/localhost/manifest.json Outdated Show resolved Hide resolved
artifacts/localhost/manifest.json Outdated Show resolved Hide resolved
src/addresses/localhost.ts Outdated Show resolved Hide resolved
@michaelsmueller michaelsmueller self-requested a review May 12, 2022 17:06
@michaelsmueller michaelsmueller requested a review from Jakkc May 12, 2022 17:06
@michaelsmueller michaelsmueller merged commit 735fdec into main May 12, 2022
@michaelsmueller michaelsmueller deleted the sc-4728-maple-js-add-address-constants-to-the-repo branch May 12, 2022 17:10
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.

3 participants