1
1
/* eslint-disable */
2
- // sequence-api v0.4.0 01e4e5d5ce5e7b85514f2db2fb5b346229db727c
2
+ // sequence-api v0.4.0 6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd
3
3
// --
4
4
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
5
5
//
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
16
16
export const WebRPCSchemaVersion = 'v0.4.0'
17
17
18
18
// Schema hash generated from your RIDL schema
19
- export const WebRPCSchemaHash = '01e4e5d5ce5e7b85514f2db2fb5b346229db727c '
19
+ export const WebRPCSchemaHash = '6b7fcc42d4305cdb3ebaf2b4a17b5c81da3b9edd '
20
20
21
21
type WebrpcGenVersions = {
22
22
webrpcGenVersion : string
@@ -240,10 +240,20 @@ export interface IntentConfig {
240
240
mainSigner : string
241
241
calls : Array < IntentCallsPayload >
242
242
preconditions : Array < IntentPrecondition >
243
+ executionStatus ?: string
244
+ metaTxnId ?: string
245
+ txnHash ?: string
243
246
updatedAt ?: string
244
247
createdAt ?: string
245
248
}
246
249
250
+ export interface MetaTxnReceipt {
251
+ metaTxID : string
252
+ status : string
253
+ txnReceipt ?: string
254
+ revertReason ?: string
255
+ }
256
+
247
257
export interface InviteCode {
248
258
usesLeft : number
249
259
ownerAccount : string
@@ -1271,6 +1281,23 @@ export interface API {
1271
1281
*/
1272
1282
getCCTPTransfer ( args : GetCCTPTransferArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetCCTPTransferReturn >
1273
1283
queueCCTPTransfer ( args : QueueCCTPTransferArgs , headers ?: object , signal ?: AbortSignal ) : Promise < QueueCCTPTransferReturn >
1284
+ /**
1285
+ *
1286
+ * Intent Machine Worker
1287
+ *
1288
+ */
1289
+ queueIntentConfigExecution (
1290
+ args : QueueIntentConfigExecutionArgs ,
1291
+ headers ?: object ,
1292
+ signal ?: AbortSignal
1293
+ ) : Promise < QueueIntentConfigExecutionReturn >
1294
+ getIntentConfigExecutionStatus (
1295
+ args : GetIntentConfigExecutionStatusArgs ,
1296
+ headers ?: object ,
1297
+ signal ?: AbortSignal
1298
+ ) : Promise < GetIntentConfigExecutionStatusReturn >
1299
+ listIntentConfigs ( args : ListIntentConfigsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListIntentConfigsReturn >
1300
+ queueMetaTxnReceipt ( args : QueueMetaTxnReceiptArgs , headers ?: object , signal ?: AbortSignal ) : Promise < QueueMetaTxnReceiptReturn >
1274
1301
}
1275
1302
1276
1303
export interface PingArgs { }
@@ -1996,6 +2023,36 @@ export interface QueueCCTPTransferArgs {
1996
2023
export interface QueueCCTPTransferReturn {
1997
2024
transfer : CCTPTransfer
1998
2025
}
2026
+ export interface QueueIntentConfigExecutionArgs {
2027
+ intentConfigId : number
2028
+ }
2029
+
2030
+ export interface QueueIntentConfigExecutionReturn {
2031
+ status : boolean
2032
+ }
2033
+ export interface GetIntentConfigExecutionStatusArgs {
2034
+ intentConfigId : number
2035
+ }
2036
+
2037
+ export interface GetIntentConfigExecutionStatusReturn {
2038
+ executionStatus : string
2039
+ }
2040
+ export interface ListIntentConfigsArgs {
2041
+ page ?: Page
2042
+ executionStatus ?: string
2043
+ }
2044
+
2045
+ export interface ListIntentConfigsReturn {
2046
+ page : Page
2047
+ intentConfigs : Array < IntentConfig >
2048
+ }
2049
+ export interface QueueMetaTxnReceiptArgs {
2050
+ metaTxID : string
2051
+ }
2052
+
2053
+ export interface QueueMetaTxnReceiptReturn {
2054
+ status : boolean
2055
+ }
1999
2056
2000
2057
//
2001
2058
// Client
@@ -3561,6 +3618,79 @@ export class API implements API {
3561
3618
}
3562
3619
)
3563
3620
}
3621
+
3622
+ queueIntentConfigExecution = (
3623
+ args : QueueIntentConfigExecutionArgs ,
3624
+ headers ?: object ,
3625
+ signal ?: AbortSignal
3626
+ ) : Promise < QueueIntentConfigExecutionReturn > => {
3627
+ return this . fetch ( this . url ( 'QueueIntentConfigExecution' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3628
+ res => {
3629
+ return buildResponse ( res ) . then ( _data => {
3630
+ return {
3631
+ status : < boolean > _data . status
3632
+ }
3633
+ } )
3634
+ } ,
3635
+ error => {
3636
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3637
+ }
3638
+ )
3639
+ }
3640
+
3641
+ getIntentConfigExecutionStatus = (
3642
+ args : GetIntentConfigExecutionStatusArgs ,
3643
+ headers ?: object ,
3644
+ signal ?: AbortSignal
3645
+ ) : Promise < GetIntentConfigExecutionStatusReturn > => {
3646
+ return this . fetch ( this . url ( 'GetIntentConfigExecutionStatus' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3647
+ res => {
3648
+ return buildResponse ( res ) . then ( _data => {
3649
+ return {
3650
+ executionStatus : < string > _data . executionStatus
3651
+ }
3652
+ } )
3653
+ } ,
3654
+ error => {
3655
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3656
+ }
3657
+ )
3658
+ }
3659
+
3660
+ listIntentConfigs = ( args : ListIntentConfigsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ListIntentConfigsReturn > => {
3661
+ return this . fetch ( this . url ( 'ListIntentConfigs' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3662
+ res => {
3663
+ return buildResponse ( res ) . then ( _data => {
3664
+ return {
3665
+ page : < Page > _data . page ,
3666
+ intentConfigs : < Array < IntentConfig > > _data . intentConfigs
3667
+ }
3668
+ } )
3669
+ } ,
3670
+ error => {
3671
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3672
+ }
3673
+ )
3674
+ }
3675
+
3676
+ queueMetaTxnReceipt = (
3677
+ args : QueueMetaTxnReceiptArgs ,
3678
+ headers ?: object ,
3679
+ signal ?: AbortSignal
3680
+ ) : Promise < QueueMetaTxnReceiptReturn > => {
3681
+ return this . fetch ( this . url ( 'QueueMetaTxnReceipt' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3682
+ res => {
3683
+ return buildResponse ( res ) . then ( _data => {
3684
+ return {
3685
+ status : < boolean > _data . status
3686
+ }
3687
+ } )
3688
+ } ,
3689
+ error => {
3690
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3691
+ }
3692
+ )
3693
+ }
3564
3694
}
3565
3695
3566
3696
const createHTTPRequest = ( body : object = { } , headers : object = { } , signal : AbortSignal | null = null ) : object => {
0 commit comments