Skip to content

Commit 5ec1a23

Browse files
committed
aptos proto: add receiver execution status
1 parent ca9c257 commit 5ec1a23

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

cre/capabilities/blockchain/aptos/v1alpha/client.proto

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,17 @@ message WriteReportRequest {
151151
sdk.v1alpha.ReportResponse report = 3; // signed report from consensus
152152
}
153153

154+
enum ReceiverContractExecutionStatus {
155+
RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS = 0;
156+
RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED = 1;
157+
}
158+
154159
message WriteReportReply {
155160
TxStatus tx_status = 1;
156-
optional string tx_hash = 2; // transaction hash (hex string with 0x prefix)
157-
optional uint64 transaction_fee = 3; // gas used in octas
158-
optional string error_message = 4;
161+
optional ReceiverContractExecutionStatus receiver_contract_execution_status = 2;
162+
optional string tx_hash = 3; // transaction hash (hex string with 0x prefix)
163+
optional uint64 transaction_fee = 4; // gas used in octas
164+
optional string error_message = 5;
159165
}
160166

161167
// ========== Service ==========

cre/go/installer/pkg/embedded_gen.go

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)