Skip to content

Commit

Permalink
ALL-6897 - Adjust models to new doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed May 29, 2024
1 parent 0b95ca4 commit ba44cdc
Show file tree
Hide file tree
Showing 73 changed files with 1,150 additions and 2,038 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tatumio",
"version": "2.2.74",
"version": "2.2.75",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/api_schema.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions packages/api-client/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export type { CreateAuctionCelo } from './models/CreateAuctionCelo';
export type { CreateAuctionCeloKMS } from './models/CreateAuctionCeloKMS';
export type { CreateAuctionKMS } from './models/CreateAuctionKMS';
export type { CreateBnbAsset } from './models/CreateBnbAsset';
export type { CreateContractAddressLogEventSubscription } from './models/CreateContractAddressLogEventSubscription';
export type { CreateFutureTrade } from './models/CreateFutureTrade';
export type { CreateGasPump } from './models/CreateGasPump';
export type { CreateRecord } from './models/CreateRecord';
Expand Down Expand Up @@ -535,7 +536,6 @@ export type { Error403KlaytnTxBody } from './models/Error403KlaytnTxBody';
export type { Error403KlaytnTxHash } from './models/Error403KlaytnTxHash';
export type { Error403KlaytnTxSign } from './models/Error403KlaytnTxSign';
export type { Error403KMSNotExists } from './models/Error403KMSNotExists';
export type { Error403Libra } from './models/Error403Libra';
export type { Error403OffchainBroadcast } from './models/Error403OffchainBroadcast';
export type { Error403OffchainBroadcastState } from './models/Error403OffchainBroadcastState';
export type { Error403OffchainCancelled } from './models/Error403OffchainCancelled';
Expand Down Expand Up @@ -1163,7 +1163,7 @@ export { CeloService } from './services/CeloService';
export { CronosService } from './services/CronosService';
export { CustodialManagedWalletsService } from './services/CustodialManagedWalletsService';
export { CustomerService } from './services/CustomerService';
export { DataApiService } from './services/DataApiService';
export { DeFiApiService } from './services/DeFiApiService';
export { DepositService } from './services/DepositService';
export { DogecoinService } from './services/DogecoinService';
export { ElrondService } from './services/ElrondService';
Expand All @@ -1182,6 +1182,7 @@ export { LitecoinService } from './services/LitecoinService';
export { MaliciousAddressService } from './services/MaliciousAddressService';
export { MarketplaceService } from './services/MarketplaceService';
export { MultiTokensErc1155OrCompatibleService } from './services/MultiTokensErc1155OrCompatibleService';
export { NftApiService } from './services/NftApiService';
export { NftErc721OrCompatibleService } from './services/NftErc721OrCompatibleService';
export { NodeRpcService } from './services/NodeRpcService';
export { NotificationSubscriptionsService } from './services/NotificationSubscriptionsService';
Expand All @@ -1190,11 +1191,14 @@ export { PolygonService } from './services/PolygonService';
export { ServiceUtilsService } from './services/ServiceUtilsService';
export { SolanaService } from './services/SolanaService';
export { StellarService } from './services/StellarService';
export { TokenApiService } from './services/TokenApiService';
export { TransactionService } from './services/TransactionService';
export { TransactionsApiService } from './services/TransactionsApiService';
export { TronService } from './services/TronService';
export { VeChainService } from './services/VeChainService';
export { VirtualAccountBlockchainFeesService } from './services/VirtualAccountBlockchainFeesService';
export { VirtualCurrencyService } from './services/VirtualCurrencyService';
export { WalletApiService } from './services/WalletApiService';
export { WithdrawalService } from './services/WithdrawalService';
export { XinFinService } from './services/XinFinService';
export { XrpService } from './services/XrpService';
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/CountryCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* tslint:disable */
/* eslint-disable */

