Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Extra/rest 2.5] add relayer stat #297

Merged
merged 7 commits into from
Sep 28, 2023

Conversation

satawatnack
Copy link
Member

@satawatnack satawatnack commented Mar 20, 2023

Implementation details

ADD IBC relayer stat to support this implementation

Table relayer_tx_stat_days

Column 1 Type
date CustomDate PK
port String PK, FK
channel String PK, FK
address String PK
ibc_received_txs Integer
last_update_at CustomDateTime

Note:

CREATE TABLE RELAYER_TX_STAT_DAYS(
  DATE DATE NOT NULL,
  PORT VARCHAR (20) NOT NULL,
  CHANNEL VARCHAR (20) NOT NULL,
  ADDRESS  VARCHAR (255) NOT NULL,
  IBC_RECEIVED_TXS INT,
  LAST_UPDATE_AT TIMESTAMP,
  CONSTRAINT PK_RELAYER_STATS PRIMARY KEY (DATE,PORT,CHANNEL,ADDRESS),
  FOREIGN KEY (PORT,CHANNEL) REFERENCES CHANNELS(PORT,CHANNEL)
);

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@satawatnack satawatnack changed the base branch from master to extra-rest/v2.4.x March 20, 2023 10:12
@satawatnack satawatnack changed the base branch from extra-rest/v2.4.x to extra-rest-24-channels March 20, 2023 10:13
@RogerKSI RogerKSI changed the title Extra rest/v2.4.x add relayer stat [Extra/rest 2.4] add relayer stat Mar 21, 2023
@satawatnack satawatnack marked this pull request as ready for review March 21, 2023 06:07
Base automatically changed from extra-rest-24-channels to extra-rest/v2.4.x April 12, 2023 10:15
@RogerKSI RogerKSI changed the base branch from extra-rest/v2.4.x to extra-rest/v2.5.x April 20, 2023 12:57
@RogerKSI RogerKSI changed the title [Extra/rest 2.4] add relayer stat [Extra/rest 2.5] add relayer stat Apr 20, 2023
@RogerKSI
Copy link
Contributor

Note: merge after chain upgrade v2.5.

@RogerKSI RogerKSI marked this pull request as draft April 20, 2023 14:58
@satawatnack satawatnack requested a review from RogerKSI April 24, 2023 11:33
@RogerKSI RogerKSI marked this pull request as ready for review April 28, 2023 04:56
@RogerKSI RogerKSI force-pushed the extra-rest/v2.4.x-add-relayer-stat branch from 70e29af to a6a068d Compare September 27, 2023 03:37
@RogerKSI
Copy link
Contributor

LGTM. let me test on testnet.

@RogerKSI RogerKSI merged commit 5fa7ef9 into extra-rest/v2.5.x Sep 28, 2023
2 checks passed
@RogerKSI RogerKSI deleted the extra-rest/v2.4.x-add-relayer-stat branch September 28, 2023 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants