Skip to content

Commit

Permalink
ALL-6219 - Added AVAX to l1 (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel authored May 6, 2024
1 parent e72e102 commit b2cf321
Show file tree
Hide file tree
Showing 83 changed files with 1,893 additions and 73 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.71",
"version": "2.2.72",
"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 @@ -46,6 +46,10 @@ export type { ApproveTransferCustodialWallet } from './models/ApproveTransferCus
export type { ApproveTransferCustodialWalletCelo } from './models/ApproveTransferCustodialWalletCelo';
export type { ApproveTransferCustodialWalletCeloKMS } from './models/ApproveTransferCustodialWalletCeloKMS';
export type { ApproveTransferCustodialWalletKMS } from './models/ApproveTransferCustodialWalletKMS';
export type { AvalancheBalance } from './models/AvalancheBalance';
export type { AvalancheBlock } from './models/AvalancheBlock';
export type { AvalancheEstimateGas } from './models/AvalancheEstimateGas';
export type { AvalancheTx } from './models/AvalancheTx';
export type { BalanceItem } from './models/BalanceItem';
export type { BaseBalance } from './models/BaseBalance';
export type { BaseBlock } from './models/BaseBlock';
Expand Down Expand Up @@ -142,6 +146,10 @@ export type { BuyAssetOnMarketplaceSolana } from './models/BuyAssetOnMarketplace
export type { BuyAssetOnMarketplaceSolanaKMS } from './models/BuyAssetOnMarketplaceSolanaKMS';
export type { BuyAssetOnMarketplaceTron } from './models/BuyAssetOnMarketplaceTron';
export type { BuyAssetOnMarketplaceTronKMS } from './models/BuyAssetOnMarketplaceTronKMS';
export type { CallAvalancheSmartContractMethod } from './models/CallAvalancheSmartContractMethod';
export type { CallAvalancheSmartContractMethodCaller } from './models/CallAvalancheSmartContractMethodCaller';
export type { CallAvalancheSmartContractMethodKMS } from './models/CallAvalancheSmartContractMethodKMS';
export type { CallAvalancheSmartContractReadMethod } from './models/CallAvalancheSmartContractReadMethod';
export type { CallBaseSmartContractMethod } from './models/CallBaseSmartContractMethod';
export type { CallBaseSmartContractMethodCaller } from './models/CallBaseSmartContractMethodCaller';
export type { CallBaseSmartContractMethodKMS } from './models/CallBaseSmartContractMethodKMS';
Expand Down Expand Up @@ -389,6 +397,18 @@ export type { Error403AddressNotFound } from './models/Error403AddressNotFound';
export type { Error403AddressUsed } from './models/Error403AddressUsed';
export type { Error403AddressXpub } from './models/Error403AddressXpub';
export type { Error403AmountFormat } from './models/Error403AmountFormat';
export type { Error403AvalancheBep20NotFound } from './models/Error403AvalancheBep20NotFound';
export type { Error403AvalancheBep20Set } from './models/Error403AvalancheBep20Set';
export type { Error403AvalancheBep20Unsupported } from './models/Error403AvalancheBep20Unsupported';
export type { Error403AvalancheBroadcast } from './models/Error403AvalancheBroadcast';
export type { Error403AvalancheErc20TxSign } from './models/Error403AvalancheErc20TxSign';
export type { Error403AvalancheGasCalculation } from './models/Error403AvalancheGasCalculation';
export type { Error403AvalancheGasPrice } from './models/Error403AvalancheGasPrice';
export type { Error403AvalancheMnemonicPrivateKey } from './models/Error403AvalancheMnemonicPrivateKey';
export type { Error403AvalancheScBody } from './models/Error403AvalancheScBody';
export type { Error403AvalancheTxBody } from './models/Error403AvalancheTxBody';
export type { Error403AvalancheTxHash } from './models/Error403AvalancheTxHash';
export type { Error403AvalancheTxSign } from './models/Error403AvalancheTxSign';
export type { Error403BaseBep20NotFound } from './models/Error403BaseBep20NotFound';
export type { Error403BaseBep20Set } from './models/Error403BaseBep20Set';
export type { Error403BaseBep20Unsupported } from './models/Error403BaseBep20Unsupported';
Expand Down Expand Up @@ -704,6 +724,7 @@ export type { GenerateCustodialWalletCeloKMS } from './models/GenerateCustodialW
export type { GenerateCustodialWalletKMS } from './models/GenerateCustodialWalletKMS';
export type { GenerateCustodialWalletTron } from './models/GenerateCustodialWalletTron';
export type { GenerateCustodialWalletTronKMS } from './models/GenerateCustodialWalletTronKMS';
export type { GeneratedAddressAvalanche } from './models/GeneratedAddressAvalanche';
export type { GeneratedAddressBase } from './models/GeneratedAddressBase';
export type { GeneratedAddressBsc } from './models/GeneratedAddressBsc';
export type { GeneratedAddressBtc } from './models/GeneratedAddressBtc';
Expand Down Expand Up @@ -906,6 +927,8 @@ export type { TransferAlgoErc20 } from './models/TransferAlgoErc20';
export type { TransferAlgoKMS } from './models/TransferAlgoKMS';
export type { TransferAlgorandBlockchain } from './models/TransferAlgorandBlockchain';
export type { TransferAlgorandBlockchainKMS } from './models/TransferAlgorandBlockchainKMS';
export type { TransferAvalancheBlockchain } from './models/TransferAvalancheBlockchain';
export type { TransferAvalancheBlockchainKMS } from './models/TransferAvalancheBlockchainKMS';
export type { TransferBaseBlockchain } from './models/TransferBaseBlockchain';
export type { TransferBaseBlockchainKMS } from './models/TransferBaseBlockchainKMS';
export type { TransferBchKeyPair } from './models/TransferBchKeyPair';
Expand Down Expand Up @@ -1124,6 +1147,7 @@ export type { XrpWallet } from './models/XrpWallet';
export { AccountService } from './services/AccountService';
export { AlgorandService } from './services/AlgorandService';
export { AuctionService } from './services/AuctionService';
export { AvalancheService } from './services/AvalancheService';
export { BaseService } from './services/BaseService';
export { BitcoinService } from './services/BitcoinService';
export { BitcoinCashService } from './services/BitcoinCashService';
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' | 'CRO' | 'BASE';
chain: 'ETH' | 'MATIC' | 'KCS' | 'KLAY' | 'CELO' | 'ONE' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
/**
* 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' | 'CRO' | 'BASE';
chain: 'BSC' | 'CELO' | 'ETH' | 'KLAY' | 'KCS' | 'MATIC' | 'ONE' | 'ZEN' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
/**
* 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' | 'CRO' | 'BASE';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'ONE' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
/**
* The address of the smart contract
*/
Expand Down
10 changes: 10 additions & 0 deletions packages/api-client/src/generated/models/AvalancheBalance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type AvalancheBalance = {
/**
* Balance in AVAX
*/
balance?: string;
}
78 changes: 78 additions & 0 deletions packages/api-client/src/generated/models/AvalancheBlock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

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

export type AvalancheBlock = {
/**
* Difficulty for this block.
*/
difficulty?: string;
/**
* The 'extra data' field of this block.
*/
extraData?: string;
/**
* The maximum gas allowed in this block.
*/
gasLimit?: number;
/**
* The total used gas by all transactions in this block.
*/
gasUsed?: number;
/**
* Hash of the block. 'null' when its pending block.
*/
hash?: string;
/**
* The bloom filter for the logs of the block. 'null' when its pending block.
*/
logsBloom?: string;
/**
* The address of the beneficiary to whom the mining rewards were given.
*/
miner?: string;
mixHash?: string;
/**
* Hash of the generated proof-of-work. 'null' when its pending block.
*/
nonce?: string;
/**
* The block number. 'null' when its pending block.
*/
number?: number;
/**
* Hash of the parent block.
*/
parentHash?: string;
receiptsRoot?: string;
/**
* SHA3 of the uncles data in the block.
*/
sha3Uncles?: string;
/**
* The size of this block in bytes.
*/
size?: number;
/**
* The root of the final state trie of the block.
*/
stateRoot?: string;
/**
* The unix timestamp for when the block was collated.
*/
timestamp?: number;
/**
* Total difficulty of the chain until this block.
*/
totalDifficulty?: string;
/**
* Array of transactions.
*/
transactions?: Array<AvalancheTx>;
/**
* The root of the transaction trie of the block.
*/
transactionsRoot?: string;
}
22 changes: 22 additions & 0 deletions packages/api-client/src/generated/models/AvalancheEstimateGas.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type AvalancheEstimateGas = {
/**
* Sender address.
*/
from: string;
/**
* Blockchain address to send assets
*/
to: string;
/**
* Amount to be sent in Avalanche.
*/
amount: string;
/**
* Additional data that can be passed to a blockchain transaction as a data property; must be in the hexadecimal format
*/
data?: string;
}
103 changes: 103 additions & 0 deletions packages/api-client/src/generated/models/AvalancheTx.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type AvalancheTx = {
/**
* Hash of the block where this transaction was in.
*/
blockHash?: string;
/**
* TRUE if the transaction was successful, FALSE, if the EVM reverted the transaction.
*/
status?: boolean;
/**
* Block number where this transaction was in.
*/
blockNumber?: number;
/**
* Address of the sender.
*/
from?: string;
/**
* Gas provided by the sender.
*/
gas?: number;
/**
* Gas price provided by the sender in wei.
*/
gasPrice?: string;
/**
* Hash of the transaction.
*/
transactionHash?: string;
/**
* The data sent along with the transaction.
*/
input?: string;
/**
* The number of transactions made by the sender prior to this one.
*/
nonce?: number;
/**
* Address of the receiver. 'null' when its a contract creation transaction.
*/
to?: string;
/**
* Integer of the transactions index position in the block.
*/
transactionIndex?: number;
/**
* Value transferred in wei.
*/
value?: string;
/**
* The amount of gas used by this specific transaction alone.
*/
gasUsed?: number;
/**
* The total amount of gas used when this transaction was executed in the block.
*/
cumulativeGasUsed?: number;
/**
* The contract address created, if the transaction was a contract creation, otherwise null.
*/
contractAddress?: string;
/**
* Log events, that happened in this transaction.
*/
logs?: Array<{
/**
* From which this event originated from.
*/
address?: string;
/**
* An array with max 4 32 Byte topics, topic 1-3 contains indexed parameters of the log.
*/
topics?: Array<string>;
/**
* The data containing non-indexed log parameter.
*/
data?: string;
/**
* Integer of the event index position in the block.
*/
logIndex?: number;
/**
* Block number where this transaction was in.
*/
blockNumber?: number;
/**
* Hash of the block.
*/
blockHash?: string;
/**
* Integer of the transaction’s index position, the event was created in.
*/
transactionIndex?: number;
/**
* Hash of the transaction this event was created in.
*/
transactionHash?: string;
}>;
}
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' | 'CRO' | 'BASE';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
/**
* 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' | 'CRO' | 'BASE';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
/**
* 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' | 'CRO' | 'BASE';
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
/**
* 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 CallAvalancheSmartContractMethod = {
/**
* 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 Avalanche 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;
};
}
Loading

0 comments on commit b2cf321

Please sign in to comment.