Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "9.1.2"
version = "9.2.0"
edition = "2021"

[lib]
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ CREATE TABLE request(
network_id INTEGER NOT NULL,
provider VARCHAR(40) NOT NULL,
sequence INTEGER NOT NULL,
created_at INTEGER NOT NULL,
last_updated_at INTEGER NOT NULL,
created_at BIGINT NOT NULL,
last_updated_at BIGINT NOT NULL,
state VARCHAR(10) NOT NULL,
request_block_number INTEGER NOT NULL,
request_tx_hash VARCHAR(64) NOT NULL,
Expand All @@ -16,9 +16,11 @@ CREATE TABLE request(
info TEXT,
gas_used VARCHAR(100),
gas_limit VARCHAR(100) NOT NULL,
callback_failed INTEGER,
callback_return_value VARCHAR,
callback_gas_used VARCHAR(100),
PRIMARY KEY (network_id, sequence, provider, request_tx_hash)
);

CREATE INDEX request__network_id__state__created_at ON request(network_id, state, created_at);
CREATE INDEX request__network_id__created_at ON request(network_id, created_at);
CREATE INDEX request__sender__network_id__state__created_at ON request(sender, network_id, state, created_at);
Expand All @@ -31,6 +33,7 @@ CREATE INDEX request__sequence__state__created_at ON request(sequence, state, cr
CREATE INDEX request__sequence__created_at ON request(sequence, created_at);
CREATE INDEX request__state__created_at ON request(state, created_at);
CREATE INDEX request__created_at ON request(created_at);

CREATE INDEX request__request_tx_hash ON request (request_tx_hash) WHERE request_tx_hash IS NOT NULL;
CREATE INDEX request__reveal_tx_hash ON request (reveal_tx_hash) WHERE reveal_tx_hash IS NOT NULL;
CREATE INDEX request__request_tx_hash ON request (request_tx_hash)
WHERE request_tx_hash IS NOT NULL;
CREATE INDEX request__reveal_tx_hash ON request (reveal_tx_hash)
WHERE reveal_tx_hash IS NOT NULL;
1 change: 1 addition & 0 deletions apps/fortuna/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub enum RequestEntryState {
/// the error code and any additional returned data. Note that "" often indicates an out-of-gas error.
/// If the callback returns more than 256 bytes, only the first 256 bytes of the callback return value are included.
/// NOTE: This field is the raw bytes returned from the callback, not hex-decoded. The client should decode it as needed.
#[schema(example = "0x4e487b710000000000000000000000000000000000000000000000000000000000000011", value_type = String)]
callback_return_value: Bytes,
/// How much gas the callback used.
#[schema(example = "567890", value_type = String)]
Expand Down