-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALL-4914 - Add missing Fantom models for L1
- Loading branch information
Showing
24 changed files
with
1,012 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
packages/api-client/src/generated/models/CallFantomSmartContractMethod.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
30 changes: 30 additions & 0 deletions
30
packages/api-client/src/generated/models/CallFantomSmartContractMethodCaller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
47 changes: 47 additions & 0 deletions
47
packages/api-client/src/generated/models/CallFantomSmartContractMethodKMS.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/api-client/src/generated/models/CallFantomSmartContractReadMethod.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/api-client/src/generated/models/Error403FantomBep20NotFound.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
packages/api-client/src/generated/models/Error403FantomBep20Set.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/api-client/src/generated/models/Error403FantomBep20Unsupported.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/api-client/src/generated/models/Error403FantomBroadcast.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/api-client/src/generated/models/Error403FantomErc20TxSign.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/api-client/src/generated/models/Error403FantomGasCalculation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
packages/api-client/src/generated/models/Error403FantomGasPrice.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/api-client/src/generated/models/Error403FantomMnemonicPrivateKey.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
packages/api-client/src/generated/models/Error403FantomScBody.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
packages/api-client/src/generated/models/Error403FantomTxBody.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
packages/api-client/src/generated/models/Error403FantomTxHash.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
packages/api-client/src/generated/models/Error403FantomTxSign.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.