-
Notifications
You must be signed in to change notification settings - Fork 20
PLEX-250 - WriteReport initial implementation #1264
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
Conversation
b35bb06
to
1b825fd
Compare
// Transaction processing failed due to a network issue, RPC issue, or other fatal error | ||
TxFatal TransactionStatus = iota | ||
// Transaction was sent successfully to the chain but the smart contract execution reverted | ||
TxReverted | ||
// Transaction was sent successfully to the chain, smart contract executed successfully and mined into a block. | ||
TxSuccess |
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'm still confused about pending
. It is not always reasonable to wait until a tx is mined, so what do we return when a tx is pending?
Separately, is "mined" the right threshold? As a user of this API, will I be able to wait for finalization?
changing TxStatus enums so success is not 0 improving docs
fixing cap code
|
||
} | ||
|
||
message SignedReport { |
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.
FYI @ettec
@@ -108,3 +114,51 @@ type Head struct { | |||
type TransactionFee struct { | |||
TransactionFee *big.Int // Cost of transaction in wei | |||
} | |||
|
|||
type SignedReport struct { |
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.
Where is this used? We already have a proto, why do we need a Go struct as well?
PLEX-250(https://smartcontract-it.atlassian.net/browse/PLEX-250
Supports
#1264
smartcontractkit/chainlink-framework#50
smartcontractkit/chainlink-evm#111
smartcontractkit/chainlink#18170
https://github.com/smartcontractkit/capabilities/pull/122