-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge main to branch since BCF-2612-ChainReader was merged. (#275)
* Logger extraction (#253) Co-authored-by: Jordan Krage <[email protected]> * pkg/services/servicetest: add Run and RunHealthy helpers (#251) * pkg/services/servicetest: remove debug fmt.Println (#259) * Bump MaxAllowedBlocks from 5 to 10 (#260) * pkg/services: add ver & sha params to HealthChecker (#265) * Utils extraction from chainlink repo (#256) * Adjust price scaling factor from 1e8 => 1e18 (#266) * Adjust price scaling factor from 1e8 => 1e18 * Adjust price scaling from 1e8 => 1e18 - Reference: MERC-1771 * Add mathutil (#267) Co-authored-by: Jordan Krage <[email protected]> Co-authored-by: Dmytro Haidashenko <[email protected]> * pkg/reportingplugins: remove; move mercury to chainlink-data-streams (#240) * Add minimal ChainReader interface & types (#196) Co-authored-by: Jordan Krage <[email protected]> Co-authored-by: Ryan Tinianov <[email protected]> Co-authored-by: ilija42 <[email protected]> * Bump action to get relay renamed to common changes (#272) * . --------- Co-authored-by: Dimitris Grigoriou <[email protected]> Co-authored-by: Jordan Krage <[email protected]> Co-authored-by: Sam <[email protected]> Co-authored-by: Dmytro Haidashenko <[email protected]> Co-authored-by: Domino Valdano <[email protected]> Co-authored-by: ilija42 <[email protected]> Co-authored-by: Tate <[email protected]>
- Loading branch information
1 parent
edbb7de
commit 1a40c33
Showing
92 changed files
with
1,407 additions
and
6,320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ godoc: | |
|
||
PHONY: install-protoc | ||
install-protoc: | ||
script/install-protoc.sh 24.2 / | ||
script/install-protoc.sh 25.1 / | ||
go install google.golang.org/protobuf/cmd/[email protected]; go install google.golang.org/grpc/cmd/[email protected] | ||
|
||
.PHONY: mockery | ||
|
@@ -26,4 +26,4 @@ generate: mockery install-protoc | |
.PHONY: golangci-lint | ||
golangci-lint: ## Run golangci-lint for all issues. | ||
[ -d "./golangci-lint" ] || mkdir ./golangci-lint && \ | ||
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.55.2 golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 > ./golangci-lint/$(shell date +%Y-%m-%d_%H:%M:%S).txt | ||
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.55.2 golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 > ./golangci-lint/$(shell date +%Y-%m-%d_%H:%M:%S).txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
//go:build trace | ||
|
||
package logger | ||
|
||
const tracePrefix = "[trace] " | ||
|
||
func Trace(l Logger, args ...interface{}) { | ||
switch t := l.(type) { | ||
case *logger: | ||
t.DPanic(args...) | ||
return | ||
} | ||
c, ok := l.(interface { | ||
Trace(args ...interface{}) | ||
}) | ||
if ok { | ||
c.Trace(args...) | ||
return | ||
} | ||
l.Error(append([]any{tracePrefix}, args...)...) | ||
} | ||
|
||
func Tracef(l Logger, format string, values ...interface{}) { | ||
switch t := l.(type) { | ||
case *logger: | ||
t.DPanicf(format, values...) | ||
return | ||
} | ||
c, ok := l.(interface { | ||
Tracef(format string, values ...interface{}) | ||
}) | ||
if ok { | ||
c.Tracef(format, values...) | ||
return | ||
} | ||
l.Errorf(tracePrefix+format, values...) | ||
} | ||
|
||
func Tracew(l Logger, msg string, keysAndValues ...interface{}) { | ||
switch t := l.(type) { | ||
case *logger: | ||
t.DPanicw(msg, keysAndValues...) | ||
return | ||
} | ||
c, ok := l.(interface { | ||
Tracew(msg string, keysAndValues ...interface{}) | ||
}) | ||
if ok { | ||
c.Tracew(msg, keysAndValues...) | ||
return | ||
} | ||
l.Errorf(tracePrefix+msg, keysAndValues) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build !trace | ||
|
||
package logger | ||
|
||
func Trace(l Logger, args ...interface{}) {} | ||
|
||
func Tracef(l Logger, format string, values ...interface{}) {} | ||
|
||
func Tracew(l Logger, msg string, keysAndValues ...interface{}) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.