Skip to content

Commit

Permalink
Feature/all 5628 add base l1 (#1078)
Browse files Browse the repository at this point in the history
* ALL-5628 - Add Base L1

* ALL-5628 - Add Base L1
  • Loading branch information
Hathoriel authored Mar 13, 2024
1 parent e58c666 commit 4befc87
Show file tree
Hide file tree
Showing 77 changed files with 1,805 additions and 40 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.63",
"version": "2.2.64",
"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 @@ -47,6 +47,10 @@ export type { ApproveTransferCustodialWalletCelo } from './models/ApproveTransfe
export type { ApproveTransferCustodialWalletCeloKMS } from './models/ApproveTransferCustodialWalletCeloKMS';
export type { ApproveTransferCustodialWalletKMS } from './models/ApproveTransferCustodialWalletKMS';
export type { BalanceItem } from './models/BalanceItem';
export type { BaseBalance } from './models/BaseBalance';
export type { BaseBlock } from './models/BaseBlock';
export type { BaseEstimateGas } from './models/BaseEstimateGas';
export type { BaseTx } from './models/BaseTx';
export type { BatchCreateTransaction } from './models/BatchCreateTransaction';
export type { BatchTransactionResult } from './models/BatchTransactionResult';
export type { BchBlock } from './models/BchBlock';
Expand Down Expand Up @@ -138,6 +142,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 { CallBaseSmartContractMethod } from './models/CallBaseSmartContractMethod';
export type { CallBaseSmartContractMethodCaller } from './models/CallBaseSmartContractMethodCaller';
export type { CallBaseSmartContractMethodKMS } from './models/CallBaseSmartContractMethodKMS';
export type { CallBaseSmartContractReadMethod } from './models/CallBaseSmartContractReadMethod';
export type { CallBscSmartContractMethod } from './models/CallBscSmartContractMethod';
export type { CallBscSmartContractMethodCaller } from './models/CallBscSmartContractMethodCaller';
export type { CallBscSmartContractMethodKMS } from './models/CallBscSmartContractMethodKMS';
Expand Down Expand Up @@ -381,6 +389,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 { Error403BaseBep20NotFound } from './models/Error403BaseBep20NotFound';
export type { Error403BaseBep20Set } from './models/Error403BaseBep20Set';
export type { Error403BaseBep20Unsupported } from './models/Error403BaseBep20Unsupported';
export type { Error403BaseBroadcast } from './models/Error403BaseBroadcast';
export type { Error403BaseErc20TxSign } from './models/Error403BaseErc20TxSign';
export type { Error403BaseGasCalculation } from './models/Error403BaseGasCalculation';
export type { Error403BaseGasPrice } from './models/Error403BaseGasPrice';
export type { Error403BaseMnemonicPrivateKey } from './models/Error403BaseMnemonicPrivateKey';
export type { Error403BaseScBody } from './models/Error403BaseScBody';
export type { Error403BaseTxBody } from './models/Error403BaseTxBody';
export type { Error403BaseTxHash } from './models/Error403BaseTxHash';
export type { Error403BaseTxSign } from './models/Error403BaseTxSign';
export type { Error403BcashBroadcast } from './models/Error403BcashBroadcast';
export type { Error403BlockageAmount } from './models/Error403BlockageAmount';
export type { Error403BlockageNotExists } from './models/Error403BlockageNotExists';
Expand Down Expand Up @@ -684,6 +704,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 { GeneratedAddressBase } from './models/GeneratedAddressBase';
export type { GeneratedAddressBsc } from './models/GeneratedAddressBsc';
export type { GeneratedAddressBtc } from './models/GeneratedAddressBtc';
export type { GeneratedAddressCronos } from './models/GeneratedAddressCronos';
Expand Down Expand Up @@ -885,6 +906,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 { TransferBaseBlockchain } from './models/TransferBaseBlockchain';
export type { TransferBaseBlockchainKMS } from './models/TransferBaseBlockchainKMS';
export type { TransferBchKeyPair } from './models/TransferBchKeyPair';
export type { TransferBchKMS } from './models/TransferBchKMS';
export type { TransferBchMnemonic } from './models/TransferBchMnemonic';
Expand Down Expand Up @@ -1101,6 +1124,7 @@ export type { XrpWallet } from './models/XrpWallet';
export { AccountService } from './services/AccountService';
export { AlgorandService } from './services/AlgorandService';
export { AuctionService } from './services/AuctionService';
export { BaseService } from './services/BaseService';
export { BitcoinService } from './services/BitcoinService';
export { BitcoinCashService } from './services/BitcoinCashService';
export { BlockchainAddressesService } from './services/BlockchainAddressesService';
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';
chain: 'ETH' | 'MATIC' | 'KCS' | 'KLAY' | 'CELO' | 'ONE' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* 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';
chain: 'BSC' | 'CELO' | 'ETH' | 'KLAY' | 'KCS' | 'MATIC' | 'ONE' | 'ZEN' | 'FLR' | 'CRO' | 'BASE';
/**
* 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';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'ONE' | 'FLR' | 'CRO' | 'BASE';
/**
* The address of the smart contract
*/
Expand Down
10 changes: 10 additions & 0 deletions packages/api-client/src/generated/models/BaseBalance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

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

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

export type BaseBlock = {
/**
* 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<BaseTx>;
/**
* The root of the transaction trie of the block.
*/
transactionsRoot?: string;
}
22 changes: 22 additions & 0 deletions packages/api-client/src/generated/models/BaseEstimateGas.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type BaseEstimateGas = {
/**
* Sender address.
*/
from: string;
/**
* Blockchain address to send assets
*/
to: string;
/**
* Amount to be sent in Base.
*/
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/BaseTx.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type BaseTx = {
/**
* 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';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* 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';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* 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';
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR' | 'CRO' | 'BASE';
/**
* 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 CallBaseSmartContractMethod = {
/**
* 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 Base 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 4befc87

Please sign in to comment.