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

332/instantiating cow sdk #594

Merged
merged 3 commits into from
Jun 3, 2022
Merged

332/instantiating cow sdk #594

merged 3 commits into from
Jun 3, 2022

Conversation

alfetopito
Copy link
Collaborator

Summary

Part of #332

Adding SDK instances

To Test

Nothing to test

@alfetopito alfetopito self-assigned this May 30, 2022
@github-actions
Copy link
Contributor

CLA Assistant Lite All Contributors have signed the CLA.

@alfetopito alfetopito requested a review from a team May 30, 2022 13:10
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: CoW Protocol v2 Swap UI

@alfetopito alfetopito requested a review from W3stside May 30, 2022 15:49
@alfetopito alfetopito merged commit 516847b into develop Jun 3, 2022
@alfetopito alfetopito deleted the 332/instantiating-cow-sdk branch June 3, 2022 12:54
@github-actions github-actions bot locked and limited conversation to collaborators Jun 3, 2022
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

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

Approved

@@ -7,6 +7,9 @@ import { SupportedChainId as ChainId } from 'constants/chains'
import { getAppDataHash } from './appDataHash'
import ms from 'ms.macro'

import { CowSdk } from '@cowprotocol/cow-sdk'
import { PINATA_API_KEY, PINATA_SECRET_API_KEY } from 'constants/ipfs'
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we were already having the pinata keys, since we were already uploading the doc to IPFS fo the affiliate program

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, we do have them.
They are just being imported here

[ChainId.MAINNET]: new CowSdk(ChainId.MAINNET, COW_SDK_OPTIONS),
[ChainId.RINKEBY]: new CowSdk(ChainId.RINKEBY, COW_SDK_OPTIONS),
[ChainId.GNOSIS_CHAIN]: new CowSdk(ChainId.GNOSIS_CHAIN, COW_SDK_OPTIONS),
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this "instance" per network will be changed in the future so we only need one, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, to be handled on cowprotocol/cow-sdk#30

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants