UNPKG

@circle-fin/circle-sdk

Version:
70 lines (69 loc) 2.41 kB
/** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { FiatMoneyUsd } from "./fiat-money-usd"; import { NetworkFeeQuote } from "./network-fee-quote"; import { PresignDomain } from "./presign-domain"; import { PresignMessage } from "./presign-message"; import { PresignMessageTypes } from "./presign-message-types"; /** * The typed data * @export * @interface PresignResponseTypedData */ export interface PresignResponseTypedData { /** * * @type {PresignDomain} * @memberof PresignResponseTypedData */ domain: PresignDomain; /** * * @type {PresignMessage} * @memberof PresignResponseTypedData */ message: PresignMessage; /** * * @type {FiatMoneyUsd} * @memberof PresignResponseTypedData */ totalAmount: FiatMoneyUsd; /** * Who pays for network fee. Can only be endUser or merchant. If it\'s the endUser, totalAmount includes the network fee and networkFeeQuote isn\'t null; If it\'s the merchant, totalAmount doesn\'t include network fee and networkFeeQuote is null. * @type {string} * @memberof PresignResponseTypedData */ feeChargeModel: PresignResponseTypedDataFeeChargeModelEnum; /** * * @type {NetworkFeeQuote} * @memberof PresignResponseTypedData */ networkFeeQuote?: NetworkFeeQuote; /** * * @type {PresignMessageTypes} * @memberof PresignResponseTypedData */ types: PresignMessageTypes; /** * Type of the message * @type {string} * @memberof PresignResponseTypedData */ primaryType: PresignResponseTypedDataPrimaryTypeEnum; } export declare const PresignResponseTypedDataFeeChargeModelEnum: { readonly EndUser: "endUser"; readonly Merchant: "merchant"; }; export declare type PresignResponseTypedDataFeeChargeModelEnum = typeof PresignResponseTypedDataFeeChargeModelEnum[keyof typeof PresignResponseTypedDataFeeChargeModelEnum]; export declare const PresignResponseTypedDataPrimaryTypeEnum: { readonly TransferWithAuthorization: "TransferWithAuthorization"; readonly Eip712Domain: "EIP712Domain"; }; export declare type PresignResponseTypedDataPrimaryTypeEnum = typeof PresignResponseTypedDataPrimaryTypeEnum[keyof typeof PresignResponseTypedDataPrimaryTypeEnum];