-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
type: object | ||
$ref: '#/components/schemas/TxBlob' | ||
relationship: | ||
type: object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be jsonapi
config.yaml
Outdated
|
||
listener: | ||
addr: :8000 | ||
|
||
networks: | ||
list: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move all generated files to pkg directory
internal/contract/erc20/erc20.abi
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move all generated files to pkg directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move all generated files to pkg directory
|
||
for _, info := range txHashes { | ||
tx := block.Transaction(info.TxHash) | ||
l.log.Debug(hex.EncodeToString(tx.Data())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some comment to debug log
} | ||
|
||
func (l *ListenData) parsePayloadOnInput(input string, header string, footer string) ([]string, error) { //move to another class | ||
index := strings.Index(input, header) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment on what this function do
} | ||
|
||
func (c *networkconfiger) Network() *Network { | ||
return c.once.Do(func() interface{} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe need to create initially connections(it's a question)
internal/service/core/rarimo/api.go
Outdated
return nil, errors.Wrap(err, "failed to send request") | ||
} | ||
|
||
if resp.StatusCode >= 300 && resp.StatusCode < 500 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5xx are errors too + please log some details also
internal/service/core/rarimo/api.go
Outdated
decodedResponse := new(NetworkListResponse) | ||
|
||
if err := json.NewDecoder(resp.Body).Decode(&decodedResponse); err != nil { | ||
return nil, errors.New("failed to decode response ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrap erorr
PRIMARY KEY (payment_id) | ||
); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add indexes
.goalngci.yml
Outdated
@@ -0,0 +1,1325 @@ | |||
linters-settings: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename file
|
||
} | ||
|
||
func (l *ListenData) run(ctx context.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add debug logs for runner
No description provided.