Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALL-4895 Add Cronos L1 #1073

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.52",
"version": "2.2.53",
"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.

24 changes: 24 additions & 0 deletions packages/api-client/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ export type { CallBscSmartContractReadMethod } from './models/CallBscSmartContra
export type { CallCeloReadSmartContractMethod } from './models/CallCeloReadSmartContractMethod';
export type { CallCeloSmartContractMethod } from './models/CallCeloSmartContractMethod';
export type { CallCeloSmartContractMethodKMS } from './models/CallCeloSmartContractMethodKMS';
export type { CallCronosSmartContractMethod } from './models/CallCronosSmartContractMethod';
export type { CallCronosSmartContractMethodCaller } from './models/CallCronosSmartContractMethodCaller';
export type { CallCronosSmartContractMethodKMS } from './models/CallCronosSmartContractMethodKMS';
export type { CallCronosSmartContractReadMethod } from './models/CallCronosSmartContractReadMethod';
export type { CallEthSmartContractMethodCaller } from './models/CallEthSmartContractMethodCaller';
export type { CallFlareSmartContractMethod } from './models/CallFlareSmartContractMethod';
export type { CallFlareSmartContractMethodCaller } from './models/CallFlareSmartContractMethodCaller';
Expand Down Expand Up @@ -263,6 +267,10 @@ export type { CreateTronTrc20Blockchain } from './models/CreateTronTrc20Blockcha
export type { CreateTronTrc20BlockchainKMS } from './models/CreateTronTrc20BlockchainKMS';
export type { CreateXlmAsset } from './models/CreateXlmAsset';
export type { CreateXrpAsset } from './models/CreateXrpAsset';
export type { CronosBalance } from './models/CronosBalance';
export type { CronosBlock } from './models/CronosBlock';
export type { CronosEstimateGas } from './models/CronosEstimateGas';
export type { CronosTx } from './models/CronosTx';
export type { Cursor } from './models/Cursor';
export type { CustodialManagedAddress } from './models/CustodialManagedAddress';
export type { Customer } from './models/Customer';
Expand Down Expand Up @@ -407,6 +415,18 @@ export type { Error403CeloGasCalculation } from './models/Error403CeloGasCalcula
export type { Error403CeloTxBody } from './models/Error403CeloTxBody';
export type { Error403ComplianceBtc } from './models/Error403ComplianceBtc';
export type { Error403ComplianceEth } from './models/Error403ComplianceEth';
export type { Error403CronosBep20NotFound } from './models/Error403CronosBep20NotFound';
export type { Error403CronosBep20Set } from './models/Error403CronosBep20Set';
export type { Error403CronosBep20Unsupported } from './models/Error403CronosBep20Unsupported';
export type { Error403CronosBroadcast } from './models/Error403CronosBroadcast';
export type { Error403CronosErc20TxSign } from './models/Error403CronosErc20TxSign';
export type { Error403CronosGasCalculation } from './models/Error403CronosGasCalculation';
export type { Error403CronosGasPrice } from './models/Error403CronosGasPrice';
export type { Error403CronosMnemonicPrivateKey } from './models/Error403CronosMnemonicPrivateKey';
export type { Error403CronosScBody } from './models/Error403CronosScBody';
export type { Error403CronosTxBody } from './models/Error403CronosTxBody';
export type { Error403CronosTxHash } from './models/Error403CronosTxHash';
export type { Error403CronosTxSign } from './models/Error403CronosTxSign';
export type { Error403CustomerActive } from './models/Error403CustomerActive';
export type { Error403CustomerDeactivateActiveAccounts } from './models/Error403CustomerDeactivateActiveAccounts';
export type { Error403CustomerDisabled } from './models/Error403CustomerDisabled';
Expand Down Expand Up @@ -666,6 +686,7 @@ export type { GenerateCustodialWalletTron } from './models/GenerateCustodialWall
export type { GenerateCustodialWalletTronKMS } from './models/GenerateCustodialWalletTronKMS';
export type { GeneratedAddressBsc } from './models/GeneratedAddressBsc';
export type { GeneratedAddressBtc } from './models/GeneratedAddressBtc';
export type { GeneratedAddressCronos } from './models/GeneratedAddressCronos';
export type { GeneratedAddressEth } from './models/GeneratedAddressEth';
export type { GeneratedAddressFlare } from './models/GeneratedAddressFlare';
export type { GeneratedAddressMatic } from './models/GeneratedAddressMatic';
Expand Down Expand Up @@ -886,6 +907,8 @@ export type { TransferCeloBlockchain } from './models/TransferCeloBlockchain';
export type { TransferCeloBlockchainKMS } from './models/TransferCeloBlockchainKMS';
export type { TransferCeloKMS } from './models/TransferCeloKMS';
export type { TransferCeloMnemonic } from './models/TransferCeloMnemonic';
export type { TransferCronosBlockchain } from './models/TransferCronosBlockchain';
export type { TransferCronosBlockchainKMS } from './models/TransferCronosBlockchainKMS';
export type { TransferCustodialWallet } from './models/TransferCustodialWallet';
export type { TransferCustodialWalletBatch } from './models/TransferCustodialWalletBatch';
export type { TransferCustodialWalletBatchCelo } from './models/TransferCustodialWalletBatchCelo';
Expand Down Expand Up @@ -1089,6 +1112,7 @@ export { BnbBeaconChainService } from './services/BnbBeaconChainService';
export { BnbSmartChainService } from './services/BnbSmartChainService';
export { CardanoService } from './services/CardanoService';
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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type AddMultiTokenMinter = {
/**
* Chain to work with.
*/
chain: 'ETH' | 'MATIC' | 'KCS' | 'KLAY' | 'CELO' | 'ONE' | 'BSC' | 'FLR';
chain: 'ETH' | 'MATIC' | 'KCS' | 'KLAY' | 'CELO' | 'ONE' | 'BSC' | 'FLR' | 'CRO';
/**
* Address of MultiToken token
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/AddNftMinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type AddNftMinter = {
/**
* The blockchain to work with
*/
chain: 'BSC' | 'CELO' | 'ETH' | 'KLAY' | 'KCS' | 'MATIC' | 'ONE' | 'ZEN' | 'FLR';
chain: 'BSC' | 'CELO' | 'ETH' | 'KLAY' | 'KCS' | 'MATIC' | 'ONE' | 'ZEN' | 'FLR' | 'CRO';
/**
* The blockchain address of the NFT smart contract
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/ApproveErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ApproveErc20 = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'ONE' | 'FLR';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'ONE' | 'FLR' | 'CRO';
/**
* The address of the smart contract
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/BurnMultiToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type BurnMultiToken = {
/**
* Chain to work with.
*/
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO';
/**
* Address of holder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type BurnMultiTokenBatch = {
/**
* Chain to work with.
*/
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO';
/**
* Address of holder
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/BurnNft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type BurnNft = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR';
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR' | 'CRO';
/**
* The ID of the NFT to burn
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CallCronosSmartContractMethod = {
/**
* The address of the smart contract
*/
contractAddress: string;
/**
* Amount of the assets to be sent.
*/
amount?: string;
/**
* Name of the method to invoke on smart contract.
*/
methodName: string;
/**
* ABI of the method to invoke.
*/
methodABI: any;
params: Array<string>;
/**
* Private key of sender address. Private key, or signature Id must be present.
*/
fromPrivateKey: string;
/**
* Nonce to be set to Cronos transaction. If not present, last known nonce will be used.
*/
nonce?: number;
/**
* Custom defined fee. If not present, it will be calculated automatically.
*/
fee?: {
/**
* Gas limit for transaction in gas price.
*/
gasLimit: string;
/**
* Gas price in Gwei.
*/
gasPrice: string;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { CustomFee } from './CustomFee';

export type CallCronosSmartContractMethodCaller = {
/**
* The address of the account, which will be sender and fee payer of this transaction
*/
caller: string;
/**
* The address of the smart contract
*/
contractAddress: string;
/**
* Amount of the assets to be sent.
*/
amount?: string;
/**
* Name of the method to invoke on smart contract.
*/
methodName: string;
/**
* ABI of the method to invoke.
*/
methodABI: any;
params: Array<string>;
fee?: CustomFee;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CallCronosSmartContractMethodKMS = {
/**
* The address of the smart contract
*/
contractAddress: string;
/**
* Name of the method to invoke on smart contract.
*/
methodName: string;
/**
* ABI of the method to invoke.
*/
methodABI: any;
/**
* Parameters of the method to be invoked.
*/
params: Array<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 Cronos transaction. If not present, last known nonce will be used.
*/
nonce?: number;
/**
* Custom defined fee. If not present, it will be calculated automatically.
*/
fee?: {
/**
* Gas limit for transaction in gas price.
*/
gasLimit: string;
/**
* Gas price in Gwei.
*/
gasPrice: string;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CallCronosSmartContractReadMethod = {
/**
* The address of the smart contract
*/
contractAddress: string;
/**
* Name of the method to invoke on smart contract.
*/
methodName: string;
/**
* ABI of the method to invoke.
*/
methodABI: any;
params: Array<string>;
}
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/ChainBurnErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ChainBurnErc20 = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO';
/**
* Amount of tokens to be destroyed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ChainDeployErc20 = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO';
/**
* Symbol of the ERC20 token
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/ChainMintErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type ChainMintErc20 = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO';
/**
* Amount to be minted and transferred to the recipient.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ChainTransferEthErc20 = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO';
/**
* The blockchain address to send the fungible tokens to
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type CreateSubscriptionContractLogEvent = {
/**
* The blockchain on which events should be monitored.
*/
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR';
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR' | 'CRO';
/**
* The URL of the endpoint where an HTTP POST request will be sent when the block where the events from the smart contracts are reflected gets completed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type CreateSubscriptionMultiTokenTransferEvent = {
/**
* The blockchain on which events should be monitored.
*/
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR';
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR' | 'CRO';
/**
* The URL of the endpoint where an HTTP POST request will be sent when the block where the events from the smart contracts are reflected gets completed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type CreateSubscriptionNftTransferEvent = {
/**
* The blockchain on which events should be monitored.
*/
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR';
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR' | 'CRO';
/**
* The URL of the endpoint where an HTTP POST request will be sent when the block where the events from the smart contracts are reflected gets completed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type CreateSubscriptionNotification = {
/**
* Blockchain of the address.
*/
chain: 'SOL' | 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BTC' | 'LTC' | 'BCH' | 'DOGE' | 'TRON' | 'BSC' | 'FLR';
chain: 'SOL' | 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BTC' | 'LTC' | 'BCH' | 'DOGE' | 'TRON' | 'BSC' | 'FLR' | 'CRO';
/**
* URL of the endpoint, where HTTP POST request will be sent, when transaction is detected on the address.
*/
Expand Down
10 changes: 10 additions & 0 deletions packages/api-client/src/generated/models/CronosBalance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CronosBalance = {
/**
* Balance in CRO
*/
balance?: string;
}
Loading
Loading