1
1
/* eslint-disable */
2
- // sequence-api v0.4.0 e4239870ee5f32736b2f3cc35ad37abb59d7fe85
2
+ // sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
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 = "e4239870ee5f32736b2f3cc35ad37abb59d7fe85"
19
+ export const WebRPCSchemaHash = '1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa'
20
20
21
21
type WebrpcGenVersions = {
22
22
webrpcGenVersion : string
@@ -1026,9 +1026,22 @@ export interface API {
1026
1026
getPack ( args : GetPackArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetPackReturn >
1027
1027
deletePack ( args : DeletePackArgs , headers ?: object , signal ?: AbortSignal ) : Promise < DeletePackReturn >
1028
1028
updatePackContent ( args : UpdatePackContentArgs , headers ?: object , signal ?: AbortSignal ) : Promise < UpdatePackContentReturn >
1029
- checkoutOptionsPrimary ( args : CheckoutOptionsPrimaryArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CheckoutOptionsPrimaryReturn >
1030
- checkoutOptionsSecondary ( args : CheckoutOptionsSecondaryArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CheckoutOptionsSecondaryReturn >
1031
- checkoutOptionsGetTransakContractID ( args : CheckoutOptionsGetTransakContractIDArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CheckoutOptionsGetTransakContractIDReturn >
1029
+ getRevealTxData ( args : GetRevealTxDataArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetRevealTxDataReturn >
1030
+ checkoutOptionsPrimary (
1031
+ args : CheckoutOptionsPrimaryArgs ,
1032
+ headers ?: object ,
1033
+ signal ?: AbortSignal
1034
+ ) : Promise < CheckoutOptionsPrimaryReturn >
1035
+ checkoutOptionsSecondary (
1036
+ args : CheckoutOptionsSecondaryArgs ,
1037
+ headers ?: object ,
1038
+ signal ?: AbortSignal
1039
+ ) : Promise < CheckoutOptionsSecondaryReturn >
1040
+ checkoutOptionsGetTransakContractID (
1041
+ args : CheckoutOptionsGetTransakContractIDArgs ,
1042
+ headers ?: object ,
1043
+ signal ?: AbortSignal
1044
+ ) : Promise < CheckoutOptionsGetTransakContractIDReturn >
1032
1045
}
1033
1046
1034
1047
export interface PingArgs { }
@@ -1620,16 +1633,14 @@ export interface UpdatePackContentArgs {
1620
1633
export interface UpdatePackContentReturn {
1621
1634
merkleRoot : string
1622
1635
}
1623
- export interface CheckoutOptionsPrimaryArgs {
1624
- chainId : number
1625
- wallet : string
1636
+ export interface GetRevealTxDataArgs {
1626
1637
contractAddress : string
1627
- collectionAddress : string
1628
- params : Array < CheckoutOptionsPrimaryParams >
1638
+ chainId : number
1639
+ userAddress : string
1629
1640
}
1630
1641
1631
- export interface CheckoutOptionsPrimaryReturn {
1632
- options : CheckoutOptions
1642
+ export interface GetRevealTxDataReturn {
1643
+ txData : string
1633
1644
}
1634
1645
export interface CheckoutOptionsPrimaryArgs {
1635
1646
chainId : number
@@ -1640,7 +1651,7 @@ export interface CheckoutOptionsPrimaryArgs {
1640
1651
}
1641
1652
1642
1653
export interface CheckoutOptionsPrimaryReturn {
1643
- options : CheckoutOptions
1654
+ options : CheckoutOptions
1644
1655
}
1645
1656
export interface CheckoutOptionsSecondaryArgs {
1646
1657
chainId : number
@@ -2995,33 +3006,39 @@ export class API implements API {
2995
3006
}
2996
3007
)
2997
3008
}
2998
-
2999
- checkoutOptionsPrimary = ( args : CheckoutOptionsPrimaryArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CheckoutOptionsPrimaryReturn > => {
3000
- return this . fetch (
3001
- this . url ( 'CheckoutOptionsPrimary' ) ,
3002
- createHTTPRequest ( args , headers , signal ) ) . then ( ( res ) => {
3003
- return buildResponse ( res ) . then ( _data => {
3004
- return {
3005
- options : < CheckoutOptions > ( _data . options ) ,
3006
- }
3007
- } )
3008
- } , ( error ) => {
3009
- throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3010
- } )
3011
- }
3012
-
3013
- checkoutOptionsSecondary = ( args : CheckoutOptionsSecondaryArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CheckoutOptionsSecondaryReturn > => {
3014
- return this . fetch (
3015
- this . url ( 'CheckoutOptionsSecondary' ) ,
3016
- createHTTPRequest ( args , headers , signal ) ) . then ( ( res ) => {
3017
- return buildResponse ( res ) . then ( _data => {
3018
- return {
3019
- options : < CheckoutOptions > ( _data . options ) ,
3020
- }
3021
- } )
3022
- } , ( error ) => {
3023
- throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3024
- } )
3009
+
3010
+ getRevealTxData = ( args : GetRevealTxDataArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetRevealTxDataReturn > => {
3011
+ return this . fetch ( this . url ( 'GetRevealTxData' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3012
+ res => {
3013
+ return buildResponse ( res ) . then ( _data => {
3014
+ return {
3015
+ txData : < string > _data . txData
3016
+ }
3017
+ } )
3018
+ } ,
3019
+ error => {
3020
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3021
+ }
3022
+ )
3023
+ }
3024
+
3025
+ checkoutOptionsPrimary = (
3026
+ args : CheckoutOptionsPrimaryArgs ,
3027
+ headers ?: object ,
3028
+ signal ?: AbortSignal
3029
+ ) : Promise < CheckoutOptionsPrimaryReturn > => {
3030
+ return this . fetch ( this . url ( 'CheckoutOptionsPrimary' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3031
+ res => {
3032
+ return buildResponse ( res ) . then ( _data => {
3033
+ return {
3034
+ options : < CheckoutOptions > _data . options
3035
+ }
3036
+ } )
3037
+ } ,
3038
+ error => {
3039
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3040
+ }
3041
+ )
3025
3042
}
3026
3043
3027
3044
checkoutOptionsSecondary = (
0 commit comments