-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add webhook creation support #35
base: master
Are you sure you want to change the base?
Conversation
* @returns Details of the created webhook | ||
*/ | ||
export async function createWebhook( | ||
wallet: Wallet, |
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.
wallet
is an unused parameter. It can be removed and still conform to CdpAction
- ref
- Sender address for erc20_transfer and erc721_transfer events (listen on transfers originating from this address)) | ||
- Recipient address for erc20_transfer and erc721_transfer events (listen on transfers being made to this address)) |
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.
- Sender address for erc20_transfer and erc721_transfer events (listen on transfers originating from this address)) | |
- Recipient address for erc20_transfer and erc721_transfer events (listen on transfers being made to this address)) | |
- Sender address for erc20_transfer and erc721_transfer events (listen on transfers originating from this address) | |
- Recipient address for erc20_transfer and erc721_transfer events (listen on transfers being made to this address) |
), | ||
); | ||
|
||
const EventTypeFilter = z.object({ |
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.
Please add JSDoc string
case "wallet_activity": | ||
webhookOptions.eventTypeFilter = { | ||
addresses: eventTypeFilter.addresses || [], | ||
wallet_id: "", // this is required by SDK, but can be an empty value |
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.
Why is this required by the SDK if it is unused?
Can we delete line 84 entirely or must it be specified as ""
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.
SDK requires this param although it's not required to have a valid value, something we'll look into, but we need this param for now.
What changed? Why?
Qualified Impact