Skip to content

Commit dbb63e8

Browse files
committed
[AUTOMATED] Update: proto/clients/trails-api.gen.ts
1 parent ccb9e5d commit dbb63e8

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

packages/trails-api/src/trails-api.gen.ts

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// trails-api v1.0.0 04e3b566a4664b522b5144d2c88002fd77dbb760
2+
// trails-api v1.0.0 005a369b19dfebdb65dde9e0e5ddac91bfc04c44
33
// --
44
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
55
//
@@ -12,7 +12,7 @@ export const WebrpcVersion = 'v1'
1212
export const WebrpcSchemaVersion = 'v1.0.0'
1313

1414
// Schema hash generated from your RIDL schema
15-
export const WebrpcSchemaHash = '04e3b566a4664b522b5144d2c88002fd77dbb760'
15+
export const WebrpcSchemaHash = '005a369b19dfebdb65dde9e0e5ddac91bfc04c44'
1616

1717
//
1818
// Client interface
@@ -269,6 +269,40 @@ export interface MetaTxnFeeDetails {
269269

270270
export interface IntentSummary {
271271
intentId: string
272+
status: IntentStatus
273+
ownerAddress: string
274+
originChainId: number
275+
originChainMetadata: ChainMetadata
276+
destinationChainId: number
277+
destinationChainMetadata: ChainMetadata
278+
originIntentAddress: string
279+
destinationIntentAddress: string
280+
depositTransactionHash?: string
281+
depositTransactionStatus: TransactionStatus
282+
originTransactionHash?: string
283+
originTransactionStatus: TransactionStatus
284+
destinationTransactionHash?: string
285+
destinationTransactionStatus: TransactionStatus
286+
originTokenAddress: string
287+
originTokenAmount: bigint
288+
originTokenMetadata: TokenMetadata
289+
destinationTokenAddress: string
290+
destinationTokenAmount: bigint
291+
destinationTokenMetadata: TokenMetadata
292+
updatedAt?: string
293+
createdAt: string
294+
}
295+
296+
export interface ChainMetadata {
297+
name: string
298+
logoUri?: string
299+
}
300+
301+
export interface TokenMetadata {
302+
name: string
303+
symbol: string
304+
decimals: number
305+
logoUri?: string
272306
}
273307

274308
export interface TokenPrice {
@@ -807,6 +841,7 @@ const BIG_INT_FIELDS: { [typ: string]: (string | [string, string])[] } = {
807841
GetIntentGasFeeOptionsRequest: [['params', 'GetIntentEntrypointDepositFeeOptionsParams']],
808842
GetIntentReceiptResponse: [['intentReceipt', 'IntentReceipt']],
809843
GetIntentResponse: [['intent', 'Intent']],
844+
GetIntentTransactionHistoryResponse: [['intents', 'IntentSummary[]']],
810845
Intent: [
811846
['quoteRequest', 'QuoteIntentRequest'],
812847
'destinationSalt',
@@ -829,6 +864,7 @@ const BIG_INT_FIELDS: { [typ: string]: (string | [string, string])[] } = {
829864
['originTransaction', 'IntentTransaction'],
830865
['destinationTransaction', 'IntentTransaction']
831866
],
867+
IntentSummary: ['originTokenAmount', 'destinationTokenAmount'],
832868
IntentTransaction: ['tokenAmount'],
833869
IntentTransactionGasFee: ['totalGasLimit', 'gasPrice', 'totalFeeAmount', ['metaTxnFeeDetails', 'MetaTxnFeeDetails']],
834870
MetaTxnFeeDetails: ['estimatedGasLimit', 'feeNative'],

0 commit comments

Comments
 (0)