export type CountryCode = 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
export type CountryCode = 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BQ' | 'BR' | 'BL' | 'BM' | 'BN' | 'BO' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
12 changes: 6 additions & 6 deletions packages/api-client/src/generated/models/DeployErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ export type DeployErc20 = {
*/
name: string;
/**
* Max supply of ERC20 token.
* Initial supply of ERC20 token. If totalCap is not defined, this supply is max supply.
*/
totalCap?: string;
supply: string;
/**
* Max supply of ERC20 token.
*/
supply: string;
totalCap?: string;
/**
* Number of decimal points
*/
digits: number;
/**
* Address on XDC blockchain, where all created ERC20 tokens will be transferred.
* Address on Ethereum blockchain, where all created ERC20 tokens will be transferred.
*/
address: string;
/**
* Private key of XDC account address, from which the fee for the deployment of ERC20 will be paid. Private key, or signature Id must be present.
* Private key of Ethereum account address, from which the fee for the deployment of ERC20 will be paid. Private key, or signature Id must be present.
*/
fromPrivateKey: string;
/**
* Nonce to be set to XDC transaction. If not present, last known nonce will be used.
* The nonce to be set to the transaction; if not present, the last known nonce will be used
*/
nonce?: number;
/**
Expand Down
16 changes: 6 additions & 10 deletions packages/api-client/src/generated/models/DeployErc20KMS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export type DeployErc20KMS = {
* Name of the ERC20 token
*/
name: string;
/**
* Max supply of ERC20 token.
*/
totalCap?: string;
/**
* Max supply of ERC20 token.
*/
Expand All @@ -24,19 +20,19 @@ export type DeployErc20KMS = {
*/
digits: number;
/**
* Address on XDC blockchain, where all created ERC20 tokens will be transferred.
* Address on Ethereum blockchain, where all created ERC20 tokens will be transferred.
*/
address: string;
/**
* If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
*/
index?: number;
/**
* Identifier of the private key associated in signing application. Private key, or signature Id must be present.
*/
signatureId: string;
/**
* Nonce to be set to XDC transaction. If not present, last known nonce will be used.
* If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
*/
index?: number;
/**
* The nonce to be set to the transaction; if not present, the last known nonce will be used
*/
nonce?: number;
/**
Expand Down
12 changes: 0 additions & 12 deletions packages/api-client/src/generated/models/Error403AddressXpub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,4 @@
/* eslint-disable */

export type Error403AddressXpub = {
/**
* account.xpub.present
*/
errorCode: string;
/**
* Xpub assigned to account, it is not possible to assign address. Use generateAddress method instead.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 0 additions & 18 deletions packages/api-client/src/generated/models/Error403Libra.ts

This file was deleted.

8 changes: 4 additions & 4 deletions packages/api-client/src/generated/models/EthTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type EthTx = {
/**
* Block number where this transaction was in.
*/
blockNumber?: number | null;
blockNumber?: number;
/**
* Address of the sender.
*/
Expand Down Expand Up @@ -52,19 +52,19 @@ export type EthTx = {
/**
* Integer of the transactions index position in the block.
*/
transactionIndex?: number | null;
transactionIndex?: number;
/**
* Value transferred in wei.
*/
value?: string;
/**
* The amount of gas used by this specific transaction alone.
*/
gasUsed?: number | null;
gasUsed?: number;
/**
* The total amount of gas used when this transaction was executed in the block.
*/
cumulativeGasUsed?: number | null;
cumulativeGasUsed?: number;
/**
* The contract address created, if the transaction was a contract creation, otherwise null.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type TransferErc20Blockchain = {
*/
fromPrivateKey: string;
/**
* Nonce to be set to XDC transaction. If not present, last known nonce will be used.
* The nonce to be set to the transaction; if not present, the last known nonce will be used
*/
nonce?: number;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ export type TransferErc20BlockchainKMS = {
* Number of decimal points that ERC20 token has.
*/
digits: number;
/**
* If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
*/
index?: number;
/**
* Identifier of the private key associated in signing application. Private key, or signature Id must be present.
*/
signatureId: string;
/**
* Nonce to be set to XDC transaction. If not present, last known nonce will be used.
* If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
*/
index?: number;
/**
* The nonce to be set to the transaction; if not present, the last known nonce will be used
*/
nonce?: number;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export type TransferFlareBlockchain = {
/**
* Private key of sender address. Private key, or signature Id must be present.
*/
fromPrivateKey: string;
fromPrivateKey?: string;
}
Loading

0 comments on commit ba44cdc

Please sign in to comment.