Skip to content

Commit

Permalink
ALL-6466: ethers revert, openapi schema build
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislavjadavan committed May 6, 2024
1 parent c61afea commit b17429a
Show file tree
Hide file tree
Showing 18 changed files with 83 additions and 92 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"dedent-js": "^1.0.1",
"ed25519-hd-key": "^1.2.0",
"ethereumjs-wallet": "^1.0.2",
"ethers": "^6.12.1",
"ethers": "^5.5.4",
"form-data": "^4.0.0",
"hdkey": "^2.0.1",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/api_schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/ChainEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* tslint:disable */
/* eslint-disable */

export type ChainEnum = 'ethereum' | 'ethereum-sepolia' | 'celo' | 'celo-testnet' | 'bsc' | 'bsc-testnet' | 'polygon' | 'polygon-amoy' | 'eon' | 'chiliz';
export type ChainEnum = 'ethereum' | 'ethereum-sepolia' | 'ethereum-holesky' | 'celo' | 'celo-testnet' | 'bsc' | 'bsc-testnet' | 'polygon' | 'eon' | 'chiliz';
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* tslint:disable */
/* eslint-disable */

export type ChainEnumExtended = 'ethereum' | 'ethereum-sepolia' | 'celo' | 'celo-testnet' | 'bsc' | 'bsc-testnet' | 'polygon' | 'polygon-amoy' | 'tezos' | 'eon' | 'chiliz';
export type ChainEnumExtended = 'ethereum' | 'ethereum-sepolia' | 'celo' | 'celo-testnet' | 'bsc' | 'bsc-testnet' | 'polygon' | 'tezos' | 'eon' | 'chiliz';
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' | 'CRO';
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* 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' | 'CRO';
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* 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' | 'CRO';
chain: 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* 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' | 'CRO';
chain: 'SOL' | 'ETH' | 'MATIC' | 'CELO' | 'KLAY' | 'BTC' | 'LTC' | 'BCH' | 'DOGE' | 'TRON' | 'BSC' | 'FLR' | 'CRO' | 'BASE';
/**
* URL of the endpoint, where HTTP POST request will be sent, when transaction is detected on the address.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* tslint:disable */
/* eslint-disable */

export type NodeRpcGetChains = 'algorand-testnet-algod' | 'algorand-mainnet-algod' | 'algorand-testnet-indexer' | 'algorand-mainnet-indexer' | 'egld-mainnet' | 'egld-testnet' | 'lisk-mainnet' | 'lisk-testnet' | 'stellar-mainnet' | 'stellar-testnet' | 'tezos-mainnet' | 'tezos-testnet' | 'tron-mainnet' | 'tron-testnet' | 'flow-mainnet' | 'flow-testnet' | 'bnb-mainnet' | 'bnb-testnet';
export type NodeRpcGetChains = 'algorand-testnet-algod' | 'algorand-mainnet-algod' | 'algorand-testnet-indexer' | 'algorand-mainnet-indexer' | 'egld-mainnet' | 'egld-testnet' | 'lisk-mainnet' | 'lisk-testnet' | 'stellar-mainnet' | 'stellar-testnet' | 'tezos-mainnet' | 'tezos-testnet' | 'tron-mainnet' | 'tron-testnet' | 'flow-mainnet' | 'flow-testnet' | 'bnb-mainnet' | 'bnb-testnet' | 'kadena-mainnet' | 'kadena-testnet' | 'iota-mainnet';
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/* tslint:disable */
/* eslint-disable */

