Skip to content

Commit

Permalink
ALL-6220 - Added Optimism to l1 again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Jun 19, 2024
1 parent 6f4d9a8 commit 6778adc
Show file tree
Hide file tree
Showing 78 changed files with 1,848 additions and 30 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.78",
"version": "2.2.79",
"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.

26 changes: 26 additions & 0 deletions packages/api-client/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export type { BurnNftCelo } from './models/BurnNftCelo';
export type { BurnNftFlowKMS } from './models/BurnNftFlowKMS';
export type { BurnNftFlowMnemonic } from './models/BurnNftFlowMnemonic';
export type { BurnNftFlowPK } from './models/BurnNftFlowPK';
export type { BurnNftKadena } from './models/BurnNftKadena';
export type { BurnNftKMS } from './models/BurnNftKMS';
export type { BurnNftKMSCelo } from './models/BurnNftKMSCelo';
export type { BurnNftKMSTron } from './models/BurnNftKMSTron';
Expand Down Expand Up @@ -179,6 +180,10 @@ export type { CallKlaytnSmartContractReadMethod } from './models/CallKlaytnSmart
export type { CallOneReadSmartContractMethod } from './models/CallOneReadSmartContractMethod';
export type { CallOneSmartContractMethod } from './models/CallOneSmartContractMethod';
export type { CallOneSmartContractMethodKMS } from './models/CallOneSmartContractMethodKMS';
export type { CallOptimismSmartContractMethod } from './models/CallOptimismSmartContractMethod';
export type { CallOptimismSmartContractMethodCaller } from './models/CallOptimismSmartContractMethodCaller';
export type { CallOptimismSmartContractMethodKMS } from './models/CallOptimismSmartContractMethodKMS';
export type { CallOptimismSmartContractReadMethod } from './models/CallOptimismSmartContractReadMethod';
export type { CallPolygonSmartContractMethod } from './models/CallPolygonSmartContractMethod';
export type { CallPolygonSmartContractMethodCaller } from './models/CallPolygonSmartContractMethodCaller';
export type { CallPolygonSmartContractMethodKMS } from './models/CallPolygonSmartContractMethodKMS';
Expand Down Expand Up @@ -554,6 +559,18 @@ export type { Error403OneScBody } from './models/Error403OneScBody';
export type { Error403OneTxBody } from './models/Error403OneTxBody';
export type { Error403OneTxHash } from './models/Error403OneTxHash';
export type { Error403OneTxSign } from './models/Error403OneTxSign';
export type { Error403OptimismBep20NotFound } from './models/Error403OptimismBep20NotFound';
export type { Error403OptimismBep20Set } from './models/Error403OptimismBep20Set';
export type { Error403OptimismBep20Unsupported } from './models/Error403OptimismBep20Unsupported';
export type { Error403OptimismBroadcast } from './models/Error403OptimismBroadcast';
export type { Error403OptimismErc20TxSign } from './models/Error403OptimismErc20TxSign';
export type { Error403OptimismGasCalculation } from './models/Error403OptimismGasCalculation';
export type { Error403OptimismGasPrice } from './models/Error403OptimismGasPrice';
export type { Error403OptimismMnemonicPrivateKey } from './models/Error403OptimismMnemonicPrivateKey';
export type { Error403OptimismScBody } from './models/Error403OptimismScBody';
export type { Error403OptimismTxBody } from './models/Error403OptimismTxBody';
export type { Error403OptimismTxHash } from './models/Error403OptimismTxHash';
export type { Error403OptimismTxSign } from './models/Error403OptimismTxSign';
export type { Error403OrderCurrency1Balance } from './models/Error403OrderCurrency1Balance';
export type { Error403OrderCurrency1CustomerDisabled } from './models/Error403OrderCurrency1CustomerDisabled';
export type { Error403OrderCurrency1Frozen } from './models/Error403OrderCurrency1Frozen';
Expand Down Expand Up @@ -733,6 +750,7 @@ export type { GeneratedAddressEth } from './models/GeneratedAddressEth';
export type { GeneratedAddressFlare } from './models/GeneratedAddressFlare';
export type { GeneratedAddressMatic } from './models/GeneratedAddressMatic';
export type { GeneratedAddressOne } from './models/GeneratedAddressOne';
export type { GeneratedAddressOptimism } from './models/GeneratedAddressOptimism';
export type { GenerateMarketplace } from './models/GenerateMarketplace';
export type { GenerateMarketplaceCelo } from './models/GenerateMarketplaceCelo';
export type { GenerateMarketplaceCeloKMS } from './models/GenerateMarketplaceCeloKMS';
Expand Down Expand Up @@ -804,6 +822,7 @@ export type { MintNftExpressTezos } from './models/MintNftExpressTezos';
export type { MintNftFlowKMS } from './models/MintNftFlowKMS';
export type { MintNftFlowMnemonic } from './models/MintNftFlowMnemonic';
export type { MintNftFlowPK } from './models/MintNftFlowPK';
export type { MintNftKadena } from './models/MintNftKadena';
export type { MintNftKMS } from './models/MintNftKMS';
export type { MintNftKMSCelo } from './models/MintNftKMSCelo';
export type { MintNftKMSTron } from './models/MintNftKMSTron';
Expand Down Expand Up @@ -853,6 +872,10 @@ export type { OneBlockCurrent } from './models/OneBlockCurrent';
export type { OneEstimateGas } from './models/OneEstimateGas';
export type { OneTx } from './models/OneTx';
export type { OneTxLog } from './models/OneTxLog';
export type { OptimismBalance } from './models/OptimismBalance';
export type { OptimismBlock } from './models/OptimismBlock';
export type { OptimismEstimateGas } from './models/OptimismEstimateGas';
export type { OptimismTx } from './models/OptimismTx';
export type { OrderBookSort } from './models/OrderBookSort';
export type { PageSize } from './models/PageSize';
export type { PendingTransaction } from './models/PendingTransaction';
Expand Down Expand Up @@ -1030,6 +1053,8 @@ export type { TransferNftTezos } from './models/TransferNftTezos';
export type { TransferNftTron } from './models/TransferNftTron';
export type { TransferOneBlockchain } from './models/TransferOneBlockchain';
export type { TransferOneBlockchainKMS } from './models/TransferOneBlockchainKMS';
export type { TransferOptimismBlockchain } from './models/TransferOptimismBlockchain';
export type { TransferOptimismBlockchainKMS } from './models/TransferOptimismBlockchainKMS';
export type { TransferPolygonBlockchain } from './models/TransferPolygonBlockchain';
export type { TransferPolygonBlockchainKMS } from './models/TransferPolygonBlockchainKMS';
export type { TransferSol } from './models/TransferSol';
Expand Down Expand Up @@ -1186,6 +1211,7 @@ export { NftApiService } from './services/NftApiService';
export { NftErc721OrCompatibleService } from './services/NftErc721OrCompatibleService';
export { NodeRpcService } from './services/NodeRpcService';
export { NotificationSubscriptionsService } from './services/NotificationSubscriptionsService';
export { OptimismService } from './services/OptimismService';
export { OrderBookService } from './services/OrderBookService';
export { PolygonService } from './services/PolygonService';
export { ServiceUtilsService } from './services/ServiceUtilsService';
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' | 'AVAX';
chain: 'ETH' | 'MATIC' | 'KCS' | 'KLAY' | 'CELO' | 'ONE' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'AVAX';
chain: 'BSC' | 'CELO' | 'ETH' | 'KLAY' | 'KCS' | 'MATIC' | 'ONE' | 'ZEN' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'AVAX';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'ONE' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'AVAX';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'AVAX';
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* The ID of the NFT to burn
*/
Expand Down
22 changes: 22 additions & 0 deletions packages/api-client/src/generated/models/BurnNftKadena.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type BurnNftKadena = {
/**
* The blockchain to work with
*/
chain: 'KADENA';
/**
* ID of token to be destroyed.
*/
tokenId: string;
/**
* The Id of Kadena chain
*/
chainId: string;
/**
* Private key of sender address.
*/
fromPrivateKey: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CallOptimismSmartContractMethod = {
/**
* 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 Optimism 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 CallOptimismSmartContractMethodCaller = {
/**
* 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 CallOptimismSmartContractMethodKMS = {
/**
* 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 Optimism 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 CallOptimismSmartContractReadMethod = {
/**
* 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' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* 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' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'BSC' | 'MATIC' | 'KLAY' | 'XDC' | 'ONE' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* The blockchain address to send the fungible tokens to
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type DeployMultiToken = {
/**
* Chain to work with.
*/
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'ONE' | 'MATIC' | 'KCS' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* URI of the Multi Token token
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/generated/models/DeployNft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type DeployNft = {
/**
* The blockchain to work with
*/
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR' | 'CRO' | 'BASE' | 'AVAX';
chain: 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'ZEN' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM';
/**
* Name of the NFT token
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403OptimismBep20NotFound = {
/**
* erc20.token.notFound
*/
errorCode: string;
/**
* No such ERC20 currency ${name}.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
Loading

0 comments on commit 6778adc

Please sign in to comment.