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

Feature/litener #1

Merged
merged 35 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cfab48e
auto init listeners
MarkCherepovskyi Aug 2, 2023
bf556f4
update interface
MarkCherepovskyi Aug 2, 2023
b476a4b
implemen endpoints
MarkCherepovskyi Aug 2, 2023
e473ed1
update db calls
MarkCherepovskyi Aug 2, 2023
b8efcf2
thread safe map
MarkCherepovskyi Aug 2, 2023
4ddd20c
implement init from config and get tx by address from event
MarkCherepovskyi Aug 7, 2023
f32f1ae
update listener
MarkCherepovskyi Aug 7, 2023
da74e01
update db and implement logs decoder
MarkCherepovskyi Aug 11, 2023
cc82b77
hot fix: update db call and modify response
MarkCherepovskyi Aug 14, 2023
506d3b6
add ci
MarkCherepovskyi Aug 14, 2023
715b8b4
update werf ci
MarkCherepovskyi Aug 14, 2023
349c9e5
update ci
MarkCherepovskyi Aug 14, 2023
230ebe6
modify werf
MarkCherepovskyi Aug 14, 2023
094cbe1
modify werf
MarkCherepovskyi Aug 14, 2023
d528e76
modify ci
MarkCherepovskyi Aug 14, 2023
796dc01
Update werf.yaml
alexvarko Aug 14, 2023
df6f1ff
Update werf.yaml
alexvarko Aug 14, 2023
1118a0a
update go version
MarkCherepovskyi Aug 14, 2023
af9e12c
move abi to pkg
MarkCherepovskyi Aug 14, 2023
df544fd
move path to file in config
MarkCherepovskyi Aug 15, 2023
08f4092
update db: add tx from and to
MarkCherepovskyi Aug 21, 2023
f518a7f
get sender, index transactions on destination chain
MarkCherepovskyi Aug 22, 2023
a8fdf9b
style fix, db
MarkCherepovskyi Aug 23, 2023
ecf643a
udpate db and assets
MarkCherepovskyi Aug 23, 2023
7e7e9ef
style fix: func order
MarkCherepovskyi Aug 23, 2023
8edad30
implemnt restart
MarkCherepovskyi Aug 23, 2023
cc5e89c
add response and restart listener
MarkCherepovskyi Aug 24, 2023
e2fe9c2
remove logs
MarkCherepovskyi Aug 24, 2023
9357c85
update modify ticker
MarkCherepovskyi Aug 24, 2023
f386b1e
indexer
MarkCherepovskyi Aug 24, 2023
153a595
update indexer: index all txs
MarkCherepovskyi Aug 25, 2023
edf9042
update werf: remove imports
MarkCherepovskyi Aug 25, 2023
c86b904
modify response
MarkCherepovskyi Aug 25, 2023
7b80f4f
hot fix: update response
MarkCherepovskyi Aug 30, 2023
700555b
hot fix: logs...
MarkCherepovskyi Sep 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,325 changes: 1,325 additions & 0 deletions .goalngci.yml

Large diffs are not rendered by default.

33 changes: 32 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,42 @@ log:
disable_sentry: true

db:
url: db_url
url: postgres://postgres:password@localhost:5432/listener?sslmode=disable

listener:
addr: :8000

networks:
list:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keys

- name: 'Ethereum'
rpc: "https://mainnet.infura.io/v3/5afc5eb6b4424ad39f8c0db22125074a"
- name: 'Polygon'
rpc: "https://polygon-mainnet.infura.io/v3/5afc5eb6b4424ad39f8c0db22125074a"
- name: 'Avalanche'
rpc: "https://avalanche-mainnet.infura.io/v3/5afc5eb6b4424ad39f8c0db22125074a"
- name: 'Goerli'
rpc: "https://goerli.infura.io/v3/5afc5eb6b4424ad39f8c0db22125074a"
- name: 'Sepolia'
rpc: "https://sepolia.infura.io/v3/5afc5eb6b4424ad39f8c0db22125074a"
- name: 'BSC Testnet'
rpc: "https://bsc-testnet.publicnode.com"


api:
endpoint: "https://api.rarify.tokend.io/v1/chains"
auto_init: true

meta_data:
header: "66613161666237613a"
footer: "3b"

chain_listener:
pause_time: 2

#meta_data:
# header: "fa1afb7a:"
# footer: ";a"

cop:
disabled: true
endpoint: "http://..."
Expand Down
25 changes: 25 additions & 0 deletions docs/spec/components/schemas/GetTxList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
allOf:
- $ref: '#/components/schemas/GetTxListKey'
- type: object
required:
- attributes
- relationship
properties:
attributes:
type: object
required:
- transactions
properties:
transactions:
type: array
items:
type: object
$ref: '#/components/schemas/TxBlob'
relationship:
type: object

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be jsonapi

required:
- address:
properties:
address :
type: string
example: 0x1234.....
9 changes: 9 additions & 0 deletions docs/spec/components/schemas/GetTxListKey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
required:
- type
- id
properties:
type:
type: string
enum:
- transactions
15 changes: 15 additions & 0 deletions docs/spec/components/schemas/TxBlob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
type: object
required:
- payment_id
- tx_hash
- recipient
- network
properties:
payment_id:
type: string
recipient:
type: string
tx_hash:
type: string
network:
type: string
Loading