-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Aptos (combined branch) #13716
base: release/2.19.0-aptos
Are you sure you want to change the base?
Aptos (combined branch) #13716
Conversation
plugin := env.NewPlugin("aptos") | ||
loopKs := &keystore.AptosLooppSigner{Aptos: ks} |
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.
Perhaps all this can be moved into InitAptos?
return flat | ||
} | ||
|
||
const triggerID = "[email protected]" |
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.
I like having this merged as an example trigger. I only wish it could go to common but it can't because of EVM dep :( Maybe we should create a special sub-directory with example capabilities and move on-demand trigger there as well...? @cedric-cordenier thoughts?
2e13052
to
407c01e
Compare
AER Report: CI Coreaer_workflow , commit , Detect Changes , Scheduled Run Frequency , Clean Go Tidy & Generate , Find New Flaky Tests In Chainlink Project / Get Tests To Run , lint , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_race_tests) , Core Tests (go_core_fuzz) , Find New Flaky Tests In Deployment Project , Find New Flaky Tests In Chainlink Project / Run Tests , Find New Flaky Tests In Chainlink Project / Report , Flakey Test Detection , SonarQube Scan 1. Integer overflow conversion int -> uint8: [Golang Lint]Source of Error:core/capabilities/streams/mock_trigger.go:72:20: G115: integer overflow conversion int -> uint8 (gosec)
bytes[31] = uint8(i + 1)
^ Suggested fix: Ensure that the 2. Integer overflow conversion int64 -> uint32: [Golang Lint]Source of Error:core/capabilities/streams/mock_trigger.go:138:29: G115: integer overflow conversion int64 -> uint32 (gosec)
Timestamp: uint32(timestamp),
^
core/capabilities/streams/mock_trigger.go:139:29: G115: integer overflow conversion int64 -> uint32 (gosec)
ValidFromTimestamp: uint32(timestamp),
^
core/capabilities/streams/mock_trigger.go:144:29: G115: integer overflow conversion int64 -> uint32 (gosec)
ExpiresAt: uint32(timestamp + 1000000),
^ Suggested fix: Ensure that the 3. Integer overflow conversion int -> uint32: [Golang Lint]Source of Error:core/capabilities/streams/mock_trigger.go:181:94: G115: integer overflow conversion int -> uint32 (gosec)
reportCtx := ocrTypes.ReportContext{ReportTimestamp: ocrTypes.ReportTimestamp{Epoch: uint32(baseTimestamp + j)}}
^ Suggested fix: Ensure that the 4. Receiver name inconsistency: [Golang Lint]Source of Error:core/capabilities/streams/mock_trigger.go:110:1: receiver-naming: receiver name o should be consistent with previous receiver name m for MockTriggerService (revive)
func (o *MockTriggerService) RegisterTrigger(ctx context.Context, req capabilities.TriggerRegistrationRequest) (<-chan capabilities.TriggerResponse, error) {
ch, err := o.MercuryTriggerService.RegisterTrigger(ctx, req)
if err != nil {
return nil, err
}
config, _ := o.MercuryTriggerService.ValidateConfig(req.Config)
o.subscribersMu.Lock()
defer o.subscribersMu.Unlock()
o.subscribers[req.Metadata.WorkflowID] = config.FeedIds
return ch, nil
}
core/capabilities/streams/mock_trigger.go:123:1: receiver-naming: receiver name o should be consistent with previous receiver name m for MockTriggerService (revive)
func (o *MockTriggerService) UnregisterTrigger(ctx context.Context, req capabilities.TriggerRegistrationRequest) error {
err := o.MercuryTriggerService.UnregisterTrigger(ctx, req)
o.subscribersMu.Lock()
defer o.subscribersMu.Unlock()
delete(o.subscribers, req.Metadata.WorkflowID)
return err
} Suggested fix: Rename the receiver 5. Unnecessary trailing newline: [Golang Lint]Source of Error:core/capabilities/streams/mock_trigger.go:211:3: unnecessary trailing newline (whitespace) Suggested fix: Remove the unnecessary trailing newline to adhere to code style guidelines. 6. Replace
|
855eced
to
ea18df1
Compare
|
ea18df1
to
752d706
Compare
97831c9
to
7bf04f5
Compare
I see you added a changeset file but it does not contain a tag. Please edit the text include at least one of the following tags:
|
7bf04f5
to
1a0d8bb
Compare
I see you updated files related to
|
f2cb06b
to
fb21d3e
Compare
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Contains #14076, #14078 and staged changes