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'
1212export 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+
140147export 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
387394export interface ExecuteIntentRequest {
388395 intentId : string
396+ depositTransactionHash : string
389397 transferTransactionHash : string
390398}
391399
@@ -421,7 +429,7 @@ export interface GetIntentResponse {
421429
422430export 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
785793const 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