First commit
This commit is contained in:
commit
2a7bee5c81
30
api.d.ts
vendored
Normal file
30
api.d.ts
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
export * from './apis/addresses-api';
|
||||||
|
export * from './apis/assets-api';
|
||||||
|
export * from './apis/byron-addresses-api';
|
||||||
|
export * from './apis/byron-assets-api';
|
||||||
|
export * from './apis/byron-coin-selections-api';
|
||||||
|
export * from './apis/byron-migrations-api';
|
||||||
|
export * from './apis/byron-transactions-api';
|
||||||
|
export * from './apis/byron-wallets-api';
|
||||||
|
export * from './apis/coin-selections-api';
|
||||||
|
export * from './apis/experimental-api';
|
||||||
|
export * from './apis/keys-api';
|
||||||
|
export * from './apis/migrations-api';
|
||||||
|
export * from './apis/network-api';
|
||||||
|
export * from './apis/proxy-api';
|
||||||
|
export * from './apis/settings-api';
|
||||||
|
export * from './apis/stake-pools-api';
|
||||||
|
export * from './apis/transactions-api';
|
||||||
|
export * from './apis/utils-api';
|
||||||
|
export * from './apis/wallets-api';
|
45
api.js
Normal file
45
api.js
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
"use strict";
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||||
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
__exportStar(require("./apis/addresses-api"), exports);
|
||||||
|
__exportStar(require("./apis/assets-api"), exports);
|
||||||
|
__exportStar(require("./apis/byron-addresses-api"), exports);
|
||||||
|
__exportStar(require("./apis/byron-assets-api"), exports);
|
||||||
|
__exportStar(require("./apis/byron-coin-selections-api"), exports);
|
||||||
|
__exportStar(require("./apis/byron-migrations-api"), exports);
|
||||||
|
__exportStar(require("./apis/byron-transactions-api"), exports);
|
||||||
|
__exportStar(require("./apis/byron-wallets-api"), exports);
|
||||||
|
__exportStar(require("./apis/coin-selections-api"), exports);
|
||||||
|
__exportStar(require("./apis/experimental-api"), exports);
|
||||||
|
__exportStar(require("./apis/keys-api"), exports);
|
||||||
|
__exportStar(require("./apis/migrations-api"), exports);
|
||||||
|
__exportStar(require("./apis/network-api"), exports);
|
||||||
|
__exportStar(require("./apis/proxy-api"), exports);
|
||||||
|
__exportStar(require("./apis/settings-api"), exports);
|
||||||
|
__exportStar(require("./apis/stake-pools-api"), exports);
|
||||||
|
__exportStar(require("./apis/transactions-api"), exports);
|
||||||
|
__exportStar(require("./apis/utils-api"), exports);
|
||||||
|
__exportStar(require("./apis/wallets-api"), exports);
|
||||||
|
//# sourceMappingURL=api.js.map
|
1
api.js.map
Normal file
1
api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"api.js","sourceRoot":"","sources":["../api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,uDAAoC;AACpC,oDAAiC;AACjC,6DAA0C;AAC1C,0DAAuC;AACvC,mEAAgD;AAChD,8DAA2C;AAC3C,gEAA6C;AAC7C,2DAAwC;AACxC,6DAA0C;AAC1C,0DAAuC;AACvC,kDAA+B;AAC/B,wDAAqC;AACrC,qDAAkC;AAClC,mDAAgC;AAChC,sDAAmC;AACnC,yDAAsC;AACtC,0DAAuC;AACvC,mDAAgC;AAChC,qDAAkC"}
|
147
apis/addresses-api.d.ts
vendored
Normal file
147
apis/addresses-api.d.ts
vendored
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiAddressData } from '../models';
|
||||||
|
import { InlineResponse20014 } from '../models';
|
||||||
|
import { ApiAddress } from '../models';
|
||||||
|
import { AnyAddress } from '../models';
|
||||||
|
/**
|
||||||
|
* AddressesApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const AddressesApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
inspectAddress: (addressId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAddresses: (walletId: string, state?: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAnyAddress: (body?: ApiAddressData, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AddressesApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const AddressesApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
inspectAddress(addressId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse20014>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAddresses(walletId: string, state?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiAddress>>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAnyAddress(body?: ApiAddressData, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnyAddress>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AddressesApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const AddressesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
inspectAddress(addressId: string, options?: any): AxiosPromise<InlineResponse20014>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAddresses(walletId: string, state?: string, options?: any): AxiosPromise<Array<ApiAddress>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAnyAddress(body?: ApiAddressData, options?: any): AxiosPromise<AnyAddress>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AddressesApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class AddressesApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class AddressesApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AddressesApi
|
||||||
|
*/
|
||||||
|
inspectAddress(addressId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse20014>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AddressesApi
|
||||||
|
*/
|
||||||
|
listAddresses(walletId: string, state?: string, options?: any): Promise<import("axios").AxiosResponse<ApiAddress[]>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AddressesApi
|
||||||
|
*/
|
||||||
|
postAnyAddress(body?: ApiAddressData, options?: any): Promise<import("axios").AxiosResponse<AnyAddress>>;
|
||||||
|
}
|
405
apis/addresses-api.js
Normal file
405
apis/addresses-api.js
Normal file
@ -0,0 +1,405 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.AddressesApi = exports.AddressesApiFactory = exports.AddressesApiFp = exports.AddressesApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* AddressesApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.AddressesApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
inspectAddress: function (addressId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'addressId' is not null or undefined
|
||||||
|
if (addressId === null || addressId === undefined) {
|
||||||
|
throw new base_1.RequiredError('addressId', 'Required parameter addressId was null or undefined when calling inspectAddress.');
|
||||||
|
}
|
||||||
|
localVarPath = "/addresses/{addressId}".replace("{" + 'addressId' + "}", encodeURIComponent(String(addressId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAddresses: function (walletId, state, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling listAddresses.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/addresses".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (state !== undefined) {
|
||||||
|
localVarQueryParameter['state'] = state;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAnyAddress: function (body, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/addresses";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AddressesApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.AddressesApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
inspectAddress: function (addressId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.AddressesApiAxiosParamCreator(configuration).inspectAddress(addressId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAddresses: function (walletId, state, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.AddressesApiAxiosParamCreator(configuration).listAddresses(walletId, state, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAnyAddress: function (body, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.AddressesApiAxiosParamCreator(configuration).postAnyAddress(body, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AddressesApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.AddressesApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
inspectAddress: function (addressId, options) {
|
||||||
|
return exports.AddressesApiFp(configuration)
|
||||||
|
.inspectAddress(addressId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAddresses: function (walletId, state, options) {
|
||||||
|
return exports.AddressesApiFp(configuration)
|
||||||
|
.listAddresses(walletId, state, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAnyAddress: function (body, options) {
|
||||||
|
return exports.AddressesApiFp(configuration)
|
||||||
|
.postAnyAddress(body, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AddressesApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class AddressesApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var AddressesApi = /** @class */ (function (_super) {
|
||||||
|
__extends(AddressesApi, _super);
|
||||||
|
function AddressesApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Give useful information about the structure of a given address.
|
||||||
|
* @summary Inspect Address
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AddressesApi
|
||||||
|
*/
|
||||||
|
AddressesApi.prototype.inspectAddress = function (addressId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.AddressesApiFp(this.configuration)
|
||||||
|
.inspectAddress(addressId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AddressesApi
|
||||||
|
*/
|
||||||
|
AddressesApi.prototype.listAddresses = function (walletId, state, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.AddressesApiFp(this.configuration)
|
||||||
|
.listAddresses(walletId, state, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Construct any address by specyfying credential for payment or stake. In Cardano, Addresses are made of three parts: ``` *---------*---------*-------* | NETWORK | PAYMENT | STAKE | *---------*---------*-------* ``` The `NETWORK` part allows for distinguishing addresses between different networks like the mainnet or the testnet. It is implicitly handled by the server without you having to worry about it. The `PAYMENT` and `STAKE` parts however can be constructed similarly, using either: - A public key - A script The script itself is either constructed out of a public key, or one of the three following primitives: - all - any - some Each of which contains one or more script(s) that can be either keys or primitives, and so on. Schematically: ``` ┏─────────┓ SCRIPT = ──┬───────────────────────┤ pub key ├─────────────────────┬── │ ┗─────────┛ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭─────╮ ╭────────╮ │ ├──┤ ALL ├───┤ SCRIPT ├─┬───────────────────────────────┤ │ ╰─────╯ ^ ╰────────╯ │ │ │ │ ╭───╮ │ │ │ └───┤ , ├────┘ │ │ ╰───╯ │ │ ╭──────╮ ╭──────────╮ ┏───┓ ╭──────╮ ╭────────╮ │ └──┤ SOME ├─┤ AT_LEAST ├─┤ n ├─┤ FROM ├───┤ SCRIPT ├─┬──┘ ╰──────╯ ╰──────────╯ ┗───┛ ╰──────╯ ^ ╰────────╯ │ │ ╭───╮ │ └───┤ , ├────┘ ╰───╯ ```
|
||||||
|
* @summary Construct Address
|
||||||
|
* @param {ApiAddressData} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AddressesApi
|
||||||
|
*/
|
||||||
|
AddressesApi.prototype.postAnyAddress = function (body, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.AddressesApiFp(this.configuration)
|
||||||
|
.postAnyAddress(body, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return AddressesApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.AddressesApi = AddressesApi;
|
||||||
|
//# sourceMappingURL=addresses-api.js.map
|
1
apis/addresses-api.js.map
Normal file
1
apis/addresses-api.js.map
Normal file
File diff suppressed because one or more lines are too long
153
apis/assets-api.d.ts
vendored
Normal file
153
apis/assets-api.d.ts
vendored
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { InlineResponse2001 } from '../models';
|
||||||
|
import { InlineResponse2002 } from '../models';
|
||||||
|
/**
|
||||||
|
* AssetsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const AssetsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAsset: (walletId: string, policyId: string, assetName: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAssetDefault: (walletId: string, policyId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAssets: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AssetsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const AssetsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAsset(walletId: string, policyId: string, assetName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAssetDefault(walletId: string, policyId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAssets(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse2001>>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AssetsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const AssetsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAsset(walletId: string, policyId: string, assetName: string, options?: any): AxiosPromise<InlineResponse2002>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAssetDefault(walletId: string, policyId: string, options?: any): AxiosPromise<InlineResponse2002>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAssets(walletId: string, options?: any): AxiosPromise<Array<InlineResponse2001>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AssetsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class AssetsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class AssetsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AssetsApi
|
||||||
|
*/
|
||||||
|
getAsset(walletId: string, policyId: string, assetName: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AssetsApi
|
||||||
|
*/
|
||||||
|
getAssetDefault(walletId: string, policyId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AssetsApi
|
||||||
|
*/
|
||||||
|
listAssets(walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2001[]>>;
|
||||||
|
}
|
425
apis/assets-api.js
Normal file
425
apis/assets-api.js
Normal file
@ -0,0 +1,425 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.AssetsApi = exports.AssetsApiFactory = exports.AssetsApiFp = exports.AssetsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* AssetsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.AssetsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAsset: function (walletId, policyId, assetName, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getAsset.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'policyId' is not null or undefined
|
||||||
|
if (policyId === null || policyId === undefined) {
|
||||||
|
throw new base_1.RequiredError('policyId', 'Required parameter policyId was null or undefined when calling getAsset.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'assetName' is not null or undefined
|
||||||
|
if (assetName === null || assetName === undefined) {
|
||||||
|
throw new base_1.RequiredError('assetName', 'Required parameter assetName was null or undefined when calling getAsset.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/assets/{policyId}/{assetName}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'policyId' + "}", encodeURIComponent(String(policyId)))
|
||||||
|
.replace("{" + 'assetName' + "}", encodeURIComponent(String(assetName)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAssetDefault: function (walletId, policyId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getAssetDefault.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'policyId' is not null or undefined
|
||||||
|
if (policyId === null || policyId === undefined) {
|
||||||
|
throw new base_1.RequiredError('policyId', 'Required parameter policyId was null or undefined when calling getAssetDefault.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/assets/{policyId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'policyId' + "}", encodeURIComponent(String(policyId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAssets: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling listAssets.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/assets".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AssetsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.AssetsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAsset: function (walletId, policyId, assetName, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.AssetsApiAxiosParamCreator(configuration).getAsset(walletId, policyId, assetName, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAssetDefault: function (walletId, policyId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.AssetsApiAxiosParamCreator(configuration).getAssetDefault(walletId, policyId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAssets: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.AssetsApiAxiosParamCreator(configuration).listAssets(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AssetsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.AssetsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAsset: function (walletId, policyId, assetName, options) {
|
||||||
|
return exports.AssetsApiFp(configuration)
|
||||||
|
.getAsset(walletId, policyId, assetName, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getAssetDefault: function (walletId, policyId, options) {
|
||||||
|
return exports.AssetsApiFp(configuration)
|
||||||
|
.getAssetDefault(walletId, policyId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listAssets: function (walletId, options) {
|
||||||
|
return exports.AssetsApiFp(configuration)
|
||||||
|
.listAssets(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AssetsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class AssetsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var AssetsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(AssetsApi, _super);
|
||||||
|
function AssetsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AssetsApi
|
||||||
|
*/
|
||||||
|
AssetsApi.prototype.getAsset = function (walletId, policyId, assetName, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.AssetsApiFp(this.configuration)
|
||||||
|
.getAsset(walletId, policyId, assetName, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AssetsApi
|
||||||
|
*/
|
||||||
|
AssetsApi.prototype.getAssetDefault = function (walletId, policyId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.AssetsApiFp(this.configuration)
|
||||||
|
.getAssetDefault(walletId, policyId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof AssetsApi
|
||||||
|
*/
|
||||||
|
AssetsApi.prototype.listAssets = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.AssetsApiFp(this.configuration)
|
||||||
|
.listAssets(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return AssetsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.AssetsApi = AssetsApi;
|
||||||
|
//# sourceMappingURL=assets-api.js.map
|
1
apis/assets-api.js.map
Normal file
1
apis/assets-api.js.map
Normal file
File diff suppressed because one or more lines are too long
191
apis/byron-addresses-api.d.ts
vendored
Normal file
191
apis/byron-addresses-api.d.ts
vendored
Normal file
@ -0,0 +1,191 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body15 } from '../models';
|
||||||
|
import { Body16 } from '../models';
|
||||||
|
import { InlineResponse2005 } from '../models';
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronAddressesApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
createAddress: (body: Body16, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddress: (walletId: string, addressId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddresses: (body: Body15, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAddresses: (walletId: string, state?: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronAddressesApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
createAddress(body: Body16, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2005>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddress(walletId: string, addressId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddresses(body: Body15, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAddresses(walletId: string, state?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse2005>>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronAddressesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
createAddress(body: Body16, walletId: string, options?: any): AxiosPromise<InlineResponse2005>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddress(walletId: string, addressId: string, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddresses(body: Body15, walletId: string, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAddresses(walletId: string, state?: string, options?: any): AxiosPromise<Array<InlineResponse2005>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronAddressesApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ByronAddressesApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
createAddress(body: Body16, walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2005>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
importAddress(walletId: string, addressId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
importAddresses(body: Body15, walletId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
listByronAddresses(walletId: string, state?: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2005[]>>;
|
||||||
|
}
|
533
apis/byron-addresses-api.js
Normal file
533
apis/byron-addresses-api.js
Normal file
@ -0,0 +1,533 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ByronAddressesApi = exports.ByronAddressesApiFactory = exports.ByronAddressesApiFp = exports.ByronAddressesApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronAddressesApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
createAddress: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling createAddress.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling createAddress.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/addresses".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddress: function (walletId, addressId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling importAddress.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'addressId' is not null or undefined
|
||||||
|
if (addressId === null || addressId === undefined) {
|
||||||
|
throw new base_1.RequiredError('addressId', 'Required parameter addressId was null or undefined when calling importAddress.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/addresses/{addressId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'addressId' + "}", encodeURIComponent(String(addressId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddresses: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling importAddresses.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling importAddresses.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/addresses".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAddresses: function (walletId, state, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling listByronAddresses.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/addresses".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (state !== undefined) {
|
||||||
|
localVarQueryParameter['state'] = state;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronAddressesApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
createAddress: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAddressesApiAxiosParamCreator(configuration).createAddress(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddress: function (walletId, addressId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAddressesApiAxiosParamCreator(configuration).importAddress(walletId, addressId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddresses: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAddressesApiAxiosParamCreator(configuration).importAddresses(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAddresses: function (walletId, state, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAddressesApiAxiosParamCreator(configuration).listByronAddresses(walletId, state, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronAddressesApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
createAddress: function (body, walletId, options) {
|
||||||
|
return exports.ByronAddressesApiFp(configuration)
|
||||||
|
.createAddress(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddress: function (walletId, addressId, options) {
|
||||||
|
return exports.ByronAddressesApiFp(configuration)
|
||||||
|
.importAddress(walletId, addressId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
importAddresses: function (body, walletId, options) {
|
||||||
|
return exports.ByronAddressesApiFp(configuration)
|
||||||
|
.importAddresses(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAddresses: function (walletId, state, options) {
|
||||||
|
return exports.ByronAddressesApiFp(configuration)
|
||||||
|
.listByronAddresses(walletId, state, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAddressesApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronAddressesApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ByronAddressesApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ByronAddressesApi, _super);
|
||||||
|
function ByronAddressesApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Create Address
|
||||||
|
* @param {Body16} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
ByronAddressesApi.prototype.createAddress = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAddressesApiFp(this.configuration)
|
||||||
|
.createAddress(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Address
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} addressId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
ByronAddressesApi.prototype.importAddress = function (walletId, addressId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAddressesApiFp(this.configuration)
|
||||||
|
.importAddress(walletId, addressId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> ⚠️ This endpoint is available for `random` wallets only. Any attempt to call this endpoint on another type of wallet will result in a `403 Forbidden` error from the server.
|
||||||
|
* @summary Import Addresses
|
||||||
|
* @param {Body15} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
ByronAddressesApi.prototype.importAddresses = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAddressesApiFp(this.configuration)
|
||||||
|
.importAddresses(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known addresses, ordered from newest to oldest for sequential wallets. Arbitrarily ordered for random wallets.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [state] An optional filter on the address state.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAddressesApi
|
||||||
|
*/
|
||||||
|
ByronAddressesApi.prototype.listByronAddresses = function (walletId, state, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAddressesApiFp(this.configuration)
|
||||||
|
.listByronAddresses(walletId, state, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ByronAddressesApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ByronAddressesApi = ByronAddressesApi;
|
||||||
|
//# sourceMappingURL=byron-addresses-api.js.map
|
1
apis/byron-addresses-api.js.map
Normal file
1
apis/byron-addresses-api.js.map
Normal file
File diff suppressed because one or more lines are too long
153
apis/byron-assets-api.d.ts
vendored
Normal file
153
apis/byron-assets-api.d.ts
vendored
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { InlineResponse2001 } from '../models';
|
||||||
|
import { InlineResponse2002 } from '../models';
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronAssetsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAsset: (walletId: string, policyId: string, assetName: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAssetDefault: (walletId: string, policyId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAssets: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronAssetsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAsset(walletId: string, policyId: string, assetName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAssetDefault(walletId: string, policyId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAssets(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse2001>>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronAssetsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAsset(walletId: string, policyId: string, assetName: string, options?: any): AxiosPromise<InlineResponse2002>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAssetDefault(walletId: string, policyId: string, options?: any): AxiosPromise<InlineResponse2002>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAssets(walletId: string, options?: any): AxiosPromise<Array<InlineResponse2001>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronAssetsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ByronAssetsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAssetsApi
|
||||||
|
*/
|
||||||
|
getByronAsset(walletId: string, policyId: string, assetName: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAssetsApi
|
||||||
|
*/
|
||||||
|
getByronAssetDefault(walletId: string, policyId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2002>>;
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAssetsApi
|
||||||
|
*/
|
||||||
|
listByronAssets(walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2001[]>>;
|
||||||
|
}
|
425
apis/byron-assets-api.js
Normal file
425
apis/byron-assets-api.js
Normal file
@ -0,0 +1,425 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ByronAssetsApi = exports.ByronAssetsApiFactory = exports.ByronAssetsApiFp = exports.ByronAssetsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronAssetsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAsset: function (walletId, policyId, assetName, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getByronAsset.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'policyId' is not null or undefined
|
||||||
|
if (policyId === null || policyId === undefined) {
|
||||||
|
throw new base_1.RequiredError('policyId', 'Required parameter policyId was null or undefined when calling getByronAsset.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'assetName' is not null or undefined
|
||||||
|
if (assetName === null || assetName === undefined) {
|
||||||
|
throw new base_1.RequiredError('assetName', 'Required parameter assetName was null or undefined when calling getByronAsset.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/assets/{policyId}/{assetName}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'policyId' + "}", encodeURIComponent(String(policyId)))
|
||||||
|
.replace("{" + 'assetName' + "}", encodeURIComponent(String(assetName)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAssetDefault: function (walletId, policyId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getByronAssetDefault.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'policyId' is not null or undefined
|
||||||
|
if (policyId === null || policyId === undefined) {
|
||||||
|
throw new base_1.RequiredError('policyId', 'Required parameter policyId was null or undefined when calling getByronAssetDefault.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/assets/{policyId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'policyId' + "}", encodeURIComponent(String(policyId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAssets: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling listByronAssets.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/assets".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronAssetsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAsset: function (walletId, policyId, assetName, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAssetsApiAxiosParamCreator(configuration).getByronAsset(walletId, policyId, assetName, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAssetDefault: function (walletId, policyId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAssetsApiAxiosParamCreator(configuration).getByronAssetDefault(walletId, policyId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAssets: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronAssetsApiAxiosParamCreator(configuration).listByronAssets(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronAssetsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAsset: function (walletId, policyId, assetName, options) {
|
||||||
|
return exports.ByronAssetsApiFp(configuration)
|
||||||
|
.getByronAsset(walletId, policyId, assetName, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronAssetDefault: function (walletId, policyId, options) {
|
||||||
|
return exports.ByronAssetsApiFp(configuration)
|
||||||
|
.getByronAssetDefault(walletId, policyId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronAssets: function (walletId, options) {
|
||||||
|
return exports.ByronAssetsApiFp(configuration)
|
||||||
|
.listByronAssets(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronAssetsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronAssetsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ByronAssetsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ByronAssetsApi, _super);
|
||||||
|
function ByronAssetsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Fetch a single asset from its `policy_id` and `asset_name`, with its metadata if any. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {string} assetName
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAssetsApi
|
||||||
|
*/
|
||||||
|
ByronAssetsApi.prototype.getByronAsset = function (walletId, policyId, assetName, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAssetsApiFp(this.configuration)
|
||||||
|
.getByronAsset(walletId, policyId, assetName, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Fetch the the asset from `policy_id` with an empty name. The asset must be associated with the wallet.
|
||||||
|
* @summary Get Asset (empty name)
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} policyId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAssetsApi
|
||||||
|
*/
|
||||||
|
ByronAssetsApi.prototype.getByronAssetDefault = function (walletId, policyId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAssetsApiFp(this.configuration)
|
||||||
|
.getByronAssetDefault(walletId, policyId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* List all assets associated with the wallet, and their metadata if known. An asset is _associated_ with a wallet if it is involved in a transaction of the wallet.
|
||||||
|
* @summary List Assets
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronAssetsApi
|
||||||
|
*/
|
||||||
|
ByronAssetsApi.prototype.listByronAssets = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronAssetsApiFp(this.configuration)
|
||||||
|
.listByronAssets(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ByronAssetsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ByronAssetsApi = ByronAssetsApi;
|
||||||
|
//# sourceMappingURL=byron-assets-api.js.map
|
1
apis/byron-assets-api.js.map
Normal file
1
apis/byron-assets-api.js.map
Normal file
File diff suppressed because one or more lines are too long
79
apis/byron-coin-selections-api.d.ts
vendored
Normal file
79
apis/byron-coin-selections-api.d.ts
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body19 } from '../models';
|
||||||
|
import { InlineResponse2008 } from '../models';
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronCoinSelectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
byronSelectCoins: (body: Body19, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronCoinSelectionsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
byronSelectCoins(body: Body19, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2008>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronCoinSelectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
byronSelectCoins(body: Body19, walletId: string, options?: any): AxiosPromise<InlineResponse2008>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronCoinSelectionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ByronCoinSelectionsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronCoinSelectionsApi
|
||||||
|
*/
|
||||||
|
byronSelectCoins(body: Body19, walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2008>>;
|
||||||
|
}
|
226
apis/byron-coin-selections-api.js
Normal file
226
apis/byron-coin-selections-api.js
Normal file
@ -0,0 +1,226 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ByronCoinSelectionsApi = exports.ByronCoinSelectionsApiFactory = exports.ByronCoinSelectionsApiFp = exports.ByronCoinSelectionsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronCoinSelectionsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
byronSelectCoins: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling byronSelectCoins.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling byronSelectCoins.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/coin-selections/random".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronCoinSelectionsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
byronSelectCoins: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronCoinSelectionsApiAxiosParamCreator(configuration).byronSelectCoins(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronCoinSelectionsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
byronSelectCoins: function (body, walletId, options) {
|
||||||
|
return exports.ByronCoinSelectionsApiFp(configuration)
|
||||||
|
.byronSelectCoins(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronCoinSelectionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronCoinSelectionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ByronCoinSelectionsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ByronCoinSelectionsApi, _super);
|
||||||
|
function ByronCoinSelectionsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>. <b>Note: </b> Not supported for Byron random wallets.
|
||||||
|
* @summary Random
|
||||||
|
* @param {Body19} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronCoinSelectionsApi
|
||||||
|
*/
|
||||||
|
ByronCoinSelectionsApi.prototype.byronSelectCoins = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronCoinSelectionsApiFp(this.configuration)
|
||||||
|
.byronSelectCoins(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ByronCoinSelectionsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ByronCoinSelectionsApi = ByronCoinSelectionsApi;
|
||||||
|
//# sourceMappingURL=byron-coin-selections-api.js.map
|
1
apis/byron-coin-selections-api.js.map
Normal file
1
apis/byron-coin-selections-api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"byron-coin-selections-api.js","sourceRoot":"","sources":["../../apis/byron-coin-selections-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,+BAAgE;AAEhE,yDAAyD;AACzD,aAAa;AACb,gCAMgB;AAQhB;;;GAGG;AACU,QAAA,uCAAuC,GAAG,UACrD,aAA6B;IADwB,iBAiFtD;IA9EC,OAAO;QACL;;;;;;;WAOG;QACH,gBAAgB,EAAE,UAChB,IAAY,EACZ,QAAgB,EAChB,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAEjB,4DAA4D;oBAC5D,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;wBACvC,MAAM,IAAI,oBAAa,CACrB,MAAM,EACN,8EAA8E,CAC/E,CAAA;qBACF;oBACD,gEAAgE;oBAChE,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;wBAC/C,MAAM,IAAI,oBAAa,CACrB,UAAU,EACV,kFAAkF,CACnF,CAAA;qBACF;oBACK,YAAY,GAChB,kDAAkD,CAAC,OAAO,CACxD,MAAI,UAAU,MAAG,EACjB,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CACrC,CAAA;oBAEG,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,MAAM,IACX,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAExC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAA;oBAEtD,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBACK,kBAAkB,GACtB,OAAO,IAAI,KAAK,QAAQ;wBACxB,sBAAsB,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAA;oBACvE,sBAAsB,CAAC,IAAI,GAAG,kBAAkB;wBAC9C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;wBAChD,CAAC,CAAC,IAAI,IAAI,EAAE,CAAA;oBAEd,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,wBAAwB,GAAG,UACtC,aAA6B;IAE7B,OAAO;QACL;;;;;;;WAOG;QACG,gBAAgB,EAAtB,UACE,IAAY,EACZ,QAAgB,EAChB,OAAa;;;;;gCAOa,qBAAM,+CAAuC,CACrE,aAAa,CACd,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAA;;4BAFrC,iBAAiB,GAAG,SAEiB;4BAC3C,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,6BAA6B,GAAG,UAC3C,aAA6B,EAC7B,QAAiB,EACjB,KAAqB;IAErB,OAAO;QACL;;;;;;;WAOG;QACH,gBAAgB,EAAhB,UACE,IAAY,EACZ,QAAgB,EAChB,OAAa;YAEb,OAAO,gCAAwB,CAAC,aAAa,CAAC;iBAC3C,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;iBACzC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;IAA4C,0CAAO;IAAnD;;IAeA,CAAC;IAdC;;;;;;;;OAQG;IACI,iDAAgB,GAAvB,UAAwB,IAAY,EAAE,QAAgB,EAAE,OAAa;QAArE,iBAIC;QAHC,OAAO,gCAAwB,CAAC,IAAI,CAAC,aAAa,CAAC;aAChD,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;aACzC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACH,6BAAC;AAAD,CAAC,AAfD,CAA4C,cAAO,GAelD;AAfY,wDAAsB"}
|
113
apis/byron-migrations-api.d.ts
vendored
Normal file
113
apis/byron-migrations-api.d.ts
vendored
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body20 } from '../models';
|
||||||
|
import { InlineResponse2004 } from '../models';
|
||||||
|
import { InlineResponse2009 } from '../models';
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronMigrationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateByronWallet: (body: Body20, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronMigrationsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2009>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateByronWallet(body: Body20, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse2004>>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronMigrationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo(walletId: string, options?: any): AxiosPromise<InlineResponse2009>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateByronWallet(body: Body20, walletId: string, options?: any): AxiosPromise<Array<InlineResponse2004>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronMigrationsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ByronMigrationsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronMigrationsApi
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo(walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2009>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronMigrationsApi
|
||||||
|
*/
|
||||||
|
migrateByronWallet(body: Body20, walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2004[]>>;
|
||||||
|
}
|
318
apis/byron-migrations-api.js
Normal file
318
apis/byron-migrations-api.js
Normal file
@ -0,0 +1,318 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ByronMigrationsApi = exports.ByronMigrationsApiFactory = exports.ByronMigrationsApiFp = exports.ByronMigrationsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronMigrationsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getByronWalletMigrationInfo.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/migrations".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateByronWallet: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling migrateByronWallet.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling migrateByronWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/migrations".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronMigrationsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronMigrationsApiAxiosParamCreator(configuration).getByronWalletMigrationInfo(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateByronWallet: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronMigrationsApiAxiosParamCreator(configuration).migrateByronWallet(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronMigrationsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWalletMigrationInfo: function (walletId, options) {
|
||||||
|
return exports.ByronMigrationsApiFp(configuration)
|
||||||
|
.getByronWalletMigrationInfo(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateByronWallet: function (body, walletId, options) {
|
||||||
|
return exports.ByronMigrationsApiFp(configuration)
|
||||||
|
.migrateByronWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronMigrationsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronMigrationsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ByronMigrationsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ByronMigrationsApi, _super);
|
||||||
|
function ByronMigrationsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Byron wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronMigrationsApi
|
||||||
|
*/
|
||||||
|
ByronMigrationsApi.prototype.getByronWalletMigrationInfo = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronMigrationsApiFp(this.configuration)
|
||||||
|
.getByronWalletMigrationInfo(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Byron wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another (Shelley or Byron) by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body20} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronMigrationsApi
|
||||||
|
*/
|
||||||
|
ByronMigrationsApi.prototype.migrateByronWallet = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronMigrationsApiFp(this.configuration)
|
||||||
|
.migrateByronWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ByronMigrationsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ByronMigrationsApi = ByronMigrationsApi;
|
||||||
|
//# sourceMappingURL=byron-migrations-api.js.map
|
1
apis/byron-migrations-api.js.map
Normal file
1
apis/byron-migrations-api.js.map
Normal file
File diff suppressed because one or more lines are too long
238
apis/byron-transactions-api.d.ts
vendored
Normal file
238
apis/byron-transactions-api.d.ts
vendored
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body17 } from '../models';
|
||||||
|
import { Body18 } from '../models';
|
||||||
|
import { InlineResponse2004 } from '../models';
|
||||||
|
import { InlineResponse202 } from '../models';
|
||||||
|
import { InlineResponse2021 } from '../models';
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronTransactionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronTransaction: (walletId: string, transactionId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronTransaction: (walletId: string, transactionId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronTransactions: (walletId: string, start?: string, end?: string, order?: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransaction: (body: Body18, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransactionFee: (body: Body17, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronTransactionsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronTransaction(walletId: string, transactionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronTransaction(walletId: string, transactionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2021>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronTransactions(walletId: string, start?: string, end?: string, order?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse2004>>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransaction(body: Body18, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2021>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransactionFee(body: Body17, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse202>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronTransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronTransaction(walletId: string, transactionId: string, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronTransaction(walletId: string, transactionId: string, options?: any): AxiosPromise<InlineResponse2021>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronTransactions(walletId: string, start?: string, end?: string, order?: string, options?: any): AxiosPromise<Array<InlineResponse2004>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransaction(body: Body18, walletId: string, options?: any): AxiosPromise<InlineResponse2021>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransactionFee(body: Body17, walletId: string, options?: any): AxiosPromise<InlineResponse202>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronTransactionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ByronTransactionsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
deleteByronTransaction(walletId: string, transactionId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
getByronTransaction(walletId: string, transactionId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2021>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
listByronTransactions(walletId: string, start?: string, end?: string, order?: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2004[]>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
postByronTransaction(body: Body18, walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2021>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
postByronTransactionFee(body: Body17, walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse202>>;
|
||||||
|
}
|
649
apis/byron-transactions-api.js
Normal file
649
apis/byron-transactions-api.js
Normal file
@ -0,0 +1,649 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ByronTransactionsApi = exports.ByronTransactionsApiFactory = exports.ByronTransactionsApiFp = exports.ByronTransactionsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronTransactionsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronTransaction: function (walletId, transactionId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling deleteByronTransaction.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'transactionId' is not null or undefined
|
||||||
|
if (transactionId === null || transactionId === undefined) {
|
||||||
|
throw new base_1.RequiredError('transactionId', 'Required parameter transactionId was null or undefined when calling deleteByronTransaction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/transactions/{transactionId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'transactionId' + "}", encodeURIComponent(String(transactionId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronTransaction: function (walletId, transactionId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getByronTransaction.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'transactionId' is not null or undefined
|
||||||
|
if (transactionId === null || transactionId === undefined) {
|
||||||
|
throw new base_1.RequiredError('transactionId', 'Required parameter transactionId was null or undefined when calling getByronTransaction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/transactions/{transactionId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'transactionId' + "}", encodeURIComponent(String(transactionId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronTransactions: function (walletId, start, end, order, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling listByronTransactions.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/transactions".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (start !== undefined) {
|
||||||
|
localVarQueryParameter['start'] = start;
|
||||||
|
}
|
||||||
|
if (end !== undefined) {
|
||||||
|
localVarQueryParameter['end'] = end;
|
||||||
|
}
|
||||||
|
if (order !== undefined) {
|
||||||
|
localVarQueryParameter['order'] = order;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransaction: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postByronTransaction.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling postByronTransaction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/transactions".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransactionFee: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postByronTransactionFee.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling postByronTransactionFee.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/payment-fees".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronTransactionsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronTransaction: function (walletId, transactionId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronTransactionsApiAxiosParamCreator(configuration).deleteByronTransaction(walletId, transactionId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronTransaction: function (walletId, transactionId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronTransactionsApiAxiosParamCreator(configuration).getByronTransaction(walletId, transactionId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronTransactions: function (walletId, start, end, order, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronTransactionsApiAxiosParamCreator(configuration).listByronTransactions(walletId, start, end, order, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransaction: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronTransactionsApiAxiosParamCreator(configuration).postByronTransaction(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransactionFee: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronTransactionsApiAxiosParamCreator(configuration).postByronTransactionFee(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronTransactionsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronTransaction: function (walletId, transactionId, options) {
|
||||||
|
return exports.ByronTransactionsApiFp(configuration)
|
||||||
|
.deleteByronTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronTransaction: function (walletId, transactionId, options) {
|
||||||
|
return exports.ByronTransactionsApiFp(configuration)
|
||||||
|
.getByronTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronTransactions: function (walletId, start, end, order, options) {
|
||||||
|
return exports.ByronTransactionsApiFp(configuration)
|
||||||
|
.listByronTransactions(walletId, start, end, order, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransaction: function (body, walletId, options) {
|
||||||
|
return exports.ByronTransactionsApiFp(configuration)
|
||||||
|
.postByronTransaction(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronTransactionFee: function (body, walletId, options) {
|
||||||
|
return exports.ByronTransactionsApiFp(configuration)
|
||||||
|
.postByronTransactionFee(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronTransactionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronTransactionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ByronTransactionsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ByronTransactionsApi, _super);
|
||||||
|
function ByronTransactionsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending Byron transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
ByronTransactionsApi.prototype.deleteByronTransaction = function (walletId, transactionId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronTransactionsApiFp(this.configuration)
|
||||||
|
.deleteByronTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
ByronTransactionsApi.prototype.getByronTransaction = function (walletId, transactionId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronTransactionsApiFp(this.configuration)
|
||||||
|
.getByronTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all incoming and outgoing transactions for the given wallet.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
ByronTransactionsApi.prototype.listByronTransactions = function (walletId, start, end, order, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronTransactionsApiFp(this.configuration)
|
||||||
|
.listByronTransactions(walletId, start, end, order, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {Body18} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
ByronTransactionsApi.prototype.postByronTransaction = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronTransactionsApiFp(this.configuration)
|
||||||
|
.postByronTransaction(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {Body17} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronTransactionsApi
|
||||||
|
*/
|
||||||
|
ByronTransactionsApi.prototype.postByronTransactionFee = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronTransactionsApiFp(this.configuration)
|
||||||
|
.postByronTransactionFee(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ByronTransactionsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ByronTransactionsApi = ByronTransactionsApi;
|
||||||
|
//# sourceMappingURL=byron-transactions-api.js.map
|
1
apis/byron-transactions-api.js.map
Normal file
1
apis/byron-transactions-api.js.map
Normal file
File diff suppressed because one or more lines are too long
282
apis/byron-wallets-api.d.ts
vendored
Normal file
282
apis/byron-wallets-api.d.ts
vendored
Normal file
@ -0,0 +1,282 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body12 } from '../models';
|
||||||
|
import { Body13 } from '../models';
|
||||||
|
import { Body14 } from '../models';
|
||||||
|
import { InlineResponse20010 } from '../models';
|
||||||
|
import { InlineResponse2003 } from '../models';
|
||||||
|
import { ApiWallet } from '../models';
|
||||||
|
import { InlineResponse2011 } from '../models';
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronWalletsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronWallet: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWallet: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronWallets: (options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronWallet: (body: Body12, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWallet: (body: Body13, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase: (body: Body14, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronWalletsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronWallet(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWallet(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2011>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronWallets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse20010>>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronWallet(body: Body12, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2011>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWallet(body: Body13, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase(body: Body14, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ByronWalletsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronWallet(walletId: string, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics(walletId: string, options?: any): AxiosPromise<InlineResponse2003>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWallet(walletId: string, options?: any): AxiosPromise<InlineResponse2011>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronWallets(options?: any): AxiosPromise<Array<InlineResponse20010>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronWallet(body: Body12, options?: any): AxiosPromise<InlineResponse2011>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWallet(body: Body13, walletId: string, options?: any): AxiosPromise<ApiWallet>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase(body: Body14, walletId: string, options?: any): AxiosPromise<void>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronWalletsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ByronWalletsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
deleteByronWallet(walletId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics(walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2003>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
getByronWallet(walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2011>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
listByronWallets(options?: any): Promise<import("axios").AxiosResponse<InlineResponse20010[]>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
postByronWallet(body: Body12, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2011>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
putByronWallet(body: Body13, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase(body: Body14, walletId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
}
|
790
apis/byron-wallets-api.js
Normal file
790
apis/byron-wallets-api.js
Normal file
@ -0,0 +1,790 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ByronWalletsApi = exports.ByronWalletsApiFactory = exports.ByronWalletsApiFp = exports.ByronWalletsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronWalletsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronWallet: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling deleteByronWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getByronUTxOsStatistics.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/statistics/utxos".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWallet: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getByronWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronWallets: function (options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/byron-wallets";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronWallet: function (body, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postByronWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWallet: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling putByronWallet.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling putByronWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling putByronWalletPassphrase.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling putByronWalletPassphrase.');
|
||||||
|
}
|
||||||
|
localVarPath = "/byron-wallets/{walletId}/passphrase".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronWalletsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronWallet: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).deleteByronWallet(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).getByronUTxOsStatistics(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWallet: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).getByronWallet(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronWallets: function (options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).listByronWallets(options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronWallet: function (body, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).postByronWallet(body, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWallet: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).putByronWallet(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ByronWalletsApiAxiosParamCreator(configuration).putByronWalletPassphrase(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ByronWalletsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteByronWallet: function (walletId, options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.deleteByronWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronUTxOsStatistics: function (walletId, options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.getByronUTxOsStatistics(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getByronWallet: function (walletId, options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.getByronWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listByronWallets: function (options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.listByronWallets(options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postByronWallet: function (body, options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.postByronWallet(body, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWallet: function (body, walletId, options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.putByronWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putByronWalletPassphrase: function (body, walletId, options) {
|
||||||
|
return exports.ByronWalletsApiFp(configuration)
|
||||||
|
.putByronWalletPassphrase(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ByronWalletsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ByronWalletsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ByronWalletsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ByronWalletsApi, _super);
|
||||||
|
function ByronWalletsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delete a Byron wallet.
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.deleteByronWallet = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.deleteByronWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.getByronUTxOsStatistics = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.getByronUTxOsStatistics(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return information about a Byron wallet.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.getByronWallet = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.getByronWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known Byron wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.listByronWallets = function (options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.listByronWallets(options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Restore a Byron wallet from a mnemonic sentence or encrypted root private key (deprecated). **⚠️ WARNING ⚠️** The construction of random wallet in itself is **deprecated**, in particular the restoration from an encrypted root private key. These endpoints exist to ease migrations from legacy software such as `cardano-sl` but should be avoided by new applications.
|
||||||
|
* @summary Restore
|
||||||
|
* @param {Body12} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.postByronWallet = function (body, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.postByronWallet(body, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {Body13} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.putByronWallet = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.putByronWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {Body14} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ByronWalletsApi
|
||||||
|
*/
|
||||||
|
ByronWalletsApi.prototype.putByronWalletPassphrase = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ByronWalletsApiFp(this.configuration)
|
||||||
|
.putByronWalletPassphrase(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ByronWalletsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ByronWalletsApi = ByronWalletsApi;
|
||||||
|
//# sourceMappingURL=byron-wallets-api.js.map
|
1
apis/byron-wallets-api.js.map
Normal file
1
apis/byron-wallets-api.js.map
Normal file
File diff suppressed because one or more lines are too long
79
apis/coin-selections-api.d.ts
vendored
Normal file
79
apis/coin-selections-api.d.ts
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiPostTransactionFeeData } from '../models';
|
||||||
|
import { ApiCoinSelection } from '../models';
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const CoinSelectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
selectCoins: (body: ApiPostTransactionFeeData, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const CoinSelectionsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
selectCoins(body: ApiPostTransactionFeeData, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiCoinSelection>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const CoinSelectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
selectCoins(body: ApiPostTransactionFeeData, walletId: string, options?: any): AxiosPromise<ApiCoinSelection>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class CoinSelectionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class CoinSelectionsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof CoinSelectionsApi
|
||||||
|
*/
|
||||||
|
selectCoins(body: ApiPostTransactionFeeData, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiCoinSelection>>;
|
||||||
|
}
|
226
apis/coin-selections-api.js
Normal file
226
apis/coin-selections-api.js
Normal file
@ -0,0 +1,226 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.CoinSelectionsApi = exports.CoinSelectionsApiFactory = exports.CoinSelectionsApiFp = exports.CoinSelectionsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.CoinSelectionsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
selectCoins: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling selectCoins.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling selectCoins.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/coin-selections/random".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.CoinSelectionsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
selectCoins: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.CoinSelectionsApiAxiosParamCreator(configuration).selectCoins(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.CoinSelectionsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
selectCoins: function (body, walletId, options) {
|
||||||
|
return exports.CoinSelectionsApiFp(configuration)
|
||||||
|
.selectCoins(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* CoinSelectionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class CoinSelectionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var CoinSelectionsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(CoinSelectionsApi, _super);
|
||||||
|
function CoinSelectionsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Select coins to cover the given set of payments. Uses the <a href=\"https://iohk.io/blog/self-organisation-in-coin-selection/\"> Random-Improve coin selection algorithm</a>.
|
||||||
|
* @summary Random
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof CoinSelectionsApi
|
||||||
|
*/
|
||||||
|
CoinSelectionsApi.prototype.selectCoins = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.CoinSelectionsApiFp(this.configuration)
|
||||||
|
.selectCoins(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return CoinSelectionsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.CoinSelectionsApi = CoinSelectionsApi;
|
||||||
|
//# sourceMappingURL=coin-selections-api.js.map
|
1
apis/coin-selections-api.js.map
Normal file
1
apis/coin-selections-api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"coin-selections-api.js","sourceRoot":"","sources":["../../apis/coin-selections-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,+BAAgE;AAEhE,yDAAyD;AACzD,aAAa;AACb,gCAMgB;AAQhB;;;GAGG;AACU,QAAA,kCAAkC,GAAG,UAChD,aAA6B;IADmB,iBAgFjD;IA7EC,OAAO;QACL;;;;;;;WAOG;QACH,WAAW,EAAE,UACX,IAA+B,EAC/B,QAAgB,EAChB,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAEjB,4DAA4D;oBAC5D,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;wBACvC,MAAM,IAAI,oBAAa,CACrB,MAAM,EACN,yEAAyE,CAC1E,CAAA;qBACF;oBACD,gEAAgE;oBAChE,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;wBAC/C,MAAM,IAAI,oBAAa,CACrB,UAAU,EACV,6EAA6E,CAC9E,CAAA;qBACF;oBACK,YAAY,GAAG,4CAA4C,CAAC,OAAO,CACvE,MAAI,UAAU,MAAG,EACjB,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CACrC,CAAA;oBAEK,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,MAAM,IACX,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAExC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAA;oBAEtD,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBACK,kBAAkB,GACtB,OAAO,IAAI,KAAK,QAAQ;wBACxB,sBAAsB,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAA;oBACvE,sBAAsB,CAAC,IAAI,GAAG,kBAAkB;wBAC9C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;wBAChD,CAAC,CAAC,IAAI,IAAI,EAAE,CAAA;oBAEd,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,mBAAmB,GAAG,UAAU,aAA6B;IACxE,OAAO;QACL;;;;;;;WAOG;QACG,WAAW,EAAjB,UACE,IAA+B,EAC/B,QAAgB,EAChB,OAAa;;;;;gCAOa,qBAAM,0CAAkC,CAChE,aAAa,CACd,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAA;;4BAFhC,iBAAiB,GAAG,SAEY;4BACtC,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,wBAAwB,GAAG,UACtC,aAA6B,EAC7B,QAAiB,EACjB,KAAqB;IAErB,OAAO;QACL;;;;;;;WAOG;QACH,WAAW,EAAX,UACE,IAA+B,EAC/B,QAAgB,EAChB,OAAa;YAEb,OAAO,2BAAmB,CAAC,aAAa,CAAC;iBACtC,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;iBACpC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;IAAuC,qCAAO;IAA9C;;IAmBA,CAAC;IAlBC;;;;;;;;OAQG;IACI,uCAAW,GAAlB,UACE,IAA+B,EAC/B,QAAgB,EAChB,OAAa;QAHf,iBAQC;QAHC,OAAO,2BAAmB,CAAC,IAAI,CAAC,aAAa,CAAC;aAC3C,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;aACpC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACH,wBAAC;AAAD,CAAC,AAnBD,CAAuC,cAAO,GAmB7C;AAnBY,8CAAiB"}
|
86
apis/experimental-api.d.ts
vendored
Normal file
86
apis/experimental-api.d.ts
vendored
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body } from '../models';
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ExperimentalApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
signMetadata: (body: Body, walletId: string, role: string, index: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ExperimentalApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
signMetadata(body: Body, walletId: string, role: string, index: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ExperimentalApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
signMetadata(body: Body, walletId: string, role: string, index: string, options?: any): AxiosPromise<string>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ExperimentalApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ExperimentalApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ExperimentalApi
|
||||||
|
*/
|
||||||
|
signMetadata(body: Body, walletId: string, role: string, index: string, options?: any): Promise<import("axios").AxiosResponse<string>>;
|
||||||
|
}
|
245
apis/experimental-api.js
Normal file
245
apis/experimental-api.js
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ExperimentalApi = exports.ExperimentalApiFactory = exports.ExperimentalApiFp = exports.ExperimentalApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ExperimentalApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
signMetadata: function (body, walletId, role, index, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling signMetadata.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling signMetadata.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'role' is not null or undefined
|
||||||
|
if (role === null || role === undefined) {
|
||||||
|
throw new base_1.RequiredError('role', 'Required parameter role was null or undefined when calling signMetadata.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'index' is not null or undefined
|
||||||
|
if (index === null || index === undefined) {
|
||||||
|
throw new base_1.RequiredError('index', 'Required parameter index was null or undefined when calling signMetadata.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/signatures/{role}/{index}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'role' + "}", encodeURIComponent(String(role)))
|
||||||
|
.replace("{" + 'index' + "}", encodeURIComponent(String(index)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ExperimentalApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
signMetadata: function (body, walletId, role, index, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ExperimentalApiAxiosParamCreator(configuration).signMetadata(body, walletId, role, index, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ExperimentalApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
signMetadata: function (body, walletId, role, index, options) {
|
||||||
|
return exports.ExperimentalApiFp(configuration)
|
||||||
|
.signMetadata(body, walletId, role, index, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ExperimentalApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ExperimentalApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ExperimentalApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ExperimentalApi, _super);
|
||||||
|
function ExperimentalApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>experimental</strong></p> **⚠️ WARNING ⚠️** This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in **NON-BACKWARD COMPATIBLE WAYS**. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Sign Metadata
|
||||||
|
* @param {Body} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ExperimentalApi
|
||||||
|
*/
|
||||||
|
ExperimentalApi.prototype.signMetadata = function (body, walletId, role, index, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ExperimentalApiFp(this.configuration)
|
||||||
|
.signMetadata(body, walletId, role, index, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ExperimentalApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ExperimentalApi = ExperimentalApi;
|
||||||
|
//# sourceMappingURL=experimental-api.js.map
|
1
apis/experimental-api.js.map
Normal file
1
apis/experimental-api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"experimental-api.js","sourceRoot":"","sources":["../../apis/experimental-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,+BAAgE;AAEhE,yDAAyD;AACzD,aAAa;AACb,gCAMgB;AAKhB;;;GAGG;AACU,QAAA,gCAAgC,GAAG,UAC9C,aAA6B;IADiB,iBAkG/C;IA/FC,OAAO;QACL;;;;;;;;;WASG;QACH,YAAY,EAAE,UACZ,IAAU,EACV,QAAgB,EAChB,IAAY,EACZ,KAAa,EACb,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAEjB,4DAA4D;oBAC5D,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;wBACvC,MAAM,IAAI,oBAAa,CACrB,MAAM,EACN,0EAA0E,CAC3E,CAAA;qBACF;oBACD,gEAAgE;oBAChE,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;wBAC/C,MAAM,IAAI,oBAAa,CACrB,UAAU,EACV,8EAA8E,CAC/E,CAAA;qBACF;oBACD,4DAA4D;oBAC5D,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;wBACvC,MAAM,IAAI,oBAAa,CACrB,MAAM,EACN,0EAA0E,CAC3E,CAAA;qBACF;oBACD,6DAA6D;oBAC7D,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;wBACzC,MAAM,IAAI,oBAAa,CACrB,OAAO,EACP,2EAA2E,CAC5E,CAAA;qBACF;oBACK,YAAY,GAAG,+CAA+C;yBACjE,OAAO,CAAC,MAAI,UAAU,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;yBAChE,OAAO,CAAC,MAAI,MAAM,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;yBACxD,OAAO,CAAC,MAAI,OAAO,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;oBAEvD,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,MAAM,IACX,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAExC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAA;oBAEtD,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBACK,kBAAkB,GACtB,OAAO,IAAI,KAAK,QAAQ;wBACxB,sBAAsB,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAA;oBACvE,sBAAsB,CAAC,IAAI,GAAG,kBAAkB;wBAC9C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;wBAChD,CAAC,CAAC,IAAI,IAAI,EAAE,CAAA;oBAEd,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,iBAAiB,GAAG,UAAU,aAA6B;IACtE,OAAO;QACL;;;;;;;;;WASG;QACG,YAAY,EAAlB,UACE,IAAU,EACV,QAAgB,EAChB,IAAY,EACZ,KAAa,EACb,OAAa;;;;;gCAIa,qBAAM,wCAAgC,CAC9D,aAAa,CACd,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,EAAA;;4BAF9C,iBAAiB,GAAG,SAE0B;4BACpD,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,sBAAsB,GAAG,UACpC,aAA6B,EAC7B,QAAiB,EACjB,KAAqB;IAErB,OAAO;QACL;;;;;;;;;WASG;QACH,YAAY,EAAZ,UACE,IAAU,EACV,QAAgB,EAChB,IAAY,EACZ,KAAa,EACb,OAAa;YAEb,OAAO,yBAAiB,CAAC,aAAa,CAAC;iBACpC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;iBAClD,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;IAAqC,mCAAO;IAA5C;;IAuBA,CAAC;IAtBC;;;;;;;;;;OAUG;IACI,sCAAY,GAAnB,UACE,IAAU,EACV,QAAgB,EAChB,IAAY,EACZ,KAAa,EACb,OAAa;QALf,iBAUC;QAHC,OAAO,yBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC;aACzC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;aAClD,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACH,sBAAC;AAAD,CAAC,AAvBD,CAAqC,cAAO,GAuB3C;AAvBY,0CAAe"}
|
123
apis/keys-api.d.ts
vendored
Normal file
123
apis/keys-api.d.ts
vendored
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiPostAccountKeyData } from '../models';
|
||||||
|
/**
|
||||||
|
* KeysApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const KeysApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWalletKey: (walletId: string, role: string, index: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAccountKey: (body: ApiPostAccountKeyData, walletId: string, index: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* KeysApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const KeysApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWalletKey(walletId: string, role: string, index: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAccountKey(body: ApiPostAccountKeyData, walletId: string, index: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* KeysApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const KeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWalletKey(walletId: string, role: string, index: string, options?: any): AxiosPromise<string>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAccountKey(body: ApiPostAccountKeyData, walletId: string, index: string, options?: any): AxiosPromise<string>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* KeysApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class KeysApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class KeysApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof KeysApi
|
||||||
|
*/
|
||||||
|
getWalletKey(walletId: string, role: string, index: string, options?: any): Promise<import("axios").AxiosResponse<string>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof KeysApi
|
||||||
|
*/
|
||||||
|
postAccountKey(body: ApiPostAccountKeyData, walletId: string, index: string, options?: any): Promise<import("axios").AxiosResponse<string>>;
|
||||||
|
}
|
347
apis/keys-api.js
Normal file
347
apis/keys-api.js
Normal file
@ -0,0 +1,347 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.KeysApi = exports.KeysApiFactory = exports.KeysApiFp = exports.KeysApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* KeysApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.KeysApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWalletKey: function (walletId, role, index, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getWalletKey.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'role' is not null or undefined
|
||||||
|
if (role === null || role === undefined) {
|
||||||
|
throw new base_1.RequiredError('role', 'Required parameter role was null or undefined when calling getWalletKey.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'index' is not null or undefined
|
||||||
|
if (index === null || index === undefined) {
|
||||||
|
throw new base_1.RequiredError('index', 'Required parameter index was null or undefined when calling getWalletKey.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/keys/{role}/{index}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'role' + "}", encodeURIComponent(String(role)))
|
||||||
|
.replace("{" + 'index' + "}", encodeURIComponent(String(index)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAccountKey: function (body, walletId, index, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postAccountKey.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling postAccountKey.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'index' is not null or undefined
|
||||||
|
if (index === null || index === undefined) {
|
||||||
|
throw new base_1.RequiredError('index', 'Required parameter index was null or undefined when calling postAccountKey.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/keys/{index}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'index' + "}", encodeURIComponent(String(index)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* KeysApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.KeysApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWalletKey: function (walletId, role, index, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.KeysApiAxiosParamCreator(configuration).getWalletKey(walletId, role, index, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAccountKey: function (body, walletId, index, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.KeysApiAxiosParamCreator(configuration).postAccountKey(body, walletId, index, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* KeysApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.KeysApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWalletKey: function (walletId, role, index, options) {
|
||||||
|
return exports.KeysApiFp(configuration)
|
||||||
|
.getWalletKey(walletId, role, index, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postAccountKey: function (body, walletId, index, options) {
|
||||||
|
return exports.KeysApiFp(configuration)
|
||||||
|
.postAccountKey(body, walletId, index, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* KeysApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class KeysApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var KeysApi = /** @class */ (function (_super) {
|
||||||
|
__extends(KeysApi, _super);
|
||||||
|
function KeysApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a public key for a given role and derivation index. <b>Note:</b> Only `Soft` indexes are supported by this endpoint.
|
||||||
|
* @summary Get Public Key
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} role
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof KeysApi
|
||||||
|
*/
|
||||||
|
KeysApi.prototype.getWalletKey = function (walletId, role, index, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.KeysApiFp(this.configuration)
|
||||||
|
.getWalletKey(walletId, role, index, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Retrieve account public key from the wallet. <b>Note:</b> Only `Hard` indexes are supported by this endpoint.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostAccountKeyData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} index
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof KeysApi
|
||||||
|
*/
|
||||||
|
KeysApi.prototype.postAccountKey = function (body, walletId, index, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.KeysApiFp(this.configuration)
|
||||||
|
.postAccountKey(body, walletId, index, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return KeysApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.KeysApi = KeysApi;
|
||||||
|
//# sourceMappingURL=keys-api.js.map
|
1
apis/keys-api.js.map
Normal file
1
apis/keys-api.js.map
Normal file
File diff suppressed because one or more lines are too long
113
apis/migrations-api.d.ts
vendored
Normal file
113
apis/migrations-api.d.ts
vendored
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { Body11 } from '../models';
|
||||||
|
import { InlineResponse2004 } from '../models';
|
||||||
|
import { InlineResponse2009 } from '../models';
|
||||||
|
/**
|
||||||
|
* MigrationsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const MigrationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet: (body: Body11, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* MigrationsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const MigrationsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2009>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet(body: Body11, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InlineResponse2004>>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* MigrationsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const MigrationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo(walletId: string, options?: any): AxiosPromise<InlineResponse2009>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet(body: Body11, walletId: string, options?: any): AxiosPromise<Array<InlineResponse2004>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* MigrationsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class MigrationsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class MigrationsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MigrationsApi
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo(walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2009>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MigrationsApi
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet(body: Body11, walletId: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2004[]>>;
|
||||||
|
}
|
318
apis/migrations-api.js
Normal file
318
apis/migrations-api.js
Normal file
@ -0,0 +1,318 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.MigrationsApi = exports.MigrationsApiFactory = exports.MigrationsApiFp = exports.MigrationsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* MigrationsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.MigrationsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getShelleyWalletMigrationInfo.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/migrations".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling migrateShelleyWallet.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling migrateShelleyWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/migrations".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* MigrationsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.MigrationsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.MigrationsApiAxiosParamCreator(configuration).getShelleyWalletMigrationInfo(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.MigrationsApiAxiosParamCreator(configuration).migrateShelleyWallet(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* MigrationsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.MigrationsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getShelleyWalletMigrationInfo: function (walletId, options) {
|
||||||
|
return exports.MigrationsApiFp(configuration)
|
||||||
|
.getShelleyWalletMigrationInfo(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
migrateShelleyWallet: function (body, walletId, options) {
|
||||||
|
return exports.MigrationsApiFp(configuration)
|
||||||
|
.migrateShelleyWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* MigrationsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class MigrationsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var MigrationsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(MigrationsApi, _super);
|
||||||
|
function MigrationsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Calculate the exact cost of sending all funds from particular Shelley wallet to a set of addresses.
|
||||||
|
* @summary Calculate Cost
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MigrationsApi
|
||||||
|
*/
|
||||||
|
MigrationsApi.prototype.getShelleyWalletMigrationInfo = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.MigrationsApiFp(this.configuration)
|
||||||
|
.getShelleyWalletMigrationInfo(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>disabled</strong></p> <strong>⚠️IMPORTANT⚠️</strong> This endpoint has been temporarily disabled with the introduction of multi-assets UTxO. It will be enabled again soon. <hr/> Submit one or more transactions which transfers all funds from a Shelley wallet to a set of addresses. This operation attempts to preserve the UTxO \"shape\" of a wallet as far as possible. That is, coins will not be agglomerated. Therefore, if the wallet has a large UTxO set, several transactions may be needed. A typical usage would be when one wants to move all funds from an old wallet to another by providing addresses coming from the new wallet.
|
||||||
|
* @summary Migrate
|
||||||
|
* @param {Body11} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof MigrationsApi
|
||||||
|
*/
|
||||||
|
MigrationsApi.prototype.migrateShelleyWallet = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.MigrationsApiFp(this.configuration)
|
||||||
|
.migrateShelleyWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return MigrationsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.MigrationsApi = MigrationsApi;
|
||||||
|
//# sourceMappingURL=migrations-api.js.map
|
1
apis/migrations-api.js.map
Normal file
1
apis/migrations-api.js.map
Normal file
File diff suppressed because one or more lines are too long
134
apis/network-api.d.ts
vendored
Normal file
134
apis/network-api.d.ts
vendored
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiNetworkInformation } from '../models';
|
||||||
|
import { ApiNetworkClock } from '../models';
|
||||||
|
import { ApiNetworkParameters } from '../models';
|
||||||
|
/**
|
||||||
|
* NetworkApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const NetworkApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkClock: (forceNtpCheck?: boolean, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkInformation: (options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkParameters: (options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* NetworkApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const NetworkApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkClock(forceNtpCheck?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNetworkClock>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkInformation(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNetworkInformation>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkParameters(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNetworkParameters>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* NetworkApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const NetworkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkClock(forceNtpCheck?: boolean, options?: any): AxiosPromise<ApiNetworkClock>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkInformation(options?: any): AxiosPromise<ApiNetworkInformation>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkParameters(options?: any): AxiosPromise<ApiNetworkParameters>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* NetworkApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class NetworkApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class NetworkApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof NetworkApi
|
||||||
|
*/
|
||||||
|
getNetworkClock(forceNtpCheck?: boolean, options?: any): Promise<import("axios").AxiosResponse<ApiNetworkClock>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof NetworkApi
|
||||||
|
*/
|
||||||
|
getNetworkInformation(options?: any): Promise<import("axios").AxiosResponse<ApiNetworkInformation>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof NetworkApi
|
||||||
|
*/
|
||||||
|
getNetworkParameters(options?: any): Promise<import("axios").AxiosResponse<ApiNetworkParameters>>;
|
||||||
|
}
|
379
apis/network-api.js
Normal file
379
apis/network-api.js
Normal file
@ -0,0 +1,379 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.NetworkApi = exports.NetworkApiFactory = exports.NetworkApiFp = exports.NetworkApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* NetworkApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.NetworkApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkClock: function (forceNtpCheck, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/network/clock";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (forceNtpCheck !== undefined) {
|
||||||
|
localVarQueryParameter['forceNtpCheck'] = forceNtpCheck;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkInformation: function (options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/network/information";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkParameters: function (options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/network/parameters";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* NetworkApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.NetworkApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkClock: function (forceNtpCheck, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.NetworkApiAxiosParamCreator(configuration).getNetworkClock(forceNtpCheck, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkInformation: function (options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.NetworkApiAxiosParamCreator(configuration).getNetworkInformation(options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkParameters: function (options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.NetworkApiAxiosParamCreator(configuration).getNetworkParameters(options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* NetworkApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.NetworkApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkClock: function (forceNtpCheck, options) {
|
||||||
|
return exports.NetworkApiFp(configuration)
|
||||||
|
.getNetworkClock(forceNtpCheck, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkInformation: function (options) {
|
||||||
|
return exports.NetworkApiFp(configuration)
|
||||||
|
.getNetworkInformation(options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getNetworkParameters: function (options) {
|
||||||
|
return exports.NetworkApiFp(configuration)
|
||||||
|
.getNetworkParameters(options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* NetworkApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class NetworkApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var NetworkApi = /** @class */ (function (_super) {
|
||||||
|
__extends(NetworkApi, _super);
|
||||||
|
function NetworkApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Clock
|
||||||
|
* @param {boolean} [forceNtpCheck] NTP checks are cached for short duration to avoid sending too many queries to the central NTP servers. In some cases however, a client may want to force a new check. When this flag is set, the request **will block** until NTP server responds or will timeout after a while without any answer from the NTP server.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof NetworkApi
|
||||||
|
*/
|
||||||
|
NetworkApi.prototype.getNetworkClock = function (forceNtpCheck, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.NetworkApiFp(this.configuration)
|
||||||
|
.getNetworkClock(forceNtpCheck, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Information
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof NetworkApi
|
||||||
|
*/
|
||||||
|
NetworkApi.prototype.getNetworkInformation = function (options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.NetworkApiFp(this.configuration)
|
||||||
|
.getNetworkInformation(options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Returns the set of network parameters for the current epoch.
|
||||||
|
* @summary Parameters
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof NetworkApi
|
||||||
|
*/
|
||||||
|
NetworkApi.prototype.getNetworkParameters = function (options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.NetworkApiFp(this.configuration)
|
||||||
|
.getNetworkParameters(options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return NetworkApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.NetworkApi = NetworkApi;
|
||||||
|
//# sourceMappingURL=network-api.js.map
|
1
apis/network-api.js.map
Normal file
1
apis/network-api.js.map
Normal file
File diff suppressed because one or more lines are too long
74
apis/proxy-api.d.ts
vendored
Normal file
74
apis/proxy-api.d.ts
vendored
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { InlineResponse2022 } from '../models';
|
||||||
|
/**
|
||||||
|
* ProxyApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ProxyApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postExternalTransaction: (body?: Object, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ProxyApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ProxyApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postExternalTransaction(body?: Object, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2022>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ProxyApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const ProxyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postExternalTransaction(body?: Object, options?: any): AxiosPromise<InlineResponse2022>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ProxyApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ProxyApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class ProxyApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ProxyApi
|
||||||
|
*/
|
||||||
|
postExternalTransaction(body?: Object, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2022>>;
|
||||||
|
}
|
210
apis/proxy-api.js
Normal file
210
apis/proxy-api.js
Normal file
@ -0,0 +1,210 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.ProxyApi = exports.ProxyApiFactory = exports.ProxyApiFp = exports.ProxyApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* ProxyApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ProxyApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postExternalTransaction: function (body, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/proxy/transactions";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
localVarRequestOptions.data = body;
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ProxyApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ProxyApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postExternalTransaction: function (body, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.ProxyApiAxiosParamCreator(configuration).postExternalTransaction(body, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ProxyApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.ProxyApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postExternalTransaction: function (body, options) {
|
||||||
|
return exports.ProxyApiFp(configuration)
|
||||||
|
.postExternalTransaction(body, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* ProxyApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class ProxyApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var ProxyApi = /** @class */ (function (_super) {
|
||||||
|
__extends(ProxyApi, _super);
|
||||||
|
function ProxyApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Submits a transaction that was created and signed outside of cardano-wallet.
|
||||||
|
* @summary Submit External Transaction
|
||||||
|
* @param {Object} [body]
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof ProxyApi
|
||||||
|
*/
|
||||||
|
ProxyApi.prototype.postExternalTransaction = function (body, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.ProxyApiFp(this.configuration)
|
||||||
|
.postExternalTransaction(body, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return ProxyApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.ProxyApi = ProxyApi;
|
||||||
|
//# sourceMappingURL=proxy-api.js.map
|
1
apis/proxy-api.js.map
Normal file
1
apis/proxy-api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"proxy-api.js","sourceRoot":"","sources":["../../apis/proxy-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,+BAAgE;AAEhE,yDAAyD;AACzD,aAAa;AACb,gCAMgB;AAKhB;;;GAGG;AACU,QAAA,yBAAyB,GAAG,UACvC,aAA6B;IADU,iBAwDxC;IArDC,OAAO;QACL;;;;;;WAMG;QACH,uBAAuB,EAAE,UACvB,IAAa,EACb,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAEX,YAAY,GAAG,qBAAqB,CAAA;oBAEpC,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,MAAM,IACX,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAExC,uBAAuB,CAAC,cAAc,CAAC,GAAG,0BAA0B,CAAA;oBAE9D,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBACD,sBAAsB,CAAC,IAAI,GAAG,IAAI,CAAA;oBAElC,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,UAAU,GAAG,UAAU,aAA6B;IAC/D,OAAO;QACL;;;;;;WAMG;QACG,uBAAuB,EAA7B,UACE,IAAa,EACb,OAAa;;;;;gCAOa,qBAAM,iCAAyB,CACvD,aAAa,CACd,CAAC,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,EAAA;;4BAFlC,iBAAiB,GAAG,SAEc;4BACxC,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,eAAe,GAAG,UAC7B,aAA6B,EAC7B,QAAiB,EACjB,KAAqB;IAErB,OAAO;QACL;;;;;;WAMG;QACH,uBAAuB,EAAvB,UACE,IAAa,EACb,OAAa;YAEb,OAAO,kBAAU,CAAC,aAAa,CAAC;iBAC7B,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC;iBACtC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;IAA8B,4BAAO;IAArC;;IAcA,CAAC;IAbC;;;;;;;OAOG;IACI,0CAAuB,GAA9B,UAA+B,IAAa,EAAE,OAAa;QAA3D,iBAIC;QAHC,OAAO,kBAAU,CAAC,IAAI,CAAC,aAAa,CAAC;aAClC,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC;aACtC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACH,eAAC;AAAD,CAAC,AAdD,CAA8B,cAAO,GAcpC;AAdY,4BAAQ"}
|
104
apis/settings-api.d.ts
vendored
Normal file
104
apis/settings-api.d.ts
vendored
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiSettingsPutData } from '../models';
|
||||||
|
import { ApiGetSettings } from '../models';
|
||||||
|
/**
|
||||||
|
* SettingsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const SettingsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getSettings: (options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putSettings: (body: ApiSettingsPutData, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* SettingsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const SettingsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getSettings(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiGetSettings>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putSettings(body: ApiSettingsPutData, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* SettingsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getSettings(options?: any): AxiosPromise<ApiGetSettings>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putSettings(body: ApiSettingsPutData, options?: any): AxiosPromise<void>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* SettingsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class SettingsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class SettingsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof SettingsApi
|
||||||
|
*/
|
||||||
|
getSettings(options?: any): Promise<import("axios").AxiosResponse<ApiGetSettings>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof SettingsApi
|
||||||
|
*/
|
||||||
|
putSettings(body: ApiSettingsPutData, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
}
|
302
apis/settings-api.js
Normal file
302
apis/settings-api.js
Normal file
@ -0,0 +1,302 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.SettingsApi = exports.SettingsApiFactory = exports.SettingsApiFp = exports.SettingsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* SettingsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.SettingsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getSettings: function (options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/settings";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putSettings: function (body, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling putSettings.');
|
||||||
|
}
|
||||||
|
localVarPath = "/settings";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* SettingsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.SettingsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getSettings: function (options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.SettingsApiAxiosParamCreator(configuration).getSettings(options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putSettings: function (body, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.SettingsApiAxiosParamCreator(configuration).putSettings(body, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* SettingsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.SettingsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getSettings: function (options) {
|
||||||
|
return exports.SettingsApiFp(configuration)
|
||||||
|
.getSettings(options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putSettings: function (body, options) {
|
||||||
|
return exports.SettingsApiFp(configuration)
|
||||||
|
.putSettings(body, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* SettingsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class SettingsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var SettingsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(SettingsApi, _super);
|
||||||
|
function SettingsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the current settings.
|
||||||
|
* @summary Get settings
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof SettingsApi
|
||||||
|
*/
|
||||||
|
SettingsApi.prototype.getSettings = function (options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.SettingsApiFp(this.configuration)
|
||||||
|
.getSettings(options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Overwrite current settings.
|
||||||
|
* @summary Update settings
|
||||||
|
* @param {ApiSettingsPutData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof SettingsApi
|
||||||
|
*/
|
||||||
|
SettingsApi.prototype.putSettings = function (body, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.SettingsApiFp(this.configuration)
|
||||||
|
.putSettings(body, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return SettingsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.SettingsApi = SettingsApi;
|
||||||
|
//# sourceMappingURL=settings-api.js.map
|
1
apis/settings-api.js.map
Normal file
1
apis/settings-api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"settings-api.js","sourceRoot":"","sources":["../../apis/settings-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,+BAAgE;AAEhE,yDAAyD;AACzD,aAAa;AACb,gCAMgB;AAKhB;;;GAGG;AACU,QAAA,4BAA4B,GAAG,UAC1C,aAA6B;IADa,iBAgH3C;IA7GC,OAAO;QACL;;;;;WAKG;QACH,WAAW,EAAE,UAAO,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAC7B,YAAY,GAAG,WAAW,CAAA;oBAE1B,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,KAAK,IACV,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAElC,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBAED,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;QACD;;;;;;WAMG;QACH,WAAW,EAAE,UACX,IAAwB,EACxB,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAEjB,4DAA4D;oBAC5D,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;wBACvC,MAAM,IAAI,oBAAa,CACrB,MAAM,EACN,yEAAyE,CAC1E,CAAA;qBACF;oBACK,YAAY,GAAG,WAAW,CAAA;oBAE1B,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,KAAK,IACV,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAExC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAA;oBAEtD,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBACK,kBAAkB,GACtB,OAAO,IAAI,KAAK,QAAQ;wBACxB,sBAAsB,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAA;oBACvE,sBAAsB,CAAC,IAAI,GAAG,kBAAkB;wBAC9C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;wBAChD,CAAC,CAAC,IAAI,IAAI,EAAE,CAAA;oBAEd,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,aAAa,GAAG,UAAU,aAA6B;IAClE,OAAO;QACL;;;;;WAKG;QACG,WAAW,EAAjB,UACE,OAAa;;;;;gCAIa,qBAAM,oCAA4B,CAC1D,aAAa,CACd,CAAC,WAAW,CAAC,OAAO,CAAC,EAAA;;4BAFhB,iBAAiB,GAAG,SAEJ;4BACtB,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;QACD;;;;;;WAMG;QACG,WAAW,EAAjB,UACE,IAAwB,EACxB,OAAa;;;;;gCAIa,qBAAM,oCAA4B,CAC1D,aAAa,CACd,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,EAAA;;4BAFtB,iBAAiB,GAAG,SAEE;4BAC5B,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,kBAAkB,GAAG,UAChC,aAA6B,EAC7B,QAAiB,EACjB,KAAqB;IAErB,OAAO;QACL;;;;;WAKG;QACH,WAAW,EAAX,UAAY,OAAa;YACvB,OAAO,qBAAa,CAAC,aAAa,CAAC;iBAChC,WAAW,CAAC,OAAO,CAAC;iBACpB,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;QACD;;;;;;WAMG;QACH,WAAW,EAAX,UAAY,IAAwB,EAAE,OAAa;YACjD,OAAO,qBAAa,CAAC,aAAa,CAAC;iBAChC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC;iBAC1B,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;IAAiC,+BAAO;IAAxC;;IA0BA,CAAC;IAzBC;;;;;;OAMG;IACI,iCAAW,GAAlB,UAAmB,OAAa;QAAhC,iBAIC;QAHC,OAAO,qBAAa,CAAC,IAAI,CAAC,aAAa,CAAC;aACrC,WAAW,CAAC,OAAO,CAAC;aACpB,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACD;;;;;;;OAOG;IACI,iCAAW,GAAlB,UAAmB,IAAwB,EAAE,OAAa;QAA1D,iBAIC;QAHC,OAAO,qBAAa,CAAC,IAAI,CAAC,aAAa,CAAC;aACrC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC;aAC1B,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACH,kBAAC;AAAD,CAAC,AA1BD,CAAiC,cAAO,GA0BvC;AA1BY,kCAAW"}
|
252
apis/stake-pools-api.d.ts
vendored
Normal file
252
apis/stake-pools-api.d.ts
vendored
Normal file
@ -0,0 +1,252 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiMaintenanceActionPostData } from '../models';
|
||||||
|
import { ApiWalletPassphrase } from '../models';
|
||||||
|
import { ApiStakePool } from '../models';
|
||||||
|
import { ApiMaintenanceAction } from '../models';
|
||||||
|
import { ApiFee } from '../models';
|
||||||
|
import { ApiTransaction } from '../models';
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const StakePoolsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getDelegationFee: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMaintenanceActions: (options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
joinStakePool: (body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listStakePools: (stake: number, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postMaintenanceAction: (body: ApiMaintenanceActionPostData, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
quitStakePool: (body: ApiWalletPassphrase, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const StakePoolsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getDelegationFee(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiFee>>;
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMaintenanceActions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiMaintenanceAction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
joinStakePool(body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listStakePools(stake: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiStakePool>>>;
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postMaintenanceAction(body: ApiMaintenanceActionPostData, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
quitStakePool(body: ApiWalletPassphrase, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiTransaction>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const StakePoolsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getDelegationFee(walletId: string, options?: any): AxiosPromise<ApiFee>;
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMaintenanceActions(options?: any): AxiosPromise<ApiMaintenanceAction>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
joinStakePool(body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any): AxiosPromise<ApiTransaction>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listStakePools(stake: number, options?: any): AxiosPromise<Array<ApiStakePool>>;
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postMaintenanceAction(body: ApiMaintenanceActionPostData, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
quitStakePool(body: ApiWalletPassphrase, walletId: string, options?: any): AxiosPromise<ApiTransaction>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class StakePoolsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class StakePoolsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
getDelegationFee(walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiFee>>;
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
getMaintenanceActions(options?: any): Promise<import("axios").AxiosResponse<ApiMaintenanceAction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
joinStakePool(body: ApiWalletPassphrase, stakePoolId: string, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
listStakePools(stake: number, options?: any): Promise<import("axios").AxiosResponse<ApiStakePool[]>>;
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
postMaintenanceAction(body: ApiMaintenanceActionPostData, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
quitStakePool(body: ApiWalletPassphrase, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiTransaction>>;
|
||||||
|
}
|
711
apis/stake-pools-api.js
Normal file
711
apis/stake-pools-api.js
Normal file
@ -0,0 +1,711 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.StakePoolsApi = exports.StakePoolsApiFactory = exports.StakePoolsApiFp = exports.StakePoolsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.StakePoolsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getDelegationFee: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getDelegationFee.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/delegation-fees".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMaintenanceActions: function (options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/stake-pools/maintenance-actions";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
joinStakePool: function (body, stakePoolId, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling joinStakePool.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'stakePoolId' is not null or undefined
|
||||||
|
if (stakePoolId === null || stakePoolId === undefined) {
|
||||||
|
throw new base_1.RequiredError('stakePoolId', 'Required parameter stakePoolId was null or undefined when calling joinStakePool.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling joinStakePool.');
|
||||||
|
}
|
||||||
|
localVarPath = "/stake-pools/{stakePoolId}/wallets/{walletId}"
|
||||||
|
.replace("{" + 'stakePoolId' + "}", encodeURIComponent(String(stakePoolId)))
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listStakePools: function (stake, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'stake' is not null or undefined
|
||||||
|
if (stake === null || stake === undefined) {
|
||||||
|
throw new base_1.RequiredError('stake', 'Required parameter stake was null or undefined when calling listStakePools.');
|
||||||
|
}
|
||||||
|
localVarPath = "/stake-pools";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (stake !== undefined) {
|
||||||
|
localVarQueryParameter['stake'] = stake;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postMaintenanceAction: function (body, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postMaintenanceAction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/stake-pools/maintenance-actions";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
quitStakePool: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling quitStakePool.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling quitStakePool.');
|
||||||
|
}
|
||||||
|
localVarPath = "/stake-pools/*/wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.StakePoolsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getDelegationFee: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.StakePoolsApiAxiosParamCreator(configuration).getDelegationFee(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMaintenanceActions: function (options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.StakePoolsApiAxiosParamCreator(configuration).getMaintenanceActions(options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
joinStakePool: function (body, stakePoolId, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.StakePoolsApiAxiosParamCreator(configuration).joinStakePool(body, stakePoolId, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listStakePools: function (stake, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.StakePoolsApiAxiosParamCreator(configuration).listStakePools(stake, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postMaintenanceAction: function (body, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.StakePoolsApiAxiosParamCreator(configuration).postMaintenanceAction(body, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
quitStakePool: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.StakePoolsApiAxiosParamCreator(configuration).quitStakePool(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.StakePoolsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getDelegationFee: function (walletId, options) {
|
||||||
|
return exports.StakePoolsApiFp(configuration)
|
||||||
|
.getDelegationFee(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getMaintenanceActions: function (options) {
|
||||||
|
return exports.StakePoolsApiFp(configuration)
|
||||||
|
.getMaintenanceActions(options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
joinStakePool: function (body, stakePoolId, walletId, options) {
|
||||||
|
return exports.StakePoolsApiFp(configuration)
|
||||||
|
.joinStakePool(body, stakePoolId, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listStakePools: function (stake, options) {
|
||||||
|
return exports.StakePoolsApiFp(configuration)
|
||||||
|
.listStakePools(stake, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postMaintenanceAction: function (body, options) {
|
||||||
|
return exports.StakePoolsApiFp(configuration)
|
||||||
|
.postMaintenanceAction(body, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
quitStakePool: function (body, walletId, options) {
|
||||||
|
return exports.StakePoolsApiFp(configuration)
|
||||||
|
.quitStakePool(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* StakePoolsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class StakePoolsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var StakePoolsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(StakePoolsApi, _super);
|
||||||
|
function StakePoolsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for joining or leaving a stake pool. Note that it is an estimation because a delegation induces a transaction for which coins have to be selected randomly within the wallet. Because of this randomness, fees can only be estimated.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
StakePoolsApi.prototype.getDelegationFee = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.StakePoolsApiFp(this.configuration)
|
||||||
|
.getDelegationFee(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Returns the current status of the stake pools maintenance actions.
|
||||||
|
* @summary View maintenance actions
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
StakePoolsApi.prototype.getMaintenanceActions = function (options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.StakePoolsApiFp(this.configuration)
|
||||||
|
.getMaintenanceActions(options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Delegate all (current and future) addresses from the given wallet to the given stake pool. <strong>Note:</strong> Bech32-encoded stake pool identifiers can vary in length.
|
||||||
|
* @summary Join
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} stakePoolId
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
StakePoolsApi.prototype.joinStakePool = function (body, stakePoolId, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.StakePoolsApiFp(this.configuration)
|
||||||
|
.joinStakePool(body, stakePoolId, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> List all known stake pools ordered by descending `non_myopic_member_rewards`. The `non_myopic_member_rewards` — and thus the ordering — depends on the `?stake` query parameter. Some pools _may_ also have metadata attached to them.
|
||||||
|
* @summary List
|
||||||
|
* @param {number} stake The stake the user intends to delegate in Lovelace. Required.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
StakePoolsApi.prototype.listStakePools = function (stake, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.StakePoolsApiFp(this.configuration)
|
||||||
|
.listStakePools(stake, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Performs maintenance actions on stake pools, such as triggering metadata garbage collection. Actions may not be instantaneous.
|
||||||
|
* @summary Trigger Maintenance actions
|
||||||
|
* @param {ApiMaintenanceActionPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
StakePoolsApi.prototype.postMaintenanceAction = function (body, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.StakePoolsApiFp(this.configuration)
|
||||||
|
.postMaintenanceAction(body, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Stop delegating completely. The wallet's stake will become inactive. > ⚠️ Disclaimer ⚠️ > > This endpoint historically use to take a stake pool id as a path parameter. > However, retiring from delegation is ubiquitous and not tight to a particular > stake pool. For backward-compatibility reasons, sending stake pool ids as path > parameter will still be accepted by the server but new integrations are > encouraged to provide a placeholder asterisk `*` instead.
|
||||||
|
* @summary Quit
|
||||||
|
* @param {ApiWalletPassphrase} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof StakePoolsApi
|
||||||
|
*/
|
||||||
|
StakePoolsApi.prototype.quitStakePool = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.StakePoolsApiFp(this.configuration)
|
||||||
|
.quitStakePool(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return StakePoolsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.StakePoolsApi = StakePoolsApi;
|
||||||
|
//# sourceMappingURL=stake-pools-api.js.map
|
1
apis/stake-pools-api.js.map
Normal file
1
apis/stake-pools-api.js.map
Normal file
File diff suppressed because one or more lines are too long
241
apis/transactions-api.d.ts
vendored
Normal file
241
apis/transactions-api.d.ts
vendored
Normal file
@ -0,0 +1,241 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiPostTransactionFeeData } from '../models';
|
||||||
|
import { ApiPostTransactionData } from '../models';
|
||||||
|
import { ApiTransaction } from '../models';
|
||||||
|
import { ApiFee } from '../models';
|
||||||
|
/**
|
||||||
|
* TransactionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const TransactionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteTransaction: (walletId: string, transactionId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getTransaction: (walletId: string, transactionId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listTransactions: (walletId: string, start?: string, end?: string, order?: string, minWithdrawal?: number, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransaction: (body: ApiPostTransactionData, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransactionFee: (body: ApiPostTransactionFeeData, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TransactionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const TransactionsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteTransaction(walletId: string, transactionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getTransaction(walletId: string, transactionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listTransactions(walletId: string, start?: string, end?: string, order?: string, minWithdrawal?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiTransaction>>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransaction(body: ApiPostTransactionData, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransactionFee(body: ApiPostTransactionFeeData, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiFee>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TransactionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const TransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteTransaction(walletId: string, transactionId: string, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getTransaction(walletId: string, transactionId: string, options?: any): AxiosPromise<ApiTransaction>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listTransactions(walletId: string, start?: string, end?: string, order?: string, minWithdrawal?: number, options?: any): AxiosPromise<Array<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransaction(body: ApiPostTransactionData, walletId: string, options?: any): AxiosPromise<ApiTransaction>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransactionFee(body: ApiPostTransactionFeeData, walletId: string, options?: any): AxiosPromise<ApiFee>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TransactionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class TransactionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class TransactionsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
deleteTransaction(walletId: string, transactionId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
getTransaction(walletId: string, transactionId: string, options?: any): Promise<import("axios").AxiosResponse<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
listTransactions(walletId: string, start?: string, end?: string, order?: string, minWithdrawal?: number, options?: any): Promise<import("axios").AxiosResponse<ApiTransaction[]>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
postTransaction(body: ApiPostTransactionData, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiTransaction>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
postTransactionFee(body: ApiPostTransactionFeeData, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiFee>>;
|
||||||
|
}
|
656
apis/transactions-api.js
Normal file
656
apis/transactions-api.js
Normal file
@ -0,0 +1,656 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* TransactionsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.TransactionsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteTransaction: function (walletId, transactionId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling deleteTransaction.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'transactionId' is not null or undefined
|
||||||
|
if (transactionId === null || transactionId === undefined) {
|
||||||
|
throw new base_1.RequiredError('transactionId', 'Required parameter transactionId was null or undefined when calling deleteTransaction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/transactions/{transactionId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'transactionId' + "}", encodeURIComponent(String(transactionId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getTransaction: function (walletId, transactionId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getTransaction.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'transactionId' is not null or undefined
|
||||||
|
if (transactionId === null || transactionId === undefined) {
|
||||||
|
throw new base_1.RequiredError('transactionId', 'Required parameter transactionId was null or undefined when calling getTransaction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/transactions/{transactionId}"
|
||||||
|
.replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)))
|
||||||
|
.replace("{" + 'transactionId' + "}", encodeURIComponent(String(transactionId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listTransactions: function (walletId, start, end, order, minWithdrawal, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling listTransactions.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/transactions".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (start !== undefined) {
|
||||||
|
localVarQueryParameter['start'] = start;
|
||||||
|
}
|
||||||
|
if (end !== undefined) {
|
||||||
|
localVarQueryParameter['end'] = end;
|
||||||
|
}
|
||||||
|
if (order !== undefined) {
|
||||||
|
localVarQueryParameter['order'] = order;
|
||||||
|
}
|
||||||
|
if (minWithdrawal !== undefined) {
|
||||||
|
localVarQueryParameter['minWithdrawal'] = minWithdrawal;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransaction: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postTransaction.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling postTransaction.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/transactions".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransactionFee: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postTransactionFee.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling postTransactionFee.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/payment-fees".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TransactionsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.TransactionsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteTransaction: function (walletId, transactionId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.TransactionsApiAxiosParamCreator(configuration).deleteTransaction(walletId, transactionId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getTransaction: function (walletId, transactionId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.TransactionsApiAxiosParamCreator(configuration).getTransaction(walletId, transactionId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listTransactions: function (walletId, start, end, order, minWithdrawal, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.TransactionsApiAxiosParamCreator(configuration).listTransactions(walletId, start, end, order, minWithdrawal, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransaction: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.TransactionsApiAxiosParamCreator(configuration).postTransaction(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransactionFee: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.TransactionsApiAxiosParamCreator(configuration).postTransactionFee(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TransactionsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.TransactionsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteTransaction: function (walletId, transactionId, options) {
|
||||||
|
return exports.TransactionsApiFp(configuration)
|
||||||
|
.deleteTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getTransaction: function (walletId, transactionId, options) {
|
||||||
|
return exports.TransactionsApiFp(configuration)
|
||||||
|
.getTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listTransactions: function (walletId, start, end, order, minWithdrawal, options) {
|
||||||
|
return exports.TransactionsApiFp(configuration)
|
||||||
|
.listTransactions(walletId, start, end, order, minWithdrawal, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransaction: function (body, walletId, options) {
|
||||||
|
return exports.TransactionsApiFp(configuration)
|
||||||
|
.postTransaction(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postTransactionFee: function (body, walletId, options) {
|
||||||
|
return exports.TransactionsApiFp(configuration)
|
||||||
|
.postTransactionFee(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TransactionsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class TransactionsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var TransactionsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(TransactionsApi, _super);
|
||||||
|
function TransactionsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Forget pending transaction. Importantly, a transaction, when sent, cannot be cancelled. One can only request forgetting about it in order to try spending (concurrently) the same UTxO in another transaction. But, the transaction may still show up later in a block and therefore, appear in the wallet.
|
||||||
|
* @summary Forget
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
TransactionsApi.prototype.deleteTransaction = function (walletId, transactionId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.TransactionsApiFp(this.configuration)
|
||||||
|
.deleteTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Get transaction by id.
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} transactionId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
TransactionsApi.prototype.getTransaction = function (walletId, transactionId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.TransactionsApiFp(this.configuration)
|
||||||
|
.getTransaction(walletId, transactionId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Lists all incoming and outgoing wallet's transactions.
|
||||||
|
* @summary List
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {string} [start] An optional start time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [end] An optional end time in ISO 8601 date-and-time format. Basic and extended formats are both accepted. Times can be local (with a timezone offset) or UTC. If both a start time and an end time are specified, then the start time must not be later than the end time. Example: `2008-08-08T08:08:08Z`
|
||||||
|
* @param {string} [order] An optional sort order.
|
||||||
|
* @param {number} [minWithdrawal] Returns only transactions that have at least one withdrawal above the given amount. This is particularly useful when set to `1` in order to list the withdrawal history of a wallet.
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
TransactionsApi.prototype.listTransactions = function (walletId, start, end, order, minWithdrawal, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.TransactionsApiFp(this.configuration)
|
||||||
|
.listTransactions(walletId, start, end, order, minWithdrawal, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and send transaction from the wallet.
|
||||||
|
* @summary Create
|
||||||
|
* @param {ApiPostTransactionData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
TransactionsApi.prototype.postTransaction = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.TransactionsApiFp(this.configuration)
|
||||||
|
.postTransaction(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Estimate fee for the transaction. The estimate is made by assembling multiple transactions and analyzing the distribution of their fees. The estimated_max is the highest fee observed, and the estimated_min is the fee which is lower than at least 90% of the fees observed.
|
||||||
|
* @summary Estimate Fee
|
||||||
|
* @param {ApiPostTransactionFeeData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof TransactionsApi
|
||||||
|
*/
|
||||||
|
TransactionsApi.prototype.postTransactionFee = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.TransactionsApiFp(this.configuration)
|
||||||
|
.postTransactionFee(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return TransactionsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.TransactionsApi = TransactionsApi;
|
||||||
|
//# sourceMappingURL=transactions-api.js.map
|
1
apis/transactions-api.js.map
Normal file
1
apis/transactions-api.js.map
Normal file
File diff suppressed because one or more lines are too long
74
apis/utils-api.d.ts
vendored
Normal file
74
apis/utils-api.d.ts
vendored
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { InlineResponse20016 } from '../models';
|
||||||
|
/**
|
||||||
|
* UtilsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const UtilsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth: (url?: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* UtilsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const UtilsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth(url?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse20016>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* UtilsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const UtilsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth(url?: string, options?: any): AxiosPromise<InlineResponse20016>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* UtilsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class UtilsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class UtilsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof UtilsApi
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth(url?: string, options?: any): Promise<import("axios").AxiosResponse<InlineResponse20016>>;
|
||||||
|
}
|
211
apis/utils-api.js
Normal file
211
apis/utils-api.js
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.UtilsApi = exports.UtilsApiFactory = exports.UtilsApiFp = exports.UtilsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* UtilsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.UtilsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth: function (url, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/smash/health";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
if (url !== undefined) {
|
||||||
|
localVarQueryParameter['url'] = url;
|
||||||
|
}
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* UtilsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.UtilsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth: function (url, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.UtilsApiAxiosParamCreator(configuration).getCurrentSmashHealth(url, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* UtilsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.UtilsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getCurrentSmashHealth: function (url, options) {
|
||||||
|
return exports.UtilsApiFp(configuration)
|
||||||
|
.getCurrentSmashHealth(url, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* UtilsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class UtilsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var UtilsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(UtilsApi, _super);
|
||||||
|
function UtilsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Get health status of the currently active SMASH server.
|
||||||
|
* @summary Current SMASH health
|
||||||
|
* @param {string} [url] check this url for health instead of the currently configured one
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof UtilsApi
|
||||||
|
*/
|
||||||
|
UtilsApi.prototype.getCurrentSmashHealth = function (url, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.UtilsApiFp(this.configuration)
|
||||||
|
.getCurrentSmashHealth(url, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return UtilsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.UtilsApi = UtilsApi;
|
||||||
|
//# sourceMappingURL=utils-api.js.map
|
1
apis/utils-api.js.map
Normal file
1
apis/utils-api.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"utils-api.js","sourceRoot":"","sources":["../../apis/utils-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AACH,+BAAgE;AAEhE,yDAAyD;AACzD,aAAa;AACb,gCAMgB;AAIhB;;;GAGG;AACU,QAAA,yBAAyB,GAAG,UACvC,aAA6B;IADU,iBAyDxC;IAtDC,OAAO;QACL;;;;;;WAMG;QACH,qBAAqB,EAAE,UACrB,GAAY,EACZ,OAAiB;YAAjB,wBAAA,EAAA,YAAiB;;;;oBAEX,YAAY,GAAG,eAAe,CAAA;oBAE9B,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;oBAEnE,IAAI,aAAa,EAAE;wBACjB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;qBACxC;oBACK,sBAAsB,uBAC1B,MAAM,EAAE,KAAK,IACV,WAAW,GACX,OAAO,CACX,CAAA;oBACK,uBAAuB,GAAG,EAAS,CAAA;oBACnC,sBAAsB,GAAG,EAAS,CAAA;oBAExC,IAAI,GAAG,KAAK,SAAS,EAAE;wBACrB,sBAAsB,CAAC,KAAK,CAAC,GAAG,GAAG,CAAA;qBACpC;oBAEK,KAAK,GAAG,IAAI,eAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;oBACxD,KAAW,GAAG,IAAI,sBAAsB,EAAE;wBACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAA;qBAC5C;oBACD,KAAW,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE;wBAC/B,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;qBACnC;oBACD,cAAc,CAAC,MAAM,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;oBACzD,sBAAsB,GACxB,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;oBAC/D,sBAAsB,CAAC,OAAO,kCACzB,uBAAuB,GACvB,sBAAsB,GACtB,OAAO,CAAC,OAAO,CACnB,CAAA;oBAED,sBAAO;4BACL,GAAG,EACD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI;4BACvE,OAAO,EAAE,sBAAsB;yBAChC,EAAA;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,UAAU,GAAG,UAAU,aAA6B;IAC/D,OAAO;QACL;;;;;;WAMG;QACG,qBAAqB,EAA3B,UACE,GAAY,EACZ,OAAa;;;;;gCAOa,qBAAM,iCAAyB,CACvD,aAAa,CACd,CAAC,qBAAqB,CAAC,GAAG,EAAE,OAAO,CAAC,EAAA;;4BAF/B,iBAAiB,GAAG,SAEW;4BACrC,sBAAO,UACL,KAAkC,EAClC,QAA4B;oCAD5B,sBAAA,EAAA,QAAuB,eAAW;oCAClC,yBAAA,EAAA,WAAmB,gBAAS;oCAE5B,IAAM,gBAAgB,yBACjB,iBAAiB,CAAC,OAAO,KAC5B,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAAC,GAAG,GACtC,CAAA;oCACD,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;gCACxC,CAAC,EAAA;;;;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;GAGG;AACU,QAAA,eAAe,GAAG,UAC7B,aAA6B,EAC7B,QAAiB,EACjB,KAAqB;IAErB,OAAO;QACL;;;;;;WAMG;QACH,qBAAqB,EAArB,UACE,GAAY,EACZ,OAAa;YAEb,OAAO,kBAAU,CAAC,aAAa,CAAC;iBAC7B,qBAAqB,CAAC,GAAG,EAAE,OAAO,CAAC;iBACnC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAxB,CAAwB,CAAC,CAAA;QAChD,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH;IAA8B,4BAAO;IAArC;;IAcA,CAAC;IAbC;;;;;;;OAOG;IACI,wCAAqB,GAA5B,UAA6B,GAAY,EAAE,OAAa;QAAxD,iBAIC;QAHC,OAAO,kBAAU,CAAC,IAAI,CAAC,aAAa,CAAC;aAClC,qBAAqB,CAAC,GAAG,EAAE,OAAO,CAAC;aACnC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,QAAQ,CAAC,EAAlC,CAAkC,CAAC,CAAA;IAC1D,CAAC;IACH,eAAC;AAAD,CAAC,AAdD,CAA8B,cAAO,GAcpC;AAdY,4BAAQ"}
|
280
apis/wallets-api.d.ts
vendored
Normal file
280
apis/wallets-api.d.ts
vendored
Normal file
@ -0,0 +1,280 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { AxiosPromise, AxiosInstance } from 'axios';
|
||||||
|
import { Configuration } from '../configuration';
|
||||||
|
import { RequestArgs, BaseAPI } from '../base';
|
||||||
|
import { ApiWalletPostData } from '../models';
|
||||||
|
import { ApiWalletPutData } from '../models';
|
||||||
|
import { ApiWalletPutPassphraseData } from '../models';
|
||||||
|
import { ApiWallet } from '../models';
|
||||||
|
import { ApiWalletUTxOsStatistics } from '../models';
|
||||||
|
/**
|
||||||
|
* WalletsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const WalletsApiAxiosParamCreator: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteWallet: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWallet: (walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listWallets: (options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postWallet: (body: ApiWalletPostData, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWallet: (body: ApiWalletPutData, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWalletPassphrase: (body: ApiWalletPutPassphraseData, walletId: string, options?: any) => Promise<RequestArgs>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* WalletsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const WalletsApiFp: (configuration?: Configuration) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteWallet(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiWalletUTxOsStatistics>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWallet(walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listWallets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiWallet>>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postWallet(body: ApiWalletPostData, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWallet(body: ApiWalletPutData, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWalletPassphrase(body: ApiWalletPutPassphraseData, walletId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* WalletsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const WalletsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteWallet(walletId: string, options?: any): AxiosPromise<void>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics(walletId: string, options?: any): AxiosPromise<ApiWalletUTxOsStatistics>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWallet(walletId: string, options?: any): AxiosPromise<ApiWallet>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listWallets(options?: any): AxiosPromise<Array<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postWallet(body: ApiWalletPostData, options?: any): AxiosPromise<ApiWallet>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWallet(body: ApiWalletPutData, walletId: string, options?: any): AxiosPromise<ApiWallet>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWalletPassphrase(body: ApiWalletPutPassphraseData, walletId: string, options?: any): AxiosPromise<void>;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* WalletsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class WalletsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
export declare class WalletsApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
deleteWallet(walletId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics(walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiWalletUTxOsStatistics>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
getWallet(walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
listWallets(options?: any): Promise<import("axios").AxiosResponse<ApiWallet[]>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
postWallet(body: ApiWalletPostData, options?: any): Promise<import("axios").AxiosResponse<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
putWallet(body: ApiWalletPutData, walletId: string, options?: any): Promise<import("axios").AxiosResponse<ApiWallet>>;
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
putWalletPassphrase(body: ApiWalletPutPassphraseData, walletId: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
|
||||||
|
}
|
790
apis/wallets-api.js
Normal file
790
apis/wallets-api.js
Normal file
@ -0,0 +1,790 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
var __assign = (this && this.__assign) || function () {
|
||||||
|
__assign = Object.assign || function(t) {
|
||||||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||||
|
s = arguments[i];
|
||||||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||||||
|
t[p] = s[p];
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
};
|
||||||
|
return __assign.apply(this, arguments);
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||||
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
||||||
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
||||||
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
||||||
|
function step(op) {
|
||||||
|
if (f) throw new TypeError("Generator is already executing.");
|
||||||
|
while (_) try {
|
||||||
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
||||||
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
||||||
|
switch (op[0]) {
|
||||||
|
case 0: case 1: t = op; break;
|
||||||
|
case 4: _.label++; return { value: op[1], done: false };
|
||||||
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
||||||
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
||||||
|
default:
|
||||||
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
||||||
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
||||||
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
||||||
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
||||||
|
if (t[2]) _.ops.pop();
|
||||||
|
_.trys.pop(); continue;
|
||||||
|
}
|
||||||
|
op = body.call(thisArg, _);
|
||||||
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
||||||
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.WalletsApi = exports.WalletsApiFactory = exports.WalletsApiFp = exports.WalletsApiAxiosParamCreator = void 0;
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var base_1 = require("../base");
|
||||||
|
/**
|
||||||
|
* WalletsApi - axios parameter creator
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.WalletsApiAxiosParamCreator = function (configuration) {
|
||||||
|
var _this = this;
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteWallet: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling deleteWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getUTxOsStatistics.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/statistics/utxos".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWallet: function (walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling getWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listWallets: function (options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
localVarPath = "/wallets";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postWallet: function (body, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling postWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets";
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWallet: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling putWallet.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling putWallet.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWalletPassphrase: function (body, walletId, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
// verify required parameter 'body' is not null or undefined
|
||||||
|
if (body === null || body === undefined) {
|
||||||
|
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling putWalletPassphrase.');
|
||||||
|
}
|
||||||
|
// verify required parameter 'walletId' is not null or undefined
|
||||||
|
if (walletId === null || walletId === undefined) {
|
||||||
|
throw new base_1.RequiredError('walletId', 'Required parameter walletId was null or undefined when calling putWalletPassphrase.');
|
||||||
|
}
|
||||||
|
localVarPath = "/wallets/{walletId}/passphrase".replace("{" + 'walletId' + "}", encodeURIComponent(String(walletId)));
|
||||||
|
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||||
|
if (configuration) {
|
||||||
|
baseOptions = configuration.baseOptions;
|
||||||
|
}
|
||||||
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
||||||
|
localVarHeaderParameter = {};
|
||||||
|
localVarQueryParameter = {};
|
||||||
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
query = new URLSearchParams(localVarUrlObj.search);
|
||||||
|
for (key in localVarQueryParameter) {
|
||||||
|
query.set(key, localVarQueryParameter[key]);
|
||||||
|
}
|
||||||
|
for (key in options.query) {
|
||||||
|
query.set(key, options.query[key]);
|
||||||
|
}
|
||||||
|
localVarUrlObj.search = new URLSearchParams(query).toString();
|
||||||
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
||||||
|
needsSerialization = typeof body !== 'string' ||
|
||||||
|
localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
||||||
|
localVarRequestOptions.data = needsSerialization
|
||||||
|
? JSON.stringify(body !== undefined ? body : {})
|
||||||
|
: body || '';
|
||||||
|
return [2 /*return*/, {
|
||||||
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
||||||
|
options: localVarRequestOptions
|
||||||
|
}];
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* WalletsApi - functional programming interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.WalletsApiFp = function (configuration) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteWallet: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).deleteWallet(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).getUTxOsStatistics(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWallet: function (walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).getWallet(walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listWallets: function (options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).listWallets(options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postWallet: function (body, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).postWallet(body, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWallet: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).putWallet(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWalletPassphrase: function (body, walletId, options) {
|
||||||
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
var localVarAxiosArgs;
|
||||||
|
return __generator(this, function (_a) {
|
||||||
|
switch (_a.label) {
|
||||||
|
case 0: return [4 /*yield*/, exports.WalletsApiAxiosParamCreator(configuration).putWalletPassphrase(body, walletId, options)];
|
||||||
|
case 1:
|
||||||
|
localVarAxiosArgs = _a.sent();
|
||||||
|
return [2 /*return*/, function (axios, basePath) {
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
||||||
|
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
||||||
|
return axios.request(axiosRequestArgs);
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* WalletsApi - factory interface
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.WalletsApiFactory = function (configuration, basePath, axios) {
|
||||||
|
return {
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
deleteWallet: function (walletId, options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.deleteWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getUTxOsStatistics: function (walletId, options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.getUTxOsStatistics(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
getWallet: function (walletId, options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.getWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
listWallets: function (options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.listWallets(options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
postWallet: function (body, options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.postWallet(body, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWallet: function (body, walletId, options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.putWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
putWalletPassphrase: function (body, walletId, options) {
|
||||||
|
return exports.WalletsApiFp(configuration)
|
||||||
|
.putWalletPassphrase(body, walletId, options)
|
||||||
|
.then(function (request) { return request(axios, basePath); });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* WalletsApi - object-oriented interface
|
||||||
|
* @export
|
||||||
|
* @class WalletsApi
|
||||||
|
* @extends {BaseAPI}
|
||||||
|
*/
|
||||||
|
var WalletsApi = /** @class */ (function (_super) {
|
||||||
|
__extends(WalletsApi, _super);
|
||||||
|
function WalletsApi() {
|
||||||
|
return _super !== null && _super.apply(this, arguments) || this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Delete
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.deleteWallet = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.deleteWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return the UTxOs distribution across the whole wallet, in the form of a histogram. ``` │ 100 ─ │ │ ┌───┐ 10 ─ ┌───┐ │ │ ┌───┐ │ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ ┌───┐ │ │ 1 ─ ┌───┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╷ │ │ ╷ │ │ ╷ ╷ │ │ └─┘ └─│───────│─┘ └─│─┘ └─│─┘ └─│─┘ └─│───────│─┘ └──── 10μ₳ 100μ₳ 1000μ₳ 0.1₳ 1₳ 10₳ 100₳ ```
|
||||||
|
* @summary UTxO Statistics
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.getUTxOsStatistics = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.getUTxOsStatistics(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Get
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.getWallet = function (walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.getWallet(walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Return a list of known wallets, ordered from oldest to newest.
|
||||||
|
* @summary List
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.listWallets = function (options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.listWallets(options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p> Create and restore a wallet from a mnemonic sentence or account public key.
|
||||||
|
* @summary Create / Restore
|
||||||
|
* @param {ApiWalletPostData} body
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.postWallet = function (body, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.postWallet(body, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Metadata
|
||||||
|
* @param {ApiWalletPutData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.putWallet = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.putWallet(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* <p align=\"right\">status: <strong>stable</strong></p>
|
||||||
|
* @summary Update Passphrase
|
||||||
|
* @param {ApiWalletPutPassphraseData} body
|
||||||
|
* @param {string} walletId
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof WalletsApi
|
||||||
|
*/
|
||||||
|
WalletsApi.prototype.putWalletPassphrase = function (body, walletId, options) {
|
||||||
|
var _this = this;
|
||||||
|
return exports.WalletsApiFp(this.configuration)
|
||||||
|
.putWalletPassphrase(body, walletId, options)
|
||||||
|
.then(function (request) { return request(_this.axios, _this.basePath); });
|
||||||
|
};
|
||||||
|
return WalletsApi;
|
||||||
|
}(base_1.BaseAPI));
|
||||||
|
exports.WalletsApi = WalletsApi;
|
||||||
|
//# sourceMappingURL=wallets-api.js.map
|
1
apis/wallets-api.js.map
Normal file
1
apis/wallets-api.js.map
Normal file
File diff suppressed because one or more lines are too long
55
base.d.ts
vendored
Normal file
55
base.d.ts
vendored
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
import { Configuration } from './configuration';
|
||||||
|
import { AxiosInstance } from 'axios';
|
||||||
|
export declare const BASE_PATH: string;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
export declare const COLLECTION_FORMATS: {
|
||||||
|
csv: string;
|
||||||
|
ssv: string;
|
||||||
|
tsv: string;
|
||||||
|
pipes: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface RequestArgs
|
||||||
|
*/
|
||||||
|
export interface RequestArgs {
|
||||||
|
url: string;
|
||||||
|
options: any;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class BaseAPI
|
||||||
|
*/
|
||||||
|
export declare class BaseAPI {
|
||||||
|
protected basePath: string;
|
||||||
|
protected axios: AxiosInstance;
|
||||||
|
protected configuration: Configuration | undefined;
|
||||||
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class RequiredError
|
||||||
|
* @extends {Error}
|
||||||
|
*/
|
||||||
|
export declare class RequiredError extends Error {
|
||||||
|
field: string;
|
||||||
|
name: 'RequiredError';
|
||||||
|
constructor(field: string, msg?: string);
|
||||||
|
}
|
67
base.js
Normal file
67
base.js
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
"use strict";
|
||||||
|
var __extends = (this && this.__extends) || (function () {
|
||||||
|
var extendStatics = function (d, b) {
|
||||||
|
extendStatics = Object.setPrototypeOf ||
|
||||||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||||
|
return extendStatics(d, b);
|
||||||
|
};
|
||||||
|
return function (d, b) {
|
||||||
|
extendStatics(d, b);
|
||||||
|
function __() { this.constructor = d; }
|
||||||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
||||||
|
// Some imports not used depending on template conditions
|
||||||
|
// @ts-ignore
|
||||||
|
var axios_1 = require("axios");
|
||||||
|
exports.BASE_PATH = 'https://localhost:8090/v2/'.replace(/\/+$/, '');
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
*/
|
||||||
|
exports.COLLECTION_FORMATS = {
|
||||||
|
csv: ',',
|
||||||
|
ssv: ' ',
|
||||||
|
tsv: '\t',
|
||||||
|
pipes: '|'
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class BaseAPI
|
||||||
|
*/
|
||||||
|
var BaseAPI = /** @class */ (function () {
|
||||||
|
function BaseAPI(configuration, basePath, axios) {
|
||||||
|
if (basePath === void 0) { basePath = exports.BASE_PATH; }
|
||||||
|
if (axios === void 0) { axios = axios_1.default; }
|
||||||
|
this.basePath = basePath;
|
||||||
|
this.axios = axios;
|
||||||
|
if (configuration) {
|
||||||
|
this.configuration = configuration;
|
||||||
|
this.basePath = configuration.basePath || this.basePath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return BaseAPI;
|
||||||
|
}());
|
||||||
|
exports.BaseAPI = BaseAPI;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class RequiredError
|
||||||
|
* @extends {Error}
|
||||||
|
*/
|
||||||
|
var RequiredError = /** @class */ (function (_super) {
|
||||||
|
__extends(RequiredError, _super);
|
||||||
|
function RequiredError(field, msg) {
|
||||||
|
var _this = _super.call(this, msg) || this;
|
||||||
|
_this.field = field;
|
||||||
|
_this.name = 'RequiredError';
|
||||||
|
return _this;
|
||||||
|
}
|
||||||
|
return RequiredError;
|
||||||
|
}(Error));
|
||||||
|
exports.RequiredError = RequiredError;
|
||||||
|
//# sourceMappingURL=base.js.map
|
1
base.js.map
Normal file
1
base.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"base.js","sourceRoot":"","sources":["../base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAcA,yDAAyD;AACzD,aAAa;AACb,+BAAgE;AAEnD,QAAA,SAAS,GAAG,4BAA4B,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAEzE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAChC,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACX,CAAA;AAYD;;;;GAIG;AACH;IAGE,iBACE,aAA6B,EACnB,QAA4B,EAC5B,KAAkC;QADlC,yBAAA,EAAA,WAAmB,iBAAS;QAC5B,sBAAA,EAAA,QAAuB,eAAW;QADlC,aAAQ,GAAR,QAAQ,CAAoB;QAC5B,UAAK,GAAL,KAAK,CAA6B;QAE5C,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;YAClC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAA;SACxD;IACH,CAAC;IACH,cAAC;AAAD,CAAC,AAbD,IAaC;AAbY,0BAAO;AAepB;;;;;GAKG;AACH;IAAmC,iCAAK;IAEtC,uBAAmB,KAAa,EAAE,GAAY;QAA9C,YACE,kBAAM,GAAG,CAAC,SACX;QAFkB,WAAK,GAAL,KAAK,CAAQ;QADhC,UAAI,GAAoB,eAAe,CAAA;;IAGvC,CAAC;IACH,oBAAC;AAAD,CAAC,AALD,CAAmC,KAAK,GAKvC;AALY,sCAAa"}
|
1
binaries.d.ts
vendored
Normal file
1
binaries.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
export declare const getCommand: (command: string, options?: {}) => string;
|
21
binaries.js
Normal file
21
binaries.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.getCommand = void 0;
|
||||||
|
var child_process_1 = require("child_process");
|
||||||
|
var path = require("path");
|
||||||
|
exports.getCommand = function (command, options) {
|
||||||
|
if (options === void 0) { options = {}; }
|
||||||
|
var ls = child_process_1.spawnSync(command, ['--version'], options);
|
||||||
|
if (ls.stdout &&
|
||||||
|
ls.stdout.toString() &&
|
||||||
|
(!ls.stderr || !ls.stderr.toString())) {
|
||||||
|
return command;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var binPath = child_process_1.spawnSync('npm', ['bin'], options)
|
||||||
|
.stdout.toString()
|
||||||
|
.replace(/\n/, '');
|
||||||
|
return path.join(binPath, command);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=binaries.js.map
|
1
binaries.js.map
Normal file
1
binaries.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"binaries.js","sourceRoot":"","sources":["../binaries.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,2BAA4B;AAEf,QAAA,UAAU,GAAG,UAAU,OAAe,EAAE,OAAY;IAAZ,wBAAA,EAAA,YAAY;IAC/D,IAAM,EAAE,GAAG,yBAAS,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAA;IACrD,IACE,EAAE,CAAC,MAAM;QACT,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,CAAC,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EACrC;QACA,OAAO,OAAO,CAAA;KACf;SAAM;QACL,IAAM,OAAO,GAAG,yBAAS,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;aAC/C,MAAM,CAAC,QAAQ,EAAE;aACjB,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;KACnC;AACH,CAAC,CAAA"}
|
193
config.d.ts
vendored
Normal file
193
config.d.ts
vendored
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
export declare const Config: {
|
||||||
|
Mainnet: {
|
||||||
|
activeSlotsCoeff: number;
|
||||||
|
protocolParams: {
|
||||||
|
protocolVersion: {
|
||||||
|
minor: number;
|
||||||
|
major: number;
|
||||||
|
};
|
||||||
|
decentralisationParam: number;
|
||||||
|
eMax: number;
|
||||||
|
extraEntropy: {
|
||||||
|
tag: string;
|
||||||
|
};
|
||||||
|
maxTxSize: number;
|
||||||
|
txFeePerByte: number;
|
||||||
|
txFeeFixed: number;
|
||||||
|
maxBlockBodySize: number;
|
||||||
|
maxBlockHeaderSize: number;
|
||||||
|
minFeeA: number;
|
||||||
|
minFeeB: number;
|
||||||
|
minUTxOValue: number;
|
||||||
|
poolDeposit: number;
|
||||||
|
minPoolCost: number;
|
||||||
|
keyDeposit: number;
|
||||||
|
nOpt: number;
|
||||||
|
rho: number;
|
||||||
|
tau: number;
|
||||||
|
a0: number;
|
||||||
|
};
|
||||||
|
genDelegs: {
|
||||||
|
ad5463153dc3d24b9ff133e46136028bdc1edbb897f5a7cf1b37950c: {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
b9547b8a57656539a8d9bc42c008e38d9c8bd9c8adbb1e73ad529497: {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'60baee25cbc90047e83fd01e1e57dc0b06d3d0cb150d0ab40bbfead1': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
f7b341c14cd58fca4195a9b278cce1ef402dc0e06deb77e543cd1757: {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'162f94554ac8c225383a2248c245659eda870eaa82d0ef25fc7dcd82': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'2075a095b3c844a29c24317a94a643ab8e22d54a3a3a72a420260af6': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'268cfc0b89e910ead22e0ade91493d8212f53f3e2164b2e4bef0819b': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
updateQuorum: number;
|
||||||
|
networkId: string;
|
||||||
|
initialFunds: {};
|
||||||
|
maxLovelaceSupply: number;
|
||||||
|
networkMagic: number;
|
||||||
|
epochLength: number;
|
||||||
|
systemStart: string;
|
||||||
|
slotsPerKESPeriod: number;
|
||||||
|
slotLength: number;
|
||||||
|
maxKESEvolutions: number;
|
||||||
|
securityParam: number;
|
||||||
|
};
|
||||||
|
Testnet: {
|
||||||
|
activeSlotsCoeff: number;
|
||||||
|
protocolParams: {
|
||||||
|
protocolVersion: {
|
||||||
|
minor: number;
|
||||||
|
major: number;
|
||||||
|
};
|
||||||
|
decentralisationParam: number;
|
||||||
|
eMax: number;
|
||||||
|
extraEntropy: {
|
||||||
|
tag: string;
|
||||||
|
};
|
||||||
|
maxTxSize: number;
|
||||||
|
txFeePerByte: number;
|
||||||
|
txFeeFixed: number;
|
||||||
|
maxBlockBodySize: number;
|
||||||
|
maxBlockHeaderSize: number;
|
||||||
|
minFeeA: number;
|
||||||
|
minFeeB: number;
|
||||||
|
minUTxOValue: number;
|
||||||
|
poolDeposit: number;
|
||||||
|
minPoolCost: number;
|
||||||
|
keyDeposit: number;
|
||||||
|
nOpt: number;
|
||||||
|
rho: number;
|
||||||
|
tau: number;
|
||||||
|
a0: number;
|
||||||
|
};
|
||||||
|
genDelegs: {
|
||||||
|
'2f56e87d67b8e5216582cfeb95dbdc9083110a3ef68faaa51bef3a80': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'514e81afb082fce01678809eebd90eda4f7918354ec7d0433ad16274': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'2fca486b4d8f1a0432f5bf18ef473ee4294c795a1a32e3132bc6b90f': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'4ee98623920698b77c1c7f77288cbdac5f9011ff8970b1f507567d0d': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'0d06d2547ed371fdf95fb5c4c735eecdd53e6a5bb831561bd0fcfd3d': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
'581e23030b6038bae716e5d64b9e053db10541b12e6b0b4eff485454': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
e5f27655371b54aed91cc916b2569060978be80056768fee2cc5ce1b: {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
updateQuorum: number;
|
||||||
|
networkId: string;
|
||||||
|
initialFunds: {};
|
||||||
|
maxLovelaceSupply: number;
|
||||||
|
networkMagic: number;
|
||||||
|
epochLength: number;
|
||||||
|
systemStart: string;
|
||||||
|
slotsPerKESPeriod: number;
|
||||||
|
slotLength: number;
|
||||||
|
maxKESEvolutions: number;
|
||||||
|
securityParam: number;
|
||||||
|
};
|
||||||
|
LocalCluster: {
|
||||||
|
activeSlotsCoeff: number;
|
||||||
|
protocolParams: {
|
||||||
|
poolDeposit: number;
|
||||||
|
protocolVersion: {
|
||||||
|
minor: number;
|
||||||
|
major: number;
|
||||||
|
};
|
||||||
|
minUTxOValue: number;
|
||||||
|
decentralisationParam: number;
|
||||||
|
maxTxSize: number;
|
||||||
|
txFeePerByte: number;
|
||||||
|
txFeeFixed: number;
|
||||||
|
minPoolCost: number;
|
||||||
|
minFeeA: number;
|
||||||
|
maxBlockBodySize: number;
|
||||||
|
minFeeB: number;
|
||||||
|
eMax: number;
|
||||||
|
extraEntropy: {
|
||||||
|
tag: string;
|
||||||
|
};
|
||||||
|
maxBlockHeaderSize: number;
|
||||||
|
keyDeposit: number;
|
||||||
|
keyDecayRate: number;
|
||||||
|
nOpt: number;
|
||||||
|
rho: number;
|
||||||
|
poolMinRefund: number;
|
||||||
|
tau: number;
|
||||||
|
a0: number;
|
||||||
|
};
|
||||||
|
protocolMagicId: number;
|
||||||
|
genDelegs: {
|
||||||
|
'8ae01cab15f6235958b1147e979987bbdb90788f7c4e185f1632427a': {
|
||||||
|
delegate: string;
|
||||||
|
vrf: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
updateQuorum: number;
|
||||||
|
networkId: string;
|
||||||
|
maxMajorPV: number;
|
||||||
|
initialFunds: {};
|
||||||
|
maxLovelaceSupply: number;
|
||||||
|
networkMagic: number;
|
||||||
|
epochLength: number;
|
||||||
|
staking: any;
|
||||||
|
systemStart: string;
|
||||||
|
slotsPerKESPeriod: number;
|
||||||
|
slotLength: number;
|
||||||
|
maxKESEvolutions: number;
|
||||||
|
securityParam: number;
|
||||||
|
};
|
||||||
|
};
|
197
config.js
Normal file
197
config.js
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.Config = void 0;
|
||||||
|
exports.Config = {
|
||||||
|
Mainnet: {
|
||||||
|
activeSlotsCoeff: 0.05,
|
||||||
|
protocolParams: {
|
||||||
|
protocolVersion: {
|
||||||
|
minor: 0,
|
||||||
|
major: 2
|
||||||
|
},
|
||||||
|
decentralisationParam: 1,
|
||||||
|
eMax: 18,
|
||||||
|
extraEntropy: {
|
||||||
|
tag: 'NeutralNonce'
|
||||||
|
},
|
||||||
|
maxTxSize: 16384,
|
||||||
|
txFeePerByte: 44,
|
||||||
|
txFeeFixed: 155381,
|
||||||
|
maxBlockBodySize: 65536,
|
||||||
|
maxBlockHeaderSize: 1100,
|
||||||
|
minFeeA: 44,
|
||||||
|
minFeeB: 155381,
|
||||||
|
minUTxOValue: 1000000,
|
||||||
|
poolDeposit: 500000000,
|
||||||
|
minPoolCost: 340000000,
|
||||||
|
keyDeposit: 2000000,
|
||||||
|
nOpt: 150,
|
||||||
|
rho: 0.003,
|
||||||
|
tau: 0.2,
|
||||||
|
a0: 0.3
|
||||||
|
},
|
||||||
|
genDelegs: {
|
||||||
|
ad5463153dc3d24b9ff133e46136028bdc1edbb897f5a7cf1b37950c: {
|
||||||
|
delegate: 'd9e5c76ad5ee778960804094a389f0b546b5c2b140a62f8ec43ea54d',
|
||||||
|
vrf: '64fa87e8b29a5b7bfbd6795677e3e878c505bc4a3649485d366b50abadec92d7'
|
||||||
|
},
|
||||||
|
b9547b8a57656539a8d9bc42c008e38d9c8bd9c8adbb1e73ad529497: {
|
||||||
|
delegate: '855d6fc1e54274e331e34478eeac8d060b0b90c1f9e8a2b01167c048',
|
||||||
|
vrf: '66d5167a1f426bd1adcc8bbf4b88c280d38c148d135cb41e3f5a39f948ad7fcc'
|
||||||
|
},
|
||||||
|
'60baee25cbc90047e83fd01e1e57dc0b06d3d0cb150d0ab40bbfead1': {
|
||||||
|
delegate: '7f72a1826ae3b279782ab2bc582d0d2958de65bd86b2c4f82d8ba956',
|
||||||
|
vrf: 'c0546d9aa5740afd569d3c2d9c412595cd60822bb6d9a4e8ce6c43d12bd0f674'
|
||||||
|
},
|
||||||
|
f7b341c14cd58fca4195a9b278cce1ef402dc0e06deb77e543cd1757: {
|
||||||
|
delegate: '69ae12f9e45c0c9122356c8e624b1fbbed6c22a2e3b4358cf0cb5011',
|
||||||
|
vrf: '6394a632af51a32768a6f12dac3485d9c0712d0b54e3f389f355385762a478f2'
|
||||||
|
},
|
||||||
|
'162f94554ac8c225383a2248c245659eda870eaa82d0ef25fc7dcd82': {
|
||||||
|
delegate: '4485708022839a7b9b8b639a939c85ec0ed6999b5b6dc651b03c43f6',
|
||||||
|
vrf: 'aba81e764b71006c515986bf7b37a72fbb5554f78e6775f08e384dbd572a4b32'
|
||||||
|
},
|
||||||
|
'2075a095b3c844a29c24317a94a643ab8e22d54a3a3a72a420260af6': {
|
||||||
|
delegate: '6535db26347283990a252313a7903a45e3526ec25ddba381c071b25b',
|
||||||
|
vrf: 'fcaca997b8105bd860876348fc2c6e68b13607f9bbd23515cd2193b555d267af'
|
||||||
|
},
|
||||||
|
'268cfc0b89e910ead22e0ade91493d8212f53f3e2164b2e4bef0819b': {
|
||||||
|
delegate: '1d4f2e1fda43070d71bb22a5522f86943c7c18aeb4fa47a362c27e23',
|
||||||
|
vrf: '63ef48bc5355f3e7973100c371d6a095251c80ceb40559f4750aa7014a6fb6db'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
updateQuorum: 5,
|
||||||
|
networkId: 'Mainnet',
|
||||||
|
initialFunds: {},
|
||||||
|
maxLovelaceSupply: 45000000000000000,
|
||||||
|
networkMagic: 764824073,
|
||||||
|
epochLength: 432000,
|
||||||
|
systemStart: '2017-09-23T21:44:51Z',
|
||||||
|
slotsPerKESPeriod: 129600,
|
||||||
|
slotLength: 1,
|
||||||
|
maxKESEvolutions: 62,
|
||||||
|
securityParam: 2160
|
||||||
|
},
|
||||||
|
Testnet: {
|
||||||
|
activeSlotsCoeff: 0.05,
|
||||||
|
protocolParams: {
|
||||||
|
protocolVersion: {
|
||||||
|
minor: 0,
|
||||||
|
major: 2
|
||||||
|
},
|
||||||
|
decentralisationParam: 1,
|
||||||
|
eMax: 18,
|
||||||
|
extraEntropy: {
|
||||||
|
tag: 'NeutralNonce'
|
||||||
|
},
|
||||||
|
maxTxSize: 16384,
|
||||||
|
txFeePerByte: 44,
|
||||||
|
txFeeFixed: 155381,
|
||||||
|
maxBlockBodySize: 65536,
|
||||||
|
maxBlockHeaderSize: 1100,
|
||||||
|
minFeeA: 44,
|
||||||
|
minFeeB: 155381,
|
||||||
|
minUTxOValue: 1000000,
|
||||||
|
poolDeposit: 500000000,
|
||||||
|
minPoolCost: 340000000,
|
||||||
|
keyDeposit: 2000000,
|
||||||
|
nOpt: 150,
|
||||||
|
rho: 0.003,
|
||||||
|
tau: 0.2,
|
||||||
|
a0: 0.3
|
||||||
|
},
|
||||||
|
genDelegs: {
|
||||||
|
'2f56e87d67b8e5216582cfeb95dbdc9083110a3ef68faaa51bef3a80': {
|
||||||
|
delegate: 'bd5933d3c5417f17a64c7214711a26abc3bc03e2c90dc1bb38e0c39f',
|
||||||
|
vrf: '9a0b0f537874d089cedfa9e250150405e47ea29acee87c40a223ae0a175d26f8'
|
||||||
|
},
|
||||||
|
'514e81afb082fce01678809eebd90eda4f7918354ec7d0433ad16274': {
|
||||||
|
delegate: 'eff1b5b26e65b791d6f236c7c0264012bd1696759d22bdb4dd0f6f56',
|
||||||
|
vrf: 'e6f70fb10c7523aa76648e20d17e65fd9b2ed53960fbd20b308f223b703f2e23'
|
||||||
|
},
|
||||||
|
'2fca486b4d8f1a0432f5bf18ef473ee4294c795a1a32e3132bc6b90f': {
|
||||||
|
delegate: 'de665a71064706f946030505eae950583f08c316f0f58997961092b1',
|
||||||
|
vrf: 'c3fde629add60e30142cd7ef3c680610975208b08aee42203a5c40ad5992e8f6'
|
||||||
|
},
|
||||||
|
'4ee98623920698b77c1c7f77288cbdac5f9011ff8970b1f507567d0d': {
|
||||||
|
delegate: 'bf07107c6f632de95e34af7e009d2aafa19916c7ba89b944fbedcd72',
|
||||||
|
vrf: '9d7d12e3d6b02835be3e76cfc6ae93d937035ee0e006d04a0eef9dea19754e21'
|
||||||
|
},
|
||||||
|
'0d06d2547ed371fdf95fb5c4c735eecdd53e6a5bb831561bd0fcfd3d': {
|
||||||
|
delegate: '6df3e1b4b8a84c63c805076a85e5aa00924997a4eae85fddf0aee3ca',
|
||||||
|
vrf: '0774e5810fe02a014ec97ef424797172f2b8c5dcfb6e4cfc98b411c31d5096d8'
|
||||||
|
},
|
||||||
|
'581e23030b6038bae716e5d64b9e053db10541b12e6b0b4eff485454': {
|
||||||
|
delegate: 'b0dca078b823cde627da136200d6618c49ad712b77972a1c5e135763',
|
||||||
|
vrf: '16a4e883b72ddbd09a4f8a1170fc346ab11e4202f814faa73e9d2433ee03e7b0'
|
||||||
|
},
|
||||||
|
e5f27655371b54aed91cc916b2569060978be80056768fee2cc5ce1b: {
|
||||||
|
delegate: 'b3873a254459f506e47b9a252ee7912e538b364447f31576a170db65',
|
||||||
|
vrf: 'cc5c897fdf5db0017326656fe35aeb20c72b175540793f9b9b8dc9ade001bbc4'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
updateQuorum: 5,
|
||||||
|
networkId: 'Testnet',
|
||||||
|
initialFunds: {},
|
||||||
|
maxLovelaceSupply: 45000000000000000,
|
||||||
|
networkMagic: 1097911063,
|
||||||
|
epochLength: 432000,
|
||||||
|
systemStart: '2019-07-24T20:20:16Z',
|
||||||
|
slotsPerKESPeriod: 129600,
|
||||||
|
slotLength: 1,
|
||||||
|
maxKESEvolutions: 62,
|
||||||
|
securityParam: 2160
|
||||||
|
},
|
||||||
|
LocalCluster: {
|
||||||
|
activeSlotsCoeff: 0.5,
|
||||||
|
protocolParams: {
|
||||||
|
poolDeposit: 0,
|
||||||
|
protocolVersion: {
|
||||||
|
minor: 0,
|
||||||
|
major: 0
|
||||||
|
},
|
||||||
|
minUTxOValue: 1000000,
|
||||||
|
decentralisationParam: 0.25,
|
||||||
|
maxTxSize: 16384,
|
||||||
|
txFeePerByte: 44,
|
||||||
|
txFeeFixed: 155381,
|
||||||
|
minPoolCost: 0,
|
||||||
|
minFeeA: 100,
|
||||||
|
maxBlockBodySize: 239857,
|
||||||
|
minFeeB: 100000,
|
||||||
|
eMax: 1000000,
|
||||||
|
extraEntropy: {
|
||||||
|
tag: 'NeutralNonce'
|
||||||
|
},
|
||||||
|
maxBlockHeaderSize: 217569,
|
||||||
|
keyDeposit: 1000000,
|
||||||
|
keyDecayRate: 0,
|
||||||
|
nOpt: 3,
|
||||||
|
rho: 0.178650067,
|
||||||
|
poolMinRefund: 0,
|
||||||
|
tau: 0.0,
|
||||||
|
a0: 0.1
|
||||||
|
},
|
||||||
|
protocolMagicId: 764824073,
|
||||||
|
genDelegs: {
|
||||||
|
'8ae01cab15f6235958b1147e979987bbdb90788f7c4e185f1632427a': {
|
||||||
|
delegate: 'b7bf59bb963aa785afe220f5b0d3deb826fd0bcaeeee58cb81ab443d',
|
||||||
|
vrf: '4ebcf8b4c13c24d89144d72f544d1c425b4a3aa1ace30af4eb72752e75b40d3e'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
updateQuorum: 1,
|
||||||
|
networkId: 'Mainnet',
|
||||||
|
maxMajorPV: 25446,
|
||||||
|
initialFunds: {},
|
||||||
|
maxLovelaceSupply: 1000000000000000000,
|
||||||
|
networkMagic: 764824073,
|
||||||
|
epochLength: 50,
|
||||||
|
staking: null,
|
||||||
|
systemStart: '2021-06-09T21:25:40Z',
|
||||||
|
slotsPerKESPeriod: 86400,
|
||||||
|
slotLength: 0.2,
|
||||||
|
maxKESEvolutions: 90,
|
||||||
|
securityParam: 5
|
||||||
|
}
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=config.js.map
|
1
config.js.map
Normal file
1
config.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"config.js","sourceRoot":"","sources":["../config.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE;QACP,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,eAAe,EAAE;gBACf,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACT;YACD,qBAAqB,EAAE,CAAC;YACxB,IAAI,EAAE,EAAE;YACR,YAAY,EAAE;gBACZ,GAAG,EAAE,cAAc;aACpB;YACD,SAAS,EAAE,KAAK;YAChB,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,MAAM;YAClB,gBAAgB,EAAE,KAAK;YACvB,kBAAkB,EAAE,IAAI;YACxB,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,SAAS;YACtB,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,GAAG;YACT,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,GAAG;YACR,EAAE,EAAE,GAAG;SACR;QACD,SAAS,EAAE;YACT,wDAAwD,EAAE;gBACxD,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,wDAAwD,EAAE;gBACxD,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,wDAAwD,EAAE;gBACxD,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;SACF;QACD,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,SAAS;QACpB,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,iBAAiB;QACpC,YAAY,EAAE,SAAS;QACvB,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,sBAAsB;QACnC,iBAAiB,EAAE,MAAM;QACzB,UAAU,EAAE,CAAC;QACb,gBAAgB,EAAE,EAAE;QACpB,aAAa,EAAE,IAAI;KACpB;IACD,OAAO,EAAE;QACP,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,eAAe,EAAE;gBACf,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACT;YACD,qBAAqB,EAAE,CAAC;YACxB,IAAI,EAAE,EAAE;YACR,YAAY,EAAE;gBACZ,GAAG,EAAE,cAAc;aACpB;YACD,SAAS,EAAE,KAAK;YAChB,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,MAAM;YAClB,gBAAgB,EAAE,KAAK;YACvB,kBAAkB,EAAE,IAAI;YACxB,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,MAAM;YACf,YAAY,EAAE,OAAO;YACrB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,SAAS;YACtB,UAAU,EAAE,OAAO;YACnB,IAAI,EAAE,GAAG;YACT,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,GAAG;YACR,EAAE,EAAE,GAAG;SACR;QACD,SAAS,EAAE;YACT,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;YACD,wDAAwD,EAAE;gBACxD,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;SACF;QACD,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,SAAS;QACpB,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,iBAAiB;QACpC,YAAY,EAAE,UAAU;QACxB,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,sBAAsB;QACnC,iBAAiB,EAAE,MAAM;QACzB,UAAU,EAAE,CAAC;QACb,gBAAgB,EAAE,EAAE;QACpB,aAAa,EAAE,IAAI;KACpB;IACD,YAAY,EAAE;QACZ,gBAAgB,EAAE,GAAG;QACrB,cAAc,EAAE;YACd,WAAW,EAAE,CAAC;YACd,eAAe,EAAE;gBACf,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;aACT;YACD,YAAY,EAAE,OAAO;YACrB,qBAAqB,EAAE,IAAI;YAC3B,SAAS,EAAE,KAAK;YAChB,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,MAAM;YAClB,WAAW,EAAE,CAAC;YACd,OAAO,EAAE,GAAG;YACZ,gBAAgB,EAAE,MAAM;YACxB,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,OAAO;YACb,YAAY,EAAE;gBACZ,GAAG,EAAE,cAAc;aACpB;YACD,kBAAkB,EAAE,MAAM;YAC1B,UAAU,EAAE,OAAO;YACnB,YAAY,EAAE,CAAC;YACf,IAAI,EAAE,CAAC;YACP,GAAG,EAAE,WAAW;YAChB,aAAa,EAAE,CAAC;YAChB,GAAG,EAAE,GAAG;YACR,EAAE,EAAE,GAAG;SACR;QACD,eAAe,EAAE,SAAS;QAC1B,SAAS,EAAE;YACT,0DAA0D,EAAE;gBAC1D,QAAQ,EAAE,0DAA0D;gBACpE,GAAG,EAAE,kEAAkE;aACxE;SACF;QACD,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,EAAE;QAChB,iBAAiB,EAAE,mBAAmB;QACtC,YAAY,EAAE,SAAS;QACvB,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,IAAW;QACpB,WAAW,EAAE,sBAAsB;QACnC,iBAAiB,EAAE,KAAK;QACxB,UAAU,EAAE,GAAG;QACf,gBAAgB,EAAE,EAAE;QACpB,aAAa,EAAE,CAAC;KACjB;CACF,CAAA"}
|
194
config/local-cluster-alonzo-genesis.json
Normal file
194
config/local-cluster-alonzo-genesis.json
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
{
|
||||||
|
"lovelacePerUTxOWord": 34482,
|
||||||
|
"executionPrices": {
|
||||||
|
"prSteps": {
|
||||||
|
"numerator": 721,
|
||||||
|
"denominator": 10000000
|
||||||
|
},
|
||||||
|
"prMem": {
|
||||||
|
"numerator": 577,
|
||||||
|
"denominator": 10000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxTxExUnits": {
|
||||||
|
"exUnitsMem": 10000000,
|
||||||
|
"exUnitsSteps": 10000000000
|
||||||
|
},
|
||||||
|
"maxBlockExUnits": {
|
||||||
|
"exUnitsMem": 50000000,
|
||||||
|
"exUnitsSteps": 40000000000
|
||||||
|
},
|
||||||
|
"maxValueSize": 5000,
|
||||||
|
"collateralPercentage": 150,
|
||||||
|
"maxCollateralInputs": 3,
|
||||||
|
"costModels": {
|
||||||
|
"PlutusV1": {
|
||||||
|
"divideInteger-memory-arguments-slope": 1,
|
||||||
|
"headList-cpu-arguments": 150000,
|
||||||
|
"cekBuiltinCost-exBudgetCPU": 29773,
|
||||||
|
"listData-cpu-arguments": 150000,
|
||||||
|
"lengthOfByteString-cpu-arguments": 150000,
|
||||||
|
"blake2b-cpu-arguments-intercept": 2477736,
|
||||||
|
"remainderInteger-cpu-arguments-constant": 148000,
|
||||||
|
"multiplyInteger-cpu-arguments-slope": 11218,
|
||||||
|
"mkNilData-memory-arguments": 32,
|
||||||
|
"lessThanByteString-memory-arguments": 1,
|
||||||
|
"cekVarCost-exBudgetMemory": 100,
|
||||||
|
"subtractInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"indexByteString-cpu-arguments": 150000,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"appendByteString-cpu-arguments-slope": 621,
|
||||||
|
"equalsInteger-cpu-arguments-slope": 1326,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"cekStartupCost-exBudgetMemory": 100,
|
||||||
|
"equalsString-cpu-arguments-intercept": 150000,
|
||||||
|
"nullList-cpu-arguments": 150000,
|
||||||
|
"cekForceCost-exBudgetMemory": 100,
|
||||||
|
"consByteString-memory-arguments-slope": 1,
|
||||||
|
"encodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"divideInteger-memory-arguments-minimum": 1,
|
||||||
|
"addInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"unConstrData-cpu-arguments": 150000,
|
||||||
|
"appendString-memory-arguments-slope": 1,
|
||||||
|
"modInteger-memory-arguments-minimum": 1,
|
||||||
|
"quotientInteger-cpu-arguments-constant": 148000,
|
||||||
|
"cekLamCost-exBudgetMemory": 100,
|
||||||
|
"sliceByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"lessThanEqualsInteger-memory-arguments": 1,
|
||||||
|
"equalsData-cpu-arguments-intercept": 150000,
|
||||||
|
"lessThanInteger-cpu-arguments-slope": 497,
|
||||||
|
"mkPairData-cpu-arguments": 150000,
|
||||||
|
"fstPair-memory-arguments": 32,
|
||||||
|
"sndPair-memory-arguments": 32,
|
||||||
|
"sndPair-cpu-arguments": 150000,
|
||||||
|
"fstPair-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
||||||
|
"mapData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-intercept": 112536,
|
||||||
|
"sliceByteString-memory-arguments-intercept": 0,
|
||||||
|
"appendString-cpu-arguments-slope": 1000,
|
||||||
|
"quotientInteger-memory-arguments-intercept": 0,
|
||||||
|
"addInteger-memory-arguments-intercept": 1,
|
||||||
|
"cekVarCost-exBudgetCPU": 29773,
|
||||||
|
"cekStartupCost-exBudgetCPU": 100,
|
||||||
|
"indexByteString-memory-arguments": 1,
|
||||||
|
"sha2_256-cpu-arguments-slope": 29175,
|
||||||
|
"multiplyInteger-memory-arguments-intercept": 0,
|
||||||
|
"equalsInteger-memory-arguments": 1,
|
||||||
|
"appendByteString-memory-arguments-slope": 1,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"nullList-memory-arguments": 32,
|
||||||
|
"encodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"cekForceCost-exBudgetCPU": 29773,
|
||||||
|
"lessThanByteString-cpu-arguments-slope": 248,
|
||||||
|
"equalsString-memory-arguments": 1,
|
||||||
|
"mkNilData-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-memory-arguments-slope": 1,
|
||||||
|
"tailList-memory-arguments": 32,
|
||||||
|
"consByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"remainderInteger-memory-arguments-intercept": 0,
|
||||||
|
"lessThanEqualsByteString-memory-arguments": 1,
|
||||||
|
"unIData-memory-arguments": 32,
|
||||||
|
"cekBuiltinCost-exBudgetMemory": 100,
|
||||||
|
"bData-memory-arguments": 32,
|
||||||
|
"equalsData-memory-arguments": 1,
|
||||||
|
"unMapData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-slope": 247,
|
||||||
|
"mkNilPairData-memory-arguments": 32,
|
||||||
|
"appendString-cpu-arguments-intercept": 150000,
|
||||||
|
"addInteger-memory-arguments-slope": 1,
|
||||||
|
"chooseList-memory-arguments": 32,
|
||||||
|
"sliceByteString-memory-arguments-slope": 1,
|
||||||
|
"constrData-memory-arguments": 32,
|
||||||
|
"quotientInteger-memory-arguments-slope": 1,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
||||||
|
"ifThenElse-cpu-arguments": 1,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"decodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"modInteger-memory-arguments-slope": 1,
|
||||||
|
"mkCons-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-memory-arguments": 1,
|
||||||
|
"sha3_256-cpu-arguments-slope": 82363,
|
||||||
|
"equalsString-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
||||||
|
"tailList-cpu-arguments": 150000,
|
||||||
|
"consByteString-memory-arguments-intercept": 0,
|
||||||
|
"encodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"chooseData-memory-arguments": 32,
|
||||||
|
"equalsInteger-cpu-arguments-intercept": 136542,
|
||||||
|
"bData-cpu-arguments": 150000,
|
||||||
|
"unIData-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-slope": 0,
|
||||||
|
"appendByteString-cpu-arguments-intercept": 396231,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekDelayCost-exBudgetMemory": 100,
|
||||||
|
"equalsString-cpu-arguments-constant": 1000,
|
||||||
|
"trace-cpu-arguments": 150000,
|
||||||
|
"blake2b-cpu-arguments-slope": 29175,
|
||||||
|
"cekConstCost-exBudgetMemory": 100,
|
||||||
|
"multiplyInteger-cpu-arguments-intercept": 61516,
|
||||||
|
"iData-cpu-arguments": 150000,
|
||||||
|
"unBData-cpu-arguments": 150000,
|
||||||
|
"sha2_256-memory-arguments": 4,
|
||||||
|
"unListData-cpu-arguments": 150000,
|
||||||
|
"divideInteger-memory-arguments-intercept": 0,
|
||||||
|
"decodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"mapData-cpu-arguments": 150000,
|
||||||
|
"modInteger-memory-arguments-intercept": 0,
|
||||||
|
"chooseUnit-memory-arguments": 32,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"verifySignature-memory-arguments": 1,
|
||||||
|
"sha3_256-cpu-arguments-intercept": 0,
|
||||||
|
"cekLamCost-exBudgetCPU": 29773,
|
||||||
|
"unConstrData-memory-arguments": 32,
|
||||||
|
"lessThanInteger-memory-arguments": 1,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"verifySignature-cpu-arguments-slope": 1,
|
||||||
|
"modInteger-cpu-arguments-constant": 148000,
|
||||||
|
"equalsByteString-cpu-arguments-constant": 150000,
|
||||||
|
"chooseUnit-cpu-arguments": 150000,
|
||||||
|
"mkPairData-memory-arguments": 32,
|
||||||
|
"quotientInteger-memory-arguments-minimum": 1,
|
||||||
|
"decodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"subtractInteger-memory-arguments-intercept": 1,
|
||||||
|
"iData-memory-arguments": 32,
|
||||||
|
"unBData-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"cekDelayCost-exBudgetCPU": 29773,
|
||||||
|
"consByteString-cpu-arguments-slope": 1000,
|
||||||
|
"cekConstCost-exBudgetCPU": 29773,
|
||||||
|
"trace-memory-arguments": 32,
|
||||||
|
"blake2b-memory-arguments": 4,
|
||||||
|
"divideInteger-cpu-arguments-constant": 148000,
|
||||||
|
"remainderInteger-memory-arguments-slope": 1,
|
||||||
|
"unListData-memory-arguments": 32,
|
||||||
|
"lengthOfByteString-memory-arguments": 4,
|
||||||
|
"remainderInteger-memory-arguments-minimum": 1,
|
||||||
|
"appendByteString-memory-arguments-intercept": 0,
|
||||||
|
"listData-memory-arguments": 32,
|
||||||
|
"multiplyInteger-memory-arguments-slope": 1,
|
||||||
|
"chooseData-cpu-arguments": 150000,
|
||||||
|
"encodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"sha2_256-cpu-arguments-intercept": 2477736,
|
||||||
|
"headList-memory-arguments": 32,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"decodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"cekApplyCost-exBudgetMemory": 100,
|
||||||
|
"mkCons-memory-arguments": 32,
|
||||||
|
"ifThenElse-memory-arguments": 1,
|
||||||
|
"sha3_256-memory-arguments": 4,
|
||||||
|
"verifySignature-cpu-arguments-intercept": 3345831,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"chooseList-cpu-arguments": 150000,
|
||||||
|
"equalsData-cpu-arguments-slope": 10000,
|
||||||
|
"cekApplyCost-exBudgetCPU": 29773,
|
||||||
|
"addInteger-cpu-arguments-slope": 0,
|
||||||
|
"unMapData-cpu-arguments": 150000,
|
||||||
|
"sliceByteString-cpu-arguments-slope": 5000,
|
||||||
|
"appendString-memory-arguments-intercept": 0,
|
||||||
|
"constrData-cpu-arguments": 150000,
|
||||||
|
"mkNilPairData-cpu-arguments": 150000,
|
||||||
|
"lessThanInteger-cpu-arguments-intercept": 179690
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1520
config/local-cluster-byron-genesis.json
Normal file
1520
config/local-cluster-byron-genesis.json
Normal file
File diff suppressed because it is too large
Load Diff
208
config/local-cluster-protocol.json
Normal file
208
config/local-cluster-protocol.json
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
{
|
||||||
|
"txFeePerByte": 100,
|
||||||
|
"minUTxOValue": 1000000,
|
||||||
|
"decentralization": 0.25,
|
||||||
|
"utxoCostPerWord": 34482,
|
||||||
|
"stakePoolDeposit": 0,
|
||||||
|
"poolRetireMaxEpoch": 1000000,
|
||||||
|
"extraPraosEntropy": null,
|
||||||
|
"collateralPercentage": 150,
|
||||||
|
"stakePoolTargetNum": 3,
|
||||||
|
"maxBlockBodySize": 239857,
|
||||||
|
"minPoolCost": 0,
|
||||||
|
"maxTxSize": 16384,
|
||||||
|
"treasuryCut": 0,
|
||||||
|
"maxBlockExecutionUnits": {
|
||||||
|
"memory": 50000000,
|
||||||
|
"steps": 40000000000
|
||||||
|
},
|
||||||
|
"maxCollateralInputs": 3,
|
||||||
|
"maxValueSize": 5000,
|
||||||
|
"maxBlockHeaderSize": 217569,
|
||||||
|
"maxTxExecutionUnits": {
|
||||||
|
"memory": 10000000,
|
||||||
|
"steps": 10000000000
|
||||||
|
},
|
||||||
|
"costModels": {
|
||||||
|
"PlutusScriptV1": {
|
||||||
|
"cekConstCost-exBudgetMemory": 100,
|
||||||
|
"unBData-cpu-arguments": 150000,
|
||||||
|
"divideInteger-memory-arguments-minimum": 1,
|
||||||
|
"nullList-cpu-arguments": 150000,
|
||||||
|
"cekDelayCost-exBudgetMemory": 100,
|
||||||
|
"appendByteString-cpu-arguments-slope": 621,
|
||||||
|
"sha2_256-memory-arguments": 4,
|
||||||
|
"multiplyInteger-cpu-arguments-intercept": 61516,
|
||||||
|
"iData-cpu-arguments": 150000,
|
||||||
|
"equalsString-cpu-arguments-intercept": 150000,
|
||||||
|
"trace-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"encodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"equalsString-cpu-arguments-constant": 1000,
|
||||||
|
"blake2b-cpu-arguments-slope": 29175,
|
||||||
|
"consByteString-memory-arguments-intercept": 0,
|
||||||
|
"headList-cpu-arguments": 150000,
|
||||||
|
"listData-cpu-arguments": 150000,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"divideInteger-memory-arguments-slope": 1,
|
||||||
|
"bData-cpu-arguments": 150000,
|
||||||
|
"chooseData-memory-arguments": 32,
|
||||||
|
"cekBuiltinCost-exBudgetCPU": 29773,
|
||||||
|
"mkNilData-memory-arguments": 32,
|
||||||
|
"equalsInteger-cpu-arguments-intercept": 136542,
|
||||||
|
"lengthOfByteString-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-slope": 0,
|
||||||
|
"unIData-cpu-arguments": 150000,
|
||||||
|
"sliceByteString-cpu-arguments-slope": 5000,
|
||||||
|
"unMapData-cpu-arguments": 150000,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"lessThanInteger-cpu-arguments-intercept": 179690,
|
||||||
|
"appendString-memory-arguments-intercept": 0,
|
||||||
|
"mkCons-cpu-arguments": 150000,
|
||||||
|
"sha3_256-cpu-arguments-slope": 82363,
|
||||||
|
"ifThenElse-cpu-arguments": 1,
|
||||||
|
"mkNilPairData-cpu-arguments": 150000,
|
||||||
|
"constrData-memory-arguments": 32,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
||||||
|
"addInteger-memory-arguments-slope": 1,
|
||||||
|
"chooseList-memory-arguments": 32,
|
||||||
|
"equalsData-memory-arguments": 1,
|
||||||
|
"decodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"bData-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-slope": 248,
|
||||||
|
"listData-memory-arguments": 32,
|
||||||
|
"consByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"headList-memory-arguments": 32,
|
||||||
|
"subtractInteger-memory-arguments-slope": 1,
|
||||||
|
"appendByteString-memory-arguments-intercept": 0,
|
||||||
|
"unIData-memory-arguments": 32,
|
||||||
|
"remainderInteger-memory-arguments-minimum": 1,
|
||||||
|
"lengthOfByteString-memory-arguments": 4,
|
||||||
|
"encodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"cekStartupCost-exBudgetCPU": 100,
|
||||||
|
"remainderInteger-memory-arguments-slope": 1,
|
||||||
|
"multiplyInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekForceCost-exBudgetCPU": 29773,
|
||||||
|
"unListData-memory-arguments": 32,
|
||||||
|
"sha2_256-cpu-arguments-slope": 29175,
|
||||||
|
"indexByteString-memory-arguments": 1,
|
||||||
|
"equalsInteger-memory-arguments": 1,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekVarCost-exBudgetCPU": 29773,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
||||||
|
"addInteger-memory-arguments-intercept": 1,
|
||||||
|
"sndPair-cpu-arguments": 150000,
|
||||||
|
"lessThanInteger-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetCPU": 29773,
|
||||||
|
"chooseUnit-cpu-arguments": 150000,
|
||||||
|
"decodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"fstPair-cpu-arguments": 150000,
|
||||||
|
"quotientInteger-memory-arguments-minimum": 1,
|
||||||
|
"lessThanEqualsInteger-memory-arguments": 1,
|
||||||
|
"chooseUnit-memory-arguments": 32,
|
||||||
|
"fstPair-memory-arguments": 32,
|
||||||
|
"quotientInteger-cpu-arguments-constant": 148000,
|
||||||
|
"mapData-cpu-arguments": 150000,
|
||||||
|
"unConstrData-cpu-arguments": 150000,
|
||||||
|
"mkPairData-cpu-arguments": 150000,
|
||||||
|
"sndPair-memory-arguments": 32,
|
||||||
|
"decodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"equalsData-cpu-arguments-intercept": 150000,
|
||||||
|
"addInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"modInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekStartupCost-exBudgetMemory": 100,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"divideInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekVarCost-exBudgetMemory": 100,
|
||||||
|
"consByteString-memory-arguments-slope": 1,
|
||||||
|
"cekForceCost-exBudgetMemory": 100,
|
||||||
|
"unListData-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"indexByteString-cpu-arguments": 150000,
|
||||||
|
"equalsInteger-cpu-arguments-slope": 1326,
|
||||||
|
"lessThanByteString-memory-arguments": 1,
|
||||||
|
"blake2b-cpu-arguments-intercept": 2477736,
|
||||||
|
"encodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"multiplyInteger-cpu-arguments-slope": 11218,
|
||||||
|
"tailList-cpu-arguments": 150000,
|
||||||
|
"appendByteString-cpu-arguments-intercept": 396231,
|
||||||
|
"equalsString-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
||||||
|
"remainderInteger-cpu-arguments-constant": 148000,
|
||||||
|
"chooseList-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-memory-arguments": 1,
|
||||||
|
"constrData-cpu-arguments": 150000,
|
||||||
|
"cekApplyCost-exBudgetCPU": 29773,
|
||||||
|
"equalsData-cpu-arguments-slope": 10000,
|
||||||
|
"decodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"modInteger-memory-arguments-slope": 1,
|
||||||
|
"addInteger-cpu-arguments-slope": 0,
|
||||||
|
"appendString-cpu-arguments-intercept": 150000,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"unMapData-memory-arguments": 32,
|
||||||
|
"cekApplyCost-exBudgetMemory": 100,
|
||||||
|
"quotientInteger-memory-arguments-slope": 1,
|
||||||
|
"mkNilPairData-memory-arguments": 32,
|
||||||
|
"ifThenElse-memory-arguments": 1,
|
||||||
|
"equalsByteString-cpu-arguments-slope": 247,
|
||||||
|
"sliceByteString-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-memory-arguments": 4,
|
||||||
|
"mkCons-memory-arguments": 32,
|
||||||
|
"verifySignature-cpu-arguments-intercept": 3345831,
|
||||||
|
"cekBuiltinCost-exBudgetMemory": 100,
|
||||||
|
"remainderInteger-memory-arguments-intercept": 0,
|
||||||
|
"lessThanEqualsByteString-memory-arguments": 1,
|
||||||
|
"mkNilData-cpu-arguments": 150000,
|
||||||
|
"equalsString-memory-arguments": 1,
|
||||||
|
"chooseData-cpu-arguments": 150000,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"tailList-memory-arguments": 32,
|
||||||
|
"sha2_256-cpu-arguments-intercept": 2477736,
|
||||||
|
"multiplyInteger-memory-arguments-slope": 1,
|
||||||
|
"iData-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-constant": 148000,
|
||||||
|
"cekDelayCost-exBudgetCPU": 29773,
|
||||||
|
"encodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"subtractInteger-memory-arguments-intercept": 1,
|
||||||
|
"nullList-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"appendByteString-memory-arguments-slope": 1,
|
||||||
|
"blake2b-memory-arguments": 4,
|
||||||
|
"unBData-memory-arguments": 32,
|
||||||
|
"cekConstCost-exBudgetCPU": 29773,
|
||||||
|
"consByteString-cpu-arguments-slope": 1000,
|
||||||
|
"trace-memory-arguments": 32,
|
||||||
|
"quotientInteger-memory-arguments-intercept": 0,
|
||||||
|
"mapData-memory-arguments": 32,
|
||||||
|
"verifySignature-cpu-arguments-slope": 1,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"modInteger-cpu-arguments-constant": 148000,
|
||||||
|
"appendString-cpu-arguments-slope": 1000,
|
||||||
|
"unConstrData-memory-arguments": 32,
|
||||||
|
"mkPairData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-constant": 150000,
|
||||||
|
"equalsByteString-cpu-arguments-intercept": 112536,
|
||||||
|
"sliceByteString-memory-arguments-intercept": 0,
|
||||||
|
"lessThanInteger-cpu-arguments-slope": 497,
|
||||||
|
"verifySignature-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetMemory": 100,
|
||||||
|
"sliceByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"modInteger-memory-arguments-minimum": 1,
|
||||||
|
"appendString-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-cpu-arguments-intercept": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"protocolVersion": {
|
||||||
|
"minor": 0,
|
||||||
|
"major": 6
|
||||||
|
},
|
||||||
|
"txFeeFixed": 100000,
|
||||||
|
"stakeAddressDeposit": 1000000,
|
||||||
|
"monetaryExpansion": 0.178650067,
|
||||||
|
"poolPledgeInfluence": 0.1,
|
||||||
|
"executionUnitPrices": {
|
||||||
|
"priceSteps": 7.21e-5,
|
||||||
|
"priceMemory": 5.77e-2
|
||||||
|
}
|
||||||
|
}
|
51
config/local-cluster-shelley-genesis.json
Normal file
51
config/local-cluster-shelley-genesis.json
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"activeSlotsCoeff": 0.5,
|
||||||
|
"protocolParams": {
|
||||||
|
"poolDeposit": 0,
|
||||||
|
"protocolVersion": {
|
||||||
|
"minor": 0,
|
||||||
|
"major": 6
|
||||||
|
},
|
||||||
|
"minUTxOValue": 1000000,
|
||||||
|
"decentralisationParam": 0.25,
|
||||||
|
"maxTxSize": 16384,
|
||||||
|
"txFeePerByte": 44,
|
||||||
|
"txFeeFixed": 155381,
|
||||||
|
"minPoolCost": 0,
|
||||||
|
"minFeeA": 100,
|
||||||
|
"maxBlockBodySize": 239857,
|
||||||
|
"minFeeB": 100000,
|
||||||
|
"eMax": 1000000,
|
||||||
|
"extraEntropy": {
|
||||||
|
"tag": "NeutralNonce"
|
||||||
|
},
|
||||||
|
"maxBlockHeaderSize": 217569,
|
||||||
|
"keyDeposit": 1000000,
|
||||||
|
"keyDecayRate": 0,
|
||||||
|
"nOpt": 3,
|
||||||
|
"rho": 0.178650067,
|
||||||
|
"poolMinRefund": 0,
|
||||||
|
"tau": 0.0,
|
||||||
|
"a0": 0.1
|
||||||
|
},
|
||||||
|
"protocolMagicId": 764824073,
|
||||||
|
"genDelegs": {
|
||||||
|
"8ae01cab15f6235958b1147e979987bbdb90788f7c4e185f1632427a": {
|
||||||
|
"delegate": "b7bf59bb963aa785afe220f5b0d3deb826fd0bcaeeee58cb81ab443d",
|
||||||
|
"vrf": "4ebcf8b4c13c24d89144d72f544d1c425b4a3aa1ace30af4eb72752e75b40d3e"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"updateQuorum": 1,
|
||||||
|
"networkId": "Mainnet",
|
||||||
|
"maxMajorPV": 25446,
|
||||||
|
"initialFunds": {},
|
||||||
|
"maxLovelaceSupply": 1000000000000000000,
|
||||||
|
"networkMagic": 764824073,
|
||||||
|
"epochLength": 100,
|
||||||
|
"staking": null,
|
||||||
|
"systemStart": "2021-12-09T02:52:57Z",
|
||||||
|
"slotsPerKESPeriod": 86400,
|
||||||
|
"slotLength": 0.2,
|
||||||
|
"maxKESEvolutions": 90,
|
||||||
|
"securityParam": 5
|
||||||
|
}
|
194
config/mainnet-alonzo-genesis.json
Normal file
194
config/mainnet-alonzo-genesis.json
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
{
|
||||||
|
"lovelacePerUTxOWord": 34482,
|
||||||
|
"executionPrices": {
|
||||||
|
"prSteps": {
|
||||||
|
"numerator": 721,
|
||||||
|
"denominator": 10000000
|
||||||
|
},
|
||||||
|
"prMem": {
|
||||||
|
"numerator": 577,
|
||||||
|
"denominator": 10000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxTxExUnits": {
|
||||||
|
"exUnitsMem": 10000000,
|
||||||
|
"exUnitsSteps": 10000000000
|
||||||
|
},
|
||||||
|
"maxBlockExUnits": {
|
||||||
|
"exUnitsMem": 50000000,
|
||||||
|
"exUnitsSteps": 40000000000
|
||||||
|
},
|
||||||
|
"maxValueSize": 5000,
|
||||||
|
"collateralPercentage": 150,
|
||||||
|
"maxCollateralInputs": 3,
|
||||||
|
"costModels": {
|
||||||
|
"PlutusV1": {
|
||||||
|
"sha2_256-memory-arguments": 4,
|
||||||
|
"equalsString-cpu-arguments-constant": 1000,
|
||||||
|
"cekDelayCost-exBudgetMemory": 100,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"divideInteger-memory-arguments-minimum": 1,
|
||||||
|
"appendByteString-cpu-arguments-slope": 621,
|
||||||
|
"blake2b-cpu-arguments-slope": 29175,
|
||||||
|
"iData-cpu-arguments": 150000,
|
||||||
|
"encodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"unBData-cpu-arguments": 150000,
|
||||||
|
"multiplyInteger-cpu-arguments-intercept": 61516,
|
||||||
|
"cekConstCost-exBudgetMemory": 100,
|
||||||
|
"nullList-cpu-arguments": 150000,
|
||||||
|
"equalsString-cpu-arguments-intercept": 150000,
|
||||||
|
"trace-cpu-arguments": 150000,
|
||||||
|
"mkNilData-memory-arguments": 32,
|
||||||
|
"lengthOfByteString-cpu-arguments": 150000,
|
||||||
|
"cekBuiltinCost-exBudgetCPU": 29773,
|
||||||
|
"bData-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-slope": 0,
|
||||||
|
"unIData-cpu-arguments": 150000,
|
||||||
|
"consByteString-memory-arguments-intercept": 0,
|
||||||
|
"divideInteger-memory-arguments-slope": 1,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"listData-cpu-arguments": 150000,
|
||||||
|
"headList-cpu-arguments": 150000,
|
||||||
|
"chooseData-memory-arguments": 32,
|
||||||
|
"equalsInteger-cpu-arguments-intercept": 136542,
|
||||||
|
"sha3_256-cpu-arguments-slope": 82363,
|
||||||
|
"sliceByteString-cpu-arguments-slope": 5000,
|
||||||
|
"unMapData-cpu-arguments": 150000,
|
||||||
|
"lessThanInteger-cpu-arguments-intercept": 179690,
|
||||||
|
"mkCons-cpu-arguments": 150000,
|
||||||
|
"appendString-memory-arguments-intercept": 0,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"ifThenElse-cpu-arguments": 1,
|
||||||
|
"mkNilPairData-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
||||||
|
"addInteger-memory-arguments-slope": 1,
|
||||||
|
"chooseList-memory-arguments": 32,
|
||||||
|
"constrData-memory-arguments": 32,
|
||||||
|
"decodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"equalsData-memory-arguments": 1,
|
||||||
|
"subtractInteger-memory-arguments-slope": 1,
|
||||||
|
"appendByteString-memory-arguments-intercept": 0,
|
||||||
|
"lengthOfByteString-memory-arguments": 4,
|
||||||
|
"headList-memory-arguments": 32,
|
||||||
|
"listData-memory-arguments": 32,
|
||||||
|
"consByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"unIData-memory-arguments": 32,
|
||||||
|
"remainderInteger-memory-arguments-minimum": 1,
|
||||||
|
"bData-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-slope": 248,
|
||||||
|
"encodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"cekStartupCost-exBudgetCPU": 100,
|
||||||
|
"multiplyInteger-memory-arguments-intercept": 0,
|
||||||
|
"unListData-memory-arguments": 32,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekVarCost-exBudgetCPU": 29773,
|
||||||
|
"remainderInteger-memory-arguments-slope": 1,
|
||||||
|
"cekForceCost-exBudgetCPU": 29773,
|
||||||
|
"sha2_256-cpu-arguments-slope": 29175,
|
||||||
|
"equalsInteger-memory-arguments": 1,
|
||||||
|
"indexByteString-memory-arguments": 1,
|
||||||
|
"addInteger-memory-arguments-intercept": 1,
|
||||||
|
"chooseUnit-cpu-arguments": 150000,
|
||||||
|
"sndPair-cpu-arguments": 150000,
|
||||||
|
"cekLamCost-exBudgetCPU": 29773,
|
||||||
|
"fstPair-cpu-arguments": 150000,
|
||||||
|
"quotientInteger-memory-arguments-minimum": 1,
|
||||||
|
"decodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanInteger-memory-arguments": 1,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
||||||
|
"fstPair-memory-arguments": 32,
|
||||||
|
"modInteger-memory-arguments-intercept": 0,
|
||||||
|
"unConstrData-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsInteger-memory-arguments": 1,
|
||||||
|
"chooseUnit-memory-arguments": 32,
|
||||||
|
"sndPair-memory-arguments": 32,
|
||||||
|
"addInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"decodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"equalsData-cpu-arguments-intercept": 150000,
|
||||||
|
"mapData-cpu-arguments": 150000,
|
||||||
|
"mkPairData-cpu-arguments": 150000,
|
||||||
|
"quotientInteger-cpu-arguments-constant": 148000,
|
||||||
|
"consByteString-memory-arguments-slope": 1,
|
||||||
|
"cekVarCost-exBudgetMemory": 100,
|
||||||
|
"indexByteString-cpu-arguments": 150000,
|
||||||
|
"unListData-cpu-arguments": 150000,
|
||||||
|
"equalsInteger-cpu-arguments-slope": 1326,
|
||||||
|
"cekStartupCost-exBudgetMemory": 100,
|
||||||
|
"subtractInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"divideInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekForceCost-exBudgetMemory": 100,
|
||||||
|
"blake2b-cpu-arguments-intercept": 2477736,
|
||||||
|
"remainderInteger-cpu-arguments-constant": 148000,
|
||||||
|
"tailList-cpu-arguments": 150000,
|
||||||
|
"encodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"equalsString-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanByteString-memory-arguments": 1,
|
||||||
|
"multiplyInteger-cpu-arguments-slope": 11218,
|
||||||
|
"appendByteString-cpu-arguments-intercept": 396231,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
||||||
|
"modInteger-memory-arguments-slope": 1,
|
||||||
|
"addInteger-cpu-arguments-slope": 0,
|
||||||
|
"equalsData-cpu-arguments-slope": 10000,
|
||||||
|
"decodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"chooseList-cpu-arguments": 150000,
|
||||||
|
"constrData-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-memory-arguments": 1,
|
||||||
|
"cekApplyCost-exBudgetCPU": 29773,
|
||||||
|
"quotientInteger-memory-arguments-slope": 1,
|
||||||
|
"verifySignature-cpu-arguments-intercept": 3345831,
|
||||||
|
"unMapData-memory-arguments": 32,
|
||||||
|
"mkCons-memory-arguments": 32,
|
||||||
|
"sliceByteString-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-memory-arguments": 4,
|
||||||
|
"ifThenElse-memory-arguments": 1,
|
||||||
|
"mkNilPairData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-slope": 247,
|
||||||
|
"appendString-cpu-arguments-intercept": 150000,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekApplyCost-exBudgetMemory": 100,
|
||||||
|
"equalsString-memory-arguments": 1,
|
||||||
|
"multiplyInteger-memory-arguments-slope": 1,
|
||||||
|
"cekBuiltinCost-exBudgetMemory": 100,
|
||||||
|
"remainderInteger-memory-arguments-intercept": 0,
|
||||||
|
"sha2_256-cpu-arguments-intercept": 2477736,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"lessThanEqualsByteString-memory-arguments": 1,
|
||||||
|
"tailList-memory-arguments": 32,
|
||||||
|
"mkNilData-cpu-arguments": 150000,
|
||||||
|
"chooseData-cpu-arguments": 150000,
|
||||||
|
"unBData-memory-arguments": 32,
|
||||||
|
"blake2b-memory-arguments": 4,
|
||||||
|
"iData-memory-arguments": 32,
|
||||||
|
"nullList-memory-arguments": 32,
|
||||||
|
"cekDelayCost-exBudgetCPU": 29773,
|
||||||
|
"subtractInteger-memory-arguments-intercept": 1,
|
||||||
|
"lessThanByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"consByteString-cpu-arguments-slope": 1000,
|
||||||
|
"appendByteString-memory-arguments-slope": 1,
|
||||||
|
"trace-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-constant": 148000,
|
||||||
|
"cekConstCost-exBudgetCPU": 29773,
|
||||||
|
"encodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"mapData-memory-arguments": 32,
|
||||||
|
"appendString-cpu-arguments-slope": 1000,
|
||||||
|
"modInteger-cpu-arguments-constant": 148000,
|
||||||
|
"verifySignature-cpu-arguments-slope": 1,
|
||||||
|
"unConstrData-memory-arguments": 32,
|
||||||
|
"quotientInteger-memory-arguments-intercept": 0,
|
||||||
|
"equalsByteString-cpu-arguments-constant": 150000,
|
||||||
|
"sliceByteString-memory-arguments-intercept": 0,
|
||||||
|
"mkPairData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-intercept": 112536,
|
||||||
|
"appendString-memory-arguments-slope": 1,
|
||||||
|
"lessThanInteger-cpu-arguments-slope": 497,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"modInteger-memory-arguments-minimum": 1,
|
||||||
|
"sha3_256-cpu-arguments-intercept": 0,
|
||||||
|
"verifySignature-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetMemory": 100,
|
||||||
|
"sliceByteString-cpu-arguments-intercept": 150000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14638
config/mainnet-byron-genesis.json
Normal file
14638
config/mainnet-byron-genesis.json
Normal file
File diff suppressed because it is too large
Load Diff
208
config/mainnet-protocol.json
Normal file
208
config/mainnet-protocol.json
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
{
|
||||||
|
"txFeePerByte": 44,
|
||||||
|
"minUTxOValue": 1000000,
|
||||||
|
"decentralization": 0,
|
||||||
|
"utxoCostPerWord": 34482,
|
||||||
|
"stakePoolDeposit": 500000000,
|
||||||
|
"poolRetireMaxEpoch": 18,
|
||||||
|
"extraPraosEntropy": null,
|
||||||
|
"collateralPercentage": 150,
|
||||||
|
"stakePoolTargetNum": 500,
|
||||||
|
"maxBlockBodySize": 73728,
|
||||||
|
"minPoolCost": 340000000,
|
||||||
|
"maxTxSize": 16384,
|
||||||
|
"treasuryCut": 0.2,
|
||||||
|
"maxBlockExecutionUnits": {
|
||||||
|
"memory": 50000000,
|
||||||
|
"steps": 40000000000
|
||||||
|
},
|
||||||
|
"maxCollateralInputs": 3,
|
||||||
|
"maxValueSize": 5000,
|
||||||
|
"maxBlockHeaderSize": 1100,
|
||||||
|
"maxTxExecutionUnits": {
|
||||||
|
"memory": 11250000,
|
||||||
|
"steps": 10000000000
|
||||||
|
},
|
||||||
|
"costModels": {
|
||||||
|
"PlutusScriptV1": {
|
||||||
|
"cekConstCost-exBudgetMemory": 100,
|
||||||
|
"unBData-cpu-arguments": 150000,
|
||||||
|
"divideInteger-memory-arguments-minimum": 1,
|
||||||
|
"nullList-cpu-arguments": 150000,
|
||||||
|
"cekDelayCost-exBudgetMemory": 100,
|
||||||
|
"appendByteString-cpu-arguments-slope": 621,
|
||||||
|
"sha2_256-memory-arguments": 4,
|
||||||
|
"multiplyInteger-cpu-arguments-intercept": 61516,
|
||||||
|
"iData-cpu-arguments": 150000,
|
||||||
|
"equalsString-cpu-arguments-intercept": 150000,
|
||||||
|
"trace-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"encodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"equalsString-cpu-arguments-constant": 1000,
|
||||||
|
"blake2b-cpu-arguments-slope": 29175,
|
||||||
|
"consByteString-memory-arguments-intercept": 0,
|
||||||
|
"headList-cpu-arguments": 150000,
|
||||||
|
"listData-cpu-arguments": 150000,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"divideInteger-memory-arguments-slope": 1,
|
||||||
|
"bData-cpu-arguments": 150000,
|
||||||
|
"chooseData-memory-arguments": 32,
|
||||||
|
"cekBuiltinCost-exBudgetCPU": 29773,
|
||||||
|
"mkNilData-memory-arguments": 32,
|
||||||
|
"equalsInteger-cpu-arguments-intercept": 136542,
|
||||||
|
"lengthOfByteString-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-slope": 0,
|
||||||
|
"unIData-cpu-arguments": 150000,
|
||||||
|
"sliceByteString-cpu-arguments-slope": 5000,
|
||||||
|
"unMapData-cpu-arguments": 150000,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"lessThanInteger-cpu-arguments-intercept": 179690,
|
||||||
|
"appendString-memory-arguments-intercept": 0,
|
||||||
|
"mkCons-cpu-arguments": 150000,
|
||||||
|
"sha3_256-cpu-arguments-slope": 82363,
|
||||||
|
"ifThenElse-cpu-arguments": 1,
|
||||||
|
"mkNilPairData-cpu-arguments": 150000,
|
||||||
|
"constrData-memory-arguments": 32,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
||||||
|
"addInteger-memory-arguments-slope": 1,
|
||||||
|
"chooseList-memory-arguments": 32,
|
||||||
|
"equalsData-memory-arguments": 1,
|
||||||
|
"decodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"bData-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-slope": 248,
|
||||||
|
"listData-memory-arguments": 32,
|
||||||
|
"consByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"headList-memory-arguments": 32,
|
||||||
|
"subtractInteger-memory-arguments-slope": 1,
|
||||||
|
"appendByteString-memory-arguments-intercept": 0,
|
||||||
|
"unIData-memory-arguments": 32,
|
||||||
|
"remainderInteger-memory-arguments-minimum": 1,
|
||||||
|
"lengthOfByteString-memory-arguments": 4,
|
||||||
|
"encodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"cekStartupCost-exBudgetCPU": 100,
|
||||||
|
"remainderInteger-memory-arguments-slope": 1,
|
||||||
|
"multiplyInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekForceCost-exBudgetCPU": 29773,
|
||||||
|
"unListData-memory-arguments": 32,
|
||||||
|
"sha2_256-cpu-arguments-slope": 29175,
|
||||||
|
"indexByteString-memory-arguments": 1,
|
||||||
|
"equalsInteger-memory-arguments": 1,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekVarCost-exBudgetCPU": 29773,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
||||||
|
"addInteger-memory-arguments-intercept": 1,
|
||||||
|
"sndPair-cpu-arguments": 150000,
|
||||||
|
"lessThanInteger-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetCPU": 29773,
|
||||||
|
"chooseUnit-cpu-arguments": 150000,
|
||||||
|
"decodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"fstPair-cpu-arguments": 150000,
|
||||||
|
"quotientInteger-memory-arguments-minimum": 1,
|
||||||
|
"lessThanEqualsInteger-memory-arguments": 1,
|
||||||
|
"chooseUnit-memory-arguments": 32,
|
||||||
|
"fstPair-memory-arguments": 32,
|
||||||
|
"quotientInteger-cpu-arguments-constant": 148000,
|
||||||
|
"mapData-cpu-arguments": 150000,
|
||||||
|
"unConstrData-cpu-arguments": 150000,
|
||||||
|
"mkPairData-cpu-arguments": 150000,
|
||||||
|
"sndPair-memory-arguments": 32,
|
||||||
|
"decodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"equalsData-cpu-arguments-intercept": 150000,
|
||||||
|
"addInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"modInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekStartupCost-exBudgetMemory": 100,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"divideInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekVarCost-exBudgetMemory": 100,
|
||||||
|
"consByteString-memory-arguments-slope": 1,
|
||||||
|
"cekForceCost-exBudgetMemory": 100,
|
||||||
|
"unListData-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"indexByteString-cpu-arguments": 150000,
|
||||||
|
"equalsInteger-cpu-arguments-slope": 1326,
|
||||||
|
"lessThanByteString-memory-arguments": 1,
|
||||||
|
"blake2b-cpu-arguments-intercept": 2477736,
|
||||||
|
"encodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"multiplyInteger-cpu-arguments-slope": 11218,
|
||||||
|
"tailList-cpu-arguments": 150000,
|
||||||
|
"appendByteString-cpu-arguments-intercept": 396231,
|
||||||
|
"equalsString-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
||||||
|
"remainderInteger-cpu-arguments-constant": 148000,
|
||||||
|
"chooseList-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-memory-arguments": 1,
|
||||||
|
"constrData-cpu-arguments": 150000,
|
||||||
|
"cekApplyCost-exBudgetCPU": 29773,
|
||||||
|
"equalsData-cpu-arguments-slope": 10000,
|
||||||
|
"decodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"modInteger-memory-arguments-slope": 1,
|
||||||
|
"addInteger-cpu-arguments-slope": 0,
|
||||||
|
"appendString-cpu-arguments-intercept": 150000,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"unMapData-memory-arguments": 32,
|
||||||
|
"cekApplyCost-exBudgetMemory": 100,
|
||||||
|
"quotientInteger-memory-arguments-slope": 1,
|
||||||
|
"mkNilPairData-memory-arguments": 32,
|
||||||
|
"ifThenElse-memory-arguments": 1,
|
||||||
|
"equalsByteString-cpu-arguments-slope": 247,
|
||||||
|
"sliceByteString-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-memory-arguments": 4,
|
||||||
|
"mkCons-memory-arguments": 32,
|
||||||
|
"verifySignature-cpu-arguments-intercept": 3345831,
|
||||||
|
"cekBuiltinCost-exBudgetMemory": 100,
|
||||||
|
"remainderInteger-memory-arguments-intercept": 0,
|
||||||
|
"lessThanEqualsByteString-memory-arguments": 1,
|
||||||
|
"mkNilData-cpu-arguments": 150000,
|
||||||
|
"equalsString-memory-arguments": 1,
|
||||||
|
"chooseData-cpu-arguments": 150000,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"tailList-memory-arguments": 32,
|
||||||
|
"sha2_256-cpu-arguments-intercept": 2477736,
|
||||||
|
"multiplyInteger-memory-arguments-slope": 1,
|
||||||
|
"iData-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-constant": 148000,
|
||||||
|
"cekDelayCost-exBudgetCPU": 29773,
|
||||||
|
"encodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"subtractInteger-memory-arguments-intercept": 1,
|
||||||
|
"nullList-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"appendByteString-memory-arguments-slope": 1,
|
||||||
|
"blake2b-memory-arguments": 4,
|
||||||
|
"unBData-memory-arguments": 32,
|
||||||
|
"cekConstCost-exBudgetCPU": 29773,
|
||||||
|
"consByteString-cpu-arguments-slope": 1000,
|
||||||
|
"trace-memory-arguments": 32,
|
||||||
|
"quotientInteger-memory-arguments-intercept": 0,
|
||||||
|
"mapData-memory-arguments": 32,
|
||||||
|
"verifySignature-cpu-arguments-slope": 1,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"modInteger-cpu-arguments-constant": 148000,
|
||||||
|
"appendString-cpu-arguments-slope": 1000,
|
||||||
|
"unConstrData-memory-arguments": 32,
|
||||||
|
"mkPairData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-constant": 150000,
|
||||||
|
"equalsByteString-cpu-arguments-intercept": 112536,
|
||||||
|
"sliceByteString-memory-arguments-intercept": 0,
|
||||||
|
"lessThanInteger-cpu-arguments-slope": 497,
|
||||||
|
"verifySignature-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetMemory": 100,
|
||||||
|
"sliceByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"modInteger-memory-arguments-minimum": 1,
|
||||||
|
"appendString-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-cpu-arguments-intercept": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"protocolVersion": {
|
||||||
|
"minor": 0,
|
||||||
|
"major": 6
|
||||||
|
},
|
||||||
|
"txFeeFixed": 155381,
|
||||||
|
"stakeAddressDeposit": 2000000,
|
||||||
|
"monetaryExpansion": 3.0e-3,
|
||||||
|
"poolPledgeInfluence": 0.3,
|
||||||
|
"executionUnitPrices": {
|
||||||
|
"priceSteps": 7.21e-5,
|
||||||
|
"priceMemory": 5.77e-2
|
||||||
|
}
|
||||||
|
}
|
70
config/mainnet-shelley-genesis.json
Normal file
70
config/mainnet-shelley-genesis.json
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{
|
||||||
|
"activeSlotsCoeff": 0.05,
|
||||||
|
"protocolParams": {
|
||||||
|
"protocolVersion": {
|
||||||
|
"minor": 0,
|
||||||
|
"major": 2
|
||||||
|
},
|
||||||
|
"decentralisationParam": 1,
|
||||||
|
"eMax": 18,
|
||||||
|
"extraEntropy": {
|
||||||
|
"tag": "NeutralNonce"
|
||||||
|
},
|
||||||
|
"maxTxSize": 16384,
|
||||||
|
"txFeePerByte": 44,
|
||||||
|
"txFeeFixed": 155381,
|
||||||
|
"maxBlockBodySize": 65536,
|
||||||
|
"maxBlockHeaderSize": 1100,
|
||||||
|
"minFeeA": 44,
|
||||||
|
"minFeeB": 155381,
|
||||||
|
"minUTxOValue": 1000000,
|
||||||
|
"poolDeposit": 500000000,
|
||||||
|
"minPoolCost": 340000000,
|
||||||
|
"keyDeposit": 2000000,
|
||||||
|
"nOpt": 150,
|
||||||
|
"rho": 0.003,
|
||||||
|
"tau": 0.2,
|
||||||
|
"a0": 0.3
|
||||||
|
},
|
||||||
|
"genDelegs": {
|
||||||
|
"ad5463153dc3d24b9ff133e46136028bdc1edbb897f5a7cf1b37950c": {
|
||||||
|
"delegate": "d9e5c76ad5ee778960804094a389f0b546b5c2b140a62f8ec43ea54d",
|
||||||
|
"vrf": "64fa87e8b29a5b7bfbd6795677e3e878c505bc4a3649485d366b50abadec92d7"
|
||||||
|
},
|
||||||
|
"b9547b8a57656539a8d9bc42c008e38d9c8bd9c8adbb1e73ad529497": {
|
||||||
|
"delegate": "855d6fc1e54274e331e34478eeac8d060b0b90c1f9e8a2b01167c048",
|
||||||
|
"vrf": "66d5167a1f426bd1adcc8bbf4b88c280d38c148d135cb41e3f5a39f948ad7fcc"
|
||||||
|
},
|
||||||
|
"60baee25cbc90047e83fd01e1e57dc0b06d3d0cb150d0ab40bbfead1": {
|
||||||
|
"delegate": "7f72a1826ae3b279782ab2bc582d0d2958de65bd86b2c4f82d8ba956",
|
||||||
|
"vrf": "c0546d9aa5740afd569d3c2d9c412595cd60822bb6d9a4e8ce6c43d12bd0f674"
|
||||||
|
},
|
||||||
|
"f7b341c14cd58fca4195a9b278cce1ef402dc0e06deb77e543cd1757": {
|
||||||
|
"delegate": "69ae12f9e45c0c9122356c8e624b1fbbed6c22a2e3b4358cf0cb5011",
|
||||||
|
"vrf": "6394a632af51a32768a6f12dac3485d9c0712d0b54e3f389f355385762a478f2"
|
||||||
|
},
|
||||||
|
"162f94554ac8c225383a2248c245659eda870eaa82d0ef25fc7dcd82": {
|
||||||
|
"delegate": "4485708022839a7b9b8b639a939c85ec0ed6999b5b6dc651b03c43f6",
|
||||||
|
"vrf": "aba81e764b71006c515986bf7b37a72fbb5554f78e6775f08e384dbd572a4b32"
|
||||||
|
},
|
||||||
|
"2075a095b3c844a29c24317a94a643ab8e22d54a3a3a72a420260af6": {
|
||||||
|
"delegate": "6535db26347283990a252313a7903a45e3526ec25ddba381c071b25b",
|
||||||
|
"vrf": "fcaca997b8105bd860876348fc2c6e68b13607f9bbd23515cd2193b555d267af"
|
||||||
|
},
|
||||||
|
"268cfc0b89e910ead22e0ade91493d8212f53f3e2164b2e4bef0819b": {
|
||||||
|
"delegate": "1d4f2e1fda43070d71bb22a5522f86943c7c18aeb4fa47a362c27e23",
|
||||||
|
"vrf": "63ef48bc5355f3e7973100c371d6a095251c80ceb40559f4750aa7014a6fb6db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"updateQuorum": 5,
|
||||||
|
"networkId": "Mainnet",
|
||||||
|
"initialFunds": {},
|
||||||
|
"maxLovelaceSupply": 45000000000000000,
|
||||||
|
"networkMagic": 764824073,
|
||||||
|
"epochLength": 432000,
|
||||||
|
"systemStart": "2017-09-23T21:44:51Z",
|
||||||
|
"slotsPerKESPeriod": 129600,
|
||||||
|
"slotLength": 1,
|
||||||
|
"maxKESEvolutions": 62,
|
||||||
|
"securityParam": 2160
|
||||||
|
}
|
18526
config/network.config.d.ts
vendored
Normal file
18526
config/network.config.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
37
config/network.config.js
Normal file
37
config/network.config.js
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.LocalCluster = exports.Testnet = exports.Mainnet = void 0;
|
||||||
|
var ByronGenesis = require("./mainnet-byron-genesis.json");
|
||||||
|
var ShelleyGenesis = require("./mainnet-shelley-genesis.json");
|
||||||
|
var AlonzoGenesis = require("./mainnet-alonzo-genesis.json");
|
||||||
|
var Protocols = require("./mainnet-protocol.json");
|
||||||
|
var TestnetByronGenesis = require("./testnet-byron-genesis.json");
|
||||||
|
var TestnetShelleyGenesis = require("./testnet-shelley-genesis.json");
|
||||||
|
var TestnetAlonzoGenesis = require("./testnet-alonzo-genesis.json");
|
||||||
|
var TestnetProtocols = require("./testnet-protocol.json");
|
||||||
|
var LocalClusterByronGenesis = require("./local-cluster-byron-genesis.json");
|
||||||
|
var LocalClusterShelleyGenesis = require("./local-cluster-shelley-genesis.json");
|
||||||
|
var LocalClusterAlonzoGenesis = require("./local-cluster-alonzo-genesis.json");
|
||||||
|
var LocalClusterProtocols = require("./local-cluster-protocol.json");
|
||||||
|
exports.Mainnet = {
|
||||||
|
byron: ByronGenesis,
|
||||||
|
shelley: ShelleyGenesis,
|
||||||
|
alonzo: AlonzoGenesis,
|
||||||
|
protocols: Protocols,
|
||||||
|
protocolParams: Protocols
|
||||||
|
};
|
||||||
|
exports.Testnet = {
|
||||||
|
byron: TestnetByronGenesis,
|
||||||
|
shelley: TestnetShelleyGenesis,
|
||||||
|
alonzo: TestnetAlonzoGenesis,
|
||||||
|
protocols: TestnetProtocols,
|
||||||
|
protocolParams: TestnetProtocols
|
||||||
|
};
|
||||||
|
exports.LocalCluster = {
|
||||||
|
byron: LocalClusterByronGenesis,
|
||||||
|
shelley: LocalClusterShelleyGenesis,
|
||||||
|
alonzo: LocalClusterAlonzoGenesis,
|
||||||
|
protocols: LocalClusterProtocols,
|
||||||
|
protocolParams: LocalClusterProtocols
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=network.config.js.map
|
1
config/network.config.js.map
Normal file
1
config/network.config.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"network.config.js","sourceRoot":"","sources":["../../config/network.config.ts"],"names":[],"mappings":";;;AAAA,2DAA4D;AAC5D,+DAAgE;AAChE,6DAA8D;AAC9D,mDAAoD;AAEpD,kEAAmE;AACnE,sEAAuE;AACvE,oEAAqE;AACrE,0DAA2D;AAE3D,6EAA8E;AAC9E,iFAAkF;AAClF,+EAAgF;AAChF,qEAAsE;AAEzD,QAAA,OAAO,GAAG;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,cAAc;IACvB,MAAM,EAAE,aAAa;IACrB,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,SAAS;CAC1B,CAAA;AAEY,QAAA,OAAO,GAAG;IACrB,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,qBAAqB;IAC9B,MAAM,EAAE,oBAAoB;IAC5B,SAAS,EAAE,gBAAgB;IAC3B,cAAc,EAAE,gBAAgB;CACjC,CAAA;AAEY,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,0BAA0B;IACnC,MAAM,EAAE,yBAAyB;IACjC,SAAS,EAAE,qBAAqB;IAChC,cAAc,EAAE,qBAAqB;CACtC,CAAA"}
|
194
config/testnet-alonzo-genesis.json
Normal file
194
config/testnet-alonzo-genesis.json
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
{
|
||||||
|
"lovelacePerUTxOWord": 34482,
|
||||||
|
"executionPrices": {
|
||||||
|
"prSteps": {
|
||||||
|
"numerator": 721,
|
||||||
|
"denominator": 10000000
|
||||||
|
},
|
||||||
|
"prMem": {
|
||||||
|
"numerator": 577,
|
||||||
|
"denominator": 10000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxTxExUnits": {
|
||||||
|
"exUnitsMem": 10000000,
|
||||||
|
"exUnitsSteps": 10000000000
|
||||||
|
},
|
||||||
|
"maxBlockExUnits": {
|
||||||
|
"exUnitsMem": 50000000,
|
||||||
|
"exUnitsSteps": 40000000000
|
||||||
|
},
|
||||||
|
"maxValueSize": 5000,
|
||||||
|
"collateralPercentage": 150,
|
||||||
|
"maxCollateralInputs": 3,
|
||||||
|
"costModels": {
|
||||||
|
"PlutusV1": {
|
||||||
|
"sha2_256-memory-arguments": 4,
|
||||||
|
"equalsString-cpu-arguments-constant": 1000,
|
||||||
|
"cekDelayCost-exBudgetMemory": 100,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"divideInteger-memory-arguments-minimum": 1,
|
||||||
|
"appendByteString-cpu-arguments-slope": 621,
|
||||||
|
"blake2b-cpu-arguments-slope": 29175,
|
||||||
|
"iData-cpu-arguments": 150000,
|
||||||
|
"encodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"unBData-cpu-arguments": 150000,
|
||||||
|
"multiplyInteger-cpu-arguments-intercept": 61516,
|
||||||
|
"cekConstCost-exBudgetMemory": 100,
|
||||||
|
"nullList-cpu-arguments": 150000,
|
||||||
|
"equalsString-cpu-arguments-intercept": 150000,
|
||||||
|
"trace-cpu-arguments": 150000,
|
||||||
|
"mkNilData-memory-arguments": 32,
|
||||||
|
"lengthOfByteString-cpu-arguments": 150000,
|
||||||
|
"cekBuiltinCost-exBudgetCPU": 29773,
|
||||||
|
"bData-cpu-arguments": 150000,
|
||||||
|
"subtractInteger-cpu-arguments-slope": 0,
|
||||||
|
"unIData-cpu-arguments": 150000,
|
||||||
|
"consByteString-memory-arguments-intercept": 0,
|
||||||
|
"divideInteger-memory-arguments-slope": 1,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"listData-cpu-arguments": 150000,
|
||||||
|
"headList-cpu-arguments": 150000,
|
||||||
|
"chooseData-memory-arguments": 32,
|
||||||
|
"equalsInteger-cpu-arguments-intercept": 136542,
|
||||||
|
"sha3_256-cpu-arguments-slope": 82363,
|
||||||
|
"sliceByteString-cpu-arguments-slope": 5000,
|
||||||
|
"unMapData-cpu-arguments": 150000,
|
||||||
|
"lessThanInteger-cpu-arguments-intercept": 179690,
|
||||||
|
"mkCons-cpu-arguments": 150000,
|
||||||
|
"appendString-memory-arguments-intercept": 0,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"ifThenElse-cpu-arguments": 1,
|
||||||
|
"mkNilPairData-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
||||||
|
"addInteger-memory-arguments-slope": 1,
|
||||||
|
"chooseList-memory-arguments": 32,
|
||||||
|
"constrData-memory-arguments": 32,
|
||||||
|
"decodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"equalsData-memory-arguments": 1,
|
||||||
|
"subtractInteger-memory-arguments-slope": 1,
|
||||||
|
"appendByteString-memory-arguments-intercept": 0,
|
||||||
|
"lengthOfByteString-memory-arguments": 4,
|
||||||
|
"headList-memory-arguments": 32,
|
||||||
|
"listData-memory-arguments": 32,
|
||||||
|
"consByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"unIData-memory-arguments": 32,
|
||||||
|
"remainderInteger-memory-arguments-minimum": 1,
|
||||||
|
"bData-memory-arguments": 32,
|
||||||
|
"lessThanByteString-cpu-arguments-slope": 248,
|
||||||
|
"encodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"cekStartupCost-exBudgetCPU": 100,
|
||||||
|
"multiplyInteger-memory-arguments-intercept": 0,
|
||||||
|
"unListData-memory-arguments": 32,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekVarCost-exBudgetCPU": 29773,
|
||||||
|
"remainderInteger-memory-arguments-slope": 1,
|
||||||
|
"cekForceCost-exBudgetCPU": 29773,
|
||||||
|
"sha2_256-cpu-arguments-slope": 29175,
|
||||||
|
"equalsInteger-memory-arguments": 1,
|
||||||
|
"indexByteString-memory-arguments": 1,
|
||||||
|
"addInteger-memory-arguments-intercept": 1,
|
||||||
|
"chooseUnit-cpu-arguments": 150000,
|
||||||
|
"sndPair-cpu-arguments": 150000,
|
||||||
|
"cekLamCost-exBudgetCPU": 29773,
|
||||||
|
"fstPair-cpu-arguments": 150000,
|
||||||
|
"quotientInteger-memory-arguments-minimum": 1,
|
||||||
|
"decodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanInteger-memory-arguments": 1,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
||||||
|
"fstPair-memory-arguments": 32,
|
||||||
|
"modInteger-memory-arguments-intercept": 0,
|
||||||
|
"unConstrData-cpu-arguments": 150000,
|
||||||
|
"lessThanEqualsInteger-memory-arguments": 1,
|
||||||
|
"chooseUnit-memory-arguments": 32,
|
||||||
|
"sndPair-memory-arguments": 32,
|
||||||
|
"addInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"decodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"equalsData-cpu-arguments-intercept": 150000,
|
||||||
|
"mapData-cpu-arguments": 150000,
|
||||||
|
"mkPairData-cpu-arguments": 150000,
|
||||||
|
"quotientInteger-cpu-arguments-constant": 148000,
|
||||||
|
"consByteString-memory-arguments-slope": 1,
|
||||||
|
"cekVarCost-exBudgetMemory": 100,
|
||||||
|
"indexByteString-cpu-arguments": 150000,
|
||||||
|
"unListData-cpu-arguments": 150000,
|
||||||
|
"equalsInteger-cpu-arguments-slope": 1326,
|
||||||
|
"cekStartupCost-exBudgetMemory": 100,
|
||||||
|
"subtractInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"divideInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekForceCost-exBudgetMemory": 100,
|
||||||
|
"blake2b-cpu-arguments-intercept": 2477736,
|
||||||
|
"remainderInteger-cpu-arguments-constant": 148000,
|
||||||
|
"tailList-cpu-arguments": 150000,
|
||||||
|
"encodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"equalsString-cpu-arguments-slope": 1000,
|
||||||
|
"lessThanByteString-memory-arguments": 1,
|
||||||
|
"multiplyInteger-cpu-arguments-slope": 11218,
|
||||||
|
"appendByteString-cpu-arguments-intercept": 396231,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
||||||
|
"modInteger-memory-arguments-slope": 1,
|
||||||
|
"addInteger-cpu-arguments-slope": 0,
|
||||||
|
"equalsData-cpu-arguments-slope": 10000,
|
||||||
|
"decodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"chooseList-cpu-arguments": 150000,
|
||||||
|
"constrData-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-memory-arguments": 1,
|
||||||
|
"cekApplyCost-exBudgetCPU": 29773,
|
||||||
|
"quotientInteger-memory-arguments-slope": 1,
|
||||||
|
"verifySignature-cpu-arguments-intercept": 3345831,
|
||||||
|
"unMapData-memory-arguments": 32,
|
||||||
|
"mkCons-memory-arguments": 32,
|
||||||
|
"sliceByteString-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-memory-arguments": 4,
|
||||||
|
"ifThenElse-memory-arguments": 1,
|
||||||
|
"mkNilPairData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-slope": 247,
|
||||||
|
"appendString-cpu-arguments-intercept": 150000,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekApplyCost-exBudgetMemory": 100,
|
||||||
|
"equalsString-memory-arguments": 1,
|
||||||
|
"multiplyInteger-memory-arguments-slope": 1,
|
||||||
|
"cekBuiltinCost-exBudgetMemory": 100,
|
||||||
|
"remainderInteger-memory-arguments-intercept": 0,
|
||||||
|
"sha2_256-cpu-arguments-intercept": 2477736,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"lessThanEqualsByteString-memory-arguments": 1,
|
||||||
|
"tailList-memory-arguments": 32,
|
||||||
|
"mkNilData-cpu-arguments": 150000,
|
||||||
|
"chooseData-cpu-arguments": 150000,
|
||||||
|
"unBData-memory-arguments": 32,
|
||||||
|
"blake2b-memory-arguments": 4,
|
||||||
|
"iData-memory-arguments": 32,
|
||||||
|
"nullList-memory-arguments": 32,
|
||||||
|
"cekDelayCost-exBudgetCPU": 29773,
|
||||||
|
"subtractInteger-memory-arguments-intercept": 1,
|
||||||
|
"lessThanByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"consByteString-cpu-arguments-slope": 1000,
|
||||||
|
"appendByteString-memory-arguments-slope": 1,
|
||||||
|
"trace-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-constant": 148000,
|
||||||
|
"cekConstCost-exBudgetCPU": 29773,
|
||||||
|
"encodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"mapData-memory-arguments": 32,
|
||||||
|
"appendString-cpu-arguments-slope": 1000,
|
||||||
|
"modInteger-cpu-arguments-constant": 148000,
|
||||||
|
"verifySignature-cpu-arguments-slope": 1,
|
||||||
|
"unConstrData-memory-arguments": 32,
|
||||||
|
"quotientInteger-memory-arguments-intercept": 0,
|
||||||
|
"equalsByteString-cpu-arguments-constant": 150000,
|
||||||
|
"sliceByteString-memory-arguments-intercept": 0,
|
||||||
|
"mkPairData-memory-arguments": 32,
|
||||||
|
"equalsByteString-cpu-arguments-intercept": 112536,
|
||||||
|
"appendString-memory-arguments-slope": 1,
|
||||||
|
"lessThanInteger-cpu-arguments-slope": 497,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"modInteger-memory-arguments-minimum": 1,
|
||||||
|
"sha3_256-cpu-arguments-intercept": 0,
|
||||||
|
"verifySignature-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetMemory": 100,
|
||||||
|
"sliceByteString-cpu-arguments-intercept": 150000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
341
config/testnet-byron-genesis.json
Normal file
341
config/testnet-byron-genesis.json
Normal file
@ -0,0 +1,341 @@
|
|||||||
|
{
|
||||||
|
"bootStakeholders": {
|
||||||
|
"182822494f30b89a5cb9a6d845d9733a1831eb4e5ebc8faca89becc4": 1,
|
||||||
|
"37ec19ad6c732dea93f8b39e0dcbef7d45044983d99195eb7034901c": 1,
|
||||||
|
"3c1c3b43032f1f7a346cb8070c75474715ec8f1d301411a69def9ab2": 1,
|
||||||
|
"6275f793595cae0761f13ecd054a0f01d0f57726ade0933e88a05749": 1,
|
||||||
|
"9a804607ce670b2d5e60e9b4fdc54b99acf6d66837132e6bdc621ba5": 1,
|
||||||
|
"9bfb38ba283fb3c8e552b440c17d0ef32725c39219565e9190454a57": 1,
|
||||||
|
"e471e138c71dfff3d326b75548a1c518e694d13e85a3b0ae91df9941": 1
|
||||||
|
},
|
||||||
|
"heavyDelegation": {
|
||||||
|
"9bfb38ba283fb3c8e552b440c17d0ef32725c39219565e9190454a57": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "y1HSmrlOUNmhRNT0JlZM7HAN7k2ehXqs+R07aJN02B90KkUoGM8kicFt/Bhvbpx2t99AhFt8RQeF8C2ICXZ1dQ==",
|
||||||
|
"delegatePk": "fsJJ2JDQqvmoEgeWDBY64tasXnFcprltWGDlDZ8rKyodVo+qh8nMi/1DOjIkqW7F0QG0tunbAI24hX9JuuKUsg==",
|
||||||
|
"cert": "a304bf45b44fbccc78f54b9014a6b2d4354631ebff235aebb2e71a15bdd582be3794384c1ba713b99ef05766e92b8f438b2fc5af349f2bb16e85e3780aa84c07"
|
||||||
|
},
|
||||||
|
"37ec19ad6c732dea93f8b39e0dcbef7d45044983d99195eb7034901c": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "nw+fw9f3biUiBZVS6H4G2vlAtFgaF5rsd/OQVmKkGGWv2lr820QVemFc7G/xmtOZ2bAyjcgrx/NRPUCRC3+TSg==",
|
||||||
|
"delegatePk": "MqlUtSHAsZUUQIllgx72g5Y33noaYWi8+EVcUEupO5yFNJi9rgYKb8mUXXIxrgjRMXq7szMGyTRl5e8RjuvHGA==",
|
||||||
|
"cert": "3fbff2edf71960355b30d89b946d4732c88e66dfb859bb143d2cd368b923cdf7d9bd22c4901cb47bade479a7c0eda08470cc9f3a2cb20c92b3a20974fc066900"
|
||||||
|
},
|
||||||
|
"9a804607ce670b2d5e60e9b4fdc54b99acf6d66837132e6bdc621ba5": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "KedfHXp2SA8aETBEmrXZoOAUwJiFDKFSA3gq3rdWGoG7Mid0F0kSWzK3C6Y8QDIvRnao1lfZpXmghht8L0wCcg==",
|
||||||
|
"delegatePk": "52SwNA17NT9fdFiRAzd05L6raqFFilT/KaEyTAW7mHa1dM9ZKg+G/dH7+vvt3p4izpUiWy8RhRYpOszYygswFg==",
|
||||||
|
"cert": "06682af4df67b2037337187f9397bb8042e37308da1429ec9063e42480f9da60379d929f705140f05f1d014f19c668071824c0d86b616794e544d935e379c80e"
|
||||||
|
},
|
||||||
|
"182822494f30b89a5cb9a6d845d9733a1831eb4e5ebc8faca89becc4": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "U6JXlR27xStIbWOjpfzqVVy5rp73La1i5znqNsI94+xYpOzGmlOVYiYF88N5OZ82wDBtl1UB9A+bWXNa0oCapg==",
|
||||||
|
"delegatePk": "5bwhqDYWvMz+ND7Da53EwGyQ6RPfHYoLBGAIZR9CyqlKrob7/cRYbavVR6fpLQdwLjMrzJ5911MjncgNAzxZwg==",
|
||||||
|
"cert": "d173106bfaab665a30e71633719754e0416927cfdadd6fbf7013590ddc9843083e18efcd08e4c7c366f4c4fff257177c87a502913f35bb1a07e45607c5d1fa0a"
|
||||||
|
},
|
||||||
|
"e471e138c71dfff3d326b75548a1c518e694d13e85a3b0ae91df9941": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "HISQWQHTy1IdXEM7sTpZDNIQO0alFI++YFE6sAD5lN1BNDzTDSzDfUeaoAVWBvT/L5LcHdRzsjRgnPcOOm28gg==",
|
||||||
|
"delegatePk": "T011I+QeBYpsve+1U4ZU/8KlNBan9buZ9+rGmdQtXB8TdXbpwo6fFLPG4IIS8jjYbW4BrPJpf3teR9qWOSZeMQ==",
|
||||||
|
"cert": "018a7ee167602da08bf7d6903c37d2524ebe2a5daad83f9bf25f6011622932e72fc7c48027b9d4efaef521c911ec9eebaa38ddf88e6ae27c9bb823770fcd2600"
|
||||||
|
},
|
||||||
|
"3c1c3b43032f1f7a346cb8070c75474715ec8f1d301411a69def9ab2": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "276WEVFXba36w7tXnsKxwUfACqTO4Dx+vvSVoOo4KUCqBgPahpnaCca9yjIPzWhVC6iyrHkZ570z7VjF2drNRA==",
|
||||||
|
"delegatePk": "c65B7KK+N/wVxVpQ1mjIZH4QvyIhcsLVir+m6TEOWWI/jyb47cHOj2mL1dyf6qMay8Nkv/b7gdND/zgm692NVQ==",
|
||||||
|
"cert": "b2c8e6ff8fc380c4a4c4e16f909803e786ccfbf4267e5016e24a34a843093b4d81736939500fb6fdd358d2be2b255858ea1abc35f62d381d6c62d111d1f0c80d"
|
||||||
|
},
|
||||||
|
"6275f793595cae0761f13ecd054a0f01d0f57726ade0933e88a05749": {
|
||||||
|
"omega": 0,
|
||||||
|
"issuerPk": "bO9W1q+IRfMXlJvN/5I1jxOU/hG0XAKyjh1YVMD6E/jgeWRN/FBBr7D8vR9H7HzgZPN7fsXAcMeEpWGeuuKqYA==",
|
||||||
|
"delegatePk": "37YVphVo1oZ/RahcMiJ/JwJRgNc4qKPX/TySn2JNcjkpgBs0NkHxSAh7EX6H6WlfIV28+DD/DVigZmgsdgP2QQ==",
|
||||||
|
"cert": "a9c6e4abf95755084a86625a98e185de75d4d33d557284d3aa67ecff3dcfd8e77994fc8b3fc4c2762879ca0c15458ade936db0977ae10dd01291cf3241b9530e"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"startTime": 1563999616,
|
||||||
|
"vssCerts": {
|
||||||
|
"60214fff2df8faabc7da2dc99c07d2e3ade761b6bfe6a5a94b44c3dc": {
|
||||||
|
"vssKey": "WCECGkF8Ipu3QuaaTiSnA/wmf//wmVhFM2rIVUupnP9fdGM=",
|
||||||
|
"expiryEpoch": 3,
|
||||||
|
"signature": "ff0972de56a180ae5a452680f7c6c464d07cd539804930b1d2f815b9a9bcc652c8d7adf875e4435ee116b16d194e35acfc752cc14c2e9c46bd00f74ec363a502",
|
||||||
|
"signingKey": "fsJJ2JDQqvmoEgeWDBY64tasXnFcprltWGDlDZ8rKyodVo+qh8nMi/1DOjIkqW7F0QG0tunbAI24hX9JuuKUsg=="
|
||||||
|
},
|
||||||
|
"e0c9e75ffe8065e50563f9ec256c2b442a121d602c495cd305fb3cc4": {
|
||||||
|
"vssKey": "WCEDBRKTUNRUx1VFORWuoqqMSwPYKXgkeO2e+LTbc8jxm7U=",
|
||||||
|
"expiryEpoch": 4,
|
||||||
|
"signature": "4d0aa42d1a15decec74c117b9b3e76178155c58ec373d2535005b4a3b0fae0ca4dd1c089b5272036f642aea27dc835e91de73d12fc25c027a8ef73991c139407",
|
||||||
|
"signingKey": "5bwhqDYWvMz+ND7Da53EwGyQ6RPfHYoLBGAIZR9CyqlKrob7/cRYbavVR6fpLQdwLjMrzJ5911MjncgNAzxZwg=="
|
||||||
|
},
|
||||||
|
"fe299fde9afe6467393772f49e1f8d646d6788400c0acffdfb5eea24": {
|
||||||
|
"vssKey": "WCEDT9Z69y24Jbc4x/MlaC33mB/yaZ4ljIMNAfl9l7njWFE=",
|
||||||
|
"expiryEpoch": 1,
|
||||||
|
"signature": "0efc47d2ed049a72896a4db314a3b00b31b849c753eaa2e3172337a8439a9160eba6bc164f57819df6580140fe3c7f52cec98161596c452d7ced3b0881638a09",
|
||||||
|
"signingKey": "MqlUtSHAsZUUQIllgx72g5Y33noaYWi8+EVcUEupO5yFNJi9rgYKb8mUXXIxrgjRMXq7szMGyTRl5e8RjuvHGA=="
|
||||||
|
},
|
||||||
|
"837bd45aa9cdb656f538a4e46236ba9eb4c89890bc9191df096e30ba": {
|
||||||
|
"vssKey": "WCEDKi5sm8Wu7tUrjSehtCBsEMXSpX+h87zNRJcE4Mx/Nj4=",
|
||||||
|
"expiryEpoch": 1,
|
||||||
|
"signature": "991e11c37f235c8c8d4aa846a564da38027f739f34ab97087ab436cce84d9297b2951455d5a8e2a562ab11db6a321c36d7498de3a1f776ad8eeb4dc5293b2b0f",
|
||||||
|
"signingKey": "52SwNA17NT9fdFiRAzd05L6raqFFilT/KaEyTAW7mHa1dM9ZKg+G/dH7+vvt3p4izpUiWy8RhRYpOszYygswFg=="
|
||||||
|
},
|
||||||
|
"304889400de0859e03daea8bcf42779a14540b7c067f42f04ee1284e": {
|
||||||
|
"vssKey": "WCEDOgMx00aA40zA9oi0rN61TB6OxUcTvYq+8CyJjrObO3s=",
|
||||||
|
"expiryEpoch": 5,
|
||||||
|
"signature": "10eca6d26d44eb52ed11ae633c410866bd6e01411ad64068331c7b8f92da9c8b9a7bed1772b6bf00910d322e659e23f2f867c4cf4e757cdbfbfb1fc97ba5a004",
|
||||||
|
"signingKey": "c65B7KK+N/wVxVpQ1mjIZH4QvyIhcsLVir+m6TEOWWI/jyb47cHOj2mL1dyf6qMay8Nkv/b7gdND/zgm692NVQ=="
|
||||||
|
},
|
||||||
|
"73c89ad521f5786011201377e1ec8305e82aa985998f40307fa927d1": {
|
||||||
|
"vssKey": "WCEDLPG8x46r/wCR3hoHLeS+h/1Bu5x0MWXHDoJhM++fEfw=",
|
||||||
|
"expiryEpoch": 2,
|
||||||
|
"signature": "98b48773afad287dbcd25915ee6b297b09d1204feb3a5793e91e438a1cce31a226f28b0c5b5ccdcde6a11f64665cbd867213cadbc57ec722c242def811f6e806",
|
||||||
|
"signingKey": "37YVphVo1oZ/RahcMiJ/JwJRgNc4qKPX/TySn2JNcjkpgBs0NkHxSAh7EX6H6WlfIV28+DD/DVigZmgsdgP2QQ=="
|
||||||
|
},
|
||||||
|
"06216081b85063b2c7e33172b87663511fb7be35b23bc383881d60bc": {
|
||||||
|
"vssKey": "WCEDExIpntsz081SiKqeAg2o9W+wLy6lmD0dfp1sesQMj/E=",
|
||||||
|
"expiryEpoch": 5,
|
||||||
|
"signature": "2b7fb3aab3a23d72cac699c4ef97d7f90ca4dd0b06c2413962b6430583b9814b6549806e90ecfd44da05819b655ff975797a6df23dde2aa1c625ab5079825f03",
|
||||||
|
"signingKey": "T011I+QeBYpsve+1U4ZU/8KlNBan9buZ9+rGmdQtXB8TdXbpwo6fFLPG4IIS8jjYbW4BrPJpf3teR9qWOSZeMQ=="
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nonAvvmBalances": {
|
||||||
|
"2cWKMJemoBajGgvgVVziaKmUFa4LwJnAHffmuaSJBMDqethwJVQsyBsTSfFhp5jFpkVQM": "5428571428571429",
|
||||||
|
"37btjrVyb4KEg6anTcJ9E4EAvYtNV9xXL6LNpA15YLhgvm9zJ1D2jwme574HikZ36rKdTwaUmpEicCoL1bDw4CtH5PNcFnTRGQNaFd5ai6Wvo6CZsi": "19999999999999",
|
||||||
|
"37btjrVyb4KCRtni6YrG77RLPosnDqtEYoAD5xLdKYkWgnLqGa8yuXDUQd3psHrfxqaRcvNTsAW4ngUe6bzstbzSUJtwoaKbYaL8zjFAJJsZkQ42ti": "19999999999999",
|
||||||
|
"37btjrVyb4KGDMix4Uj5opvbMDgjZYUjeARAqTEFEbgLUH3qyju9gkBpcm2fVWgkcNgK3xFsQgWm1w8zxqvm9P6xJj9mHqLeMJPwDMUKUGPcDyUaDS": "19999999999999",
|
||||||
|
"37btjrVyb4KEkSeCVx985rXc38DCud2AW4LdasNmyoPLbtDGcDCyYVdf8BzxvDnzPehv4kyVBkzThjVEkSpGTv8PGQs4yRUgiCaKa7PTtBY4ohNGqR": "19999999999999",
|
||||||
|
"37btjrVyb4KFGS7upvgJHtmp7y7EFB67utzaHf7PM8y8U4tNkpmARNwiD7seN4NSAceHmj64KLGgh9qn1BpYF49NyWxocBHn1N533qBUYfhQar9ceu": "19999999999999",
|
||||||
|
"37btjrVyb4KCfir7GrvC6Y5kBNjeakZNd5po62AzQQ85SGkBB4QfXibC4fSNK5YvNeVgmPc8WbEeSUHRjoiqhJ4HDtinK2deBHSdCH6Cw8k2u92rdh": "19999999999999",
|
||||||
|
"37btjrVyb4KGAExHTQjLUHJBksSXGTomjgNsw8a4KepCgQYk4gxacKb84vGpPSv9Pjt3gdgMjA1nB67Pq3XyJpTDk8kLcXpJawCe6SCJf5jUowvAz8": "19999999999999",
|
||||||
|
"37btjrVyb4KCE1qeEoUh9b8CpcZcJ794Di14AxAELGoppJNVdB79nnuKcgRut566MdDkxTqravFaDSD9iwAvDByUHi59xocCY3ButEjmCQeLTLZXQ7": "19999999999999",
|
||||||
|
"37btjrVyb4KGGSGD8KgQD6qUBaSjxy5JRtsmMSHEGGAZqA29ULGwci8TcM16vBhywuBw54izQtpAqXeyUnbjh56hCgoqGZp9tHTMLLkEgLzwxVCZ4N": "19999999999999",
|
||||||
|
"37btjrVyb4KG5ZZfwwiQuhAGWiNJ2FhXP3oAuiq75qknCz4CZWNMVY4B9BmiHRHnWfhUbkLHUqfabCYASUk2V1qGuDw97x1gdf871aFY7Lpz3N1NvT": "19999999999999",
|
||||||
|
"37btjrVyb4KFtDHT2vDtMvQbLBgfH5hnpyVTTqqpPsieykukuxrDShHNccAEEj7M87UuV2GJ5pPA7YJ4JPjSokA99XaDgLmeaAumhZPHMwzg2Laspr": "19999999999999",
|
||||||
|
"37btjrVyb4KDHFyvvKb29RD53ebt6N8kpbL41J4VxWpiFC4FnxxybP33M9tBbdqfMXvSvyTQpv4dULXf5B838kEWXSJ24bpHtFgcbRkiHQwqWFQ5du": "19999999999999",
|
||||||
|
"37btjrVyb4KFh7jhHCtWxW942ceq7Xhxay8FZ7GkEBezGyFm3wJcVBGy1YYJDZ4Z7GbrFZmHLSe47zFs8Rjxk8rveoRpo1s43HXrMrhd4ijim4jJVP": "19999999999999",
|
||||||
|
"37btjrVyb4KFhYgC9Lr4Se7C1gL39d5WBVADyUyQZz2BfG4BZxczyW827JRQR5enyWaoj6NnA5NyKsheV6Eb7WvQtbN8D6116HTknHhEb5jh1yUU6Z": "19999999999999",
|
||||||
|
"37btjrVyb4KDLtM8HUJsBwergjZUj4DcMfkFmbV4bXUFGJk815o9nowX9ndPPVAeSNjAFYqJeFwTiMa9Ka8LqBnqFZgPpacyx9LrQLoXVMjvvLB7DK": "19999999999999",
|
||||||
|
"37btjrVyb4KDec7E64byKc4XjmmCRDaTGQYgHJTPDijZVr7NwZSP8g7ienzTLx5Z1quaQRhJqqAyV8Z2QdkzXvjTTRiVDCqps78uGp3uuth4wEJKP9": "19999999999999",
|
||||||
|
"37btjrVyb4KF5R1LEsaQgjWFWXwbgJ51naDEaCRG23KiAN3UtGzaT5PvUANtFBgjmcCtPLMBYMTGL4S8px4HyQMLAyF4fakYoFAJC3PkxCWMUatGWD": "19999999999999",
|
||||||
|
"37btjrVyb4KFB5Tmw1wsLmuv17Q6y8i6HGpVxbW8k4bevmob3DcdbH6jzrAtUrBpKgfTGgPMpLAbJcpaByGGJErkXQWFwrNMW35S79hxFvAN2GTXVQ": "19999999999999",
|
||||||
|
"37btjrVyb4KDEX2XToMQoi1No3YdREgZWzrf1xQPbfhbZTZnprFwDsRMiBxqUrA7p4BwjxXHDyqAccPwyX8iWWquz2CrLazJMR4s8AMz2US1D1ffJL": "19999999999999",
|
||||||
|
"37btjrVyb4KFTKCoqtZBdbh7LtJ9mRR1nbkX7ggP6a7AwvkSDxUN6U5GJWfuRXnL3a5x5e16uQwyjC6PoPVQ7VLdJXr8Kd3eFknLu6NDf2ey4AaJo2": "19999999999999",
|
||||||
|
"37btjrVyb4KCHCpiGd1J2GtVjP4KxEWP7RE6K6yxHzE97cbDgFD63fUFygbni8jKw1N37nGsT43KBvBn5w9ee8sVegr6Tg8fAr52mUkhdvTZYJV52T": "19999999999999",
|
||||||
|
"37btjrVyb4KGLRpX3uQfSeLovpMTcWfVZSM5RCufYvy2tyCMwrLXyHKCM9VqQh8dCQA6WcTrViaxqpvBSeKreHFL4CftfJU1z7CjHAze236NLesbL8": "19999999999999",
|
||||||
|
"37btjrVyb4KEdwV1MS3Pjek1HjLN2CSq3SJZGFBbZctkGLz569i9RWN15bAvCcZ8R5dgEi8iYjpmMVKioufoGv3issZQvVtzPz38pWHBViyRK2how5": "19999999999999",
|
||||||
|
"37btjrVyb4KD1x4cqHfGxrvBubZ8pSM8Jmw15UiHpy77eMsqpMewGND2GdvAwTBZhf4KA4uypBJnuUPbPYFovpRVJ92BUaMBHfQnAD3i15DAzD8EvL": "19999999999999",
|
||||||
|
"2cWKMJemoBait15xg1M73WAvWafoieg2GrcykbRk6J1QC2jMUXn7LpXf4mk5RUeu8qYeG": "5428571428571429",
|
||||||
|
"37btjrVyb4KC3HyNR82Bj2Sr9o6CF9o3J5hBNycGb9JwrHggTYUHfivi87akkYDv8ayepMkM4mNvxTKvoVdMHFkMnZZgrk5qobwPKM8idSnYYmvTRU": "19999999999999",
|
||||||
|
"37btjrVyb4KCmCLYttFEWLNQc1MRbV1NyhhssRioZ5CgkqHgYUTT1pPSr2hrfevSe8bSwLiPsLnaCbsxJQc5SWgWYEJDPWuUA1s4AotQxERNbT9ReA": "19999999999999",
|
||||||
|
"2cWKMJemoBahLnFCQ8wrTuZ3sMyiCeEkUZDYLNucPiVTJr8UU3BgADsKtqosDYNFXzeiw": "5428571428571429",
|
||||||
|
"37btjrVyb4KDHDPBVenqrh8tUTVNYX5ZGwjd4r3svqdnwWicGnMZZV1E7nBJVQsDY69co936H9onHpmA3PYSabYH4ibbULphL1CitDgArH9KknBARc": "19999999999999",
|
||||||
|
"37btjrVyb4KD9Z53z9qD7gTWMHr22e8jDcpCHgJFQaGQsvnNkycRehAaxLAnufNRjhLzQ57XVGJnR6mcsk6MorapLpADT77tyTaX9xfUSZyTA32ZAy": "19999999999999",
|
||||||
|
"37btjrVyb4KCsozLcUUHR8GyVG7erY6j9zehKTADn3e5xpRJtu1YgfJzSmAyERBHUXa5LGWY2aR2KqcssnRjwugh1bGjxc6U6ZrePJnALYTw2TR3yh": "19999999999999",
|
||||||
|
"37btjrVyb4KEDBSAmNtUBy6pfXesvTvtrDZQsSYcyo7SUwjLkhoSaPDCsNqMmoGbqzFQyEe9DNwK59BMudtdkzFPBpbgiEWx5SZr6vVMbpe86qsQJV": "19999999999999",
|
||||||
|
"37btjrVyb4KFf5NQ1DuNoAP4phRomqdEUmtFb6sWcDHkizGj56dwn54LfKrfWa6Er5sxDXYrzpWwS56PKmKaBjJtn1JqN67K3CihFXXospn8B2TDz2": "19999999999999",
|
||||||
|
"37btjrVyb4KBPHxFJqCekpPztGnLgbVsUA46Q8Lj2LKbFJL5Nqk5LgP2u28eBJAxkkU2r118ARdXW7fXLPQgctwK22L4N3zc6XeoDqkadGmTd4s8a1": "19999999999999",
|
||||||
|
"37btjrVyb4KBYe4RSCngNCgVMAeMJkRQqoJs8t6t9e9BHcNvvT6awv4CruMWH2FyiudxcGfZHmjghDvqk39iFrmCt4XE2XDuYzyo97BxwS6MngfeWp": "19999999999999",
|
||||||
|
"37btjrVyb4KF3MxxJBeJqCPFgHyUsSDkrDqoctSSVi9h7F4Wj9zFKcPVuVju76KYhdp7nJhy44512Wjhw7WH4sed3MMSh1HYnKUfjZXGkoZXMajaye": "19999999999999",
|
||||||
|
"37btjrVyb4KDsi9fc3RfExWLumjkp2YrcMjZpew19Z92kZnjPy5Xa84KY2WZw6xmjJA7AXFJCBWtrF9RFw1BjCewEqK77CVYj2s7bk9aAA7yyZARRz": "19999999999999",
|
||||||
|
"2cWKMJemoBaj34AMeqLspGBgX1PVc7z6VkALK3rtVd8iFgCtMUenNoHhVRnjeGfYVQJM1": "5428571428571429",
|
||||||
|
"37btjrVyb4KDpppzxzoaPgnstPejNxGaSZ3Vh22Qd2DWGrwfLJ2tizs33Y5Yjya1U6TXPzVX2PT5g1PXMy4jR4aWZRGZqYJk4Uw9p1h6BhEa189eiN": "19999999999999",
|
||||||
|
"37btjrVyb4KEXaPVoMuKpnVEKKLMFuGSvYL7YMAD529yxeK8Y1zqnbh5FQ8GMYpJwARugWmzaXdJ1gopgsxziC4e5wgjf3zkp7RH41KTJ73xLyfrFP": "19999999999999",
|
||||||
|
"37btjrVyb4KBrhG1yaBVY3X1ZoTCjUH7gbiA4qSFsMGgtLUBgwHiMZPiAJ3kQrRiboPV3s7eYXZD9fnd27qRb1cCEMc4oU57aPn2cYcEdAEJHrsyLB": "19999999999999",
|
||||||
|
"37btjrVyb4KEC4vC63KNqRBD7RX1KBwWDdPDE6oXGxP8x5aKrbVTALaq4XBdak8F47Kt9VcsQvVsKZfAit8vBtZpG2mc6VKUXCFv8pTYWwQMnABckB": "19999999999999",
|
||||||
|
"37btjrVyb4KFPbetkmdvqD8nLRFsUVL4HsVUYmgaZhAmBXcr78M3XoZkptjuszd2T1FNr1fGZApkZFZXikGtyhCc7jH5JYD1q8csTNSWQn4Us3nzX9": "19999999999999",
|
||||||
|
"37btjrVyb4KDfwNJcNMYsyEDVHWrGrNAPBwF9FGEnm5j2XFs4BeGdiSPqPtqCjWCvcRYBfY5EoDjRBhjsTrr2HjB1jw8XZ9Hy8wd9gz4KkCbMugSgf": "19999999999999",
|
||||||
|
"37btjrVyb4KEgvmzjLT7R9xHg1vNob6vCf999UFuG4qfTpHGZufdhbkUogSFJXtQXnCcJDHJ6xuZt92H6VgxGdhSLQ9gmWZy4zCJEVu8Nj8NashVQY": "19999999999999",
|
||||||
|
"37btjrVyb4KAtY8hCobTmAB36dzosSo644ZrzATKQhP1AsnM6BAVfTWwMX5BGXhigxLm5hk4beodymyjivxrH7ZY6BZjMu3AtafB5guvagxEZM7vJq": "19999999999999",
|
||||||
|
"37btjrVyb4KCRMJDqQ3iK4M19XhWGWpFbCoxjgeDB7ZqUhgW7jSYLEk5oVL4okVPVx5rXCgoK2ND9kAWnNU5QncJp1qvuCngRdJaLrvFwp4boE56VR": "19999999999999",
|
||||||
|
"37btjrVyb4KBTRHUnz17FQNFzHR8PpoGGwuNQZauAUxmvTb1o7Ragv9Zvyiv6Cb3rnrmYY1PGtVFTmom3TGg4mK5XpkRyf7PnnCG5EQM69i7MViLpU": "19999999999999",
|
||||||
|
"2cWKMJemoBam1WPtZrz3Fi4EMUDao74k9Xn4fhyVYLqK4o1VRzoxPFU91QBRToLbVyrjX": "5428571428571429",
|
||||||
|
"37btjrVyb4KBUH8nDpwtt3sSc6rJ7AkYjmnqvt1tJ4J8ZKCuqPrEuEioJJZXeD9aohveoB9zhRWru6oM5zyBcgMtkA26HLtTDKsSVwzoqugfftbiPu": "19999999999999",
|
||||||
|
"37btjrVyb4KCgWqZ8sJW46mQGdZS9wKW2TEQesyCoRScUxvisbdvEkfsxYLR49i6wE6uP1BBgPX9eg8cxKHPuNyKpStwf5UVmRCXD2ahotjamotMwV": "19999999999999",
|
||||||
|
"37btjrVyb4KCR9vZcXetWv4QdP4jPSH4msGeXs8DUBUMVYJHgD62etfv2jiD7gmLbLezCAiGTQu9JvrHd9Wfu74wguKgkX1vCUQkzcWsn4rVWsKCyt": "19999999999999",
|
||||||
|
"37btjrVyb4KFV3TiBqtLDN3oHQr5NrA8ouAAqasFU4ZuB9W13xgcgWsSy5fUtbNL4imCruQz19hjzBzykxGxCAarrviCUBh3sxWbvvTTHdvpyWGgXc": "19999999999999",
|
||||||
|
"37btjrVyb4KGM5rFFreGtZAs4PFB2Drb37uXRHebh8rCeVWFkW8De8XAbYqvfQrAqVthfJp9Qy2YzbzNhWSiUGY3D7yJkRkChyMveKCWT8qUTNEu6e": "19999999999999",
|
||||||
|
"2cWKMJemoBahEJS9xuB3R1ofSgtG621enmfpxfx9Unpo2K26wJPioaA4tizZrNMACNoQb": "5428571428571429",
|
||||||
|
"37btjrVyb4KFGV8HUDv7S5E8CSBV3pQLgGFt5HXa2jb9ofbAo3gTxcaQ4So84mHsNk9mhAybq6miH2VZU3iz7cqCd74gPMyn3zdUsrF1u2rib7HSXq": "19999999999999",
|
||||||
|
"37btjrVyb4KCF4JTyyC27XuFmcrn9Nxj1DmM4G5BKnf8F8F8BSpvn3PnsLRNH2RZJoajmg4yqHnwMXpUnbb7sFSuthjXv6YUenX8EWsApQUzAm77Dm": "19999999999999",
|
||||||
|
"37btjrVyb4KD5zMmtnD3jWpX3TSJnZJ8jMzCFQHYa3HcHNXxdAnK5A88SiWncRpJQxesMDrYgzPHk7SnFNag5teaFELV6hE9opnJpJzMGpVicDDRX4": "19999999999999",
|
||||||
|
"37btjrVyb4KDTABtj2RScLVCLVyFhxcURYUZNVta8CghbH5Edz32XSP79NHc28QTkKLMNUBupRnJXs4zcZt8C2fiPFGZfgSBMqMGMidWc2zo9piRb4": "19999999999999",
|
||||||
|
"37btjrVyb4KCGn7x5G6obn9NPNoTuv25LrBcqK9wHCm3XbrhxqycSQrbPfsDxgDp2M8pqTjCk8cVEG2fRxWrTjfG4q71MtyMo6nt8WG11kJzdQQSNL": "19999999999999",
|
||||||
|
"37btjrVyb4KEhnv3cCqP8jzRBbwE5v6ymPkBjTexHCcCgYJarjHHaxipJvz4aaXc5Xmp5KXxnC3SoE1oqR8sdGHobyfsAqJy7DwejZWpkkoYD7LJsS": "19999999999999",
|
||||||
|
"37btjrVyb4KDvKgSbCTx1gwwZFGe5DZaXyGwTYGGnJNCQ9C61XP4n1pKFQtNbYEowGeRoKHCGUvuU8Ebz2vQwN7YhcJ9bSb5oNpAoCe8UxX5KK5C3e": "19999999999999",
|
||||||
|
"37btjrVyb4KB6yr5YozXGqSKemHyZfsgiRQFX3VdJBKx7waoSaScNWc2dNvhNp6HSnXMxUwDtBvicXDWdpoJ7cKLWAwqEYki5azdt1qDP4sHXh8XhJ": "19999999999999",
|
||||||
|
"37btjrVyb4KCqRLQRj8svdZGGLQDZGdXztzeC15Vvt6uZWg23QAdfL1dMc52dpc8jqKquWNj6xjyLnLciVnRxzEq1kiq54ssmc6h7V5xK1cqqKJWBT": "19999999999999",
|
||||||
|
"37btjrVyb4KEW3PG2LAJNwmok2H6i149HetvT6fYrPsqPGpUkucNkA4b5TQmv896EF44UmcCAXDycfxFB7GcVefBCgk9cZffVUdX3kri3i5TEqSjKm": "19999999999999",
|
||||||
|
"37btjrVyb4KDdgCo1a7URfpQVFoTJEUcn4LqWpAtCeLaW7NeGMJtecsahTJM7886BjLcnhU2CboLSUojCPcab3WNTmXFDrRMHMHdmWefCAyYA7QaaL": "19999999999999",
|
||||||
|
"37btjrVyb4KG5vwKTPpCSQ14a7Cv4TESosSVoFVRHsw1vHj7Tpb7N4j1U5dtFcY7L3MWsH9BJqQjU9NxwaHpbHCJAhmsLi2mC2BE8k8Rj7zcjiiVhR": "19999999999999",
|
||||||
|
"37btjrVyb4KAr171Hd3fu65bbtKxqwktHGwY9kNanPYGXQcFKA8d9Hp1RgLrxzU1AdJCJbJDByTnHdDmtA7pm985tKK8hr5JdHPXFfSvkkYZn3kb9G": "19999999999999",
|
||||||
|
"37btjrVyb4KEZWqFxGYhFuLE23i92B8BiLRwwFUdnjmM24KHCNuWik5dc6MJqz7GxupgKGK5zzbYSXJyA8DQVDszyFmJuoxgzPn2GSnfBoREZ82ZdF": "19999999999999",
|
||||||
|
"37btjrVyb4KDB6sZamEoJWYBLoDWucRdDtRXCuQvLCoVoHPNjrywJKDz8PQg65ZtLvYvREwAK9oLzGGb6UcdAf9zwQcFaKRRHhLzCZxwTsRDVyPkSy": "19999999999999",
|
||||||
|
"37btjrVyb4KDJc8Af5dfJY2jcFbtkofFL6qXBxWnk2kHzCE63qAQR9Ynnk1XkfUrcnBrN7EEyvxmUDEFdNFfZHzXKhmkSQht3b6Y5rHHmuFYYoKdZz": "19999999999999",
|
||||||
|
"37btjrVyb4KDjPpuxBuJM1Ma5NGBqriSEAcozZMqYkWEkoJ3GgR8MAy3Zeb8q5BvtsWGEpSFQ69znPuaX4kVCcnEiEMDp91A6EL8A5YM12cpYYogLm": "19999999999999",
|
||||||
|
"37btjrVyb4KDmCmpc6FutA3PbQmWxcsbzZsFEdMKhHxrJVtGkmaiWd18dKmiaRA6o4Y2sAjDwjFozKzNzQg3dp8CXVSPpWgDLAXaozoRyPanW7UM8B": "19999999999999",
|
||||||
|
"37btjrVyb4KCLfSBFhCBdrb72YBNJkKcDCqpdxf3k7iwJTj7M3txxiq3fcam7Nyi8sLcJNSfgnUrh8C7RKEMN5wWpku7HLdZqZVuPRjeihhgXmEpCe": "19999999999999",
|
||||||
|
"37btjrVyb4KF3ZQhHTvVH3L7jNYoZ3XWK6SWpqZKiu9AGz6qNtxoxhAmmJpenFMA6fedYDT3Lt7cihgc1q4pE2GJXvPuknAkjvESmPxhhzkBzuiRis": "19999999999999",
|
||||||
|
"37btjrVyb4KF9xNLdS47pRBLB8e8bQLuvrBiGJbnHPNCbKU4wrMerJztEtYJdHayvaoUEmJ1vc3aiq9Z3UgP83Y1b4rpiyrGeYjzQhhDgB6DW8sWJm": "19999999999999",
|
||||||
|
"37btjrVyb4KC4LdZLvrexUgAntpySomDAPVwdMEnz1cP9pZxsxZqVYzM6zPPWAhc7byfwsLdgW8GEMTuTUagYFAKEmYgaDmYxK7cHxtWJG3hiMHxVU": "19999999999999",
|
||||||
|
"37btjrVyb4KFfXPG5GDEc4tLyVUSepKD9GGXZcSuP1xtLLRQnQr4wSXawT62bSJsiPzS25kdADKh94V3iDksm9nq5fhV4jixCnpNjsn7k2hSkwrAUa": "19999999999999",
|
||||||
|
"37btjrVyb4KC1L9MsZ8htPomWp4FV4hULeBVT6jf3GGqmDcw3k9tPn6pnfqGTWowQDvqVr7BqtQ5rcQ7gc5z41qh9vyBV7Ds83bRsndDbTAwkEUJ21": "19999999999999",
|
||||||
|
"37btjrVyb4KBtLs3NwnoLkyVx9ZxSoQ7mQx2ZvzanG7PGWWdMA9ksXqZxakLxdj9MAPKw7eQoZJWHxJJCsd7MeWj7ujfXtPsthGhcURT3Hste4Kr4n": "19999999999999",
|
||||||
|
"37btjrVyb4KCaYYFDdnbHEdBzpDPcL5iH98AGF8J5avuweDHwKChDq9mBvLKVJS6F4YTuAVDigPjMnAcuYUJ2UUbvDPePFZBhLhBrFUKeauoKC8X5z": "19999999999999",
|
||||||
|
"37btjrVyb4KFfnmiGpxNSGQVMfmFpAFrEAEhZwGPQDutSHnZqQXPhcXxDNcbdoKiztyQHpTA3jSmVowZCxcaJMS1k1wu8U6nXTzejgh7wYZjycamU6": "19999999999999",
|
||||||
|
"37btjrVyb4KCTVE8b2UitH791rYrkSrHG9u449h6JHKotuPWRsdVZQfP1jXrs4ygSxAnG1rM5mGFM6cmUqA44e9fenjbVC1QFYyn3R4CaptVZypKgW": "19999999999999",
|
||||||
|
"37btjrVyb4KDaKs8A6CU8Lrzxpr3WNM1kDdd4CPe66TqSP2ehHexrAuZ3ykMmhkaUZEHUEiq78ELQx5vpSFGHXFKbyGgrWa8rokqamCV8bSKiqsqVt": "19999999999999",
|
||||||
|
"37btjrVyb4KCdPziHrv1QgXL5zMy3KYxr7zPqoRd96iz3LNrkWbobRmPswTpRKgCQEkZcEnipiNJ5UoULAc33mbR44MchdHT5vLNYT9sPxwzpgNUWj": "19999999999999",
|
||||||
|
"37btjrVyb4KGAZJWCpicgRkb9ijP3Jnv6y9EYvnpMqkPdBZ2d6fdnCa9C97HUmfHLWF846AKjViPvnY7MbSM8mTM3VDx5RazBFxA7C7mZ9CyM48AW9": "19999999999999",
|
||||||
|
"37btjrVyb4KFfgfRyETGNXNXm6gAxNpTQSxr6bM7T6yZE1ibiZBovxG52PioVmLRnPYxs4wYddAfgTH4mbmtLFnwuZYSBh2eNsdLdc6vWb4AdJNNym": "19999999999999",
|
||||||
|
"37btjrVyb4KBsV28Wce4x44WsTVoXa5s4zaBKALWXxMQ2MtfVgB8LJJW34QFpvjrxKmheLtpcLyVqaeu36oB6ZcgQPppFN4oqhdueoKBEpn8dfQUVF": "19999999999999",
|
||||||
|
"37btjrVyb4KBEKzyCGqao8GmErVER19oBH3L8xVNCSZs8tCVd53iV5FXZAZ7bNCT67bKoasGeiYZxEoDzGBsKxb4uJxStU1e9wkaPo6BxUEErZG7LD": "19999999999999",
|
||||||
|
"37btjrVyb4KCi8WRzrkFiE1AVYbSiXBzMRTuTLv8DAchfg4tPaDgHRuDN6m4dq4VkA17pkWwCoa2NmvNb5sGeU1ZkjcqFuYrWPK2C5a3TLBfx64uLs": "19999999999999",
|
||||||
|
"37btjrVyb4KDz8QGqk9LJ9kSsSd1zKgqfTuiTKbL92b4aDSXmRPyrFZp3VPEwhMyEmwCiSkpd7KQztirmU6CGwiphhiHoXbbZjkbfiHN5Mq1y7fmJM": "19999999999999",
|
||||||
|
"37btjrVyb4KEcCa8yc1d8Zrne1hRtedHQQGPbkRJcvHak2ygcCndPfSqWwb2L59ERxhtqsMJLdS1fPQPs2vcJcQCvB52tCm4rGCDwUmRG51PUzjSVh": "19999999999999",
|
||||||
|
"37btjrVyb4KEhvykuoQZKWdNKFgTrugRUSV66yr8GCXREuaX2PfVQJeuXS4h1bNP8SeUxHAG2J6RfK35YnsZj5qkWQCWV7tVYMVokU5bw9y8CcmqPy": "19999999999999",
|
||||||
|
"37btjrVyb4KDsFS7rbQjZQGX6Fz53u76NF2hF9iqRhfbx8ePmjJKCsv5rZV1hhtP6DHdKwLAf5zkVH9FE51xYuCvJzNppSn1tgExVQJpuTwKmyTekT": "19999999999999",
|
||||||
|
"37btjrVyb4KFtfVixJcJdD27YZfXfRM5diZFj4TEazkCAhF8KyztTbe67zQpBc1RTjruHNvefdJ9Jtr7u5rebR71tGrGtKioSSGKy2hMKd6GUVFkEg": "19999999999999",
|
||||||
|
"2cWKMJemoBaiXc4dYCHfDyvy3LcqPebJ8zfRJsZZoHDqik2SzK9Be73YQ5W9u5jEiMPXa": "5428571428571429",
|
||||||
|
"37btjrVyb4KFNpxUYvzqFKsRfRYJKHjEuFfgy6rpoGq29dcMrNhbKTvqNr719U282rp9PcnFonAENkUdv2nE36wZmyNkj8JVQJL1TLu25SKjGFNzVs": "19999999999999",
|
||||||
|
"37btjrVyb4KFYnqsKFfMwj4S3PcCxwxutoiUubHazLfw4wJc5bfrQgpNEpRnGCS2UUfzvMWRRV2vy4wzPKE7tshLS2YEW219R6QfAenXzktMoXCmuU": "19999999999999",
|
||||||
|
"37btjrVyb4KEbo96SLroMfZB11rEvztPswgdqC5ESkHXc4EaFdAhsDQ24vJK23XsjTJzpPS3ZcDWiHiFVtmp5wkJrcnRcMe74s88eTy8YLvLL7EBRj": "19999999999999",
|
||||||
|
"37btjrVyb4KBcyGa22cYKz3Xo9UnB2kzZg4nqVX863JCAvUd54ehdg94DWwnBasCv6sUdbKdh9t4tf48oaXokeoms1HDNuegsmRjVntHBX3Z2hnrV7": "19999999999999",
|
||||||
|
"37btjrVyb4KDHmdZ8ewhythkmGaUzLCwME5pGtWR7nPhE9nCjLMcKstQFyKq1vTSagA2BXtiopfGwtLq2e1jhUVKsw1Z8Me6XTmLm5C9MzRYCZCd3n": "19999999999999",
|
||||||
|
"37btjrVyb4KBGJtifVyePJjSHTno1XNBeTcqmSqEhyUznts9KGQTsvCd9Hq6zM2w29njvmJYCtWmNkUXvayfqyv7epN1awWkKK1WUFQKJsjtevSKz7": "19999999999999",
|
||||||
|
"37btjrVyb4KEwqVLa1yaRPdDUctf525DovPsxoXZfqNp26eXQnmTSFwY3Q3rgPsjRfTKHKtjFpxPy6XYvjzscccsZYfXSaL9MmgrKAaeQgQhCtoXih": "19999999999999",
|
||||||
|
"37btjrVyb4KDxRyqtP9nWyEd7sfzdB8Xgh2egCATJAVtvxM2LhKLp1ALCE714vMCsbQZ5SwvVgiAvmieJTkae865ycwU39JN4pgt27pqEuB8uvi947": "19999999999999",
|
||||||
|
"37btjrVyb4KDA9F68PUv9efaoQHTvacu98Dk6Zx3784ADx4SDnwMfDt3uRfJwqBELeVuis5UEqsf9u4zAD9YC82s6YNmQu43avWDqrQq9Z4hHkEVrL": "19999999999999",
|
||||||
|
"37btjrVyb4KCjschbSccsYGDJo1rVBjdVrpH27iRtc5h1q4XRqpQJTma1NA9t9t8PrTsJjFE7WzNCczJHQR1RGXW1jDNEiEqNa6xctAZ4ZBtXKHVtp": "19999999999999"
|
||||||
|
},
|
||||||
|
"blockVersionData": {
|
||||||
|
"scriptVersion": 0,
|
||||||
|
"slotDuration": "20000",
|
||||||
|
"maxBlockSize": "2000000",
|
||||||
|
"maxHeaderSize": "2000",
|
||||||
|
"maxTxSize": "65536",
|
||||||
|
"maxProposalSize": "70000",
|
||||||
|
"mpcThd": "20000000000000",
|
||||||
|
"heavyDelThd": "300000000000",
|
||||||
|
"updateVoteThd": "1000000000000",
|
||||||
|
"updateProposalThd": "100000000000000",
|
||||||
|
"updateImplicit": "10000",
|
||||||
|
"softforkRule": {
|
||||||
|
"initThd": "900000000000000",
|
||||||
|
"minThd": "600000000000000",
|
||||||
|
"thdDecrement": "50000000000000"
|
||||||
|
},
|
||||||
|
"txFeePolicy": {
|
||||||
|
"summand": "155381000000000",
|
||||||
|
"multiplier": "43946000000"
|
||||||
|
},
|
||||||
|
"unlockStakeEpoch": "18446744073709551615"
|
||||||
|
},
|
||||||
|
"protocolConsts": {
|
||||||
|
"k": 2160,
|
||||||
|
"protocolMagic": 1097911063,
|
||||||
|
"vssMaxTTL": 6,
|
||||||
|
"vssMinTTL": 2
|
||||||
|
},
|
||||||
|
"avvmDistr": {
|
||||||
|
"CWJf8Kl8Gp-DhcWKuhNRUU9P0_CVI2LmpR1MIMxVgGQ=": "20000000000000",
|
||||||
|
"h48-GEVDKf_0_vGKzmGOuAOhhIm2uc0OEDSNwFayV28=": "20000000000000",
|
||||||
|
"PO1Kz9bpAowfWD8u9Ial2OkmxDiw6bK_ICDPvuHshJM=": "20000000000000",
|
||||||
|
"mqJXwreGLRzV9a--egcVvKN4hzIcNUULsXqcPWe3YXI=": "20000000000000",
|
||||||
|
"ENoYC3dNAtKL-lvjCTZDVhQYmfyWVtI0GNbz4QKqVdY=": "20000000000000",
|
||||||
|
"o0O4s8YkitBZPeZLVyjn8pjtpBoncr-H9mbtAJS_KfE=": "20000000000000",
|
||||||
|
"1XEVfDyaheIAeQICkHlwmvEuY9A7E50hA1v_E_QB3Fg=": "20000000000000",
|
||||||
|
"OKVfmKrrzY0-10uxl9IxlYA6CFWwOU1dN-NyUI0bobU=": "20000000000000",
|
||||||
|
"LYOSBM00cdDToqHepveoat2SN6vdPntA0nSFXRch83Q=": "20000000000000",
|
||||||
|
"3Z-Z3rLCxLt0C3KgagBq3wOXrfm68_zh2st5Bi6Covs=": "20000000000000",
|
||||||
|
"VTx9H6wpJNMC-H-pThklJ9uCllwqXaU0WXHcVTEFAIU=": "20000000000000",
|
||||||
|
"beyF5mz8icvrBvM-mvQzLfbnHCmxOOg8Z7kJs7nySZs=": "20000000000000",
|
||||||
|
"rs_VPO7SNO2YlSY2N881xHFeBnW_Sn2o4uSfuGpq9cc=": "20000000000000",
|
||||||
|
"5RZPTI9FoSvLmiXjKYtUdkrqoMg99tIw8k4enSB1qlQ=": "20000000000000",
|
||||||
|
"QRBLXNJdJCVDjbwPvQmg_liOcYIWfvoKf7Ns5w_RDvU=": "20000000000000",
|
||||||
|
"YG9mVGb_MAvTSdFgOUV8JbRBxnj3sPELZxQNVup_X18=": "20000000000000",
|
||||||
|
"7dEmv0hdv1a7imviD3q3p9pFBFMC77Byx9oinyGwdIQ=": "20000000000000",
|
||||||
|
"H_Qs3m89FGw8QxVTUGuPjdbOPQyP8vzcD8I37BkRAXY=": "20000000000000",
|
||||||
|
"pa6NZ1j_bs8kezg23cUQiba3UyLxLiGDQfDXMQmuPSE=": "20000000000000",
|
||||||
|
"Qi5VCXOUdP-U-Pd--boAii_-gwMpB0IRfibzxWEN53s=": "20000000000000",
|
||||||
|
"cLJrI380JOISi9A14PYTRmClcxPNQS3_GIZdqcXC1JQ=": "20000000000000",
|
||||||
|
"BVY8wsqEPXPQ7DPTvnvat7GRiwxFPHC4jY1x3ZvY1PE=": "20000000000000",
|
||||||
|
"FBlBD9ykcwuFmoogsVjRCUag9xpkwCAgbYDNazT1oY4=": "20000000000000",
|
||||||
|
"KHwUZRYdwRs5UYIhOO9ycjucY8WvTzpkZgZ4PSbDDPI=": "20000000000000",
|
||||||
|
"ED2RmO7Wfad2p4gxyzhr4gqlhavksgHEg1acZiKMQF4=": "20000000000000",
|
||||||
|
"BOjqPWCmGewTKqKekH0HSgpnOEYT8g0qV4t4t6Nj7-c=": "20000000000000",
|
||||||
|
"b-8mgbBV-r9bqufItyyPp2WLitNhBjaMAajl3GfteeE=": "20000000000000",
|
||||||
|
"JW_kuEdd0TkJEUA35YUbf_K9C4OlpZd83iTUqrD0q0g=": "20000000000000",
|
||||||
|
"IF7PMOFaXdwztrj1j_yx_YBafdZpb3pc5EF6y822KgI=": "20000000000000",
|
||||||
|
"r9HNGwms9l0cMBuT8CznPoadXKbzLPceo4-vDydXUwE=": "20000000000000",
|
||||||
|
"rM0RFpsVm738CCDdzBhrEz8Q0CLIqiBKMl5rtdFlWmA=": "20000000000000",
|
||||||
|
"jFyHtgHVcd70V1SZ7O55mo8yvYw5KsijV6fMQEWkJaE=": "20000000000000",
|
||||||
|
"qWmtDqvA3KZyySJLRPFPO2TiOZh3Dpv1FCJTdEilJvc=": "20000000000000",
|
||||||
|
"5YYkqAleNp8VXGYiD7WsXvWZQwybkqAUR9xMf5lLvzs=": "20000000000000",
|
||||||
|
"bi2YeYdi2W2r7IDYToq_N0RR1k3z4GYsRo2xddi2Y7I=": "20000000000000",
|
||||||
|
"vENWfzLRm1wwHYWTUIOznVCXC3ISPt8J6n3gYFrwfpg=": "20000000000000",
|
||||||
|
"G71fGc7_2IoExvY8VctjxMCd7lJsTWgvWzg__lF4qcY=": "20000000000000",
|
||||||
|
"pFzX1lvX3LPolGCv8TQXfWAZupMZEjVlMWmT7nUV70I=": "20000000000000",
|
||||||
|
"pE7umM4kIaTYqKOviWvgTb34xky-kpbN7VvSzhOT8wo=": "20000000000000",
|
||||||
|
"P6J7kBAlCPD4wxAnzuzlqTBWMyqI1zVkqVWM5kKoCwg=": "20000000000000",
|
||||||
|
"CmwjLeSIEKfLzd5ks16QoGCtYNc--wiGsgWWM4OKsco=": "20000000000000",
|
||||||
|
"-RTrh8sxu9mOYYpcfmyod8-v1Z0nqxMunwK-_NFDzYQ=": "20000000000000",
|
||||||
|
"EnoSKFBfSJ_l7RXMglXTSolDt6VeNRMay4soxkUmk0E=": "20000000000000",
|
||||||
|
"VzxlTAQWmOH7ALIXviuXH2pjjYmtW77r9ypeEZlg4mc=": "20000000000000",
|
||||||
|
"93QRpWUE-Yqthy85Y8poB_WeWdG8A_9nnq4HJiMfJQc=": "20000000000000",
|
||||||
|
"H7YIN-FF0kUawzVnhQpCoMLuOJkLzYAtZ2xof7vhtPs=": "20000000000000",
|
||||||
|
"a9_Q5Pzte2G7wXujwVBaAzLcMki6_UjKrxvWzayJ3gY=": "20000000000000",
|
||||||
|
"O4h-7y-2Izq3ojxailZAbMd0VCq78-kIMv8gIcaA6cA=": "20000000000000",
|
||||||
|
"mlzqpS0hE6s7apMGRQP4Cx5Fc380yt9gQX7XVcVrmQQ=": "20000000000000",
|
||||||
|
"aK-WCeAwKHQE9H02zvRLRdoMPIsZWiOfKkbA6yTyMxs=": "20000000000000",
|
||||||
|
"b3fq65eebunM4fM3AQubawjF6Mt9v9jyEXF5f3hewbo=": "20000000000000",
|
||||||
|
"ZbZ7v6OcrjZ3vqPFVzaHOK2A5UzRYy-wm0C-ngebU_s=": "20000000000000",
|
||||||
|
"zXza46kY7Gs5cJEoN2TUwAaXth5W7uUKQfNiaPyWDSc=": "20000000000000",
|
||||||
|
"5q5RzTcpFFUne5AKkua3DJO1IFQEOGyb2jQvV4DmDT8=": "20000000000000",
|
||||||
|
"5CzeQFC__uUi8TRPuWVgsUeJauYR3i1f3rvD0CrC34o=": "20000000000000",
|
||||||
|
"KOp96-E17RXmCf0_vEOcecpTmY8W0wpbpBwFuPwFbKM=": "20000000000000",
|
||||||
|
"EFK3F4mO823aCcko3QmFJ3Klm7glGs8a0f_f6WVIwdg=": "20000000000000",
|
||||||
|
"e4TOcy9Qp5BQ8tXkEXaWpuHRmAVcJRfPEV3sVCOKZsQ=": "20000000000000",
|
||||||
|
"w-2bM_wksghmtHp4ZB2ZOQ-V9Dw1ZivS7RwxgY-DsB4=": "20000000000000",
|
||||||
|
"9pKGBzQJLoqY6vcOM_OqHRgq9KIdO3ovCBp1mBEFKek=": "20000000000000",
|
||||||
|
"TMFEEMjP7q64-Liae7CEG0ELKtEC2e2vDuCpMItyfzU=": "20000000000000",
|
||||||
|
"nrRREQUC1zKTpQRRNDzO-NiQh6DJahitvTk0SWLkc8g=": "20000000000000",
|
||||||
|
"9xnVxPVNI9fdN5zGa5Fa3HcIwof5T-2lMbdLh3_Nbpk=": "20000000000000",
|
||||||
|
"NqOaYkD2B5yTFQ1dHMY7X2LmV0Q9tZI6KYR1-dFW_z8=": "20000000000000",
|
||||||
|
"zhXX6D5r4CDjlLLQiC87LZZL2zWUIYaXhxbcgq_Ww3w=": "20000000000000",
|
||||||
|
"CXMg_ROxPjiJAyxUpBlUepLDhcdhMffR89izVr9vcRU=": "20000000000000",
|
||||||
|
"vfTTtqpmg_3jQ7zWV3XhNfmtbtn32Z0fcfNc6_Cx-4E=": "20000000000000",
|
||||||
|
"3UAwyThFcR1vKSBpktCSkJg3NpMQhL1z4l46NHpfJkY=": "20000000000000",
|
||||||
|
"K4m8Vu1qtFRavgx0jrctVErZf6VbKDfBnigjQef6k-o=": "20000000000000",
|
||||||
|
"rmyqI_SuwRsbR4rG1Uk6bUlSJRvo004w5SeejGQERT4=": "20000000000000",
|
||||||
|
"oo8sxwl7TO2JP-QfW3_aQbE9zZCLBogFPnwEMPUBuYs=": "20000000000000",
|
||||||
|
"lif3znin9EWfZBoYZ9Ta1c69eINSJNmaqkKJVpFuF2U=": "20000000000000",
|
||||||
|
"kMAvVvgk0sEf3kHXyfb8gQ6H4gWaFBDSUwms4IFs2jo=": "20000000000000",
|
||||||
|
"8CMex0Km9bk2J1r4FaSD_FSwlGRgh1e8C1-7fCGUAJE=": "20000000000000",
|
||||||
|
"pUliJY_tq41pTdo5VJISdWbGGBnL_82pupm4AjZF-y0=": "20000000000000",
|
||||||
|
"E7dg9_nI8tY9CXli9OyIHtx0FUsq0QZKLBVx9Cr8Daw=": "20000000000000",
|
||||||
|
"cpO_GBP5qVwOCGxws6oGvgZszu7jy_LwbKZj_f2pg8o=": "20000000000000",
|
||||||
|
"n8MZ16U_jB4Vg4BPZHGorDzVO7dC9qOfAdYhAluKD4Y=": "20000000000000",
|
||||||
|
"hqzkwiRusxDSgY-MyqmCyTC0VxELSFdJKJVpzBGOdQM=": "20000000000000",
|
||||||
|
"QCiQStlI-PWCbwclsM8ZvfrmP49kql7lAwJjgzZ_OvI=": "20000000000000",
|
||||||
|
"7prDyNFRXierLX1UE26h-TSO0fmfC2lFHQoelogU3hg=": "20000000000000",
|
||||||
|
"32mL1n7cF_xLIjWAGTC6vISGcafcJe0EgXaxaQNtrzQ=": "20000000000000",
|
||||||
|
"H94Fk3T5fiEXPd1eGYfpwPP4_y9FVQWsi2bhIAf9hFE=": "20000000000000",
|
||||||
|
"YLQqBDTjfVrQJcqCzgn0js4ScjJpbh3_dGRmg_wQ9WM=": "20000000000000",
|
||||||
|
"Ctfg-00LO1JetbfqwOOIwrm56xdZSzzZRccGW52eCps=": "20000000000000",
|
||||||
|
"GCkRs5Iqi5jyzRhF-Z5B4-EzgCRAb55pJK8a3kmrbwU=": "20000000000000",
|
||||||
|
"975KNlfAi1B-u2Q0X0qBZpuZNLCUNnKnX-jvBzah3pE=": "20000000000000",
|
||||||
|
"SrxXeNRxF0accD3dsKoj8ymSQeJoUVs78Llsy-4ZIO0=": "20000000000000",
|
||||||
|
"m5zF99P2vG3cqGrG17VvRti7d2XRi3fuUHfec-jM6tQ=": "20000000000000",
|
||||||
|
"A-w4r_kJIZpI8TqDAY-F44cR0lhZtnB25UhT0NXM6Zc=": "20000000000000",
|
||||||
|
"7mglsAKSgUEkAyA6C5Ni-v_1xoGNPCN_cj7ctQZGZqg=": "20000000000000",
|
||||||
|
"x3DrzZ_Yp8df2EGsGlwNAnclV2Tv3lcdqnI3Lk_0bF4=": "20000000000000",
|
||||||
|
"GWoauU1tVb37fjs6mPrxXiBoy9HarPqyGI8zj1mc7cw=": "20000000000000",
|
||||||
|
"op9p-7Xy9fBmzrjLbMD1jEuW1QVXTOsXSIwgaFN3sDk=": "20000000000000",
|
||||||
|
"KC7yE_m_JSiWGVP9cpcfYTLF77taAPTgveRKEiIPg1A=": "20000000000000",
|
||||||
|
"6V6sxoH3dMLw8vWcH0NQF2SZNPDzmtULTX4vxkeCQd4=": "20000000000000",
|
||||||
|
"y0DLZDhvfU-M5MvdhoyxEFp811PWFfrAdIfDVhYCMzE=": "20000000000000",
|
||||||
|
"wCHhA7PS7wdfEuMpzrOJfdGyF2uIChR2LnnAcQE3hHI=": "20000000000000",
|
||||||
|
"s4iYnscFXdEK56b7o4ZvKpgN0YoKchpR-U9MZEqbGb8=": "20000000000000",
|
||||||
|
"WkMPzKKtocKcbc7_fsFND1oln6gAfWJspg9REi75pMw=": "20000000000000"
|
||||||
|
},
|
||||||
|
"ftsSeed": "76617361206f7061736120736b6f766f726f64612047677572646120626f726f64612070726f766f6461"
|
||||||
|
}
|
208
config/testnet-protocol.json
Normal file
208
config/testnet-protocol.json
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
{
|
||||||
|
"maxValueSize": 5000,
|
||||||
|
"minUTxOValue": null,
|
||||||
|
"minPoolCost": 340000000,
|
||||||
|
"monetaryExpansion": 3.0e-3,
|
||||||
|
"stakeAddressDeposit": 2000000,
|
||||||
|
"txFeeFixed": 155381,
|
||||||
|
"poolRetireMaxEpoch": 18,
|
||||||
|
"stakePoolDeposit": 500000000,
|
||||||
|
"maxBlockExecutionUnits": {
|
||||||
|
"memory": 80000000,
|
||||||
|
"steps": 40000000000
|
||||||
|
},
|
||||||
|
"extraPraosEntropy": null,
|
||||||
|
"stakePoolTargetNum": 500,
|
||||||
|
"maxBlockHeaderSize": 1100,
|
||||||
|
"maxCollateralInputs": 3,
|
||||||
|
"txFeePerByte": 44,
|
||||||
|
"treasuryCut": 0.2,
|
||||||
|
"protocolVersion": {
|
||||||
|
"minor": 0,
|
||||||
|
"major": 6
|
||||||
|
},
|
||||||
|
"collateralPercentage": 150,
|
||||||
|
"poolPledgeInfluence": 0.3,
|
||||||
|
"costModels": {
|
||||||
|
"PlutusScriptV1": {
|
||||||
|
"mapData-memory-arguments": 32,
|
||||||
|
"lessThanInteger-memory-arguments": 1,
|
||||||
|
"sha3_256-cpu-arguments-slope": 82363,
|
||||||
|
"bData-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-cpu-arguments-intercept": 112536,
|
||||||
|
"equalsString-cpu-arguments-constant": 1000,
|
||||||
|
"modInteger-memory-arguments-slope": 1,
|
||||||
|
"equalsInteger-memory-arguments": 1,
|
||||||
|
"trace-cpu-arguments": 150000,
|
||||||
|
"iData-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-memory-arguments": 1,
|
||||||
|
"unIData-memory-arguments": 32,
|
||||||
|
"consByteString-memory-arguments-intercept": 0,
|
||||||
|
"cekLamCost-exBudgetCPU": 29773,
|
||||||
|
"indexByteString-cpu-arguments": 150000,
|
||||||
|
"cekStartupCost-exBudgetMemory": 100,
|
||||||
|
"listData-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-constant": 148000,
|
||||||
|
"lessThanInteger-cpu-arguments-intercept": 179690,
|
||||||
|
"verifySignature-cpu-arguments-slope": 1,
|
||||||
|
"appendString-memory-arguments-intercept": 0,
|
||||||
|
"equalsString-cpu-arguments-slope": 1000,
|
||||||
|
"blake2b-cpu-arguments-intercept": 2477736,
|
||||||
|
"encodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"mapData-cpu-arguments": 150000,
|
||||||
|
"equalsByteString-cpu-arguments-slope": 247,
|
||||||
|
"multiplyInteger-cpu-arguments-intercept": 61516,
|
||||||
|
"cekStartupCost-exBudgetCPU": 100,
|
||||||
|
"sndPair-memory-arguments": 32,
|
||||||
|
"sha3_256-cpu-arguments-intercept": 0,
|
||||||
|
"addInteger-cpu-arguments-slope": 0,
|
||||||
|
"constrData-memory-arguments": 32,
|
||||||
|
"divideInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekForceCost-exBudgetCPU": 29773,
|
||||||
|
"equalsByteString-cpu-arguments-constant": 150000,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"sliceByteString-memory-arguments-slope": 1,
|
||||||
|
"equalsString-memory-arguments": 1,
|
||||||
|
"cekLamCost-exBudgetMemory": 100,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
|
||||||
|
"quotientInteger-memory-arguments-minimum": 1,
|
||||||
|
"consByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"appendByteString-memory-arguments-slope": 1,
|
||||||
|
"lessThanByteString-cpu-arguments-slope": 248,
|
||||||
|
"lessThanByteString-memory-arguments": 1,
|
||||||
|
"multiplyInteger-cpu-arguments-slope": 11218,
|
||||||
|
"cekVarCost-exBudgetCPU": 29773,
|
||||||
|
"cekDelayCost-exBudgetMemory": 100,
|
||||||
|
"blake2b-cpu-arguments-slope": 29175,
|
||||||
|
"mkNilData-cpu-arguments": 150000,
|
||||||
|
"appendByteString-cpu-arguments-slope": 621,
|
||||||
|
"appendString-memory-arguments-slope": 1,
|
||||||
|
"lessThanInteger-cpu-arguments-slope": 497,
|
||||||
|
"chooseUnit-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"decodeUtf8-cpu-arguments-slope": 1000,
|
||||||
|
"chooseData-cpu-arguments": 150000,
|
||||||
|
"verifySignature-cpu-arguments-intercept": 3345831,
|
||||||
|
"modInteger-memory-arguments-minimum": 1,
|
||||||
|
"lessThanEqualsByteString-memory-arguments": 1,
|
||||||
|
"quotientInteger-cpu-arguments-constant": 148000,
|
||||||
|
"consByteString-memory-arguments-slope": 1,
|
||||||
|
"tailList-memory-arguments": 32,
|
||||||
|
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"decodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"lessThanEqualsInteger-memory-arguments": 1,
|
||||||
|
"appendByteString-cpu-arguments-intercept": 396231,
|
||||||
|
"unMapData-memory-arguments": 32,
|
||||||
|
"chooseList-cpu-arguments": 150000,
|
||||||
|
"divideInteger-memory-arguments-minimum": 1,
|
||||||
|
"unListData-memory-arguments": 32,
|
||||||
|
"remainderInteger-cpu-arguments-constant": 148000,
|
||||||
|
"addInteger-memory-arguments-slope": 1,
|
||||||
|
"sha3_256-memory-arguments": 4,
|
||||||
|
"lessThanByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"modInteger-cpu-arguments-constant": 148000,
|
||||||
|
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
|
||||||
|
"appendByteString-memory-arguments-intercept": 0,
|
||||||
|
"listData-cpu-arguments": 150000,
|
||||||
|
"ifThenElse-memory-arguments": 1,
|
||||||
|
"cekApplyCost-exBudgetMemory": 100,
|
||||||
|
"sliceByteString-memory-arguments-intercept": 0,
|
||||||
|
"unIData-cpu-arguments": 150000,
|
||||||
|
"modInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"equalsData-cpu-arguments-intercept": 150000,
|
||||||
|
"mkNilPairData-memory-arguments": 32,
|
||||||
|
"cekConstCost-exBudgetCPU": 29773,
|
||||||
|
"indexByteString-memory-arguments": 1,
|
||||||
|
"blake2b-memory-arguments": 4,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-slope": 248,
|
||||||
|
"cekDelayCost-exBudgetCPU": 29773,
|
||||||
|
"multiplyInteger-memory-arguments-slope": 1,
|
||||||
|
"remainderInteger-memory-arguments-slope": 1,
|
||||||
|
"subtractInteger-cpu-arguments-slope": 0,
|
||||||
|
"iData-memory-arguments": 32,
|
||||||
|
"cekBuiltinCost-exBudgetCPU": 29773,
|
||||||
|
"mkNilData-memory-arguments": 32,
|
||||||
|
"cekForceCost-exBudgetMemory": 100,
|
||||||
|
"trace-memory-arguments": 32,
|
||||||
|
"encodeUtf8-cpu-arguments-intercept": 150000,
|
||||||
|
"sha2_256-cpu-arguments-intercept": 2477736,
|
||||||
|
"headList-memory-arguments": 32,
|
||||||
|
"unBData-cpu-arguments": 150000,
|
||||||
|
"remainderInteger-memory-arguments-minimum": 1,
|
||||||
|
"unMapData-cpu-arguments": 150000,
|
||||||
|
"sha2_256-cpu-arguments-slope": 29175,
|
||||||
|
"modInteger-memory-arguments-intercept": 0,
|
||||||
|
"ifThenElse-cpu-arguments": 1,
|
||||||
|
"tailList-cpu-arguments": 150000,
|
||||||
|
"multiplyInteger-memory-arguments-intercept": 0,
|
||||||
|
"remainderInteger-memory-arguments-intercept": 0,
|
||||||
|
"consByteString-cpu-arguments-slope": 1000,
|
||||||
|
"lengthOfByteString-memory-arguments": 4,
|
||||||
|
"fstPair-memory-arguments": 32,
|
||||||
|
"mkPairData-cpu-arguments": 150000,
|
||||||
|
"appendString-cpu-arguments-intercept": 150000,
|
||||||
|
"verifySignature-memory-arguments": 1,
|
||||||
|
"sliceByteString-cpu-arguments-intercept": 150000,
|
||||||
|
"equalsData-cpu-arguments-slope": 10000,
|
||||||
|
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
|
||||||
|
"chooseList-memory-arguments": 32,
|
||||||
|
"nullList-memory-arguments": 32,
|
||||||
|
"unListData-cpu-arguments": 150000,
|
||||||
|
"equalsData-memory-arguments": 1,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"sha2_256-memory-arguments": 4,
|
||||||
|
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"encodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"quotientInteger-memory-arguments-slope": 1,
|
||||||
|
"unConstrData-cpu-arguments": 150000,
|
||||||
|
"sliceByteString-cpu-arguments-slope": 5000,
|
||||||
|
"cekBuiltinCost-exBudgetMemory": 100,
|
||||||
|
"equalsInteger-cpu-arguments-slope": 1326,
|
||||||
|
"subtractInteger-memory-arguments-slope": 1,
|
||||||
|
"mkCons-cpu-arguments": 150000,
|
||||||
|
"chooseUnit-cpu-arguments": 150000,
|
||||||
|
"chooseData-memory-arguments": 32,
|
||||||
|
"bData-memory-arguments": 32,
|
||||||
|
"appendString-cpu-arguments-slope": 1000,
|
||||||
|
"decodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"fstPair-cpu-arguments": 150000,
|
||||||
|
"unConstrData-memory-arguments": 32,
|
||||||
|
"sndPair-cpu-arguments": 150000,
|
||||||
|
"addInteger-memory-arguments-intercept": 1,
|
||||||
|
"cekConstCost-exBudgetMemory": 100,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
|
||||||
|
"equalsString-cpu-arguments-intercept": 150000,
|
||||||
|
"mkCons-memory-arguments": 32,
|
||||||
|
"mkPairData-memory-arguments": 32,
|
||||||
|
"lengthOfByteString-cpu-arguments": 150000,
|
||||||
|
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
|
||||||
|
"cekApplyCost-exBudgetCPU": 29773,
|
||||||
|
"constrData-cpu-arguments": 150000,
|
||||||
|
"nullList-cpu-arguments": 150000,
|
||||||
|
"headList-cpu-arguments": 150000,
|
||||||
|
"decodeUtf8-memory-arguments-intercept": 0,
|
||||||
|
"subtractInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"subtractInteger-memory-arguments-intercept": 1,
|
||||||
|
"encodeUtf8-memory-arguments-slope": 8,
|
||||||
|
"equalsInteger-cpu-arguments-intercept": 136542,
|
||||||
|
"quotientInteger-memory-arguments-intercept": 0,
|
||||||
|
"cekVarCost-exBudgetMemory": 100,
|
||||||
|
"unBData-memory-arguments": 32,
|
||||||
|
"addInteger-cpu-arguments-intercept": 197209,
|
||||||
|
"mkNilPairData-cpu-arguments": 150000,
|
||||||
|
"divideInteger-memory-arguments-slope": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxTxExecutionUnits": {
|
||||||
|
"memory": 16000000,
|
||||||
|
"steps": 10000000000
|
||||||
|
},
|
||||||
|
"executionUnitPrices": {
|
||||||
|
"priceSteps": 7.21e-5,
|
||||||
|
"priceMemory": 5.77e-2
|
||||||
|
},
|
||||||
|
"decentralization": 0,
|
||||||
|
"utxoCostPerWord": 34482,
|
||||||
|
"maxTxSize": 16384,
|
||||||
|
"maxBlockBodySize": 98304
|
||||||
|
}
|
70
config/testnet-shelley-genesis.json
Normal file
70
config/testnet-shelley-genesis.json
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{
|
||||||
|
"activeSlotsCoeff": 0.05,
|
||||||
|
"protocolParams": {
|
||||||
|
"protocolVersion": {
|
||||||
|
"minor": 0,
|
||||||
|
"major": 2
|
||||||
|
},
|
||||||
|
"decentralisationParam": 1,
|
||||||
|
"eMax": 18,
|
||||||
|
"extraEntropy": {
|
||||||
|
"tag": "NeutralNonce"
|
||||||
|
},
|
||||||
|
"maxTxSize": 16384,
|
||||||
|
"txFeePerByte": 44,
|
||||||
|
"txFeeFixed": 155381,
|
||||||
|
"maxBlockBodySize": 65536,
|
||||||
|
"maxBlockHeaderSize": 1100,
|
||||||
|
"minFeeA": 44,
|
||||||
|
"minFeeB": 155381,
|
||||||
|
"minUTxOValue": 1000000,
|
||||||
|
"poolDeposit": 500000000,
|
||||||
|
"minPoolCost": 340000000,
|
||||||
|
"keyDeposit": 2000000,
|
||||||
|
"nOpt": 150,
|
||||||
|
"rho": 0.003,
|
||||||
|
"tau": 0.2,
|
||||||
|
"a0": 0.3
|
||||||
|
},
|
||||||
|
"genDelegs": {
|
||||||
|
"2f56e87d67b8e5216582cfeb95dbdc9083110a3ef68faaa51bef3a80": {
|
||||||
|
"delegate": "bd5933d3c5417f17a64c7214711a26abc3bc03e2c90dc1bb38e0c39f",
|
||||||
|
"vrf": "9a0b0f537874d089cedfa9e250150405e47ea29acee87c40a223ae0a175d26f8"
|
||||||
|
},
|
||||||
|
"514e81afb082fce01678809eebd90eda4f7918354ec7d0433ad16274": {
|
||||||
|
"delegate": "eff1b5b26e65b791d6f236c7c0264012bd1696759d22bdb4dd0f6f56",
|
||||||
|
"vrf": "e6f70fb10c7523aa76648e20d17e65fd9b2ed53960fbd20b308f223b703f2e23"
|
||||||
|
},
|
||||||
|
"2fca486b4d8f1a0432f5bf18ef473ee4294c795a1a32e3132bc6b90f": {
|
||||||
|
"delegate": "de665a71064706f946030505eae950583f08c316f0f58997961092b1",
|
||||||
|
"vrf": "c3fde629add60e30142cd7ef3c680610975208b08aee42203a5c40ad5992e8f6"
|
||||||
|
},
|
||||||
|
"4ee98623920698b77c1c7f77288cbdac5f9011ff8970b1f507567d0d": {
|
||||||
|
"delegate": "bf07107c6f632de95e34af7e009d2aafa19916c7ba89b944fbedcd72",
|
||||||
|
"vrf": "9d7d12e3d6b02835be3e76cfc6ae93d937035ee0e006d04a0eef9dea19754e21"
|
||||||
|
},
|
||||||
|
"0d06d2547ed371fdf95fb5c4c735eecdd53e6a5bb831561bd0fcfd3d": {
|
||||||
|
"delegate": "6df3e1b4b8a84c63c805076a85e5aa00924997a4eae85fddf0aee3ca",
|
||||||
|
"vrf": "0774e5810fe02a014ec97ef424797172f2b8c5dcfb6e4cfc98b411c31d5096d8"
|
||||||
|
},
|
||||||
|
"581e23030b6038bae716e5d64b9e053db10541b12e6b0b4eff485454": {
|
||||||
|
"delegate": "b0dca078b823cde627da136200d6618c49ad712b77972a1c5e135763",
|
||||||
|
"vrf": "16a4e883b72ddbd09a4f8a1170fc346ab11e4202f814faa73e9d2433ee03e7b0"
|
||||||
|
},
|
||||||
|
"e5f27655371b54aed91cc916b2569060978be80056768fee2cc5ce1b": {
|
||||||
|
"delegate": "b3873a254459f506e47b9a252ee7912e538b364447f31576a170db65",
|
||||||
|
"vrf": "cc5c897fdf5db0017326656fe35aeb20c72b175540793f9b9b8dc9ade001bbc4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"updateQuorum": 5,
|
||||||
|
"networkId": "Testnet",
|
||||||
|
"initialFunds": {},
|
||||||
|
"maxLovelaceSupply": 45000000000000000,
|
||||||
|
"networkMagic": 1097911063,
|
||||||
|
"epochLength": 432000,
|
||||||
|
"systemStart": "2019-07-24T20:20:16Z",
|
||||||
|
"slotsPerKESPeriod": 129600,
|
||||||
|
"slotLength": 1,
|
||||||
|
"maxKESEvolutions": 62,
|
||||||
|
"securityParam": 2160
|
||||||
|
}
|
63
configuration.d.ts
vendored
Normal file
63
configuration.d.ts
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
export interface ConfigurationParameters {
|
||||||
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||||
|
username?: string;
|
||||||
|
password?: string;
|
||||||
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||||
|
basePath?: string;
|
||||||
|
baseOptions?: any;
|
||||||
|
}
|
||||||
|
export declare class Configuration {
|
||||||
|
/**
|
||||||
|
* parameter for apiKey security
|
||||||
|
* @param name security name
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||||
|
/**
|
||||||
|
* parameter for basic security
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
username?: string;
|
||||||
|
/**
|
||||||
|
* parameter for basic security
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
password?: string;
|
||||||
|
/**
|
||||||
|
* parameter for oauth2 security
|
||||||
|
* @param name security name
|
||||||
|
* @param scopes oauth2 scope
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||||
|
/**
|
||||||
|
* override base path
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
basePath?: string;
|
||||||
|
/**
|
||||||
|
* base options for axios calls
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof Configuration
|
||||||
|
*/
|
||||||
|
baseOptions?: any;
|
||||||
|
constructor(param?: ConfigurationParameters);
|
||||||
|
}
|
17
configuration.js
Normal file
17
configuration.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.Configuration = void 0;
|
||||||
|
var Configuration = /** @class */ (function () {
|
||||||
|
function Configuration(param) {
|
||||||
|
if (param === void 0) { param = {}; }
|
||||||
|
this.apiKey = param.apiKey;
|
||||||
|
this.username = param.username;
|
||||||
|
this.password = param.password;
|
||||||
|
this.accessToken = param.accessToken;
|
||||||
|
this.basePath = param.basePath;
|
||||||
|
this.baseOptions = param.baseOptions;
|
||||||
|
}
|
||||||
|
return Configuration;
|
||||||
|
}());
|
||||||
|
exports.Configuration = Configuration;
|
||||||
|
//# sourceMappingURL=configuration.js.map
|
1
configuration.js.map
Normal file
1
configuration.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../configuration.ts"],"names":[],"mappings":";;;AA8BA;IAmDE,uBAAY,KAAmC;QAAnC,sBAAA,EAAA,UAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;IACtC,CAAC;IACH,oBAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,sCAAa"}
|
12
index.d.ts
vendored
Normal file
12
index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
export * from './wallet/address-wallet';
|
||||||
|
export * from './wallet/fee-wallet';
|
||||||
|
export * from './wallet/key-wallet';
|
||||||
|
export * from './wallet/shelley-wallet';
|
||||||
|
export * from './wallet/transaction-wallet';
|
||||||
|
export * from './wallet/asset-wallet';
|
||||||
|
export * from './wallet/token-wallet';
|
||||||
|
export * from './utils';
|
||||||
|
export * from './wallet-server';
|
||||||
|
export * from './models';
|
||||||
|
export * from './config';
|
||||||
|
export * from '@emurgo/cardano-serialization-lib-nodejs';
|
25
index.js
Normal file
25
index.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
"use strict";
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||||
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
__exportStar(require("./wallet/address-wallet"), exports);
|
||||||
|
__exportStar(require("./wallet/fee-wallet"), exports);
|
||||||
|
__exportStar(require("./wallet/key-wallet"), exports);
|
||||||
|
__exportStar(require("./wallet/shelley-wallet"), exports);
|
||||||
|
__exportStar(require("./wallet/transaction-wallet"), exports);
|
||||||
|
__exportStar(require("./wallet/asset-wallet"), exports);
|
||||||
|
__exportStar(require("./wallet/token-wallet"), exports);
|
||||||
|
__exportStar(require("./utils"), exports);
|
||||||
|
__exportStar(require("./wallet-server"), exports);
|
||||||
|
__exportStar(require("./models"), exports);
|
||||||
|
__exportStar(require("./config"), exports);
|
||||||
|
__exportStar(require("@emurgo/cardano-serialization-lib-nodejs"), exports);
|
||||||
|
//# sourceMappingURL=index.js.map
|
1
index.js.map
Normal file
1
index.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAuC;AACvC,sDAAmC;AACnC,sDAAmC;AACnC,0DAAuC;AACvC,8DAA2C;AAC3C,wDAAqC;AACrC,wDAAqC;AACrC,0CAAuB;AACvB,kDAA+B;AAC/B,2CAAwB;AACxB,2CAAwB;AACxB,2EAAwD"}
|
24
models/any-address.d.ts
vendored
Normal file
24
models/any-address.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface AnyAddress
|
||||||
|
*/
|
||||||
|
export interface AnyAddress {
|
||||||
|
/**
|
||||||
|
* A Shelley address representing either enterprise, reward account or delegating address
|
||||||
|
* @type {string}
|
||||||
|
* @memberof AnyAddress
|
||||||
|
*/
|
||||||
|
address: any;
|
||||||
|
}
|
3
models/any-address.js
Normal file
3
models/any-address.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=any-address.js.map
|
1
models/any-address.js.map
Normal file
1
models/any-address.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"any-address.js","sourceRoot":"","sources":["../../models/any-address.ts"],"names":[],"mappings":""}
|
18
models/api-account-key.d.ts
vendored
Normal file
18
models/api-account-key.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface ApiAccountKey
|
||||||
|
*/
|
||||||
|
export interface ApiAccountKey {
|
||||||
|
}
|
3
models/api-account-key.js
Normal file
3
models/api-account-key.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=api-account-key.js.map
|
1
models/api-account-key.js.map
Normal file
1
models/api-account-key.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"api-account-key.js","sourceRoot":"","sources":["../../models/api-account-key.ts"],"names":[],"mappings":""}
|
36
models/api-account-post-data.d.ts
vendored
Normal file
36
models/api-account-post-data.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Restore from account public key
|
||||||
|
* @export
|
||||||
|
* @interface ApiAccountPostData
|
||||||
|
*/
|
||||||
|
export interface ApiAccountPostData {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof ApiAccountPostData
|
||||||
|
*/
|
||||||
|
name: any;
|
||||||
|
/**
|
||||||
|
* An extended account public key (public key + chain code)
|
||||||
|
* @type {string}
|
||||||
|
* @memberof ApiAccountPostData
|
||||||
|
*/
|
||||||
|
account_public_key: any;
|
||||||
|
/**
|
||||||
|
* Number of consecutive unused addresses allowed. **IMPORTANT DISCLAIMER:** Using values other than `20` automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you **will not** be able to fully restore your wallet in a different software which is strictly following BIP-44. Beside, using large gaps is **not recommended** as it may induce important performance degradations. Use at your own risks.
|
||||||
|
* @type {number}
|
||||||
|
* @memberof ApiAccountPostData
|
||||||
|
*/
|
||||||
|
address_pool_gap?: any;
|
||||||
|
}
|
3
models/api-account-post-data.js
Normal file
3
models/api-account-post-data.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=api-account-post-data.js.map
|
1
models/api-account-post-data.js.map
Normal file
1
models/api-account-post-data.js.map
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"api-account-post-data.js","sourceRoot":"","sources":["../../models/api-account-post-data.ts"],"names":[],"mappings":""}
|
44
models/api-address-data.d.ts
vendored
Normal file
44
models/api-address-data.d.ts
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/**
|
||||||
|
* Cardano Wallet Backend API
|
||||||
|
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 2021.3.4
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @interface ApiAddressData
|
||||||
|
*/
|
||||||
|
export interface ApiAddressData {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string | string | any}
|
||||||
|
* @memberof ApiAddressData
|
||||||
|
*/
|
||||||
|
payment?: any;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {string | string | any}
|
||||||
|
* @memberof ApiAddressData
|
||||||
|
*/
|
||||||
|
stake?: any;
|
||||||
|
/**
|
||||||
|
* Script validation level. Required validation sifts off scripts that would not be accepted by the ledger. Recommended level filters out scripts that do not pass required validation and additionally when: * 'all' is non-empty * there are redundant timelocks in a given level * there are no duplicated verification keys in a given level * 'at_least' coeffcient is positive * 'all', 'any' are non-empty and `'at_least' has no less elements in the list than the coeffcient after timelocks are filtered out.
|
||||||
|
* @type {string}
|
||||||
|
* @memberof ApiAddressData
|
||||||
|
*/
|
||||||
|
validation?: ApiAddressDataValidationEnum;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @export
|
||||||
|
* @enum {string}
|
||||||
|
*/
|
||||||
|
export declare enum ApiAddressDataValidationEnum {
|
||||||
|
Required = "required",
|
||||||
|
Recommended = "recommended"
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user