├── .eslintcache ├── .eslintrc.js ├── .gitignore ├── .npmignore ├── .swagger-codegen └── VERSION ├── README.md ├── address-cli.js ├── api.ts ├── apis ├── addresses-api.ts ├── assets-api.ts ├── byron-addresses-api.ts ├── byron-assets-api.ts ├── byron-coin-selections-api.ts ├── byron-migrations-api.ts ├── byron-transactions-api.ts ├── byron-wallets-api.ts ├── coin-selections-api.ts ├── experimental-api.ts ├── keys-api.ts ├── migrations-api.ts ├── network-api.ts ├── proxy-api.ts ├── settings-api.ts ├── stake-pools-api.ts ├── transactions-api.ts ├── utils-api.ts └── wallets-api.ts ├── base.ts ├── binaries.ts ├── config.ts ├── config ├── local-cluster-alonzo-genesis.json ├── local-cluster-byron-genesis.json ├── local-cluster-protocol.json ├── local-cluster-shelley-genesis.json ├── mainnet-alonzo-genesis.json ├── mainnet-byron-genesis.json ├── mainnet-protocol.json ├── mainnet-shelley-genesis.json ├── network.config.ts ├── testnet-alonzo-genesis.json ├── testnet-byron-genesis.json ├── testnet-protocol.json └── testnet-shelley-genesis.json ├── configuration.ts ├── examples └── multisig │ ├── 2of2 │ ├── generate_address.js │ └── sign_tx.js │ └── 2of3 │ ├── generate_address.js │ └── sign_tx.js ├── git_push.sh ├── index.ts ├── models ├── any-address.ts ├── api-account-key.ts ├── api-account-post-data.ts ├── api-address-data.ts ├── api-address-inspect-pointer.ts ├── api-address-inspect.ts ├── api-address.ts ├── api-asset.ts ├── api-byron-select-coins-data.ts ├── api-byron-wallet-icarus-post-data.ts ├── api-byron-wallet-ledger-post-data.ts ├── api-byron-wallet-migration-post-data.ts ├── api-byron-wallet-put-passphrase-data.ts ├── api-byron-wallet-random-post-data.ts ├── api-byron-wallet-random-xprv-post-data.ts ├── api-byron-wallet-trezor-post-data.ts ├── api-byron-wallet.ts ├── api-coin-selection-certificates.ts ├── api-coin-selection-change.ts ├── api-coin-selection-inputs.ts ├── api-coin-selection-withdrawals.ts ├── api-coin-selection.ts ├── api-credential.ts ├── api-era-info.ts ├── api-era.ts ├── api-fee.ts ├── api-gcstatus.ts ├── api-get-settings.ts ├── api-health-check.ts ├── api-maintenance-action-gc-stake-pools.ts ├── api-maintenance-action-post-data.ts ├── api-maintenance-action.ts ├── api-network-clock-offset.ts ├── api-network-clock.ts ├── api-network-information-network-tip.ts ├── api-network-information-node-tip.ts ├── api-network-information-sync-progress.ts ├── api-network-information.ts ├── api-network-parameters-active-slot-coefficient.ts ├── api-network-parameters-epoch-length.ts ├── api-network-parameters-eras.ts ├── api-network-parameters-slot-length.ts ├── api-network-parameters.ts ├── api-network-tip.ts ├── api-post-account-key-data.ts ├── api-post-random-address-data.ts ├── api-post-redemption-data.ts ├── api-post-redemption-fee-data.ts ├── api-post-transaction-data-byron.ts ├── api-post-transaction-data.ts ├── api-post-transaction-fee-data-byron.ts ├── api-post-transaction-fee-data.ts ├── api-pub-key.ts ├── api-put-addresses-data.ts ├── api-script-some.ts ├── api-script.ts ├── api-select-coins-action.ts ├── api-select-coins-data.ts ├── api-select-coins-payments.ts ├── api-select-coins-redemption.ts ├── api-settings-put-data.ts ├── api-shelley-wallet-migration-post-data.ts ├── api-smash-server.ts ├── api-stake-pool.ts ├── api-transaction.ts ├── api-tx-id.ts ├── api-verification-key.ts ├── api-wallet-delegation-next.ts ├── api-wallet-delegation.ts ├── api-wallet-migration-info-leftovers.ts ├── api-wallet-migration-info-migration-cost.ts ├── api-wallet-migration-info.ts ├── api-wallet-or-account-post-data.ts ├── api-wallet-passphrase.ts ├── api-wallet-post-data.ts ├── api-wallet-put-data.ts ├── api-wallet-put-passphrase-data.ts ├── api-wallet-sign-data.ts ├── api-wallet-utx-os-statistics.ts ├── api-wallet.ts ├── asset-not-present.ts ├── bad-request.ts ├── bip32-keypair.model.ts ├── body.ts ├── body1.ts ├── body10.ts ├── body11.ts ├── body12.ts ├── body13.ts ├── body14.ts ├── body15.ts ├── body16.ts ├── body17.ts ├── body18.ts ├── body19.ts ├── body2.ts ├── body20.ts ├── body21.ts ├── body22.ts ├── body3.ts ├── body4.ts ├── body5.ts ├── body6.ts ├── body7.ts ├── body8.ts ├── body9.ts ├── byronwallets-balance-available.ts ├── byronwallets-balance-total.ts ├── byronwallets-balance.ts ├── cannot-cover-fee.ts ├── credential-value.ts ├── index.ts ├── inline-response200.ts ├── inline-response2001.ts ├── inline-response20010.ts ├── inline-response20011.ts ├── inline-response20012.ts ├── inline-response20013.ts ├── inline-response20014.ts ├── inline-response20015.ts ├── inline-response20016.ts ├── inline-response2002.ts ├── inline-response2003.ts ├── inline-response2004.ts ├── inline-response2005.ts ├── inline-response2006.ts ├── inline-response2007.ts ├── inline-response2008.ts ├── inline-response2009.ts ├── inline-response201.ts ├── inline-response2011.ts ├── inline-response202.ts ├── inline-response2021.ts ├── inline-response2022.ts ├── inline-response2023.ts ├── inline-response400.ts ├── inline-response4001.ts ├── inline-response403.ts ├── inline-response4031.ts ├── inline-response4032.ts ├── inline-response4033.ts ├── inline-response4034.ts ├── inline-response4035.ts ├── inline-response4036.ts ├── inline-response404.ts ├── inline-response4041.ts ├── inline-response415.ts ├── json-script.model.ts ├── multisig-transaction.ts ├── native-assets-metadata-unit.ts ├── native-assets-metadata.ts ├── no-such-wallet.ts ├── not-acceptable.ts ├── nothing-to-migrate.ts ├── nullable-epoch-info.ts ├── payment-extended-signing-key.ts ├── query-param-missing.ts ├── script-value.ts ├── script.model.ts ├── settings-settings.ts ├── some-byron-wallet-post-data.ts ├── stakepools-cost.ts ├── stakepools-margin.ts ├── stakepools-metadata.ts ├── stakepools-metrics-non-myopic-member-rewards.ts ├── stakepools-metrics-produced-blocks.ts ├── stakepools-metrics-relative-stake.ts ├── stakepools-metrics.ts ├── stakepools-pledge.ts ├── stakepools-retirement.ts ├── transaction-already-in-ledger.ts ├── transaction-metadata-value-map.ts ├── transaction-metadata-value.ts ├── unsupported-media-type.ts ├── wallet-already-exists.ts ├── wallets-assets-available.ts ├── wallets-assets.ts ├── wallets-balance-available.ts ├── wallets-balance-reward.ts ├── wallets-balance-total.ts ├── wallets-balance.ts ├── wallets-delegation-active.ts ├── wallets-delegation-changes-at.ts ├── wallets-delegation-next.ts ├── wallets-delegation.ts ├── wallets-passphrase.ts ├── wallets-state-progress.ts ├── wallets-state.ts ├── wallets-tip-height.ts ├── wallets-tip.ts ├── walletswallet-idcoinselectionsrandom-delegation-action.ts ├── walletswallet-idpaymentfees-amount.ts ├── walletswallet-idpaymentfees-payments.ts ├── walletswallet-idpaymentfees-time-to-live.ts ├── walletswallet-idtransactions-amount.ts ├── walletswallet-idtransactions-depth.ts ├── walletswallet-idtransactions-expires-at.ts ├── walletswallet-idtransactions-inputs.ts ├── walletswallet-idtransactions-inserted-at.ts ├── walletswallet-idtransactions-mint.ts ├── walletswallet-idtransactions-pending-since.ts └── walletswallet-idtransactions-withdrawals.ts ├── package-lock.json ├── package.json ├── test ├── assets.ts ├── network.ts ├── seed.ts └── wallet.ts ├── tsconfig.json ├── utils.ts ├── wallet-server.ts └── wallet ├── address-wallet.ts ├── asset-wallet.ts ├── coin-selection-wallet.ts ├── fee-wallet.ts ├── key-wallet.ts ├── maintenance-action-wallet.ts ├── shelley-wallet.ts ├── stakepool-wallet.ts ├── token-wallet.ts ├── transaction-wallet.ts └── utxo-statistics-wallet.ts /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: '@typescript-eslint/parser', 4 | plugins: [ 5 | '@typescript-eslint', 6 | ], 7 | extends: [ 8 | 'eslint:recommended', 9 | 'plugin:@typescript-eslint/recommended', 10 | ], 11 | }; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | wwwroot/*.js 2 | node_modules 3 | typings 4 | dist 5 | .env 6 | .vscode 7 | .swagger-codegen 8 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm -------------------------------------------------------------------------------- /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 3.0.25 -------------------------------------------------------------------------------- /address-cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const { execSync } = require('child_process'); 4 | const os = require('os'); 5 | if (os.platform() !== 'win32') { 6 | execSync('mkdir -p tmp-cardano-address'); 7 | execSync('cd tmp-cardano-address && curl -L https://github.com/input-output-hk/cardano-addresses/releases/download/3.4.0/cardano-addresses-3.4.0-linux64.tar.gz -o cardano-addresses-3.4.0-linux64.tar.gz && tar -xf cardano-addresses-3.4.0-linux64.tar.gz', { stdio: 'inherit' }); 8 | execSync('cp tmp-cardano-address/bin/* cli/'); 9 | execSync('ln -s ../cardano-wallet-js/cli/cardano-address node_modules/.bin/cardano-address') 10 | execSync('chmod +x cli/*'); 11 | execSync('rm -rf tmp-cardano-address'); 12 | } else { 13 | execSync('mkdir tmp-cardano-address'); 14 | execSync('cd tmp-cardano-address && curl -L https://github.com/input-output-hk/cardano-addresses/releases/download/3.4.0/cardano-addresses-3.4.0-win64.zip -o cardano-addresses-3.4.0-win64.zip && tar -xf cardano-addresses-3.4.0-win64.zip', { stdio: 'inherit' }); 15 | execSync('copy tmp-cardano-address\\cardano-address.exe cli'); 16 | execSync('echo @ECHO off> node_modules\\.bin\\cardano-address.cmd'); 17 | execSync('echo SETLOCAL>> node_modules\\.bin\\cardano-address.cmd'); 18 | execSync('echo CALL :find_dp0>> node_modules\\.bin\\cardano-address.cmd'); 19 | execSync('echo ^"%dp0%\\node_modules\\cardano-wallet-js\\cli\\cardano-address.exe^" %*>> node_modules\\.bin\\cardano-address.cmd'); 20 | execSync('echo ENDLOCAL>> node_modules\\.bin\\cardano-address.cmd'); 21 | execSync(`echo EXIT /b ^%errorlevel^%>> node_modules\\.bin\\cardano-address.cmd`); 22 | execSync('echo :find_dp0>> node_modules\\.bin\\cardano-address.cmd'); 23 | execSync('echo SET dp0=%~dp0>> node_modules\\.bin\\cardano-address.cmd'); 24 | execSync('echo EXIT /b>> node_modules\\.bin\\cardano-address.cmd'); 25 | execSync('rmdir /s /q tmp-cardano-address'); 26 | } -------------------------------------------------------------------------------- /api.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | export * from './apis/addresses-api'; 15 | export * from './apis/assets-api'; 16 | export * from './apis/byron-addresses-api'; 17 | export * from './apis/byron-assets-api'; 18 | export * from './apis/byron-coin-selections-api'; 19 | export * from './apis/byron-migrations-api'; 20 | export * from './apis/byron-transactions-api'; 21 | export * from './apis/byron-wallets-api'; 22 | export * from './apis/coin-selections-api'; 23 | export * from './apis/experimental-api'; 24 | export * from './apis/keys-api'; 25 | export * from './apis/migrations-api'; 26 | export * from './apis/network-api'; 27 | export * from './apis/proxy-api'; 28 | export * from './apis/settings-api'; 29 | export * from './apis/stake-pools-api'; 30 | export * from './apis/transactions-api'; 31 | export * from './apis/utils-api'; 32 | export * from './apis/wallets-api'; 33 | 34 | -------------------------------------------------------------------------------- /base.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | import { Configuration } from "./configuration"; 15 | // Some imports not used depending on template conditions 16 | // @ts-ignore 17 | import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; 18 | 19 | export const BASE_PATH = "https://localhost:8090/v2/".replace(/\/+$/, ""); 20 | 21 | /** 22 | * 23 | * @export 24 | */ 25 | export const COLLECTION_FORMATS = { 26 | csv: ",", 27 | ssv: " ", 28 | tsv: "\t", 29 | pipes: "|", 30 | }; 31 | 32 | /** 33 | * 34 | * @export 35 | * @interface RequestArgs 36 | */ 37 | export interface RequestArgs { 38 | url: string; 39 | options: any; 40 | } 41 | 42 | /** 43 | * 44 | * @export 45 | * @class BaseAPI 46 | */ 47 | export class BaseAPI { 48 | protected configuration: Configuration | undefined; 49 | 50 | constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { 51 | if (configuration) { 52 | this.configuration = configuration; 53 | this.basePath = configuration.basePath || this.basePath; 54 | } 55 | } 56 | }; 57 | 58 | /** 59 | * 60 | * @export 61 | * @class RequiredError 62 | * @extends {Error} 63 | */ 64 | export class RequiredError extends Error { 65 | name: "RequiredError" = "RequiredError"; 66 | constructor(public field: string, msg?: string) { 67 | super(msg); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /binaries.ts: -------------------------------------------------------------------------------- 1 | import { spawnSync } from 'child_process'; 2 | import * as path from 'path'; 3 | 4 | export const getCommand = function(command: string, options = {}): string { 5 | const ls = spawnSync(command, ['--version'], options); 6 | if ((ls.stdout && ls.stdout.toString()) && (!ls.stderr || !ls.stderr.toString())) { 7 | return command; 8 | } 9 | else { 10 | const binPath = spawnSync('npm', ['bin'], options).stdout.toString().replace(/\n/, ''); 11 | return path.join(binPath, command); 12 | } 13 | } -------------------------------------------------------------------------------- /config/local-cluster-shelley-genesis.json: -------------------------------------------------------------------------------- 1 | { 2 | "activeSlotsCoeff": 0.5, 3 | "protocolParams": { 4 | "poolDeposit": 0, 5 | "protocolVersion": { 6 | "minor": 0, 7 | "major": 6 8 | }, 9 | "minUTxOValue": 1000000, 10 | "decentralisationParam": 0.25, 11 | "maxTxSize": 16384, 12 | "minPoolCost": 0, 13 | "minFeeA": 100, 14 | "maxBlockBodySize": 239857, 15 | "minFeeB": 100000, 16 | "eMax": 1000000, 17 | "extraEntropy": { 18 | "tag": "NeutralNonce" 19 | }, 20 | "maxBlockHeaderSize": 217569, 21 | "keyDeposit": 1000000, 22 | "keyDecayRate": 0, 23 | "nOpt": 3, 24 | "rho": 0.178650067, 25 | "poolMinRefund": 0, 26 | "tau": 0.0, 27 | "a0": 0.1 28 | }, 29 | "protocolMagicId": 764824073, 30 | "genDelegs": { 31 | "8ae01cab15f6235958b1147e979987bbdb90788f7c4e185f1632427a": { 32 | "delegate": "b7bf59bb963aa785afe220f5b0d3deb826fd0bcaeeee58cb81ab443d", 33 | "vrf": "4ebcf8b4c13c24d89144d72f544d1c425b4a3aa1ace30af4eb72752e75b40d3e" 34 | } 35 | }, 36 | "updateQuorum": 1, 37 | "networkId": "Mainnet", 38 | "maxMajorPV": 25446, 39 | "initialFunds": {}, 40 | "maxLovelaceSupply": 1000000000000000000, 41 | "networkMagic": 764824073, 42 | "epochLength": 100, 43 | "staking": null, 44 | "systemStart": "2021-12-09T02:52:57Z", 45 | "slotsPerKESPeriod": 86400, 46 | "slotLength": 0.2, 47 | "maxKESEvolutions": 90, 48 | "securityParam": 5 49 | } -------------------------------------------------------------------------------- /config/network.config.ts: -------------------------------------------------------------------------------- 1 | import * as ByronGenesis from './mainnet-byron-genesis.json'; 2 | import * as ShelleyGenesis from './mainnet-shelley-genesis.json'; 3 | import * as AlonzoGenesis from './mainnet-alonzo-genesis.json'; 4 | import * as Protocols from './mainnet-protocol.json'; 5 | 6 | import * as TestnetByronGenesis from './testnet-byron-genesis.json'; 7 | import * as TestnetShelleyGenesis from './testnet-shelley-genesis.json'; 8 | import * as TestnetAlonzoGenesis from './testnet-alonzo-genesis.json'; 9 | import * as TestnetProtocols from './testnet-protocol.json'; 10 | 11 | import * as LocalClusterByronGenesis from './local-cluster-byron-genesis.json'; 12 | import * as LocalClusterShelleyGenesis from './local-cluster-shelley-genesis.json'; 13 | import * as LocalClusterAlonzoGenesis from './local-cluster-alonzo-genesis.json'; 14 | import * as LocalClusterProtocols from './local-cluster-protocol.json'; 15 | 16 | export const Mainnet = { 17 | byron: ByronGenesis, 18 | shelley: ShelleyGenesis, 19 | alonzo: AlonzoGenesis, 20 | protocols: Protocols 21 | 22 | } 23 | 24 | export const Testnet = { 25 | byron: TestnetByronGenesis, 26 | shelley: TestnetShelleyGenesis, 27 | alonzo: TestnetAlonzoGenesis, 28 | protocols: TestnetProtocols 29 | } 30 | 31 | export const LocalCluster = { 32 | byron: LocalClusterByronGenesis, 33 | shelley: LocalClusterShelleyGenesis, 34 | alonzo: LocalClusterAlonzoGenesis, 35 | protocols: LocalClusterProtocols 36 | } -------------------------------------------------------------------------------- /examples/multisig/2of2/generate_address.js: -------------------------------------------------------------------------------- 1 | const { WalletServer , Seed } = require('cardano-wallet-js'); 2 | 3 | const data = { 4 | "type": "all", 5 | "scripts": 6 | [ 7 | { 8 | "type": "sig", 9 | }, 10 | { 11 | "type": "sig" 12 | } 13 | ] 14 | }; 15 | // generate the native script 16 | const script = Seed.buildScript(data); 17 | 18 | const jsonScript = Seed.scriptToJson(script); 19 | 20 | console.log(jsonScript); 21 | 22 | // get native script private keys (all them will be needed to sign the final tx) 23 | const keys = Seed.getScriptKeys(script).map(k => k.to_bech32()); 24 | 25 | console.log(keys); 26 | 27 | //Generate script address 28 | const address = Seed.getScriptAddress(script, 'testnet').to_bech32(); 29 | console.log(address); 30 | 31 | // now send some Ada to the generated address 32 | -------------------------------------------------------------------------------- /examples/multisig/2of3/generate_address.js: -------------------------------------------------------------------------------- 1 | const { WalletServer , Seed } = require('cardano-wallet-js'); 2 | 3 | const data = { 4 | "type": "atLeast", //requires at least 2 keys to sing the tx 5 | "require": 2, 6 | "scripts": 7 | [ 8 | { 9 | "type": "sig", 10 | }, 11 | { 12 | "type": "sig" 13 | }, 14 | { 15 | "type": "sig" 16 | }, 17 | ] 18 | }; 19 | // generate the native script 20 | const script = Seed.buildScript(data); 21 | 22 | const jsonScript = Seed.scriptToJson(script); 23 | 24 | console.log(jsonScript); 25 | 26 | // get native script private keys (all them will be needed to sign the final tx) 27 | const keys = Seed.getScriptKeys(script).map(k => k.to_bech32()); 28 | console.log("keys:", keys); 29 | 30 | //Generate script address 31 | const address = Seed.getScriptAddress(script, 'testnet').to_bech32(); 32 | console.log("address:", address); 33 | 34 | // now send some Ada to the generated address -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh hugomario swagger-petstore-perl "minor update" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | 10 | if [ "$git_user_id" = "" ]; then 11 | git_user_id="GIT_USER_ID" 12 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 13 | fi 14 | 15 | if [ "$git_repo_id" = "" ]; then 16 | git_repo_id="GIT_REPO_ID" 17 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 18 | fi 19 | 20 | if [ "$release_note" = "" ]; then 21 | release_note="Minor update" 22 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 23 | fi 24 | 25 | # Initialize the local directory as a Git repository 26 | git init 27 | 28 | # Adds the files in the local repository and stages them for commit. 29 | git add . 30 | 31 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 32 | git commit -m "$release_note" 33 | 34 | # Sets the new remote 35 | git_remote=`git remote` 36 | if [ "$git_remote" = "" ]; then # git remote not defined 37 | 38 | if [ "$GIT_TOKEN" = "" ]; then 39 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 40 | git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git 41 | else 42 | git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git 43 | fi 44 | 45 | fi 46 | 47 | git pull origin master 48 | 49 | # Pushes (Forces) the changes in the local repository up to the remote repository 50 | echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" 51 | git push origin master 2>&1 | grep -v 'To https' 52 | 53 | -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | export * from "./wallet/address-wallet"; 2 | export * from "./wallet/fee-wallet"; 3 | export * from "./wallet/key-wallet"; 4 | export * from "./wallet/shelley-wallet"; 5 | export * from "./wallet/transaction-wallet"; 6 | export * from "./wallet/asset-wallet"; 7 | export * from "./wallet/token-wallet"; 8 | export * from "./utils"; 9 | export * from "./wallet-server"; 10 | export * from "./models"; 11 | export * from "./config"; 12 | export * from "@emurgo/cardano-serialization-lib-nodejs"; -------------------------------------------------------------------------------- /models/any-address.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface AnyAddress 18 | */ 19 | export interface AnyAddress { 20 | /** 21 | * A Shelley address representing either enterprise, reward account or delegating address 22 | * @type {string} 23 | * @memberof AnyAddress 24 | */ 25 | address: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-account-key.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiAccountKey 18 | */ 19 | export interface ApiAccountKey { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-account-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Restore from account public key 16 | * @export 17 | * @interface ApiAccountPostData 18 | */ 19 | export interface ApiAccountPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiAccountPostData 24 | */ 25 | name: any; 26 | /** 27 | * An extended account public key (public key + chain code) 28 | * @type {string} 29 | * @memberof ApiAccountPostData 30 | */ 31 | account_public_key: any; 32 | /** 33 | * 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. 34 | * @type {number} 35 | * @memberof ApiAccountPostData 36 | */ 37 | address_pool_gap?: any; 38 | } 39 | -------------------------------------------------------------------------------- /models/api-address-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiAddressData 18 | */ 19 | export interface ApiAddressData { 20 | /** 21 | * 22 | * @type {string | string | any} 23 | * @memberof ApiAddressData 24 | */ 25 | payment?: any; 26 | /** 27 | * 28 | * @type {string | string | any} 29 | * @memberof ApiAddressData 30 | */ 31 | stake?: any; 32 | /** 33 | * 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. 34 | * @type {string} 35 | * @memberof ApiAddressData 36 | */ 37 | validation?: ApiAddressDataValidationEnum; 38 | } 39 | 40 | /** 41 | * @export 42 | * @enum {string} 43 | */ 44 | export enum ApiAddressDataValidationEnum { 45 | Required = 'required', 46 | Recommended = 'recommended' 47 | } 48 | 49 | -------------------------------------------------------------------------------- /models/api-address-inspect-pointer.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiAddressInspectPointer 18 | */ 19 | export interface ApiAddressInspectPointer { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiAddressInspectPointer 24 | */ 25 | slot_num: any; 26 | /** 27 | * 28 | * @type {number} 29 | * @memberof ApiAddressInspectPointer 30 | */ 31 | transaction_index: any; 32 | /** 33 | * 34 | * @type {number} 35 | * @memberof ApiAddressInspectPointer 36 | */ 37 | output_index: any; 38 | } 39 | -------------------------------------------------------------------------------- /models/api-address.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiAddress 18 | */ 19 | export interface ApiAddress { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiAddress 24 | */ 25 | id: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiAddress 30 | */ 31 | state: ApiAddressStateEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiAddressStateEnum { 39 | Used = 'used', 40 | Unused = 'unused' 41 | } 42 | 43 | -------------------------------------------------------------------------------- /models/api-byron-select-coins-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronSelectCoinsData 18 | */ 19 | export interface ApiByronSelectCoinsData { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof ApiByronSelectCoinsData 24 | */ 25 | payments: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-byron-wallet-icarus-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWalletIcarusPostData 18 | */ 19 | export interface ApiByronWalletIcarusPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiByronWalletIcarusPostData 24 | */ 25 | style?: ApiByronWalletIcarusPostDataStyleEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiByronWalletIcarusPostData 30 | */ 31 | name: any; 32 | /** 33 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 34 | * @type {string} 35 | * @memberof ApiByronWalletIcarusPostData 36 | */ 37 | passphrase: any; 38 | /** 39 | * A list of mnemonic words 40 | * @type {Array<string>} 41 | * @memberof ApiByronWalletIcarusPostData 42 | */ 43 | mnemonic_sentence: any; 44 | } 45 | 46 | /** 47 | * @export 48 | * @enum {string} 49 | */ 50 | export enum ApiByronWalletIcarusPostDataStyleEnum { 51 | Icarus = 'icarus' 52 | } 53 | 54 | -------------------------------------------------------------------------------- /models/api-byron-wallet-ledger-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWalletLedgerPostData 18 | */ 19 | export interface ApiByronWalletLedgerPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiByronWalletLedgerPostData 24 | */ 25 | style?: ApiByronWalletLedgerPostDataStyleEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiByronWalletLedgerPostData 30 | */ 31 | name: any; 32 | /** 33 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 34 | * @type {string} 35 | * @memberof ApiByronWalletLedgerPostData 36 | */ 37 | passphrase: any; 38 | /** 39 | * A list of mnemonic words 40 | * @type {Array<string>} 41 | * @memberof ApiByronWalletLedgerPostData 42 | */ 43 | mnemonic_sentence: any; 44 | } 45 | 46 | /** 47 | * @export 48 | * @enum {string} 49 | */ 50 | export enum ApiByronWalletLedgerPostDataStyleEnum { 51 | Ledger = 'ledger' 52 | } 53 | 54 | -------------------------------------------------------------------------------- /models/api-byron-wallet-migration-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWalletMigrationPostData 18 | */ 19 | export interface ApiByronWalletMigrationPostData { 20 | /** 21 | * The wallet's master passphrase. 22 | * @type {string} 23 | * @memberof ApiByronWalletMigrationPostData 24 | */ 25 | passphrase: any; 26 | /** 27 | * The recipient addresses. 28 | * @type {Array<string>} 29 | * @memberof ApiByronWalletMigrationPostData 30 | */ 31 | addresses: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-byron-wallet-put-passphrase-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWalletPutPassphraseData 18 | */ 19 | export interface ApiByronWalletPutPassphraseData { 20 | /** 21 | * The current passphrase if present. 22 | * @type {string} 23 | * @memberof ApiByronWalletPutPassphraseData 24 | */ 25 | old_passphrase?: any; 26 | /** 27 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds). 28 | * @type {string} 29 | * @memberof ApiByronWalletPutPassphraseData 30 | */ 31 | new_passphrase: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-byron-wallet-random-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWalletRandomPostData 18 | */ 19 | export interface ApiByronWalletRandomPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiByronWalletRandomPostData 24 | */ 25 | style?: ApiByronWalletRandomPostDataStyleEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiByronWalletRandomPostData 30 | */ 31 | name: any; 32 | /** 33 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 34 | * @type {string} 35 | * @memberof ApiByronWalletRandomPostData 36 | */ 37 | passphrase: any; 38 | /** 39 | * A list of mnemonic words 40 | * @type {Array<string>} 41 | * @memberof ApiByronWalletRandomPostData 42 | */ 43 | mnemonic_sentence: any; 44 | } 45 | 46 | /** 47 | * @export 48 | * @enum {string} 49 | */ 50 | export enum ApiByronWalletRandomPostDataStyleEnum { 51 | Random = 'random' 52 | } 53 | 54 | -------------------------------------------------------------------------------- /models/api-byron-wallet-random-xprv-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * patate 16 | * @export 17 | * @interface ApiByronWalletRandomXPrvPostData 18 | */ 19 | export interface ApiByronWalletRandomXPrvPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiByronWalletRandomXPrvPostData 24 | */ 25 | style?: ApiByronWalletRandomXPrvPostDataStyleEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiByronWalletRandomXPrvPostData 30 | */ 31 | name: any; 32 | /** 33 | * A root private key, encrypted using a given passphrase. The underlying key should contain: - A private key - A chain code - A public key 34 | * @type {string} 35 | * @memberof ApiByronWalletRandomXPrvPostData 36 | */ 37 | encrypted_root_private_key: any; 38 | /** 39 | * A hash of master passphrase. The hash should be an output of a Scrypt function with the following parameters: - logN = 14 - r = 8 - p = 1 40 | * @type {string} 41 | * @memberof ApiByronWalletRandomXPrvPostData 42 | */ 43 | passphrase_hash: any; 44 | } 45 | 46 | /** 47 | * @export 48 | * @enum {string} 49 | */ 50 | export enum ApiByronWalletRandomXPrvPostDataStyleEnum { 51 | Random = 'random' 52 | } 53 | 54 | -------------------------------------------------------------------------------- /models/api-byron-wallet-trezor-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWalletTrezorPostData 18 | */ 19 | export interface ApiByronWalletTrezorPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiByronWalletTrezorPostData 24 | */ 25 | style?: ApiByronWalletTrezorPostDataStyleEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiByronWalletTrezorPostData 30 | */ 31 | name: any; 32 | /** 33 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 34 | * @type {string} 35 | * @memberof ApiByronWalletTrezorPostData 36 | */ 37 | passphrase: any; 38 | /** 39 | * A list of mnemonic words 40 | * @type {Array<string>} 41 | * @memberof ApiByronWalletTrezorPostData 42 | */ 43 | mnemonic_sentence: any; 44 | } 45 | 46 | /** 47 | * @export 48 | * @enum {string} 49 | */ 50 | export enum ApiByronWalletTrezorPostDataStyleEnum { 51 | Trezor = 'trezor' 52 | } 53 | 54 | -------------------------------------------------------------------------------- /models/api-byron-wallet.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiByronWallet 18 | */ 19 | export interface ApiByronWallet { 20 | /** 21 | * A unique identifier for the wallet 22 | * @type {string} 23 | * @memberof ApiByronWallet 24 | */ 25 | id: any; 26 | /** 27 | * 28 | * @type {ByronwalletsBalance} 29 | * @memberof ApiByronWallet 30 | */ 31 | balance: any; 32 | /** 33 | * 34 | * @type {WalletsAssets} 35 | * @memberof ApiByronWallet 36 | */ 37 | assets: any; 38 | /** 39 | * Mechanism used for discovering addresses. 40 | * @type {string} 41 | * @memberof ApiByronWallet 42 | */ 43 | discovery: ApiByronWalletDiscoveryEnum; 44 | /** 45 | * 46 | * @type {string} 47 | * @memberof ApiByronWallet 48 | */ 49 | name: any; 50 | /** 51 | * 52 | * @type {WalletsPassphrase} 53 | * @memberof ApiByronWallet 54 | */ 55 | passphrase?: any; 56 | /** 57 | * 58 | * @type {WalletsState} 59 | * @memberof ApiByronWallet 60 | */ 61 | state: any; 62 | /** 63 | * 64 | * @type {WalletsTip} 65 | * @memberof ApiByronWallet 66 | */ 67 | tip: any; 68 | } 69 | 70 | /** 71 | * @export 72 | * @enum {string} 73 | */ 74 | export enum ApiByronWalletDiscoveryEnum { 75 | Random = 'random', 76 | Sequential = 'sequential' 77 | } 78 | 79 | -------------------------------------------------------------------------------- /models/api-coin-selection-certificates.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * A delegation certificate Only for 'join_pool' the 'pool' property is required. 16 | * @export 17 | * @interface ApiCoinSelectionCertificates 18 | */ 19 | export interface ApiCoinSelectionCertificates { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiCoinSelectionCertificates 24 | */ 25 | certificate_type: ApiCoinSelectionCertificatesCertificateTypeEnum; 26 | /** 27 | * A unique identifier for the pool. 28 | * @type {string} 29 | * @memberof ApiCoinSelectionCertificates 30 | */ 31 | pool?: any; 32 | /** 33 | * 34 | * @type {Array<string>} 35 | * @memberof ApiCoinSelectionCertificates 36 | */ 37 | reward_account_path: string[]; 38 | } 39 | 40 | /** 41 | * @export 42 | * @enum {string} 43 | */ 44 | export enum ApiCoinSelectionCertificatesCertificateTypeEnum { 45 | JoinPool = 'join_pool', 46 | QuitPool = 'quit_pool', 47 | RegisterRewardAccount = 'register_reward_account' 48 | } 49 | 50 | -------------------------------------------------------------------------------- /models/api-coin-selection-change.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsAssetsAvailable, WalletswalletIdpaymentfeesAmount } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface ApiCoinSelectionChange 21 | */ 22 | export interface ApiCoinSelectionChange { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof ApiCoinSelectionChange 27 | */ 28 | address: any; 29 | /** 30 | * 31 | * @type {WalletswalletIdpaymentfeesAmount} 32 | * @memberof ApiCoinSelectionChange 33 | */ 34 | amount: WalletswalletIdpaymentfeesAmount; 35 | /** 36 | * A flat list of assets. 37 | * @type {Array<WalletsAssetsAvailable>} 38 | * @memberof ApiCoinSelectionChange 39 | */ 40 | assets?: WalletsAssetsAvailable[]; 41 | /** 42 | * A path for deriving a child key from a parent key. 43 | * @type {Array<string>} 44 | * @memberof ApiCoinSelectionChange 45 | */ 46 | derivation_path?: string[]; 47 | } 48 | -------------------------------------------------------------------------------- /models/api-coin-selection-inputs.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsAssetsAvailable, WalletswalletIdpaymentfeesAmount } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface ApiCoinSelectionInputs 21 | */ 22 | export interface ApiCoinSelectionInputs { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof ApiCoinSelectionInputs 27 | */ 28 | address: any; 29 | /** 30 | * 31 | * @type {WalletswalletIdpaymentfeesAmount} 32 | * @memberof ApiCoinSelectionInputs 33 | */ 34 | amount: WalletswalletIdpaymentfeesAmount; 35 | /** 36 | * A flat list of assets. 37 | * @type {Array<WalletsAssetsAvailable>} 38 | * @memberof ApiCoinSelectionInputs 39 | */ 40 | assets?: WalletsAssetsAvailable[]; 41 | /** 42 | * A unique identifier for this transaction 43 | * @type {string} 44 | * @memberof ApiCoinSelectionInputs 45 | */ 46 | id: any; 47 | /** 48 | * A path for deriving a child key from a parent key. 49 | * @type {Array<string>} 50 | * @memberof ApiCoinSelectionInputs 51 | */ 52 | derivation_path?: string[]; 53 | /** 54 | * 55 | * @type {number} 56 | * @memberof ApiCoinSelectionInputs 57 | */ 58 | index: any; 59 | } 60 | -------------------------------------------------------------------------------- /models/api-coin-selection-withdrawals.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletswalletIdpaymentfeesAmount } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface ApiCoinSelectionWithdrawals 21 | */ 22 | export interface ApiCoinSelectionWithdrawals { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof ApiCoinSelectionWithdrawals 27 | */ 28 | stake_address: any; 29 | /** 30 | * A path for deriving a child key from a parent key. 31 | * @type {Array<string>} 32 | * @memberof ApiCoinSelectionWithdrawals 33 | */ 34 | derivation_path: string[]; 35 | /** 36 | * 37 | * @type {WalletswalletIdpaymentfeesAmount} 38 | * @memberof ApiCoinSelectionWithdrawals 39 | */ 40 | amount: WalletswalletIdpaymentfeesAmount; 41 | } 42 | -------------------------------------------------------------------------------- /models/api-credential.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiCredential 18 | */ 19 | export interface ApiCredential { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-era-info.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * If and when each era started or will start. The object is keyed by era names. The values either describe the epoch boundary when the era starts (can be in the future or in the past), or are null if not yet confirmed on-chain. If you need to know the current era, see the `node_era` field of `GET /network/information`. > Due to complications with our current tooling, we cannot mark the era names > as required, but the keys are in fact always present. 16 | * @export 17 | * @interface ApiEraInfo 18 | */ 19 | export interface ApiEraInfo { 20 | /** 21 | * 22 | * @type {WalletsDelegationChangesAt} 23 | * @memberof ApiEraInfo 24 | */ 25 | byron?: any; 26 | /** 27 | * 28 | * @type {WalletsDelegationChangesAt} 29 | * @memberof ApiEraInfo 30 | */ 31 | shelley?: any; 32 | /** 33 | * 34 | * @type {WalletsDelegationChangesAt} 35 | * @memberof ApiEraInfo 36 | */ 37 | allegra?: any; 38 | /** 39 | * 40 | * @type {WalletsDelegationChangesAt} 41 | * @memberof ApiEraInfo 42 | */ 43 | mary?: any; 44 | } 45 | -------------------------------------------------------------------------------- /models/api-era.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @enum {string} 18 | */ 19 | export enum ApiEra { 20 | Byron = 'byron', 21 | Shelley = 'shelley', 22 | Allegra = 'allegra', 23 | Mary = 'mary' 24 | } 25 | 26 | -------------------------------------------------------------------------------- /models/api-gcstatus.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Gives an indication if metadata GC checking for delisted pools has run and if so, when. Possible values are: - not_applicable -> we're currently not querying a SMASH server for metadata - not_started -> the GC hasn't started yet, try again in a short while - restarting -> the GC thread is currently restarting, try again in short while - has_run -> the GC has run successfully When 'status' is 'restarting' or 'has_run' then the field 'last_run' is set to the last GC time in UTC. 16 | * @export 17 | * @interface ApiGCStatus 18 | */ 19 | export interface ApiGCStatus { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiGCStatus 24 | */ 25 | status: ApiGCStatusStatusEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiGCStatus 30 | */ 31 | last_run?: any; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiGCStatusStatusEnum { 39 | NotApplicable = 'not_applicable', 40 | NotStarted = 'not_started', 41 | Restarting = 'restarting', 42 | HasRun = 'has_run' 43 | } 44 | 45 | -------------------------------------------------------------------------------- /models/api-get-settings.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiGetSettings 18 | */ 19 | export interface ApiGetSettings { 20 | /** 21 | * Pool metadata source. This sets the metadata fetching strategy. Possible values are * none -> no fetching * direct -> direct fetching * uri -> use SMASH server 22 | * @type {string} 23 | * @memberof ApiGetSettings 24 | */ 25 | pool_metadata_source: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-health-check.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The status of the SMASH server. Possible values are: health | description --- | --- `\"available\"` | server is awaiting your requests `\"unavailable\"` | server is running, but currently unavailable, try again in a short time `\"unreachable\"` | server could not be reached or didn't return a health status `\"no_smash_configured\"` | SMASH is currently not configured, adjust the Settings first 16 | * @export 17 | * @interface ApiHealthCheck 18 | */ 19 | export interface ApiHealthCheck { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiHealthCheck 24 | */ 25 | health: ApiHealthCheckHealthEnum; 26 | } 27 | 28 | /** 29 | * @export 30 | * @enum {string} 31 | */ 32 | export enum ApiHealthCheckHealthEnum { 33 | Available = 'available', 34 | Unavailable = 'unavailable', 35 | Unreachable = 'unreachable', 36 | NoSmashConfigured = 'no_smash_configured' 37 | } 38 | 39 | -------------------------------------------------------------------------------- /models/api-maintenance-action-gc-stake-pools.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Gives an indication if metadata GC checking for delisted pools has run and if so, when. Possible values are: - not_applicable -> we're currently not querying a SMASH server for metadata - not_started -> the GC hasn't started yet, try again in a short while - restarting -> the GC thread is currently restarting, try again in short while - has_run -> the GC has run successfully When 'status' is 'restarting' or 'has_run' then the field 'last_run' is set to the last GC time in UTC. 16 | * @export 17 | * @interface ApiMaintenanceActionGcStakePools 18 | */ 19 | export interface ApiMaintenanceActionGcStakePools { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiMaintenanceActionGcStakePools 24 | */ 25 | status: ApiMaintenanceActionGcStakePoolsStatusEnum; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiMaintenanceActionGcStakePools 30 | */ 31 | last_run?: any; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiMaintenanceActionGcStakePoolsStatusEnum { 39 | NotApplicable = 'not_applicable', 40 | NotStarted = 'not_started', 41 | Restarting = 'restarting', 42 | HasRun = 'has_run' 43 | } 44 | 45 | -------------------------------------------------------------------------------- /models/api-maintenance-action-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The maintenance action to carry out, current values are - gc_stake_pools -> trigger looking up delisted pools from the remote SMASH server 16 | * @export 17 | * @interface ApiMaintenanceActionPostData 18 | */ 19 | export interface ApiMaintenanceActionPostData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiMaintenanceActionPostData 24 | */ 25 | maintenance_action: ApiMaintenanceActionPostDataMaintenanceActionEnum; 26 | } 27 | 28 | /** 29 | * @export 30 | * @enum {string} 31 | */ 32 | export enum ApiMaintenanceActionPostDataMaintenanceActionEnum { 33 | Pools = 'gc_stake_pools' 34 | } 35 | 36 | -------------------------------------------------------------------------------- /models/api-maintenance-action.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { ApiMaintenanceActionGcStakePools } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface ApiMaintenanceAction 21 | */ 22 | export interface ApiMaintenanceAction { 23 | /** 24 | * 25 | * @type {ApiMaintenanceActionGcStakePools} 26 | * @memberof ApiMaintenanceAction 27 | */ 28 | gc_stake_pools: ApiMaintenanceActionGcStakePools; 29 | } 30 | -------------------------------------------------------------------------------- /models/api-network-clock-offset.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * if: status == available
Drift offset of the local clock. 16 | * @export 17 | * @interface ApiNetworkClockOffset 18 | */ 19 | export interface ApiNetworkClockOffset { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiNetworkClockOffset 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiNetworkClockOffset 30 | */ 31 | unit: ApiNetworkClockOffsetUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiNetworkClockOffsetUnitEnum { 39 | Microsecond = 'microsecond' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/api-network-clock.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { ApiNetworkClockOffset } from "."; 16 | 17 | /** 18 | * [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) information of the server. **Important:** This piece of information only makes sense when the server runs on the same host machine as the node. 19 | * @export 20 | * @interface ApiNetworkClock 21 | */ 22 | export interface ApiNetworkClock { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof ApiNetworkClock 27 | */ 28 | status: ApiNetworkClockStatusEnum; 29 | /** 30 | * 31 | * @type {ApiNetworkClockOffset} 32 | * @memberof ApiNetworkClock 33 | */ 34 | offset?: ApiNetworkClockOffset; 35 | } 36 | 37 | /** 38 | * @export 39 | * @enum {string} 40 | */ 41 | export enum ApiNetworkClockStatusEnum { 42 | Available = 'available', 43 | Unavailable = 'unavailable', 44 | Pending = 'pending' 45 | } 46 | 47 | -------------------------------------------------------------------------------- /models/api-network-information-network-tip.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The time slot corresponding the network tip. 16 | * @export 17 | * @interface ApiNetworkInformationNetworkTip 18 | */ 19 | export interface ApiNetworkInformationNetworkTip { 20 | /** 21 | * The 0-based slot index starting from genesis of the blockchain. 22 | * @type {number} 23 | * @memberof ApiNetworkInformationNetworkTip 24 | */ 25 | absolute_slot_number: any; 26 | /** 27 | * An epoch is a time period which is divided into slots. 28 | * @type {number} 29 | * @memberof ApiNetworkInformationNetworkTip 30 | */ 31 | epoch_number: any; 32 | /** 33 | * The zero-based slot index within an epoch. 34 | * @type {number} 35 | * @memberof ApiNetworkInformationNetworkTip 36 | */ 37 | slot_number: any; 38 | /** 39 | * 40 | * @type {string} 41 | * @memberof ApiNetworkInformationNetworkTip 42 | */ 43 | time: any; 44 | } 45 | -------------------------------------------------------------------------------- /models/api-network-information-node-tip.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsTipHeight } from "."; 16 | 17 | /** 18 | * Underlying node's tip 19 | * @export 20 | * @interface ApiNetworkInformationNodeTip 21 | */ 22 | export interface ApiNetworkInformationNodeTip { 23 | /** 24 | * The 0-based slot index starting from genesis of the blockchain. 25 | * @type {number} 26 | * @memberof ApiNetworkInformationNodeTip 27 | */ 28 | absolute_slot_number: any; 29 | /** 30 | * The zero-based slot index within an epoch. 31 | * @type {number} 32 | * @memberof ApiNetworkInformationNodeTip 33 | */ 34 | slot_number: any; 35 | /** 36 | * An epoch is a time period which is divided into slots. 37 | * @type {number} 38 | * @memberof ApiNetworkInformationNodeTip 39 | */ 40 | epoch_number: any; 41 | /** 42 | * 43 | * @type {string} 44 | * @memberof ApiNetworkInformationNodeTip 45 | */ 46 | time: any; 47 | /** 48 | * 49 | * @type {WalletsTipHeight} 50 | * @memberof ApiNetworkInformationNodeTip 51 | */ 52 | height: WalletsTipHeight; 53 | } 54 | -------------------------------------------------------------------------------- /models/api-network-information-sync-progress.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsStateProgress } from "."; 16 | 17 | /** 18 | * Estimated synchronization progress of the node with the underlying network. Note that this may change quite arbitrarily as the node may switch to shorter or longer chain forks. 19 | * @export 20 | * @interface ApiNetworkInformationSyncProgress 21 | */ 22 | export interface ApiNetworkInformationSyncProgress { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof ApiNetworkInformationSyncProgress 27 | */ 28 | status: ApiNetworkInformationSyncProgressStatusEnum; 29 | /** 30 | * 31 | * @type {WalletsStateProgress} 32 | * @memberof ApiNetworkInformationSyncProgress 33 | */ 34 | progress?: WalletsStateProgress; 35 | } 36 | 37 | /** 38 | * @export 39 | * @enum {string} 40 | */ 41 | export enum ApiNetworkInformationSyncProgressStatusEnum { 42 | Ready = 'ready', 43 | Syncing = 'syncing', 44 | NotResponding = 'not_responding' 45 | } 46 | 47 | -------------------------------------------------------------------------------- /models/api-network-information.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { ApiNetworkInformationNetworkTip, ApiNetworkInformationNodeTip, ApiNetworkInformationSyncProgress, WalletsDelegationChangesAt } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface ApiNetworkInformation 21 | */ 22 | export interface ApiNetworkInformation { 23 | /** 24 | * 25 | * @type {ApiNetworkInformationSyncProgress} 26 | * @memberof ApiNetworkInformation 27 | */ 28 | sync_progress: ApiNetworkInformationSyncProgress; 29 | /** 30 | * 31 | * @type {ApiNetworkInformationNodeTip} 32 | * @memberof ApiNetworkInformation 33 | */ 34 | node_tip: ApiNetworkInformationNodeTip; 35 | /** 36 | * 37 | * @type {ApiNetworkInformationNetworkTip} 38 | * @memberof ApiNetworkInformation 39 | */ 40 | network_tip?: ApiNetworkInformationNetworkTip; 41 | /** 42 | * 43 | * @type {WalletsDelegationChangesAt} 44 | * @memberof ApiNetworkInformation 45 | */ 46 | next_epoch?: WalletsDelegationChangesAt; 47 | /** 48 | * 49 | * @type {string} 50 | * @memberof ApiNetworkInformation 51 | */ 52 | node_era: ApiNetworkInformationNodeEraEnum; 53 | } 54 | 55 | /** 56 | * @export 57 | * @enum {string} 58 | */ 59 | export enum ApiNetworkInformationNodeEraEnum { 60 | Byron = 'byron', 61 | Shelley = 'shelley', 62 | Allegra = 'allegra', 63 | Mary = 'mary', 64 | Alonzo = 'alonzo' 65 | } 66 | 67 | -------------------------------------------------------------------------------- /models/api-network-parameters-active-slot-coefficient.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiNetworkParametersActiveSlotCoefficient 18 | */ 19 | export interface ApiNetworkParametersActiveSlotCoefficient { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiNetworkParametersActiveSlotCoefficient 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiNetworkParametersActiveSlotCoefficient 30 | */ 31 | unit: ApiNetworkParametersActiveSlotCoefficientUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiNetworkParametersActiveSlotCoefficientUnitEnum { 39 | Percent = 'percent' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/api-network-parameters-epoch-length.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiNetworkParametersEpochLength 18 | */ 19 | export interface ApiNetworkParametersEpochLength { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiNetworkParametersEpochLength 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiNetworkParametersEpochLength 30 | */ 31 | unit: ApiNetworkParametersEpochLengthUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiNetworkParametersEpochLengthUnitEnum { 39 | Slot = 'slot' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/api-network-parameters-eras.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsDelegationChangesAt } from "."; 16 | 17 | /** 18 | * If and when each era started or will start. The object is keyed by era names. The values either describe the epoch boundary when the era starts (can be in the future or in the past), or are null if not yet confirmed on-chain. If you need to know the current era, see the `node_era` field of `GET /network/information`. > Due to complications with our current tooling, we cannot mark the era names > as required, but the keys are in fact always present. 19 | * @export 20 | * @interface ApiNetworkParametersEras 21 | */ 22 | export interface ApiNetworkParametersEras { 23 | /** 24 | * 25 | * @type {WalletsDelegationChangesAt} 26 | * @memberof ApiNetworkParametersEras 27 | */ 28 | byron?: WalletsDelegationChangesAt; 29 | /** 30 | * 31 | * @type {WalletsDelegationChangesAt} 32 | * @memberof ApiNetworkParametersEras 33 | */ 34 | shelley?: WalletsDelegationChangesAt; 35 | /** 36 | * 37 | * @type {WalletsDelegationChangesAt} 38 | * @memberof ApiNetworkParametersEras 39 | */ 40 | allegra?: WalletsDelegationChangesAt; 41 | /** 42 | * 43 | * @type {WalletsDelegationChangesAt} 44 | * @memberof ApiNetworkParametersEras 45 | */ 46 | mary?: WalletsDelegationChangesAt; 47 | } 48 | -------------------------------------------------------------------------------- /models/api-network-parameters-slot-length.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiNetworkParametersSlotLength 18 | */ 19 | export interface ApiNetworkParametersSlotLength { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiNetworkParametersSlotLength 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiNetworkParametersSlotLength 30 | */ 31 | unit: ApiNetworkParametersSlotLengthUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiNetworkParametersSlotLengthUnitEnum { 39 | Second = 'second' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/api-network-tip.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The time slot corresponding the network tip. 16 | * @export 17 | * @interface ApiNetworkTip 18 | */ 19 | export interface ApiNetworkTip { 20 | /** 21 | * The 0-based slot index starting from genesis of the blockchain. 22 | * @type {number} 23 | * @memberof ApiNetworkTip 24 | */ 25 | absolute_slot_number: any; 26 | /** 27 | * An epoch is a time period which is divided into slots. 28 | * @type {number} 29 | * @memberof ApiNetworkTip 30 | */ 31 | epoch_number: any; 32 | /** 33 | * The zero-based slot index within an epoch. 34 | * @type {number} 35 | * @memberof ApiNetworkTip 36 | */ 37 | slot_number: any; 38 | /** 39 | * 40 | * @type {string} 41 | * @memberof ApiNetworkTip 42 | */ 43 | time: any; 44 | } 45 | -------------------------------------------------------------------------------- /models/api-post-account-key-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPostAccountKeyData 18 | */ 19 | export interface ApiPostAccountKeyData { 20 | /** 21 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 22 | * @type {string} 23 | * @memberof ApiPostAccountKeyData 24 | */ 25 | passphrase: any; 26 | /** 27 | * Determines whether extended (with chain code) or normal (without chain code) key is requested 28 | * @type {boolean} 29 | * @memberof ApiPostAccountKeyData 30 | */ 31 | extended: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-post-random-address-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPostRandomAddressData 18 | */ 19 | export interface ApiPostRandomAddressData { 20 | /** 21 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 22 | * @type {string} 23 | * @memberof ApiPostRandomAddressData 24 | */ 25 | passphrase: any; 26 | /** 27 | * An address derivation index. 28 | * @type {number} 29 | * @memberof ApiPostRandomAddressData 30 | */ 31 | address_index?: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-post-redemption-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPostRedemptionData 18 | */ 19 | export interface ApiPostRedemptionData { 20 | /** 21 | * The wallet's master passphrase. 22 | * @type {string} 23 | * @memberof ApiPostRedemptionData 24 | */ 25 | passphrase: any; 26 | /** 27 | * A list of target outputs 28 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 29 | * @memberof ApiPostRedemptionData 30 | */ 31 | payments: any; 32 | /** 33 | * When provided, attempts to withdraw rewards from the default stake address corresponding to the given mnemonic. Should the rewards be null or too small to be worth withdrawing (i.e. the cost of adding them into the transaction is more than their own intrinsic value), the server will reject the request with a `withdrawal_not_worth` error. withdrawal field | reward balance | result --- | --- | --- any recovery phrase | too small | x Error 403 `withdrawal_not_worth` any recovery phrase | big enough | ✓ withdrawal generated 34 | * @type {Array<string>} 35 | * @memberof ApiPostRedemptionData 36 | */ 37 | withdrawal: any; 38 | } 39 | -------------------------------------------------------------------------------- /models/api-post-redemption-fee-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPostRedemptionFeeData 18 | */ 19 | export interface ApiPostRedemptionFeeData { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof ApiPostRedemptionFeeData 24 | */ 25 | payments: any; 26 | /** 27 | * When provided, attempts to withdraw rewards from the default stake address corresponding to the given mnemonic. Should the rewards be null or too small to be worth withdrawing (i.e. the cost of adding them into the transaction is more than their own intrinsic value), the server will reject the request with a `withdrawal_not_worth` error. withdrawal field | reward balance | result --- | --- | --- any recovery phrase | too small | x Error 403 `withdrawal_not_worth` any recovery phrase | big enough | ✓ withdrawal generated 28 | * @type {Array<string>} 29 | * @memberof ApiPostRedemptionFeeData 30 | */ 31 | withdrawal: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-post-transaction-data-byron.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPostTransactionDataByron 18 | */ 19 | export interface ApiPostTransactionDataByron { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof ApiPostTransactionDataByron 24 | */ 25 | payments: any; 26 | /** 27 | * The wallet's master passphrase. 28 | * @type {string} 29 | * @memberof ApiPostTransactionDataByron 30 | */ 31 | passphrase: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-post-transaction-fee-data-byron.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPostTransactionFeeDataByron 18 | */ 19 | export interface ApiPostTransactionFeeDataByron { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof ApiPostTransactionFeeDataByron 24 | */ 25 | payments: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-pub-key.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * A public key (public key without chain code) for credential - 32 bytes 16 | * @export 17 | * @interface ApiPubKey 18 | */ 19 | export interface ApiPubKey { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-put-addresses-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiPutAddressesData 18 | */ 19 | export interface ApiPutAddressesData { 20 | /** 21 | * The imported addresses. 22 | * @type {Array<string>} 23 | * @memberof ApiPutAddressesData 24 | */ 25 | addresses: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-script-some.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Script primitive for which at least a given number of signing keys corresponding to the list elements' verification keys are expected to make the script valid. 16 | * @export 17 | * @interface ApiScriptSome 18 | */ 19 | export interface ApiScriptSome { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiScriptSome 24 | */ 25 | at_least: any; 26 | /** 27 | * 28 | * @type {Array<ScriptValue>} 29 | * @memberof ApiScriptSome 30 | */ 31 | from: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-script.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiScript 18 | */ 19 | export interface ApiScript { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-select-coins-action.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiSelectCoinsAction 18 | */ 19 | export interface ApiSelectCoinsAction { 20 | /** 21 | * 22 | * @type {WalletswalletIdcoinselectionsrandomDelegationAction} 23 | * @memberof ApiSelectCoinsAction 24 | */ 25 | delegation_action: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-select-coins-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiSelectCoinsData 18 | */ 19 | export interface ApiSelectCoinsData { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-settings-put-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { SettingsSettings } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface ApiSettingsPutData 21 | */ 22 | export interface ApiSettingsPutData { 23 | /** 24 | * 25 | * @type {SettingsSettings} 26 | * @memberof ApiSettingsPutData 27 | */ 28 | settings?: SettingsSettings; 29 | } 30 | -------------------------------------------------------------------------------- /models/api-shelley-wallet-migration-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiShelleyWalletMigrationPostData 18 | */ 19 | export interface ApiShelleyWalletMigrationPostData { 20 | /** 21 | * The wallet's master passphrase. 22 | * @type {string} 23 | * @memberof ApiShelleyWalletMigrationPostData 24 | */ 25 | passphrase: any; 26 | /** 27 | * The recipient addresses. 28 | * @type {Array<string>} 29 | * @memberof ApiShelleyWalletMigrationPostData 30 | */ 31 | addresses: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-smash-server.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * A base SMASH uri without endpoint path. 16 | * @export 17 | * @interface ApiSmashServer 18 | */ 19 | export interface ApiSmashServer { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-tx-id.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiTxId 18 | */ 19 | export interface ApiTxId { 20 | /** 21 | * A unique identifier for this transaction 22 | * @type {string} 23 | * @memberof ApiTxId 24 | */ 25 | id: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-verification-key.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiVerificationKey 18 | */ 19 | export interface ApiVerificationKey { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-wallet-delegation-next.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Next delegation status becomes active at the start of the second epoch after the corresponding delegation certificate was discovered. The exact moment is specified by changes_at 16 | * @export 17 | * @interface ApiWalletDelegationNext 18 | */ 19 | export interface ApiWalletDelegationNext { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiWalletDelegationNext 24 | */ 25 | status: ApiWalletDelegationNextStatusEnum; 26 | /** 27 | * A unique Stake-Pool identifier (present only if status = `delegating`) 28 | * @type {string} 29 | * @memberof ApiWalletDelegationNext 30 | */ 31 | target?: any; 32 | /** 33 | * 34 | * @type {WalletsDelegationChangesAt} 35 | * @memberof ApiWalletDelegationNext 36 | */ 37 | changes_at: any; 38 | } 39 | 40 | /** 41 | * @export 42 | * @enum {string} 43 | */ 44 | export enum ApiWalletDelegationNextStatusEnum { 45 | NotDelegating = 'not_delegating', 46 | Delegating = 'delegating' 47 | } 48 | 49 | -------------------------------------------------------------------------------- /models/api-wallet-delegation.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Delegation settings 16 | * @export 17 | * @interface ApiWalletDelegation 18 | */ 19 | export interface ApiWalletDelegation { 20 | /** 21 | * 22 | * @type {WalletsDelegationActive} 23 | * @memberof ApiWalletDelegation 24 | */ 25 | active: any; 26 | /** 27 | * 28 | * @type {Array<WalletsDelegationNext>} 29 | * @memberof ApiWalletDelegation 30 | */ 31 | next: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-wallet-migration-info-leftovers.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Leftovers dust coins which won't be migrated nor spent as fees. 16 | * @export 17 | * @interface ApiWalletMigrationInfoLeftovers 18 | */ 19 | export interface ApiWalletMigrationInfoLeftovers { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiWalletMigrationInfoLeftovers 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiWalletMigrationInfoLeftovers 30 | */ 31 | unit: ApiWalletMigrationInfoLeftoversUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiWalletMigrationInfoLeftoversUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/api-wallet-migration-info-migration-cost.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Total amount which will be paid as fees for the migration. 16 | * @export 17 | * @interface ApiWalletMigrationInfoMigrationCost 18 | */ 19 | export interface ApiWalletMigrationInfoMigrationCost { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ApiWalletMigrationInfoMigrationCost 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ApiWalletMigrationInfoMigrationCost 30 | */ 31 | unit: ApiWalletMigrationInfoMigrationCostUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ApiWalletMigrationInfoMigrationCostUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/api-wallet-migration-info.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiWalletMigrationInfo 18 | */ 19 | export interface ApiWalletMigrationInfo { 20 | /** 21 | * 22 | * @type {ApiWalletMigrationInfoMigrationCost} 23 | * @memberof ApiWalletMigrationInfo 24 | */ 25 | migration_cost: any; 26 | /** 27 | * 28 | * @type {ApiWalletMigrationInfoLeftovers} 29 | * @memberof ApiWalletMigrationInfo 30 | */ 31 | leftovers: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-wallet-or-account-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiWalletOrAccountPostData 18 | */ 19 | export interface ApiWalletOrAccountPostData { 20 | } 21 | -------------------------------------------------------------------------------- /models/api-wallet-passphrase.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiWalletPassphrase 18 | */ 19 | export interface ApiWalletPassphrase { 20 | /** 21 | * The source Byron wallet's master passphrase. 22 | * @type {string} 23 | * @memberof ApiWalletPassphrase 24 | */ 25 | passphrase: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-wallet-put-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiWalletPutData 18 | */ 19 | export interface ApiWalletPutData { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof ApiWalletPutData 24 | */ 25 | name?: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/api-wallet-put-passphrase-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ApiWalletPutPassphraseData 18 | */ 19 | export interface ApiWalletPutPassphraseData { 20 | /** 21 | * The current passphrase. 22 | * @type {string} 23 | * @memberof ApiWalletPutPassphraseData 24 | */ 25 | old_passphrase: any; 26 | /** 27 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds). 28 | * @type {string} 29 | * @memberof ApiWalletPutPassphraseData 30 | */ 31 | new_passphrase: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/api-wallet-utx-os-statistics.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletswalletIdpaymentfeesAmount } from "./walletswallet-idpaymentfees-amount"; 16 | 17 | 18 | /** 19 | * 20 | * @export 21 | * @interface ApiWalletUTxOsStatistics 22 | */ 23 | export interface ApiWalletUTxOsStatistics { 24 | /** 25 | * 26 | * @type {WalletswalletIdpaymentfeesAmount} 27 | * @memberof ApiWalletUTxOsStatistics 28 | */ 29 | total: WalletswalletIdpaymentfeesAmount; 30 | /** 31 | * 32 | * @type {string} 33 | * @memberof ApiWalletUTxOsStatistics 34 | */ 35 | scale: ApiWalletUTxOsStatisticsScaleEnum; 36 | /** 37 | * 38 | * @type {{ [key, string]: number;}} 39 | * @memberof ApiWalletUTxOsStatistics 40 | */ 41 | distribution: any; 42 | } 43 | 44 | /** 45 | * @export 46 | * @enum {string} 47 | */ 48 | export enum ApiWalletUTxOsStatisticsScaleEnum { 49 | Log10 = 'log10' 50 | } 51 | 52 | -------------------------------------------------------------------------------- /models/asset-not-present.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface AssetNotPresent 18 | */ 19 | export interface AssetNotPresent { 20 | /** 21 | * Occurs when requesting information about an asset which is not involved in any transaction related to the wallet. 22 | * @type {string} 23 | * @memberof AssetNotPresent 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof AssetNotPresent 30 | */ 31 | code: AssetNotPresentCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum AssetNotPresentCodeEnum { 39 | Present = 'asset_not_present' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/bad-request.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface BadRequest 18 | */ 19 | export interface BadRequest { 20 | /** 21 | * May occur when a request is not well-formed; that is, it fails to parse successfully. This could be the case when some required parameters are missing or, when malformed values are provided. 22 | * @type {string} 23 | * @memberof BadRequest 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof BadRequest 30 | */ 31 | code: BadRequestCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum BadRequestCodeEnum { 39 | Request = 'bad_request' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/bip32-keypair.model.ts: -------------------------------------------------------------------------------- 1 | import { Bip32PrivateKey, Bip32PublicKey } from "@emurgo/cardano-serialization-lib-nodejs"; 2 | 3 | export interface Bip32KeyPair { 4 | privateKey: Bip32PrivateKey; 5 | publicKey: Bip32PublicKey 6 | } -------------------------------------------------------------------------------- /models/body1.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body1 18 | */ 19 | export interface Body1 { 20 | } 21 | -------------------------------------------------------------------------------- /models/body10.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body10 18 | */ 19 | export interface Body10 { 20 | } 21 | -------------------------------------------------------------------------------- /models/body11.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body11 18 | */ 19 | export interface Body11 { 20 | /** 21 | * The wallet's master passphrase. 22 | * @type {string} 23 | * @memberof Body11 24 | */ 25 | passphrase: any; 26 | /** 27 | * The recipient addresses. 28 | * @type {Array<string>} 29 | * @memberof Body11 30 | */ 31 | addresses: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body12.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body12 18 | */ 19 | export interface Body12 { 20 | } 21 | -------------------------------------------------------------------------------- /models/body13.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body13 18 | */ 19 | export interface Body13 { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof Body13 24 | */ 25 | name?: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body14.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body14 18 | */ 19 | export interface Body14 { 20 | /** 21 | * The current passphrase if present. 22 | * @type {string} 23 | * @memberof Body14 24 | */ 25 | old_passphrase?: any; 26 | /** 27 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds). 28 | * @type {string} 29 | * @memberof Body14 30 | */ 31 | new_passphrase: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body15.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body15 18 | */ 19 | export interface Body15 { 20 | /** 21 | * The imported addresses. 22 | * @type {Array<string>} 23 | * @memberof Body15 24 | */ 25 | addresses: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body16.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body16 18 | */ 19 | export interface Body16 { 20 | /** 21 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 22 | * @type {string} 23 | * @memberof Body16 24 | */ 25 | passphrase: any; 26 | /** 27 | * An address derivation index. 28 | * @type {number} 29 | * @memberof Body16 30 | */ 31 | address_index?: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body17.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body17 18 | */ 19 | export interface Body17 { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof Body17 24 | */ 25 | payments: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body18.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body18 18 | */ 19 | export interface Body18 { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof Body18 24 | */ 25 | payments: any; 26 | /** 27 | * The wallet's master passphrase. 28 | * @type {string} 29 | * @memberof Body18 30 | */ 31 | passphrase: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body19.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body19 18 | */ 19 | export interface Body19 { 20 | /** 21 | * A list of target outputs 22 | * @type {Array<WalletswalletIdpaymentfeesPayments>} 23 | * @memberof Body19 24 | */ 25 | payments: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body2.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body2 18 | */ 19 | export interface Body2 { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof Body2 24 | */ 25 | name?: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body20.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body20 18 | */ 19 | export interface Body20 { 20 | /** 21 | * The wallet's master passphrase. 22 | * @type {string} 23 | * @memberof Body20 24 | */ 25 | passphrase: any; 26 | /** 27 | * The recipient addresses. 28 | * @type {Array<string>} 29 | * @memberof Body20 30 | */ 31 | addresses: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body21.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body21 18 | */ 19 | export interface Body21 { 20 | /** 21 | * 22 | * @type {string | string | any} 23 | * @memberof Body21 24 | */ 25 | payment?: any; 26 | /** 27 | * 28 | * @type {string | string | any} 29 | * @memberof Body21 30 | */ 31 | stake?: any; 32 | /** 33 | * 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. 34 | * @type {string} 35 | * @memberof Body21 36 | */ 37 | validation?: Body21ValidationEnum; 38 | } 39 | 40 | /** 41 | * @export 42 | * @enum {string} 43 | */ 44 | export enum Body21ValidationEnum { 45 | Required = 'required', 46 | Recommended = 'recommended' 47 | } 48 | 49 | -------------------------------------------------------------------------------- /models/body22.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body22 18 | */ 19 | export interface Body22 { 20 | /** 21 | * 22 | * @type {SettingsSettings} 23 | * @memberof Body22 24 | */ 25 | settings?: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body3.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body3 18 | */ 19 | export interface Body3 { 20 | /** 21 | * The current passphrase. 22 | * @type {string} 23 | * @memberof Body3 24 | */ 25 | old_passphrase: any; 26 | /** 27 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds). 28 | * @type {string} 29 | * @memberof Body3 30 | */ 31 | new_passphrase: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body4.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body4 18 | */ 19 | export interface Body4 { 20 | } 21 | -------------------------------------------------------------------------------- /models/body5.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body5 18 | */ 19 | export interface Body5 { 20 | } 21 | -------------------------------------------------------------------------------- /models/body6.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body6 18 | */ 19 | export interface Body6 { 20 | /** 21 | * A master passphrase to lock and protect the wallet for sensitive operation (e.g. sending funds) 22 | * @type {string} 23 | * @memberof Body6 24 | */ 25 | passphrase: any; 26 | /** 27 | * Determines whether extended (with chain code) or normal (without chain code) key is requested 28 | * @type {boolean} 29 | * @memberof Body6 30 | */ 31 | extended: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/body7.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The maintenance action to carry out, current values are - gc_stake_pools -> trigger looking up delisted pools from the remote SMASH server 16 | * @export 17 | * @interface Body7 18 | */ 19 | export interface Body7 { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof Body7 24 | */ 25 | maintenance_action: Body7MaintenanceActionEnum; 26 | } 27 | 28 | /** 29 | * @export 30 | * @enum {string} 31 | */ 32 | export enum Body7MaintenanceActionEnum { 33 | Pools = 'gc_stake_pools' 34 | } 35 | 36 | -------------------------------------------------------------------------------- /models/body8.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body8 18 | */ 19 | export interface Body8 { 20 | /** 21 | * The source Byron wallet's master passphrase. 22 | * @type {string} 23 | * @memberof Body8 24 | */ 25 | passphrase: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/body9.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface Body9 18 | */ 19 | export interface Body9 { 20 | /** 21 | * The source Byron wallet's master passphrase. 22 | * @type {string} 23 | * @memberof Body9 24 | */ 25 | passphrase: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/byronwallets-balance-available.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Available balance (funds that can be spent) 16 | * @export 17 | * @interface ByronwalletsBalanceAvailable 18 | */ 19 | export interface ByronwalletsBalanceAvailable { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ByronwalletsBalanceAvailable 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ByronwalletsBalanceAvailable 30 | */ 31 | unit: ByronwalletsBalanceAvailableUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ByronwalletsBalanceAvailableUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/byronwallets-balance-total.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Total balance (available balance plus pending change) 16 | * @export 17 | * @interface ByronwalletsBalanceTotal 18 | */ 19 | export interface ByronwalletsBalanceTotal { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof ByronwalletsBalanceTotal 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof ByronwalletsBalanceTotal 30 | */ 31 | unit: ByronwalletsBalanceTotalUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum ByronwalletsBalanceTotalUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/byronwallets-balance.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Byron wallet's current balance(s) 16 | * @export 17 | * @interface ByronwalletsBalance 18 | */ 19 | export interface ByronwalletsBalance { 20 | /** 21 | * 22 | * @type {ByronwalletsBalanceAvailable} 23 | * @memberof ByronwalletsBalance 24 | */ 25 | available: any; 26 | /** 27 | * 28 | * @type {ByronwalletsBalanceTotal} 29 | * @memberof ByronwalletsBalance 30 | */ 31 | total: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/cannot-cover-fee.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface CannotCoverFee 18 | */ 19 | export interface CannotCoverFee { 20 | /** 21 | * May occur when a transaction can't be balanced for fees. 22 | * @type {string} 23 | * @memberof CannotCoverFee 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof CannotCoverFee 30 | */ 31 | code: CannotCoverFeeCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum CannotCoverFeeCodeEnum { 39 | Fee = 'cannot_cover_fee' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/credential-value.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface CredentialValue 18 | */ 19 | export interface CredentialValue { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response20011.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse20011 18 | */ 19 | export interface InlineResponse20011 { 20 | /** 21 | * 22 | * @type {ApiNetworkInformationSyncProgress} 23 | * @memberof InlineResponse20011 24 | */ 25 | sync_progress: any; 26 | /** 27 | * 28 | * @type {ApiNetworkInformationNodeTip} 29 | * @memberof InlineResponse20011 30 | */ 31 | node_tip: any; 32 | /** 33 | * 34 | * @type {ApiNetworkInformationNetworkTip} 35 | * @memberof InlineResponse20011 36 | */ 37 | network_tip?: any; 38 | /** 39 | * 40 | * @type {WalletsDelegationChangesAt} 41 | * @memberof InlineResponse20011 42 | */ 43 | next_epoch?: any; 44 | /** 45 | * 46 | * @type {string} 47 | * @memberof InlineResponse20011 48 | */ 49 | node_era: InlineResponse20011NodeEraEnum; 50 | } 51 | 52 | /** 53 | * @export 54 | * @enum {string} 55 | */ 56 | export enum InlineResponse20011NodeEraEnum { 57 | Byron = 'byron', 58 | Shelley = 'shelley', 59 | Allegra = 'allegra', 60 | Mary = 'mary' 61 | } 62 | 63 | -------------------------------------------------------------------------------- /models/inline-response20012.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) information of the server. **Important:** This piece of information only makes sense when the server runs on the same host machine as the node. 16 | * @export 17 | * @interface InlineResponse20012 18 | */ 19 | export interface InlineResponse20012 { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof InlineResponse20012 24 | */ 25 | status: InlineResponse20012StatusEnum; 26 | /** 27 | * 28 | * @type {ApiNetworkClockOffset} 29 | * @memberof InlineResponse20012 30 | */ 31 | offset?: any; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum InlineResponse20012StatusEnum { 39 | Available = 'available', 40 | Unavailable = 'unavailable', 41 | Pending = 'pending' 42 | } 43 | 44 | -------------------------------------------------------------------------------- /models/inline-response20015.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse20015 18 | */ 19 | export interface InlineResponse20015 { 20 | /** 21 | * Pool metadata source. This sets the metadata fetching strategy. Possible values are * none -> no fetching * direct -> direct fetching * uri -> use SMASH server 22 | * @type {string} 23 | * @memberof InlineResponse20015 24 | */ 25 | pool_metadata_source: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/inline-response20016.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The status of the SMASH server. Possible values are: health | description --- | --- `\"available\"` | server is awaiting your requests `\"unavailable\"` | server is running, but currently unavailable, try again in a short time `\"unreachable\"` | server could not be reached or didn't return a health status `\"no_smash_configured\"` | SMASH is currently not configured, adjust the Settings first 16 | * @export 17 | * @interface InlineResponse20016 18 | */ 19 | export interface InlineResponse20016 { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof InlineResponse20016 24 | */ 25 | health: InlineResponse20016HealthEnum; 26 | } 27 | 28 | /** 29 | * @export 30 | * @enum {string} 31 | */ 32 | export enum InlineResponse20016HealthEnum { 33 | Available = 'available', 34 | Unavailable = 'unavailable', 35 | Unreachable = 'unreachable', 36 | NoSmashConfigured = 'no_smash_configured' 37 | } 38 | 39 | -------------------------------------------------------------------------------- /models/inline-response2003.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse2003 18 | */ 19 | export interface InlineResponse2003 { 20 | /** 21 | * 22 | * @type {WalletswalletIdpaymentfeesAmount} 23 | * @memberof InlineResponse2003 24 | */ 25 | total: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof InlineResponse2003 30 | */ 31 | scale: InlineResponse2003ScaleEnum; 32 | /** 33 | * 34 | * @type {{ [key, string]: number;}} 35 | * @memberof InlineResponse2003 36 | */ 37 | distribution: any; 38 | } 39 | 40 | /** 41 | * @export 42 | * @enum {string} 43 | */ 44 | export enum InlineResponse2003ScaleEnum { 45 | Log10 = 'log10' 46 | } 47 | 48 | -------------------------------------------------------------------------------- /models/inline-response2005.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse2005 18 | */ 19 | export interface InlineResponse2005 { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof InlineResponse2005 24 | */ 25 | id: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof InlineResponse2005 30 | */ 31 | state: InlineResponse2005StateEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum InlineResponse2005StateEnum { 39 | Used = 'used', 40 | Unused = 'unused' 41 | } 42 | 43 | -------------------------------------------------------------------------------- /models/inline-response2007.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse2007 18 | */ 19 | export interface InlineResponse2007 { 20 | /** 21 | * 22 | * @type {ApiMaintenanceActionGcStakePools} 23 | * @memberof InlineResponse2007 24 | */ 25 | gc_stake_pools: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/inline-response2009.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse2009 18 | */ 19 | export interface InlineResponse2009 { 20 | /** 21 | * 22 | * @type {ApiWalletMigrationInfoMigrationCost} 23 | * @memberof InlineResponse2009 24 | */ 25 | migration_cost: any; 26 | /** 27 | * 28 | * @type {ApiWalletMigrationInfoLeftovers} 29 | * @memberof InlineResponse2009 30 | */ 31 | leftovers: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/inline-response2022.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse2022 18 | */ 19 | export interface InlineResponse2022 { 20 | /** 21 | * A unique identifier for this transaction 22 | * @type {string} 23 | * @memberof InlineResponse2022 24 | */ 25 | id: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/inline-response2023.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse2023 18 | */ 19 | export interface InlineResponse2023 { 20 | /** 21 | * A Shelley address representing either enterprise, reward account or delegating address 22 | * @type {string} 23 | * @memberof InlineResponse2023 24 | */ 25 | address: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/inline-response400.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse400 18 | */ 19 | export interface InlineResponse400 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4001.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4001 18 | */ 19 | export interface InlineResponse4001 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response403.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse403 18 | */ 19 | export interface InlineResponse403 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4031.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4031 18 | */ 19 | export interface InlineResponse4031 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4032.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4032 18 | */ 19 | export interface InlineResponse4032 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4033.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4033 18 | */ 19 | export interface InlineResponse4033 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4034.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4034 18 | */ 19 | export interface InlineResponse4034 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4035.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4035 18 | */ 19 | export interface InlineResponse4035 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4036.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4036 18 | */ 19 | export interface InlineResponse4036 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response404.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse404 18 | */ 19 | export interface InlineResponse404 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response4041.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse4041 18 | */ 19 | export interface InlineResponse4041 { 20 | } 21 | -------------------------------------------------------------------------------- /models/inline-response415.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface InlineResponse415 18 | */ 19 | export interface InlineResponse415 { 20 | /** 21 | * A descriptive error message. 22 | * @type {string} 23 | * @memberof InlineResponse415 24 | */ 25 | message: any; 26 | /** 27 | * A specific error code for this error, more precise than HTTP ones. 28 | * @type {string} 29 | * @memberof InlineResponse415 30 | */ 31 | code: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/json-script.model.ts: -------------------------------------------------------------------------------- 1 | export interface JsonScript { 2 | type: ScriptTypeEnum; 3 | keyHash?: string; 4 | scripts?: JsonScript[]; 5 | lockTime?: string | number | Date; 6 | slot?: number; 7 | require?: number; 8 | } 9 | 10 | 11 | export enum ScriptTypeEnum { 12 | Sig = "sig", 13 | All = "all", 14 | Any = "any", 15 | AtLeast = "atLeast", 16 | After = "after", 17 | Before = "before" 18 | } 19 | 20 | export const scriptTypes = ['sig', 'all', 'any', 'atLeast', 'after', 'before']; -------------------------------------------------------------------------------- /models/native-assets-metadata-unit.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Defines a larger unit for the asset, in the same way Ada is the larger unit of Lovelace. 16 | * @export 17 | * @interface NativeAssetsMetadataUnit 18 | */ 19 | export interface NativeAssetsMetadataUnit { 20 | /** 21 | * The number of digits after the decimal point. 22 | * @type {number} 23 | * @memberof NativeAssetsMetadataUnit 24 | */ 25 | decimals: any; 26 | /** 27 | * The human-readable name for the larger unit of the asset. Used for display in user interfaces. 28 | * @type {string} 29 | * @memberof NativeAssetsMetadataUnit 30 | */ 31 | name: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/no-such-wallet.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface NoSuchWallet 18 | */ 19 | export interface NoSuchWallet { 20 | /** 21 | * May occur when a given walletId does not match with any known wallets (because it has been deleted, or has never existed). 22 | * @type {string} 23 | * @memberof NoSuchWallet 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof NoSuchWallet 30 | */ 31 | code: NoSuchWalletCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum NoSuchWalletCodeEnum { 39 | Wallet = 'no_such_wallet' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/not-acceptable.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface NotAcceptable 18 | */ 19 | export interface NotAcceptable { 20 | /** 21 | * May occur when providing an invalid 'Accept' header. 22 | * @type {string} 23 | * @memberof NotAcceptable 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof NotAcceptable 30 | */ 31 | code: NotAcceptableCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum NotAcceptableCodeEnum { 39 | Acceptable = 'not_acceptable' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/nothing-to-migrate.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface NothingToMigrate 18 | */ 19 | export interface NothingToMigrate { 20 | /** 21 | * May occur when trying to migrate a wallet that is empty or full of dust. 22 | * @type {string} 23 | * @memberof NothingToMigrate 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof NothingToMigrate 30 | */ 31 | code: NothingToMigrateCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum NothingToMigrateCodeEnum { 39 | Migrate = 'nothing_to_migrate' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/nullable-epoch-info.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface NullableEpochInfo 18 | */ 19 | export interface NullableEpochInfo { 20 | /** 21 | * An epoch is a time period which is divided into slots. 22 | * @type {number} 23 | * @memberof NullableEpochInfo 24 | */ 25 | epoch_number: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof NullableEpochInfo 30 | */ 31 | epoch_start_time: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/payment-extended-signing-key.ts: -------------------------------------------------------------------------------- 1 | export class ExtendedSigningKey { 2 | type: ExtendedSigningKeyEnum; 3 | description: string; 4 | cborHex: string; 5 | 6 | constructor(cborHex: string, description = '') { 7 | this.cborHex = cborHex; 8 | this.description = description; 9 | this.type = ExtendedSigningKeyEnum.PaymentExtendedSigningKeyShelley_ed25519_bip32; 10 | } 11 | 12 | toJSON(): any { 13 | return { 14 | type: this.type.toString(), 15 | description: this.description, 16 | cborHex: this.cborHex 17 | } 18 | } 19 | } 20 | 21 | export enum ExtendedSigningKeyEnum { 22 | PaymentExtendedSigningKeyShelley_ed25519_bip32 = "PaymentExtendedSigningKeyShelley_ed25519_bip32" 23 | } -------------------------------------------------------------------------------- /models/query-param-missing.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface QueryParamMissing 18 | */ 19 | export interface QueryParamMissing { 20 | /** 21 | * May occur when an endpoint requires the presence of a query parameter that is missing. 22 | * @type {string} 23 | * @memberof QueryParamMissing 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof QueryParamMissing 30 | */ 31 | code: QueryParamMissingCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum QueryParamMissingCodeEnum { 39 | Missing = 'query_param_missing' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/script-value.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface ScriptValue 18 | */ 19 | export interface ScriptValue { 20 | } 21 | -------------------------------------------------------------------------------- /models/script.model.ts: -------------------------------------------------------------------------------- 1 | import { NativeScript } from "@emurgo/cardano-serialization-lib-nodejs"; 2 | import { Bip32KeyPair } from "./bip32-keypair.model"; 3 | 4 | export interface Script { 5 | root?: NativeScript; 6 | scripts: Script[]; 7 | keyHash?: string; 8 | keyPair?: Bip32KeyPair; 9 | slot?: number; 10 | 11 | } -------------------------------------------------------------------------------- /models/settings-settings.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Settings 16 | * @export 17 | * @interface SettingsSettings 18 | */ 19 | export interface SettingsSettings { 20 | /** 21 | * Select stake pool metadata fetching strategy: - `none` - metadata is not fetched at all, - `direct` - metadata is fetched directly URLs registered on chain, - `uri` - metadata is fetched from an external Stake-Pool Metadata Aggregation Server (SMASH) After update existing metadata will be dropped forcing it to re-sync automatically with the new setting. 22 | * @type {string} 23 | * @memberof SettingsSettings 24 | */ 25 | pool_metadata_source: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/some-byron-wallet-post-data.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface SomeByronWalletPostData 18 | */ 19 | export interface SomeByronWalletPostData { 20 | } 21 | -------------------------------------------------------------------------------- /models/stakepools-cost.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Estimated cost set by the pool operator when registering his pool. This fixed cost is taken from each reward earned by the pool before splitting rewards between stakeholders. May be omitted if the wallet hasn't found the pool's registration cerificate yet. 16 | * @export 17 | * @interface StakepoolsCost 18 | */ 19 | export interface StakepoolsCost { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof StakepoolsCost 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsCost 30 | */ 31 | unit: StakepoolsCostUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum StakepoolsCostUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/stakepools-margin.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Variable margin on the total reward given to an operator before splitting rewards between stakeholders. May be omitted if the wallet hasn't found the pool's registration cerificate yet. 16 | * @export 17 | * @interface StakepoolsMargin 18 | */ 19 | export interface StakepoolsMargin { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof StakepoolsMargin 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsMargin 30 | */ 31 | unit: StakepoolsMarginUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum StakepoolsMarginUnitEnum { 39 | Percent = 'percent' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/stakepools-metadata.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Information about the stake pool. 16 | * @export 17 | * @interface StakepoolsMetadata 18 | */ 19 | export interface StakepoolsMetadata { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof StakepoolsMetadata 24 | */ 25 | ticker: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsMetadata 30 | */ 31 | name: any; 32 | /** 33 | * 34 | * @type {string} 35 | * @memberof StakepoolsMetadata 36 | */ 37 | description?: any; 38 | /** 39 | * 40 | * @type {string} 41 | * @memberof StakepoolsMetadata 42 | */ 43 | homepage: any; 44 | } 45 | -------------------------------------------------------------------------------- /models/stakepools-metrics-non-myopic-member-rewards.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The rewards the wallet can expect to receive at the end of an epoch, in the long term, if delegating to this pool. For more details, see the [Design Specification for Delegation and Incentives in Cardano](https://hydra.iohk.io/job/Cardano/cardano-ledger-specs/delegationDesignSpec/latest/download-by-type/doc-pdf/delegation_design_spec) document. 16 | * @export 17 | * @interface StakepoolsMetricsNonMyopicMemberRewards 18 | */ 19 | export interface StakepoolsMetricsNonMyopicMemberRewards { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof StakepoolsMetricsNonMyopicMemberRewards 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsMetricsNonMyopicMemberRewards 30 | */ 31 | unit: StakepoolsMetricsNonMyopicMemberRewardsUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum StakepoolsMetricsNonMyopicMemberRewardsUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/stakepools-metrics-produced-blocks.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Number of blocks produced by a given stake pool in its lifetime. 16 | * @export 17 | * @interface StakepoolsMetricsProducedBlocks 18 | */ 19 | export interface StakepoolsMetricsProducedBlocks { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof StakepoolsMetricsProducedBlocks 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsMetricsProducedBlocks 30 | */ 31 | unit: StakepoolsMetricsProducedBlocksUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum StakepoolsMetricsProducedBlocksUnitEnum { 39 | Block = 'block' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/stakepools-metrics-relative-stake.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The live pool stake relative to the *total* stake. For more details, see the section \"Relative Stake: Active vs Total\" in [Design Specification for Delegation and Incentives in Cardano](https://hydra.iohk.io/job/Cardano/cardano-ledger-specs/delegationDesignSpec/latest/download-by-type/doc-pdf/delegation_design_spec). 16 | * @export 17 | * @interface StakepoolsMetricsRelativeStake 18 | */ 19 | export interface StakepoolsMetricsRelativeStake { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof StakepoolsMetricsRelativeStake 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsMetricsRelativeStake 30 | */ 31 | unit: StakepoolsMetricsRelativeStakeUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum StakepoolsMetricsRelativeStakeUnitEnum { 39 | Percent = 'percent' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/stakepools-metrics.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { StakepoolsMetricsNonMyopicMemberRewards } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface StakepoolsMetrics 21 | */ 22 | export interface StakepoolsMetrics { 23 | /** 24 | * 25 | * @type {StakepoolsMetricsNonMyopicMemberRewards} 26 | * @memberof StakepoolsMetrics 27 | */ 28 | non_myopic_member_rewards: StakepoolsMetricsNonMyopicMemberRewards; 29 | /** 30 | * 31 | * @type {StakepoolsMetricsRelativeStake} 32 | * @memberof StakepoolsMetrics 33 | */ 34 | relative_stake: any; 35 | /** 36 | * Saturation-level of the pool based on the desired number of pools aimed by the network. A value above `1` indicates that the pool is saturated. The `non_myopic_member_rewards` take oversaturation into account, as specified by the [specs](https://hydra.iohk.io/job/Cardano/cardano-ledger-specs/delegationDesignSpec/latest/download-by-type/doc-pdf/delegation_design_spec). The saturation is based on the live `relative_stake`. The saturation at the end of epoch e, will affect the rewards paid out at the end of epoch e+3. 37 | * @type {number} 38 | * @memberof StakepoolsMetrics 39 | */ 40 | saturation: any; 41 | /** 42 | * 43 | * @type {StakepoolsMetricsProducedBlocks} 44 | * @memberof StakepoolsMetrics 45 | */ 46 | produced_blocks: any; 47 | } 48 | -------------------------------------------------------------------------------- /models/stakepools-pledge.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Minimal stake amount that a stake pool is willing to honor. May be omitted if the wallet hasn't found the pool's registration cerificate yet. 16 | * @export 17 | * @interface StakepoolsPledge 18 | */ 19 | export interface StakepoolsPledge { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof StakepoolsPledge 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsPledge 30 | */ 31 | unit: StakepoolsPledgeUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum StakepoolsPledgeUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/stakepools-retirement.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The epoch in which a stake pool retires. May be omitted if the wallet hasn't yet found a retirement certificate for this stake pool. 16 | * @export 17 | * @interface StakepoolsRetirement 18 | */ 19 | export interface StakepoolsRetirement { 20 | /** 21 | * An epoch is a time period which is divided into slots. 22 | * @type {number} 23 | * @memberof StakepoolsRetirement 24 | */ 25 | epoch_number: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof StakepoolsRetirement 30 | */ 31 | epoch_start_time: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/transaction-already-in-ledger.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface TransactionAlreadyInLedger 18 | */ 19 | export interface TransactionAlreadyInLedger { 20 | /** 21 | * Occurs when attempting to delete a transaction which is neither pending nor expired. 22 | * @type {string} 23 | * @memberof TransactionAlreadyInLedger 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof TransactionAlreadyInLedger 30 | */ 31 | code: TransactionAlreadyInLedgerCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum TransactionAlreadyInLedgerCodeEnum { 39 | Ledger = 'transaction_already_in_ledger' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/transaction-metadata-value-map.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface TransactionMetadataValueMap 18 | */ 19 | export interface TransactionMetadataValueMap { 20 | /** 21 | * 22 | * @type {TransactionMetadataValue} 23 | * @memberof TransactionMetadataValueMap 24 | */ 25 | k?: any; 26 | /** 27 | * 28 | * @type {TransactionMetadataValue} 29 | * @memberof TransactionMetadataValueMap 30 | */ 31 | v?: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/transaction-metadata-value.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface TransactionMetadataValue 18 | */ 19 | export interface TransactionMetadataValue { 20 | } 21 | -------------------------------------------------------------------------------- /models/unsupported-media-type.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface UnsupportedMediaType 18 | */ 19 | export interface UnsupportedMediaType { 20 | /** 21 | * May occur when providing an invalid 'Content-Type' header. 22 | * @type {string} 23 | * @memberof UnsupportedMediaType 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof UnsupportedMediaType 30 | */ 31 | code: UnsupportedMediaTypeCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum UnsupportedMediaTypeCodeEnum { 39 | Type = 'unsupported_media_type' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallet-already-exists.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface WalletAlreadyExists 18 | */ 19 | export interface WalletAlreadyExists { 20 | /** 21 | * May occur when a otherwise valid request would yield a wallet that already exists. 22 | * @type {string} 23 | * @memberof WalletAlreadyExists 24 | */ 25 | message: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletAlreadyExists 30 | */ 31 | code: WalletAlreadyExistsCodeEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletAlreadyExistsCodeEnum { 39 | Exists = 'wallet_already_exists' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallets-assets.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsAssetsAvailable } from "."; 16 | 17 | /** 18 | * Current non-Ada asset holdings of the wallet. The amount of assets available to spend may be less than the total unspent assets due to transaction change amounts which are yet to be fully confirmed (pending). 19 | * @export 20 | * @interface WalletsAssets 21 | */ 22 | export interface WalletsAssets { 23 | /** 24 | * Available UTxO asset balances (funds that can be spent without condition). 25 | * @type {Array<WalletsAssetsAvailable>} 26 | * @memberof WalletsAssets 27 | */ 28 | available: Array; 29 | /** 30 | * Total asset balances (available balances plus pending change balances). 31 | * @type {Array<WalletsAssetsAvailable>} 32 | * @memberof WalletsAssets 33 | */ 34 | total: Array; 35 | } 36 | -------------------------------------------------------------------------------- /models/wallets-balance-available.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Available Ada UTxO balance (funds that can be spent without condition). 16 | * @export 17 | * @interface WalletsBalanceAvailable 18 | */ 19 | export interface WalletsBalanceAvailable { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletsBalanceAvailable 24 | */ 25 | quantity: number; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletsBalanceAvailable 30 | */ 31 | unit: WalletsBalanceAvailableUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletsBalanceAvailableUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallets-balance-reward.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The Ada balance of the reward account for this wallet. 16 | * @export 17 | * @interface WalletsBalanceReward 18 | */ 19 | export interface WalletsBalanceReward { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletsBalanceReward 24 | */ 25 | quantity: number; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletsBalanceReward 30 | */ 31 | unit: WalletsBalanceRewardUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletsBalanceRewardUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallets-balance-total.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Total Ada balance (available balance plus pending change and reward balance). 16 | * @export 17 | * @interface WalletsBalanceTotal 18 | */ 19 | export interface WalletsBalanceTotal { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletsBalanceTotal 24 | */ 25 | quantity: number; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletsBalanceTotal 30 | */ 31 | unit: WalletsBalanceTotalUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletsBalanceTotalUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallets-balance.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsBalanceAvailable, WalletsBalanceReward, WalletsBalanceTotal } from "."; 16 | 17 | /** 18 | * Wallet current Ada balance(s). 19 | * @export 20 | * @interface WalletsBalance 21 | */ 22 | export interface WalletsBalance { 23 | /** 24 | * 25 | * @type {WalletsBalanceAvailable} 26 | * @memberof WalletsBalance 27 | */ 28 | available: WalletsBalanceAvailable; 29 | /** 30 | * 31 | * @type {WalletsBalanceReward} 32 | * @memberof WalletsBalance 33 | */ 34 | reward: WalletsBalanceReward; 35 | /** 36 | * 37 | * @type {WalletsBalanceTotal} 38 | * @memberof WalletsBalance 39 | */ 40 | total: WalletsBalanceTotal; 41 | } 42 | -------------------------------------------------------------------------------- /models/wallets-delegation-active.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Currently active delegation status. 16 | * @export 17 | * @interface WalletsDelegationActive 18 | */ 19 | export interface WalletsDelegationActive { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof WalletsDelegationActive 24 | */ 25 | status: WalletsDelegationActiveStatusEnum; 26 | /** 27 | * A unique Stake-Pool identifier (present only if status = `delegating`) 28 | * @type {string} 29 | * @memberof WalletsDelegationActive 30 | */ 31 | target?: any; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletsDelegationActiveStatusEnum { 39 | NotDelegating = 'not_delegating', 40 | Delegating = 'delegating' 41 | } 42 | 43 | -------------------------------------------------------------------------------- /models/wallets-delegation-changes-at.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface WalletsDelegationChangesAt 18 | */ 19 | export interface WalletsDelegationChangesAt { 20 | /** 21 | * An epoch is a time period which is divided into slots. 22 | * @type {number} 23 | * @memberof WalletsDelegationChangesAt 24 | */ 25 | epoch_number: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletsDelegationChangesAt 30 | */ 31 | epoch_start_time: any; 32 | } 33 | -------------------------------------------------------------------------------- /models/wallets-delegation-next.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsDelegationChangesAt } from "."; 16 | 17 | /** 18 | * Next delegation status becomes active at the start of the second epoch after the corresponding delegation certificate was discovered. The exact moment is specified by changes_at 19 | * @export 20 | * @interface WalletsDelegationNext 21 | */ 22 | export interface WalletsDelegationNext { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof WalletsDelegationNext 27 | */ 28 | status: WalletsDelegationNextStatusEnum; 29 | /** 30 | * A unique Stake-Pool identifier (present only if status = `delegating`) 31 | * @type {string} 32 | * @memberof WalletsDelegationNext 33 | */ 34 | target?: any; 35 | /** 36 | * 37 | * @type {WalletsDelegationChangesAt} 38 | * @memberof WalletsDelegationNext 39 | */ 40 | changes_at: WalletsDelegationChangesAt; 41 | } 42 | 43 | /** 44 | * @export 45 | * @enum {string} 46 | */ 47 | export enum WalletsDelegationNextStatusEnum { 48 | NotDelegating = 'not_delegating', 49 | Delegating = 'delegating' 50 | } 51 | 52 | -------------------------------------------------------------------------------- /models/wallets-delegation.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsDelegationActive, WalletsDelegationNext } from "."; 16 | 17 | /** 18 | * Delegation settings 19 | * @export 20 | * @interface WalletsDelegation 21 | */ 22 | export interface WalletsDelegation { 23 | /** 24 | * 25 | * @type {WalletsDelegationActive} 26 | * @memberof WalletsDelegation 27 | */ 28 | active: WalletsDelegationActive; 29 | /** 30 | * 31 | * @type {Array<WalletsDelegationNext>} 32 | * @memberof WalletsDelegation 33 | */ 34 | next: Array; 35 | } 36 | -------------------------------------------------------------------------------- /models/wallets-passphrase.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Information about the wallet's passphrase 16 | * @export 17 | * @interface WalletsPassphrase 18 | */ 19 | export interface WalletsPassphrase { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof WalletsPassphrase 24 | */ 25 | last_updated_at: any; 26 | } 27 | -------------------------------------------------------------------------------- /models/wallets-state-progress.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * if: status == syncing
16 | * @export 17 | * @interface WalletsStateProgress 18 | */ 19 | export interface WalletsStateProgress { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletsStateProgress 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletsStateProgress 30 | */ 31 | unit: WalletsStateProgressUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletsStateProgressUnitEnum { 39 | Percent = 'percent' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallets-state.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsStateProgress } from "."; 16 | 17 | /** 18 | * Whether a wallet is ready to use or still syncing 19 | * @export 20 | * @interface WalletsState 21 | */ 22 | export interface WalletsState { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof WalletsState 27 | */ 28 | status: WalletsStateStatusEnum; 29 | /** 30 | * 31 | * @type {WalletsStateProgress} 32 | * @memberof WalletsState 33 | */ 34 | progress?: WalletsStateProgress; 35 | } 36 | 37 | /** 38 | * @export 39 | * @enum {string} 40 | */ 41 | export enum WalletsStateStatusEnum { 42 | Ready = 'ready', 43 | Syncing = 'syncing', 44 | NotResponding = 'not_responding' 45 | } 46 | 47 | -------------------------------------------------------------------------------- /models/wallets-tip-height.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * 16 | * @export 17 | * @interface WalletsTipHeight 18 | */ 19 | export interface WalletsTipHeight { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletsTipHeight 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletsTipHeight 30 | */ 31 | unit: WalletsTipHeightUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletsTipHeightUnitEnum { 39 | Block = 'block' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/wallets-tip.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsTipHeight } from "."; 16 | 17 | /** 18 | * A reference to a particular time slot, and the block height at that point. 19 | * @export 20 | * @interface WalletsTip 21 | */ 22 | export interface WalletsTip { 23 | /** 24 | * The 0-based slot index starting from genesis of the blockchain. 25 | * @type {number} 26 | * @memberof WalletsTip 27 | */ 28 | absolute_slot_number: any; 29 | /** 30 | * The zero-based slot index within an epoch. 31 | * @type {number} 32 | * @memberof WalletsTip 33 | */ 34 | slot_number: any; 35 | /** 36 | * An epoch is a time period which is divided into slots. 37 | * @type {number} 38 | * @memberof WalletsTip 39 | */ 40 | epoch_number: any; 41 | /** 42 | * 43 | * @type {string} 44 | * @memberof WalletsTip 45 | */ 46 | time: any; 47 | /** 48 | * 49 | * @type {WalletsTipHeight} 50 | * @memberof WalletsTip 51 | */ 52 | height: WalletsTipHeight; 53 | } 54 | -------------------------------------------------------------------------------- /models/walletswallet-idcoinselectionsrandom-delegation-action.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * A delegation action. Pool id is only required for \"join\". 16 | * @export 17 | * @interface WalletswalletIdcoinselectionsrandomDelegationAction 18 | */ 19 | export interface WalletswalletIdcoinselectionsrandomDelegationAction { 20 | /** 21 | * 22 | * @type {string} 23 | * @memberof WalletswalletIdcoinselectionsrandomDelegationAction 24 | */ 25 | action: WalletswalletIdcoinselectionsrandomDelegationActionActionEnum; 26 | /** 27 | * A unique identifier for the pool. 28 | * @type {string} 29 | * @memberof WalletswalletIdcoinselectionsrandomDelegationAction 30 | */ 31 | pool?: any; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletswalletIdcoinselectionsrandomDelegationActionActionEnum { 39 | Quit = 'quit', 40 | Join = 'join' 41 | } 42 | 43 | -------------------------------------------------------------------------------- /models/walletswallet-idpaymentfees-amount.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * Coins, in Lovelace. Only relates to 'Ada'. Refer to `assets` for multi-assets wallets instead. 16 | * @export 17 | * @interface WalletswalletIdpaymentfeesAmount 18 | */ 19 | export interface WalletswalletIdpaymentfeesAmount { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletswalletIdpaymentfeesAmount 24 | */ 25 | quantity: number; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletswalletIdpaymentfeesAmount 30 | */ 31 | unit: WalletswalletIdpaymentfeesAmountUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletswalletIdpaymentfeesAmountUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/walletswallet-idpaymentfees-payments.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletsAssetsAvailable, WalletswalletIdpaymentfeesAmount } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface WalletswalletIdpaymentfeesPayments 21 | */ 22 | export interface WalletswalletIdpaymentfeesPayments { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof WalletswalletIdpaymentfeesPayments 27 | */ 28 | address: string; 29 | /** 30 | * 31 | * @type {WalletswalletIdpaymentfeesAmount} 32 | * @memberof WalletswalletIdpaymentfeesPayments 33 | */ 34 | amount: WalletswalletIdpaymentfeesAmount; 35 | /** 36 | * A flat list of assets. 37 | * @type {Array<WalletsAssetsAvailable>} 38 | * @memberof WalletswalletIdpaymentfeesPayments 39 | */ 40 | assets?: Array; 41 | } 42 | -------------------------------------------------------------------------------- /models/walletswallet-idpaymentfees-time-to-live.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * The TTL (time to live) is the time period in which the transaction will be accepted into node mempools. After the TTL has lapsed, the transaction is considered expired. At this point, nodes will give up on broadcasting the transaction, and the wallet will release the funds allocated to the transaction so they can be used for other payments. The TTL should be long enough that the transaction has time to be propagated through the network and confirmed, but short enough so that - in the event of failures - UTxO are returned to the wallet in a timely manner. The TTL value is given in seconds. It will be converted to a slot number internally. If the TTL is not provided for a payment, a reasonable default value will be used. 16 | * @export 17 | * @interface WalletswalletIdpaymentfeesTimeToLive 18 | */ 19 | export interface WalletswalletIdpaymentfeesTimeToLive { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletswalletIdpaymentfeesTimeToLive 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletswalletIdpaymentfeesTimeToLive 30 | */ 31 | unit: WalletswalletIdpaymentfeesTimeToLiveUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletswalletIdpaymentfeesTimeToLiveUnitEnum { 39 | Second = 'second' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/walletswallet-idtransactions-amount.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * An amount of Ada spent or received, from the perspective of the wallet. That is, for outgoing transaction, it represents the amount of Ada consumed as inputs, minus the amount of Ada spent as fees, as deposits or to addresses which do not belong to the wallet. For incoming transaction, it represents the total amount of Ada received to addresses that belong to the wallet. 16 | * @export 17 | * @interface WalletswalletIdtransactionsAmount 18 | */ 19 | export interface WalletswalletIdtransactionsAmount { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletswalletIdtransactionsAmount 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletswalletIdtransactionsAmount 30 | */ 31 | unit: WalletswalletIdtransactionsAmountUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletswalletIdtransactionsAmountUnitEnum { 39 | Lovelace = 'lovelace' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/walletswallet-idtransactions-depth.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * if: status == in_ledger
Current depth of the transaction in the local chain 16 | * @export 17 | * @interface WalletswalletIdtransactionsDepth 18 | */ 19 | export interface WalletswalletIdtransactionsDepth { 20 | /** 21 | * 22 | * @type {number} 23 | * @memberof WalletswalletIdtransactionsDepth 24 | */ 25 | quantity: any; 26 | /** 27 | * 28 | * @type {string} 29 | * @memberof WalletswalletIdtransactionsDepth 30 | */ 31 | unit: WalletswalletIdtransactionsDepthUnitEnum; 32 | } 33 | 34 | /** 35 | * @export 36 | * @enum {string} 37 | */ 38 | export enum WalletswalletIdtransactionsDepthUnitEnum { 39 | Block = 'block' 40 | } 41 | 42 | -------------------------------------------------------------------------------- /models/walletswallet-idtransactions-expires-at.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | /** 15 | * if: status == pending OR status == expired
Absolute time and slot at which the pending transaction TTL (time to live) will lapse. 16 | * @export 17 | * @interface WalletswalletIdtransactionsExpiresAt 18 | */ 19 | export interface WalletswalletIdtransactionsExpiresAt { 20 | /** 21 | * The 0-based slot index starting from genesis of the blockchain. 22 | * @type {number} 23 | * @memberof WalletswalletIdtransactionsExpiresAt 24 | */ 25 | absolute_slot_number: any; 26 | /** 27 | * An epoch is a time period which is divided into slots. 28 | * @type {number} 29 | * @memberof WalletswalletIdtransactionsExpiresAt 30 | */ 31 | epoch_number: any; 32 | /** 33 | * The zero-based slot index within an epoch. 34 | * @type {number} 35 | * @memberof WalletswalletIdtransactionsExpiresAt 36 | */ 37 | slot_number: any; 38 | /** 39 | * 40 | * @type {string} 41 | * @memberof WalletswalletIdtransactionsExpiresAt 42 | */ 43 | time: any; 44 | } 45 | -------------------------------------------------------------------------------- /models/walletswallet-idtransactions-inputs.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletswalletIdpaymentfeesAmount } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface WalletswalletIdtransactionsInputs 21 | */ 22 | export interface WalletswalletIdtransactionsInputs { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof WalletswalletIdtransactionsInputs 27 | */ 28 | address?: any; 29 | /** 30 | * 31 | * @type {WalletswalletIdpaymentfeesAmount} 32 | * @memberof WalletswalletIdtransactionsInputs 33 | */ 34 | amount?: WalletswalletIdpaymentfeesAmount; 35 | /** 36 | * A flat list of assets. 37 | * @type {Array<WalletsAssetsAvailable>} 38 | * @memberof WalletswalletIdtransactionsInputs 39 | */ 40 | assets?: any; 41 | /** 42 | * A unique identifier for this transaction 43 | * @type {string} 44 | * @memberof WalletswalletIdtransactionsInputs 45 | */ 46 | id: any; 47 | /** 48 | * 49 | * @type {number} 50 | * @memberof WalletswalletIdtransactionsInputs 51 | */ 52 | index: any; 53 | } 54 | -------------------------------------------------------------------------------- /models/walletswallet-idtransactions-withdrawals.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | /* eslint-disable */ 3 | /** 4 | * Cardano Wallet Backend API 5 | *

6 | * 7 | * OpenAPI spec version: 2021.3.4 8 | * 9 | * 10 | * NOTE: This class is auto generated by the swagger code generator program. 11 | * https://github.com/swagger-api/swagger-codegen.git 12 | * Do not edit the class manually. 13 | */ 14 | 15 | import { WalletswalletIdpaymentfeesAmount } from "."; 16 | 17 | /** 18 | * 19 | * @export 20 | * @interface WalletswalletIdtransactionsWithdrawals 21 | */ 22 | export interface WalletswalletIdtransactionsWithdrawals { 23 | /** 24 | * 25 | * @type {string} 26 | * @memberof WalletswalletIdtransactionsWithdrawals 27 | */ 28 | stake_address: any; 29 | /** 30 | * 31 | * @type {WalletswalletIdpaymentfeesAmount} 32 | * @memberof WalletswalletIdtransactionsWithdrawals 33 | */ 34 | amount: WalletswalletIdpaymentfeesAmount; 35 | } 36 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cardano-wallet-js", 3 | "version": "1.4.0", 4 | "description": " javascript/typescript client for the official cardano-wallet api", 5 | "author": "Leobel Izquierdo ", 6 | "license": "ISC", 7 | "keywords": [ 8 | "cardano", 9 | "wallet", 10 | "api", 11 | "javascript", 12 | "typescript" 13 | ], 14 | "main": "./dist/index.js", 15 | "typings": "./dist/index.d.ts", 16 | "scripts": { 17 | "build": "tsc --outDir dist/", 18 | "prepublishOnly": "npm run build", 19 | "test": "mocha -r ts-node/register 'test/**/*.ts'", 20 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx --cache", 21 | "lint-fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix --quiet --cache" 22 | }, 23 | "directories": { 24 | "bin": "cli" 25 | }, 26 | "repository": { 27 | "type": "git", 28 | "url": "https://github.com/tango-crypto/cardano-wallet-js.git" 29 | }, 30 | "dependencies": { 31 | "@emurgo/cardano-serialization-lib-nodejs": "^10.0.4", 32 | "axios": "^0.21.1", 33 | "bip39": "^3.0.4" 34 | }, 35 | "devDependencies": { 36 | "@types/chai": "^4.2.15", 37 | "@types/chai-as-promised": "^7.1.3", 38 | "@types/mocha": "^8.2.2", 39 | "@types/node": "^12.11.5", 40 | "@typescript-eslint/eslint-plugin": "^5.9.0", 41 | "@typescript-eslint/parser": "^5.9.0", 42 | "cardano-addresses": "^3.8.0", 43 | "cd": "^0.3.3", 44 | "chai": "^4.3.4", 45 | "chai-as-promised": "^7.1.1", 46 | "dotenv": "^8.2.0", 47 | "eslint": "^8.6.0", 48 | "mocha": "^8.3.2", 49 | "ts-node": "^9.1.1", 50 | "typescript": "^3.6.4" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "resolveJsonModule": true, 4 | "declaration": true, 5 | "target": "es5", 6 | "module": "commonjs", 7 | "noImplicitAny": true, 8 | "outDir": "dist", 9 | "rootDir": ".", 10 | "sourceMap": true, 11 | "experimentalDecorators": true, 12 | "lib": [ 13 | "es6", 14 | "dom", 15 | "es2019" 16 | ], 17 | "typeRoots": [ 18 | "node_modules/@types" 19 | ] 20 | }, 21 | "exclude": [ 22 | "test", 23 | "dist", 24 | "node_modules" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /wallet/address-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiAddress, ApiAddressStateEnum } from "../models"; 2 | 3 | export class AddressWallet implements ApiAddress { 4 | id: string; 5 | state: ApiAddressStateEnum; 6 | 7 | constructor(address: string, state: ApiAddressStateEnum = ApiAddressStateEnum.Unused) { 8 | this.id = address; 9 | this.state = state; 10 | } 11 | 12 | get address() { 13 | return this.id; 14 | } 15 | 16 | used() { 17 | return this.state === ApiAddressStateEnum.Used; 18 | } 19 | } -------------------------------------------------------------------------------- /wallet/asset-wallet.ts: -------------------------------------------------------------------------------- 1 | import { WalletsAssetsAvailable } from "../models"; 2 | 3 | export class AssetWallet implements WalletsAssetsAvailable { 4 | policy_id: string; 5 | asset_name: string; 6 | quantity: number; 7 | constructor(policy_id: string, asset_name: string, quantity: number){ 8 | this.policy_id = policy_id; 9 | this.asset_name = asset_name; 10 | this.quantity = quantity; 11 | } 12 | } -------------------------------------------------------------------------------- /wallet/coin-selection-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiCoinSelection, ApiCoinSelectionCertificates, ApiCoinSelectionChange, ApiCoinSelectionInputs, ApiCoinSelectionWithdrawals, WalletswalletIdpaymentfeesAmount, WalletswalletIdpaymentfeesPayments } from "../models"; 2 | 3 | export class CoinSelectionWallet implements ApiCoinSelection { 4 | inputs: ApiCoinSelectionInputs[]; 5 | outputs: WalletswalletIdpaymentfeesPayments[]; 6 | change: ApiCoinSelectionChange[]; 7 | withdrawals?: ApiCoinSelectionWithdrawals[]; 8 | certificates?: ApiCoinSelectionCertificates[]; 9 | deposits?: WalletswalletIdpaymentfeesAmount[]; 10 | metadata?: any; 11 | 12 | 13 | constructor( 14 | inputs: ApiCoinSelectionInputs[], 15 | outputs: WalletswalletIdpaymentfeesPayments[], 16 | change: ApiCoinSelectionChange[], 17 | withdrawals: ApiCoinSelectionWithdrawals[], 18 | certificates: ApiCoinSelectionCertificates[], 19 | deposits: WalletswalletIdpaymentfeesAmount[], 20 | metadata: any) { 21 | this.inputs = inputs; 22 | this.outputs = outputs; 23 | this.change = change; 24 | this.withdrawals = withdrawals; 25 | this.certificates = certificates; 26 | this.deposits = deposits; 27 | this.metadata = metadata; 28 | } 29 | 30 | static from(coinSelection: ApiCoinSelection) { 31 | return new this(coinSelection.inputs, coinSelection.outputs, coinSelection.change, coinSelection.withdrawals, coinSelection.certificates, coinSelection.deposits, coinSelection.metadata); 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /wallet/fee-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiFee, WalletswalletIdpaymentfeesAmount } from "../models"; 2 | 3 | export class FeeWallet implements ApiFee { 4 | estimated_min: WalletswalletIdpaymentfeesAmount; 5 | estimated_max: WalletswalletIdpaymentfeesAmount; 6 | minimum_coins: WalletswalletIdpaymentfeesAmount[]; 7 | deposit: WalletswalletIdpaymentfeesAmount; 8 | 9 | constructor( 10 | estimated_min: WalletswalletIdpaymentfeesAmount, 11 | estimated_max: WalletswalletIdpaymentfeesAmount, 12 | minimum_coins: WalletswalletIdpaymentfeesAmount[], 13 | deposit: WalletswalletIdpaymentfeesAmount) { 14 | this.estimated_min = estimated_min; 15 | this.estimated_max = estimated_max; 16 | this.minimum_coins = minimum_coins; 17 | this.deposit = deposit; 18 | } 19 | 20 | static from(fee: ApiFee) { 21 | return new this(fee.estimated_min, fee.estimated_max, fee.minimum_coins, fee.deposit); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /wallet/key-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiVerificationKey } from "../models"; 2 | 3 | export class KeyWallet implements ApiVerificationKey { 4 | key: any; 5 | role: KeyRoleEnum; 6 | constructor(key: any, role: KeyRoleEnum) { 7 | this.key = key; 8 | this.role = role; 9 | } 10 | } 11 | 12 | export enum KeyRoleEnum { 13 | AddressExternal = 'utxo_external', 14 | AddressInternal = 'utxo_internal', 15 | Stake = 'mutable_account', 16 | Script = 'multisig_script', 17 | 18 | } -------------------------------------------------------------------------------- /wallet/maintenance-action-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiMaintenanceAction, ApiMaintenanceActionGcStakePools } from "../models"; 2 | 3 | export class MaintenanceActionWallet implements ApiMaintenanceAction { 4 | gc_stake_pools: ApiMaintenanceActionGcStakePools; 5 | 6 | constructor(gc_stake_pools: ApiMaintenanceActionGcStakePools) { 7 | this.gc_stake_pools = gc_stake_pools; 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /wallet/stakepool-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiStakePool, ApiStakePoolFlagsEnum, StakepoolsCost, StakepoolsMargin, StakepoolsMetadata, StakepoolsMetrics, StakepoolsPledge, StakepoolsRetirement } from "../models"; 2 | 3 | export class StakePoolWallet implements ApiStakePool { 4 | id: any; 5 | metrics: StakepoolsMetrics; 6 | cost: StakepoolsCost; 7 | margin: StakepoolsMargin; 8 | pledge: StakepoolsPledge; 9 | metadata?: StakepoolsMetadata; 10 | retirement?: StakepoolsRetirement; 11 | flags: ApiStakePoolFlagsEnum[]; 12 | 13 | 14 | constructor(id: any, metrics: StakepoolsMetrics, cost: StakepoolsCost, margin: StakepoolsMargin, pledge: StakepoolsPledge, metadata: StakepoolsMetadata, retirement: StakepoolsRetirement, flags: ApiStakePoolFlagsEnum[]) { 15 | this.id = id; 16 | this.metrics = metrics; 17 | this.cost = cost; 18 | this.margin = margin; 19 | this.pledge = pledge; 20 | this.metadata = metadata; 21 | this.retirement = retirement; 22 | this.flags = flags; 23 | } 24 | 25 | static from(apiStakePool: ApiStakePool) { 26 | return new this(apiStakePool.id, apiStakePool.metrics, apiStakePool.cost, apiStakePool.margin, apiStakePool.pledge, apiStakePool.metadata, apiStakePool.retirement, apiStakePool.flags); 27 | } 28 | } -------------------------------------------------------------------------------- /wallet/token-wallet.ts: -------------------------------------------------------------------------------- 1 | import { NativeScript } from "@emurgo/cardano-serialization-lib-nodejs"; 2 | import { Bip32KeyPair } from "../utils"; 3 | import { AssetWallet } from "./asset-wallet"; 4 | 5 | export class TokenWallet { 6 | asset: AssetWallet; 7 | script?: NativeScript; 8 | scriptKeyPairs?: Bip32KeyPair[]; 9 | 10 | constructor(asset: AssetWallet, script?: NativeScript, scriptKeyPairs?: Bip32KeyPair[]) { 11 | this.asset = asset; 12 | this.script = script; 13 | this.scriptKeyPairs = scriptKeyPairs; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /wallet/utxo-statistics-wallet.ts: -------------------------------------------------------------------------------- 1 | import { ApiWalletUTxOsStatistics, ApiWalletUTxOsStatisticsScaleEnum, WalletswalletIdpaymentfeesAmount } from "../models"; 2 | 3 | export class UtxoStatisticsWallet implements ApiWalletUTxOsStatistics { 4 | total: WalletswalletIdpaymentfeesAmount; 5 | scale: ApiWalletUTxOsStatisticsScaleEnum; 6 | distribution: any; 7 | 8 | 9 | constructor(total: WalletswalletIdpaymentfeesAmount, scale: ApiWalletUTxOsStatisticsScaleEnum, distribution: any) { 10 | this.total = total; 11 | this.scale = scale; 12 | this.distribution = distribution; 13 | } 14 | 15 | static from(utxoStatistics: ApiWalletUTxOsStatistics) { 16 | return new this(utxoStatistics.total, utxoStatistics.scale, utxoStatistics.distribution); 17 | } 18 | 19 | } --------------------------------------------------------------------------------