export type NodeRpcPostChains = 'ethereum-sepolia' | 'ethereum-mainnet' | 'ethereum-holesky' | 'polygon-amoy' | 'polygon-mainnet' | 'klaytn-baobab' | 'klaytn-cypress' | 'solana-devnet' | 'solana-mainnet' | 'celo-mainnet' | 'celo-testnet' | 'lisk-mainnet' | 'lisk-testnet' | 'algorand-testnet-algod' | 'algorand-mainnet-algod' | 'algorand-testnet-indexer' | 'algorand-mainnet-indexer' | 'bitcoin-mainnet' | 'bitcoin-testnet' | 'litecoin-core-mainnet' | 'litecoin-core-testnet' | 'kcs-testnet' | 'kcs-mainnet' | 'cardano-preprod' | 'cardano-mainnet' | 'vechain-testnet' | 'vechain-mainnet' | 'ripple-mainnet' | 'ripple-testnet' | 'flare-mainnet' | 'flare-coston' | 'flare-coston2' | 'flare-songbird' | 'flow-mainnet' | 'flow-testnet' | 'xdc-mainnet' | 'xdc-testnet' | 'tron-mainnet' | 'tron-testnet' | 'bsc-mainnet' | 'bsc-testnet' | 'bch-mainnet' | 'bch-testnet' | 'stellar-mainnet' | 'stellar-testnet' | 'bnb-mainnet' | 'bnb-testnet' | 'egld-mainnet' | 'egld-testnet' | 'doge-mainnet' | 'doge-testnet' | 'one-mainnet-s0' | 'one-testnet-s0' | 'eos-mainnet' | 'eos-testnet' | 'avax-mainnet' | 'avax-testnet' | 'avax-x-mainnet' | 'avax-x-testnet' | 'avax-p-mainnet' | 'avax-p-testnet' | 'fantom-mainnet' | 'fantom-testnet' | 'arb-nova-mainnet' | 'arb-one-mainnet' | 'arb-testnet' | 'optimism-mainnet' | 'optimism-testnet' | 'near-mainnet' | 'near-testnet' | 'cro-mainnet' | 'cro-testnet' | 'rsk-mainnet' | 'rsk-testnet' | 'aurora-mainnet' | 'aurora-testnet' | 'gno-mainnet' | 'gno-testnet' | 'dot-mainnet' | 'dot-testnet' | 'ksm-mainnet' | 'ksm-testnet' | 'oasis-mainnet' | 'oasis-testnet' | 'tezos-mainnet' | 'tezos-testnet' | 'zcash-mainnet' | 'zcash-testnet' | 'palm-mainnet' | 'palm-testnet' | 'zilliqa-mainnet' | 'zilliqa-testnet' | 'ethereum-classic-mainnet';
export type NodeRpcPostChains = 'ethereum-sepolia' | 'ethereum-mainnet' | 'ethereum-holesky' | 'polygon-amoy' | 'polygon-mainnet' | 'klaytn-baobab' | 'klaytn-cypress' | 'solana-devnet' | 'solana-mainnet' | 'celo-mainnet' | 'celo-testnet' | 'lisk-mainnet' | 'lisk-testnet' | 'algorand-testnet-algod' | 'algorand-mainnet-algod' | 'algorand-testnet-indexer' | 'algorand-mainnet-indexer' | 'bitcoin-mainnet' | 'bitcoin-testnet' | 'litecoin-core-mainnet' | 'litecoin-core-testnet' | 'kcs-testnet' | 'kcs-mainnet' | 'cardano-preprod' | 'cardano-mainnet' | 'vechain-testnet' | 'vechain-mainnet' | 'ripple-mainnet' | 'ripple-testnet' | 'flare-mainnet' | 'flare-coston' | 'flare-coston2' | 'flare-songbird' | 'flow-mainnet' | 'flow-testnet' | 'xdc-mainnet' | 'xdc-testnet' | 'tron-mainnet' | 'tron-testnet' | 'bsc-mainnet' | 'bsc-testnet' | 'bch-mainnet' | 'bch-testnet' | 'stellar-mainnet' | 'stellar-testnet' | 'bnb-mainnet' | 'bnb-testnet' | 'egld-mainnet' | 'egld-testnet' | 'doge-mainnet' | 'doge-testnet' | 'one-mainnet-s0' | 'one-testnet-s0' | 'eos-mainnet' | 'eos-testnet' | 'avax-mainnet' | 'avax-testnet' | 'avax-x-mainnet' | 'avax-x-testnet' | 'avax-p-mainnet' | 'avax-p-testnet' | 'fantom-mainnet' | 'fantom-testnet' | 'arb-nova-mainnet' | 'arb-one-mainnet' | 'arb-testnet' | 'optimism-mainnet' | 'optimism-testnet' | 'near-mainnet' | 'near-testnet' | 'cro-mainnet' | 'cro-testnet' | 'rsk-mainnet' | 'rsk-testnet' | 'aurora-mainnet' | 'aurora-testnet' | 'gno-mainnet' | 'gno-testnet' | 'dot-mainnet' | 'dot-testnet' | 'ksm-mainnet' | 'ksm-testnet' | 'oasis-mainnet' | 'oasis-testnet' | 'tezos-mainnet' | 'tezos-testnet' | 'zcash-mainnet' | 'zcash-testnet' | 'palm-mainnet' | 'palm-testnet' | 'zilliqa-mainnet' | 'zilliqa-testnet' | 'ethereum-classic-mainnet' | 'ethereum-classic-testnet' | 'base-mainnet' | 'base-sepolia' | 'chiliz-mainnet' | 'chiliz-testnet' | 'kadena-mainnet' | 'kadena-testnet' | 'rostrum-mainnet' | 'cosmos-mainnet' | 'haqq-mainnet' | 'haqq-testnet' | 'eon-mainnet' | 'eon-testnet' | 'iota-mainnet';
4 changes: 4 additions & 0 deletions packages/api-client/src/generated/models/XrpTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export type XrpTx = {
* Recipient account address.
*/
Destination?: string;
/**
* The DestinationTag is used to distinguish transactions sent to accounts that serve multiple users.
*/
DestinationTag?: number;
/**
* Integer amount of XRP, in drops, to be destroyed as a cost for distributing this transaction to the network. Some transaction types have different minimum requirements.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class BitcoinService {
/**
* Get all transactions for a Bitcoin address
* <p><b>1 credit per API call</b></p>
* <p>Get all transactions for a Bitcoin address.</p>
* <p>Get all transactions for a Bitcoin address. Returns also transactions that are in mempool and haven't been included in a block. In that case blockNumber has a null value.</p>
*
* @param address Address
* @param pageSize Max number of items per page is 50.
Expand Down
52 changes: 27 additions & 25 deletions packages/api-client/src/generated/services/DataApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class DataApiService {
* <p>Get all NFTs (ERC-721 and ERC-1155) and multitokens (ERC-1155 only) of your favorite collections! Our API lets you search for all tokens on:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Horizen EON - eon-mainnet</li>
Expand Down Expand Up @@ -104,9 +104,9 @@ export class DataApiService {
* <p>Get metadata of NFTs (ERC-721 and ERC-1155) or multitokens (ERC-1155 only) by IDs for a given token address! Our API lets you search for all tokens on:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* </ul>
Expand Down Expand Up @@ -159,9 +159,9 @@ export class DataApiService {
* <p>Get balances of fungible tokens (ERC-20), NFTs (ERC-721 and ERC-1155) or multitokens (ERC-1155 only) for a specific wallet address on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Tezos - tezos-mainnet</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
Expand Down Expand Up @@ -235,9 +235,9 @@ export class DataApiService {
* <p>Get all addresses that own your favorite token (ERC-20, ERC-721 or ERC-1155)! Our API lets you search for all token owners on:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* </ul>
Expand Down Expand Up @@ -287,9 +287,9 @@ export class DataApiService {
* <p>Check if wallet address owns any specified token (ERC-20, ERC-721 or ERC-1155) on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* </ul>
Expand Down Expand Up @@ -337,9 +337,9 @@ export class DataApiService {
* <p>Get transactions on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Tezos - tezos-mainnet</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
Expand All @@ -352,7 +352,7 @@ export class DataApiService {
* <li>For Tezos blockchain, the API accepts only one wallet address in <code>addresses</code> query parameter. Following query parameters won't have any effect on filtering data: <code>transactionTypes</code>, <code>transactionSubtype</code>, <code>tokenId</code>, <code>blockTo</code>.</li>
* <li>When querying Tezos transactions for a specified wallet or contract address, pagination is supported via <code>pageSize</code> and <code>offset</code> query parameters.
* <li>When querying Tezos transactions for a specified block, pagination is supported via <code>cursor</code> query parameter, by filling in the value from <code>prevPage</code> or <code>nextPage</code> field in the response body.</li>
* <li><b>When you are filtering data using blockFrom and not using blockTo, query might take longer time to finish. It is always recommended to use both filters blockFrom and blockTo.</b></li>
* <li><b>When you are filtering data using blockFrom and not using blockTo, blockTo is automatically added as blockFrom + 1000. The same applies when blockTo is present and blockFrom is not. In that case blockFrom is automatically added as blockTo - 1000.</b></li>
* </ul>
*
* @param chain The blockchain to work with.
Expand All @@ -366,8 +366,8 @@ export class DataApiService {
* @param transactionSubtype The option to filter transaction based on subtype.
* @param tokenAddress Address of a token (smart contract).
* @param tokenId ID of a token.
* @param blockFrom Transactions from this block onwards will be included.
* @param blockTo Transactions up to this block will be included.
* @param blockFrom Transactions from this block onwards will be included. If blockTo is not specified, it is automatically calculated as blockFrom + 1000.
* @param blockTo Transactions up to this block will be included. If blockFrom is not specified, it is automatically calculated as blockTo - 1000.
* @param pageSize The number of items per page (default is 50).
* @param offset The offset to obtain next page of the data.
* @param cursor The cursor to obtain previous page or next page of the data. Available only for Tezos blockchain.
Expand Down Expand Up @@ -431,9 +431,9 @@ export class DataApiService {
* <p>Get transactions by hash on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Tezos - tezos-mainnet</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
Expand Down Expand Up @@ -475,9 +475,9 @@ export class DataApiService {
* <p>Get all events on given addresses and / or in the requested block range on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* </ul>
Expand All @@ -486,6 +486,7 @@ export class DataApiService {
* <li>To improve response times and obtain specific data, it is recommended to use proper filtering techniques. Please provide a chain name and a combination of filters that will accomplish this (at least block range or contract addresses must be specified).</li>
* <li>It is possible to specify multiple contract addresses at once by passing them as a comma separated string.</li>
* <li>If block range is not specified, the API attempts to go through all available blocks, which may result in a timeout error.</li>
* <li>When you are filtering data using blockFrom and not using blockTo, blockTo is automatically added as blockFrom + 1000. The same applies when blockTo is present and blockFrom is not. In that case blockFrom is automatically added as blockTo - 1000.</li>
* <li>It is recommended to filter only one specific type of events, which comes with built-in decoding for all the supported types.</li>
* <li>It is, however, also possible to filter by signature hashes, which can be passed together as a comma separated string.</li>
* </ul>
Expand Down Expand Up @@ -553,9 +554,9 @@ export class DataApiService {
* <p>Get information about blocks (when they were added, how many NFTs and events were ingested and list of transaction hashes that were processed within them) on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* </ul>
Expand All @@ -564,6 +565,7 @@ export class DataApiService {
* <li>List of block numbers separated by comma</li>
* <li>Range of block numbers</li>
* <li>Date range when blocks were processed</li>
* <li>When you are filtering data using blockFrom and not using blockTo, blockTo is automatically added as blockFrom + 1000. The same applies when blockTo is present and blockFrom is not. In that case blockFrom is automatically added as blockTo - 1000.</li>
* </ul>
*
* @param chain The blockchain to work with.
Expand Down Expand Up @@ -615,9 +617,9 @@ export class DataApiService {
* <p>Get information about latest added block on the following blockchains:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* </ul>
Expand Down Expand Up @@ -651,9 +653,9 @@ export class DataApiService {
* <p>Get information about your favorite token! Our API lets you search for all tokens on:</p>
* <ul>
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* <li>Tezos - tezos-mainnet</li>
Expand Down Expand Up @@ -799,4 +801,4 @@ export class DataApiService {
});
}

}
}
Loading

0 comments on commit b17429a

Please sign in to comment.