@@ -1621,6 +1621,15 @@ export interface UpdatePackContentArgs {
16211621export interface UpdatePackContentReturn {
16221622 merkleRoot : string
16231623}
1624+ export interface GetRevealTxDataArgs {
1625+ contractAddress : string
1626+ chainId : number
1627+ userAddress : string
1628+ }
1629+
1630+ export interface GetRevealTxDataReturn {
1631+ txData : string
1632+ }
16241633export interface CheckoutOptionsPrimaryArgs {
16251634 chainId : number
16261635 wallet : string
@@ -3033,19 +3042,24 @@ export class API implements API {
30333042 throw WebrpcRequestFailedError . new ( { cause : `fetch(): ${ error . message || '' } ` } )
30343043 } )
30353044 }
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+ )
30493063 }
30503064
30513065 checkoutOptionsSecondary = (
0 commit comments