-
Notifications
You must be signed in to change notification settings - Fork 101
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
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
|
There was a problem hiding this 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' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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), | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Summary
Part of #332
Adding SDK instances
To Test
Nothing to test