Skip to content

Commit 7cfbb9b

Browse files
committed
[AUTOMATED] Update: proto/clients/trails-api.gen.ts
1 parent 971b133 commit 7cfbb9b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable */
2-
// trails-api v1.0.0 637d853041f61166b4ffb5d6fb879fce563c45a8
2+
// trails-api v1.0.0 05ed598bed12799bc48ae5315179931d7f262790
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 = '637d853041f61166b4ffb5d6fb879fce563c45a8'
15+
export const WebrpcSchemaHash = '05ed598bed12799bc48ae5315179931d7f262790'
1616

1717
//
1818
// Client interface
@@ -126,6 +126,7 @@ export interface Intent {
126126
originIntentAddress: string
127127
destinationIntentAddress: string
128128
destinationSalt: bigint
129+
depositTransaction: DepositTransaction
129130
calls: Array<IntentCalls>
130131
preconditions: Array<IntentPrecondition>
131132
metaTxns: Array<MetaTxn>
@@ -137,6 +138,12 @@ export interface Intent {
137138
createdAt?: string
138139
}
139140

141+
export interface DepositTransaction {
142+
toAddress: string
143+
tokenAddress: string
144+
amount: bigint
145+
}
146+
140147
export interface IntentCalls {
141148
chainId: number
142149
space?: bigint
@@ -180,8 +187,8 @@ export interface IntentReceipt {
180187
ownerAddress: string
181188
originChainId: number
182189
destinationChainId: number
183-
transferTransactionHash: string
184-
transferTransactionStatus: TransactionStatus
190+
depositTransactionHash: string
191+
depositTransactionStatus: TransactionStatus
185192
originTransaction: IntentTransaction
186193
destinationTransaction: IntentTransaction
187194
processedAt?: string
@@ -386,6 +393,7 @@ export interface CommitIntentResponse {
386393

387394
export interface ExecuteIntentRequest {
388395
intentId: string
396+
depositTransactionHash: string
389397
transferTransactionHash: string
390398
}
391399

@@ -421,7 +429,7 @@ export interface GetIntentResponse {
421429

422430
export interface SearchIntentsRequest {
423431
byOriginIntentAddress?: string
424-
byTransferTransactionHash?: string
432+
byDepositTransactionHash?: string
425433
byOwnerAddress?: string
426434
}
427435

@@ -784,6 +792,7 @@ export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response
784792

785793
const BIG_INT_FIELDS: { [typ: string]: (string | [string, string])[] } = {
786794
CommitIntentRequest: [['intent', 'Intent']],
795+
DepositTransaction: ['amount'],
787796
GetIntentEntryTransactionRequest: [['params', 'GetIntentEntrypointDepositParams']],
788797
GetIntentEntrypointDepositFeeOptionsParams: ['amount'],
789798
GetIntentEntrypointDepositParams: ['amount', 'permitAmount', 'feeAmount'],
@@ -794,6 +803,7 @@ const BIG_INT_FIELDS: { [typ: string]: (string | [string, string])[] } = {
794803
Intent: [
795804
['quoteRequest', 'QuoteIntentRequest'],
796805
'destinationSalt',
806+
['depositTransaction', 'DepositTransaction'],
797807
['calls', 'IntentCalls[]'],
798808
['quote', 'IntentProviderQuote'],
799809
['fees', 'IntentFees']

0 commit comments

Comments
 (0)