Skip to content

Commit

Permalink
Retrieve chain and sender of wormchain originated vaas (#678)
Browse files Browse the repository at this point in the history
* Add additional information for osmosis transaction through wormchain

Co-authored-by: walker-16 <agpazos85@gmail.com>

* Modify tx-tracker deployment

Co-authored-by: walker-16 <agpazos85@gmail.com>

---------

Co-authored-by: walker-16 <agpazos85@gmail.com>
  • Loading branch information
ftocal and walker-16 committed Sep 4, 2023
1 parent a525a1f commit 5e3adeb
Show file tree
Hide file tree
Showing 17 changed files with 413 additions and 14 deletions.
17 changes: 12 additions & 5 deletions api/handlers/transactions/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,21 @@ type GlobalTransactionDoc struct {
DestinationTx *DestinationTx `bson:"destinationTx" json:"destinationTx"`
}

// OriginTx representa a origin transaction.
// OriginTx represents a origin transaction.
type OriginTx struct {
TxHash string `bson:"nativeTxHash" json:"txHash"`
From string `bson:"from" json:"from"`
Status string `bson:"status" json:"status"`
TxHash string `bson:"nativeTxHash" json:"txHash"`
From string `bson:"from" json:"from"`
Status string `bson:"status" json:"status"`
Attribute *AttributeDoc `bson:"attribute" json:"attribute"`
}

// DestinationTx representa a destination transaction.
// AttributeDoc represents a custom attribute for a origin transaction.
type AttributeDoc struct {
Type string `bson:"type" json:"type"`
Value map[string]any `bson:"value" json:"value"`
}

// DestinationTx represents a destination transaction.
type DestinationTx struct {
ChainID sdk.ChainID `bson:"chainId" json:"chainId"`
Status string `bson:"status" json:"status"`
Expand Down
7 changes: 7 additions & 0 deletions deploy/tx-tracker/env/production-mainnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RESOURCES_REQUESTS_MEMORY=128Mi
RESOURCES_REQUESTS_CPU=250m
SQS_URL=
SQS_AWS_REGION=
P2P_NETWORK=mainnet
AWS_IAM_ROLE=
METRICS_ENABLED=true

Expand Down Expand Up @@ -62,6 +63,9 @@ OASIS_REQUESTS_PER_MINUTE=12
OPTIMISM_BASE_URL=https://rpc.ankr.com/optimism
OPTIMISM_REQUESTS_PER_MINUTE=12

OSMOSIS_BASE_URL=https://rpc.osmosis.zone
OSMOSIS_REQUESTS_PER_MINUTE=12

POLYGON_BASE_URL=https://rpc.ankr.com/polygon
POLYGON_REQUESTS_PER_MINUTE=12

Expand All @@ -77,5 +81,8 @@ TERRA_REQUESTS_PER_MINUTE=12
TERRA2_BASE_URL=https://phoenix-lcd.terra.dev
TERRA2_REQUESTS_PER_MINUTE=12

WORMCHAIN_BASE_URL=https://wormchain.jumpisolated.com
WORMCHAIN_REQUESTS_PER_MINUTE=12

XPLA_BASE_URL=https://dimension-lcd.xpla.dev
XPLA_REQUESTS_PER_MINUTE=12
7 changes: 7 additions & 0 deletions deploy/tx-tracker/env/production-testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RESOURCES_REQUESTS_MEMORY=15Mi
RESOURCES_REQUESTS_CPU=10m
SQS_URL=
SQS_AWS_REGION=
P2P_NETWORK=testnet
AWS_IAM_ROLE=
METRICS_ENABLED=true

Expand Down Expand Up @@ -60,6 +61,9 @@ OASIS_REQUESTS_PER_MINUTE=12
OPTIMISM_BASE_URL=https://goerli.optimism.io
OPTIMISM_REQUESTS_PER_MINUTE=12

OSMOSIS_BASE_URL=https://rpc.testnet.osmosis.zone
OSMOSIS_REQUESTS_PER_MINUTE=12

POLYGON_BASE_URL=https://rpc.ankr.com/polygon_mumbai
POLYGON_REQUESTS_PER_MINUTE=12

Expand All @@ -75,5 +79,8 @@ TERRA_REQUESTS_PER_MINUTE=12
TERRA2_BASE_URL=https://pisco-lcd.terra.dev
TERRA2_REQUESTS_PER_MINUTE=12

WORMCHAIN_BASE_URL=https://wormchain-testnet.jumpisolated.com
WORMCHAIN_REQUESTS_PER_MINUTE=12

XPLA_BASE_URL=https://cube-lcd.xpla.dev:443
XPLA_REQUESTS_PER_MINUTE=12
7 changes: 7 additions & 0 deletions deploy/tx-tracker/env/staging-mainnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RESOURCES_REQUESTS_MEMORY=15Mi
RESOURCES_REQUESTS_CPU=40m
SQS_URL=
SQS_AWS_REGION=
P2P_NETWORK=mainnet
AWS_IAM_ROLE=
METRICS_ENABLED=true

Expand Down Expand Up @@ -62,6 +63,9 @@ OASIS_REQUESTS_PER_MINUTE=12
OPTIMISM_BASE_URL=https://rpc.ankr.com/optimism
OPTIMISM_REQUESTS_PER_MINUTE=12

OSMOSIS_BASE_URL=https://rpc.osmosis.zone
OSMOSIS_REQUESTS_PER_MINUTE=12

POLYGON_BASE_URL=https://rpc.ankr.com/polygon
POLYGON_REQUESTS_PER_MINUTE=12

Expand All @@ -77,5 +81,8 @@ TERRA_REQUESTS_PER_MINUTE=12
TERRA2_BASE_URL=https://phoenix-lcd.terra.dev
TERRA2_REQUESTS_PER_MINUTE=12

WORMCHAIN_BASE_URL=https://wormchain.jumpisolated.com
WORMCHAIN_REQUESTS_PER_MINUTE=12

XPLA_BASE_URL=https://dimension-lcd.xpla.dev
XPLA_REQUESTS_PER_MINUTE=12
7 changes: 7 additions & 0 deletions deploy/tx-tracker/env/staging-testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RESOURCES_REQUESTS_MEMORY=15Mi
RESOURCES_REQUESTS_CPU=10m
SQS_URL=
SQS_AWS_REGION=
P2P_NETWORK=testnet
AWS_IAM_ROLE=
METRICS_ENABLED=true

Expand Down Expand Up @@ -60,6 +61,9 @@ OASIS_REQUESTS_PER_MINUTE=12
OPTIMISM_BASE_URL=https://goerli.optimism.io
OPTIMISM_REQUESTS_PER_MINUTE=12

OSMOSIS_BASE_URL=https://rpc.testnet.osmosis.zone
OSMOSIS_REQUESTS_PER_MINUTE=12

POLYGON_BASE_URL=https://rpc.ankr.com/polygon_mumbai
POLYGON_REQUESTS_PER_MINUTE=12

Expand All @@ -75,5 +79,8 @@ TERRA_REQUESTS_PER_MINUTE=12
TERRA2_BASE_URL=https://pisco-lcd.terra.dev
TERRA2_REQUESTS_PER_MINUTE=12

WORMCHAIN_BASE_URL=https://wormchain-testnet.jumpisolated.com
WORMCHAIN_REQUESTS_PER_MINUTE=12

XPLA_BASE_URL=https://cube-lcd.xpla.dev:443
XPLA_REQUESTS_PER_MINUTE=12
10 changes: 10 additions & 0 deletions deploy/tx-tracker/tx-tracker-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ spec:
value: {{ .SQS_URL }}
- name: AWS_REGION
value: {{ .SQS_AWS_REGION }}
- name: P2P_NETWORK
value: {{ .P2P_NETWORK }}
- name: METRICS_ENABLED
value: "{{ .METRICS_ENABLED }}"
- name: ACALA_BASE_URL
Expand Down Expand Up @@ -126,6 +128,10 @@ spec:
value: {{ .OPTIMISM_BASE_URL }}
- name: OPTIMISM_REQUESTS_PER_MINUTE
value: "{{ .OPTIMISM_REQUESTS_PER_MINUTE }}"
- name: OSMOSIS_BASE_URL
value: {{ .OSMOSIS_BASE_URL }}
- name: OSMOSIS_REQUESTS_PER_MINUTE
value: "{{ .OSMOSIS_REQUESTS_PER_MINUTE }}"
- name: POLYGON_BASE_URL
value: {{ .POLYGON_BASE_URL }}
- name: POLYGON_REQUESTS_PER_MINUTE
Expand All @@ -146,6 +152,10 @@ spec:
value: {{ .TERRA2_BASE_URL }}
- name: TERRA2_REQUESTS_PER_MINUTE
value: "{{ .TERRA2_REQUESTS_PER_MINUTE }}"
- name: WORMCHAIN_BASE_URL
value: {{ .WORMCHAIN_BASE_URL }}
- name: WORMCHAIN_REQUESTS_PER_MINUTE
value: "{{ .WORMCHAIN_REQUESTS_PER_MINUTE }}"
- name: XPLA_BASE_URL
value: {{ .XPLA_BASE_URL }}
- name: XPLA_REQUESTS_PER_MINUTE
Expand Down
File renamed without changes.
Loading

0 comments on commit 5e3adeb

Please sign in to comment.