Skip to content

Commit

Permalink
ALL-4914 - Add missing Fantom models for L1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Jun 27, 2024
1 parent 6e40516 commit 5b9df7a
Show file tree
Hide file tree
Showing 24 changed files with 1,012 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CallFantomSmartContractMethod = {
/**
* 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 Fantom 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 CallFantomSmartContractMethodCaller = {
/**
* 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 CallFantomSmartContractMethodKMS = {
/**
* 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 Fantom 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 CallFantomSmartContractReadMethod = {
/**
* 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>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomBep20NotFound = {
/**
* erc20.token.notFound
*/
errorCode: string;
/**
* No such ERC20 currency ${name}.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 18 additions & 0 deletions packages/api-client/src/generated/models/Error403FantomBep20Set.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomBep20Set = {
/**
* erc20.address.set
*/
errorCode: string;
/**
* ERC20 address was already set.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomBep20Unsupported = {
/**
* fantom.bep20.unsupported
*/
errorCode: string;
/**
* Unsupported FTM ERC20 blockchain.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomBroadcast = {
/**
* fantom.broadcast.failed
*/
errorCode: string;
/**
* Unable to broadcast transaction due to ${error}.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomErc20TxSign = {
/**
* fantom.bep20.sign
*/
errorCode: string;
/**
* Unable to sign transaction for contract creation. ${error}
*/
message: string;
/**
* 403
*/
statusCode: number;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomGasCalculation = {
/**
* fantom.transaction.gas
*/
errorCode: string;
/**
* Unable to calculate gas limit for transaction. ${error}
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 18 additions & 0 deletions packages/api-client/src/generated/models/Error403FantomGasPrice.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomGasPrice = {
/**
* gas.price.failed
*/
errorCode: string;
/**
* Unable to obtain current GAS price.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomMnemonicPrivateKey = {
/**
* private.mnemonic.missing
*/
errorCode: string;
/**
* Either mnemonic and index or private key must be present.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 18 additions & 0 deletions packages/api-client/src/generated/models/Error403FantomScBody.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomScBody = {
/**
* fantom.sc.invalid
*/
errorCode: string;
/**
* Invalid parameters for smart contract invocation.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 18 additions & 0 deletions packages/api-client/src/generated/models/Error403FantomTxBody.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomTxBody = {
/**
* fantom.transaction.body
*/
errorCode: string;
/**
* Either currency, or tokenAddress must be defined.
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 18 additions & 0 deletions packages/api-client/src/generated/models/Error403FantomTxHash.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomTxHash = {
/**
* fantom.transaction.hash
*/
errorCode: string;
/**
* Unable to calculate transaction hash. ${error}
*/
message: string;
/**
* 403
*/
statusCode: number;
}
18 changes: 18 additions & 0 deletions packages/api-client/src/generated/models/Error403FantomTxSign.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Error403FantomTxSign = {
/**
* fantom.transaction.sign
*/
errorCode: string;
/**
* Unable to sign transaction. ${error}
*/
message: string;
/**
* 403
*/
statusCode: number;
}
10 changes: 10 additions & 0 deletions packages/api-client/src/generated/models/FantomBalance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type FantomBalance = {
/**
* Balance in FTM
*/
balance?: string;
}
Loading

0 comments on commit 5b9df7a

Please sign in to comment.