-
Notifications
You must be signed in to change notification settings - Fork 8
Fetch offchain data aptos #22
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
base: main
Are you sure you want to change the base?
Conversation
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.
@andrevmatos I would really appreciate an initial look to validate the approach
@@ -257,3 +268,134 @@ export async function fetchOffchainTokenData( | |||
} | |||
return offchainTokenData | |||
} | |||
|
|||
// ----- Logic Replication using a chain agnostic input ----- | |||
export type FetchOffchainTokenDataInput = { |
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.
New type for the fetchOffchainTokenData
function that abstracts events part in a common type, ChainEvent, that each chain specific event can adapt to
tokenAmounts: TokenAmounts | ||
} | ||
|
||
export async function fetchOffchainTokenDataV2( |
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.
Replication of fetchOffchainTokenData
function to validate refactor
messageHash: string | ||
} | ||
|
||
export interface AttestationClient { |
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.
Small abstraction over the atts. clients, in case more come in
5a32779
to
7c7549a
Compare
Coverage Report
|
TODO in other PR