Skip to content

Commit

Permalink
feat: add integrator request types (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
melianessa committed Feb 16, 2024
1 parent b2ba3b4 commit 7efe0e2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,3 +538,38 @@ export interface TransactionAnalyticsRequest {
toTimestamp?: number
status?: TransactionAnalyticsStatus
}

export interface CreateIntegratorRequest {
name: string
integratorId: string
fee?: number
feeType?: IntegratorFeeType
defaultWallet?: string
chainWallets?: ChainWalletConfiguration
}

export interface UpdateIntegratorRequest {
name?: string
fee?: number
feeType?: IntegratorFeeType
defaultWallet?: string
chainWallets?: ChainWalletConfiguration
}

export type IntegratorResult = {
name: string
integratorId: string
fee: number
feeType: IntegratorFeeType
defaultWallet?: string
chainWallets?: ChainWalletConfiguration
}

export type ChainWalletConfiguration = {
[key in ChainId]?: string
}

export enum IntegratorFeeType {
FIXED = 'FIXED',
SHARED = 'SHARED',
}

0 comments on commit 7efe0e2

Please sign in to comment.