-
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.
- Loading branch information
Showing
83 changed files
with
1,893 additions
and
73 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
10 changes: 10 additions & 0 deletions
10
packages/api-client/src/generated/models/AvalancheBalance.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,10 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
export type AvalancheBalance = { | ||
/** | ||
* Balance in AVAX | ||
*/ | ||
balance?: string; | ||
} |
78 changes: 78 additions & 0 deletions
78
packages/api-client/src/generated/models/AvalancheBlock.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,78 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { AvalancheTx } from './AvalancheTx'; | ||
|
||
export type AvalancheBlock = { | ||
/** | ||
* 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<AvalancheTx>; | ||
/** | ||
* The root of the transaction trie of the block. | ||
*/ | ||
transactionsRoot?: string; | ||
} |
22 changes: 22 additions & 0 deletions
22
packages/api-client/src/generated/models/AvalancheEstimateGas.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,22 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
export type AvalancheEstimateGas = { | ||
/** | ||
* Sender address. | ||
*/ | ||
from: string; | ||
/** | ||
* Blockchain address to send assets | ||
*/ | ||
to: string; | ||
/** | ||
* Amount to be sent in Avalanche. | ||
*/ | ||
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
103
packages/api-client/src/generated/models/AvalancheTx.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,103 @@ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
export type AvalancheTx = { | ||
/** | ||
* 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; | ||
}>; | ||
} |
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
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
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
44 changes: 44 additions & 0 deletions
44
packages/api-client/src/generated/models/CallAvalancheSmartContractMethod.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 CallAvalancheSmartContractMethod = { | ||
/** | ||
* 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 Avalanche 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; | ||
}; | ||
} |
Oops, something went wrong.