Skip to content

Commit

Permalink
fixes after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Apr 15, 2024
1 parent 3fe0da4 commit e1fd5a9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export type Input = {
principal: CredentialEntity
resource?: { uid: string }
approvals?: CredentialEntity[]
transfers?: HistoricalTransfer[]
feeds?: Feed<unknown>[]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,23 +112,6 @@ export const toInput = (params: {
])
const mapper = mappers.get(action)

// For demo purpose, we need to modify timestamps of transaction
// and fake it that those happened in the last 24hours

// const feedsDemo = evaluation.feeds?.map((feed) => {
// if (feed.source === 'armory/historical-transfer-feed') {
// const { data, ...res } = feed
// const dataRes = (data as any[]).map((d: any) => ({
// ...d,
// timestamp: new Date().getTime() - 10 * 60 * 60 * 1000
// }))

// return { ...res, data: dataRes }
// }

// return feed
// }) as Feed<unknown>[]

if (mapper) {
return mapper(evaluation.request, params.principal, params.approvals, evaluation.feeds)
}
Expand Down

0 comments on commit e1fd5a9

Please sign in to comment.