-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage/consensus: Add index for transaction type
- Loading branch information
Showing
6 changed files
with
26 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/consensus/transactions: Add index for transaction type | ||
|
||
Additionally remove `minFee`, `maxFee` and `code` query filters. These | ||
were not all that useful, and also don't have the necessary indexes | ||
set to be usable in practice. |
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 |
---|---|---|
|
@@ -238,23 +238,6 @@ paths: | |
type: string | ||
description: A filter on related accounts. | ||
example: *staking_address_1 | ||
- in: query | ||
name: minFee | ||
schema: | ||
allOf: [$ref: '#/components/schemas/TextBigInt'] | ||
description: A filter on minimum transaction fee, inclusive. | ||
example: "1000" | ||
- in: query | ||
name: maxFee | ||
schema: | ||
allOf: [$ref: '#/components/schemas/TextBigInt'] | ||
description: A filter on maximum transaction fee, inclusive. | ||
example: "100000000000000000000000" | ||
- in: query | ||
name: code | ||
schema: | ||
type: integer | ||
description: A filter on transaction status code. | ||
- in: query | ||
name: after | ||
schema: | ||
|
@@ -1128,7 +1111,7 @@ paths: | |
- in: path | ||
name: address | ||
required: true | ||
schema: | ||
schema: | ||
allOf: [$ref: '#/components/schemas/EthOrOasisAddress'] | ||
description: The staking address of the account to return. | ||
responses: | ||
|
@@ -1530,8 +1513,8 @@ components: | |
type: object | ||
description: The method call body. This spec does not encode the many possible types; | ||
instead, see [the Go API](https://pkg.go.dev/github.com/oasisprotocol/oasis-core/go) of oasis-core. | ||
This object will conform to one of the types passed to variable instantiations using `NewMethodName` | ||
two levels down the hierarchy, e.g. `MethodTransfer` from `oasis-core/go/staking/api` seen | ||
This object will conform to one of the types passed to variable instantiations using `NewMethodName` | ||
two levels down the hierarchy, e.g. `MethodTransfer` from `oasis-core/go/staking/api` seen | ||
[here](https://pkg.go.dev/github.com/oasisprotocol/oasis-core/[email protected]/staking/api#pkg-variables). | ||
example: *tx_body_1 | ||
success: | ||
|
@@ -1561,9 +1544,9 @@ components: | |
This field, like `code` and `module`, can represent an error that originated | ||
anywhere in the paratime, i.e. either inside or outside a smart contract. | ||
A common special case worth calling out: When the paratime is | ||
EVM-compatible (e.g. Emerald or Sapphire) and the error originates | ||
inside a smart contract (using `revert` in solidity), the following | ||
A common special case worth calling out: When the paratime is | ||
EVM-compatible (e.g. Emerald or Sapphire) and the error originates | ||
inside a smart contract (using `revert` in solidity), the following | ||
will be true: | ||
- `module` will be "evm" and `code` will be 8; see [here](https://github.com/oasisprotocol/oasis-sdk/blob/runtime-sdk/v0.8.3/runtime-sdk/modules/evm/src/lib.rs#L128) for other possible errors in the `evm` module. | ||
- `message` will contain the best-effort human-readable revert reason. | ||
|
@@ -1573,12 +1556,12 @@ components: | |
allOf: [$ref: '#/components/schemas/EvmAbiParam'] | ||
description: | | ||
The error parameters, as decoded using the contract abi. Present only when | ||
- the error originated from within a smart contract (e.g. via `revert` in Solidity), and | ||
- the error originated from within a smart contract (e.g. via `revert` in Solidity), and | ||
- the contract is verified or the revert reason is a plain String. | ||
If this field is present, `message` will include the name of the error, e.g. 'InsufficentBalance'. | ||
Note that users should be cautious when evaluating error data since the | ||
data origin is not tracked and error information can be faked. | ||
ConsensusEventType: | ||
type: string | ||
enum: | ||
|
@@ -2424,13 +2407,13 @@ components: | |
This object will conform to one of the `*Event` types two levels down | ||
the hierarchy (e.g. `MintEvent` from `accounts > Event > MintEvent`), | ||
OR `evm > Event`. For object fields that specify an oasis-style address, Nexus | ||
will add a field specifying the corresponding Ethereum address, if known. Currently, | ||
will add a field specifying the corresponding Ethereum address, if known. Currently, | ||
the only such possible fields are `from_eth`, `to_eth`, and `owner_eth`. | ||
evm_log_name: | ||
type: string | ||
description: | | ||
If the event type is `evm.log`, this field describes the human-readable type of | ||
evm event, e.g. `Transfer`. | ||
If the event type is `evm.log`, this field describes the human-readable type of | ||
evm event, e.g. `Transfer`. | ||
Absent if the event type is not `evm.log`. | ||
example: 'Transfer' | ||
evm_log_params: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
BEGIN; | ||
|
||
CREATE INDEX ix_transactions_method ON chain.transactions (method); | ||
|
||
COMMIT; |