@@ -1621,6 +1621,15 @@ export interface UpdatePackContentArgs {
1621
1621
export interface UpdatePackContentReturn {
1622
1622
merkleRoot : string
1623
1623
}
1624
+ export interface GetRevealTxDataArgs {
1625
+ contractAddress : string
1626
+ chainId : number
1627
+ userAddress : string
1628
+ }
1629
+
1630
+ export interface GetRevealTxDataReturn {
1631
+ txData : string
1632
+ }
1624
1633
export interface CheckoutOptionsPrimaryArgs {
1625
1634
chainId : number
1626
1635
wallet : string
@@ -3033,19 +3042,24 @@ export class API implements API {
3033
3042
throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3034
3043
} )
3035
3044
}
3036
-
3037
- checkoutOptionsSecondary = ( args : CheckoutOptionsSecondaryArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CheckoutOptionsSecondaryReturn > => {
3038
- return this . fetch (
3039
- this . url ( 'CheckoutOptionsSecondary' ) ,
3040
- createHTTPRequest ( args , headers , signal ) ) . then ( ( res ) => {
3041
- return buildResponse ( res ) . then ( _data => {
3042
- return {
3043
- options : < CheckoutOptions > ( _data . options ) ,
3044
- }
3045
- } )
3046
- } , ( error ) => {
3047
- throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3048
- } )
3045
+
3046
+ checkoutOptionsPrimary = (
3047
+ args : CheckoutOptionsPrimaryArgs ,
3048
+ headers ?: object ,
3049
+ signal ?: AbortSignal
3050
+ ) : Promise < CheckoutOptionsPrimaryReturn > => {
3051
+ return this . fetch ( this . url ( 'CheckoutOptionsPrimary' ) , createHTTPRequest ( args , headers , signal ) ) . then (
3052
+ res => {
3053
+ return buildResponse ( res ) . then ( _data => {
3054
+ return {
3055
+ options : < CheckoutOptions > _data . options
3056
+ }
3057
+ } )
3058
+ } ,
3059
+ error => {
3060
+ throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
3061
+ }
3062
+ )
3049
3063
}
3050
3064
3051
3065
checkoutOptionsSecondary = (
0 commit comments