/* tslint:disable */
/* eslint-disable */
/**
 * Stacks 2.0 Blockchain API
 * This is the documentation for the Stacks 2.0 Blockchain API.  It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API.  [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/614feab5c108d292bffa#?env%5BStacks%20Blockchain%20API%5D=W3sia2V5Ijoic3R4X2FkZHJlc3MiLCJ2YWx1ZSI6IlNUMlRKUkhESE1ZQlE0MTdIRkIwQkRYNDMwVFFBNVBYUlg2NDk1RzFWIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJibG9ja19pZCIsInZhbHVlIjoiMHgiLCJlbmFibGVkIjp0cnVlfSx7ImtleSI6Im9mZnNldCIsInZhbHVlIjoiMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfdHgiLCJ2YWx1ZSI6IjIwMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfYmxvY2siLCJ2YWx1ZSI6IjMwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJ0eF9pZCIsInZhbHVlIjoiMHg1NDA5MGMxNmE3MDJiNzUzYjQzMTE0ZTg4NGJjMTlhODBhNzk2MzhmZDQ0OWE0MGY4MDY4Y2RmMDAzY2RlNmUwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9pZCIsInZhbHVlIjoiU1RKVFhFSlBKUFBWRE5BOUIwNTJOU1JSQkdRQ0ZOS1ZTMTc4VkdIMS5oZWxsb193b3JsZFxuIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJidGNfYWRkcmVzcyIsInZhbHVlIjoiYWJjIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9hZGRyZXNzIiwidmFsdWUiOiJTVEpUWEVKUEpQUFZETkE5QjA1Mk5TUlJCR1FDRk5LVlMxNzhWR0gxIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9uYW1lIiwidmFsdWUiOiJoZWxsb193b3JsZCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWFwIiwidmFsdWUiOiJzdG9yZSIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWV0aG9kIiwidmFsdWUiOiJnZXQtdmFsdWUiLCJlbmFibGVkIjp0cnVlfV0=) 
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
/**
 * Get Proof of Transfer (PoX) information
 * @export
 * @interface CoreNodePoxResponse
 */
export interface CoreNodePoxResponse {
    /**
     * 
     * @type {string}
     * @memberof CoreNodePoxResponse
     */
    contract_id: string;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    first_burnchain_block_height: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    min_amount_ustx: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    registration_window_length: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    rejection_fraction: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    reward_cycle_id: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    reward_cycle_length: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    rejection_votes_left_required: number;
    /**
     * 
     * @type {number}
     * @memberof CoreNodePoxResponse
     */
    total_liquid_supply_ustx: number;
}

export function CoreNodePoxResponseFromJSON(json: any): CoreNodePoxResponse {
    return CoreNodePoxResponseFromJSONTyped(json, false);
}

export function CoreNodePoxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoreNodePoxResponse {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'contract_id': json['contract_id'],
        'first_burnchain_block_height': json['first_burnchain_block_height'],
        'min_amount_ustx': json['min_amount_ustx'],
        'registration_window_length': json['registration_window_length'],
        'rejection_fraction': json['rejection_fraction'],
        'reward_cycle_id': json['reward_cycle_id'],
        'reward_cycle_length': json['reward_cycle_length'],
        'rejection_votes_left_required': json['rejection_votes_left_required'],
        'total_liquid_supply_ustx': json['total_liquid_supply_ustx'],
    };
}

export function CoreNodePoxResponseToJSON(value?: CoreNodePoxResponse | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'contract_id': value.contract_id,
        'first_burnchain_block_height': value.first_burnchain_block_height,
        'min_amount_ustx': value.min_amount_ustx,
        'registration_window_length': value.registration_window_length,
        'rejection_fraction': value.rejection_fraction,
        'reward_cycle_id': value.reward_cycle_id,
        'reward_cycle_length': value.reward_cycle_length,
        'rejection_votes_left_required': value.rejection_votes_left_required,
        'total_liquid_supply_ustx': value.total_liquid_supply_ustx,
    };
}


