/* tslint:disable */ /* eslint-disable */ /** * barkd REST API * A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis. * * The version of the OpenAPI document: 0.6.1 * Contact: hello@second.tech * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Fees for boarding the ark. * @export * @interface BoardFees */ export interface BoardFees { /** * A fee applied to every transaction regardless of value. * @type {number} * @memberof BoardFees */ baseFeeSat: number; /** * Minimum fee to charge. * @type {number} * @memberof BoardFees */ minFeeSat: number; /** * PPM (parts per million) fee rate to apply based on the value of the transaction. * @type {number} * @memberof BoardFees */ ppm: number; } /** * Check if a given object implements the BoardFees interface. */ export function instanceOfBoardFees(value: object): value is BoardFees { if (!('baseFeeSat' in value) || value['baseFeeSat'] === undefined) return false; if (!('minFeeSat' in value) || value['minFeeSat'] === undefined) return false; if (!('ppm' in value) || value['ppm'] === undefined) return false; return true; } export function BoardFeesFromJSON(json: any): BoardFees { return BoardFeesFromJSONTyped(json, false); } export function BoardFeesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoardFees { if (json == null) { return json; } return { 'baseFeeSat': json['base_fee_sat'], 'minFeeSat': json['min_fee_sat'], 'ppm': json['ppm'], }; } export function BoardFeesToJSON(json: any): BoardFees { return BoardFeesToJSONTyped(json, false); } export function BoardFeesToJSONTyped(value?: BoardFees | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'base_fee_sat': value['baseFeeSat'], 'min_fee_sat': value['minFeeSat'], 'ppm': value['ppm'], }; }