Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion openapi/access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ components:
type: array
items:
$ref: '#/components/schemas/TransactionSignature'
transaction_type:
$ref: '#/components/schemas/TransactionType'
result:
$ref: '#/components/schemas/TransactionResult'
_expandable:
Expand Down Expand Up @@ -1149,6 +1151,8 @@ components:
computation_used:
type: string
format: uint64
transaction_type:
$ref: '#/components/schemas/TransactionType'
events:
type: array
items:
Expand All @@ -1157,9 +1161,17 @@ components:
$ref: '#/components/schemas/Metadata'
_links:
$ref: '#/components/schemas/Links'
TransactionType:
type: string
description: This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined.
enum:
- standard
- scheduled
- system
- unknown
TransactionExecution:
type: string
description: This value indicates whether the transaction execution succeded or not, this value should be checked when determining transaction success.
description: This value indicates whether the transaction execution succeded or not, this value should be checked when determining transaction success.
enum:
- Pending
- Success
Expand Down
1 change: 1 addition & 0 deletions openapi/experimental/go-client-generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Class | Method | HTTP request | Description
- [TransactionResult](docs/TransactionResult.md)
- [TransactionSignature](docs/TransactionSignature.md)
- [TransactionStatus](docs/TransactionStatus.md)
- [TransactionType](docs/TransactionType.md)
- [TransferRole](docs/TransferRole.md)

## Documentation For Authorization
Expand Down
41 changes: 41 additions & 0 deletions openapi/experimental/go-client-generated/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -412,6 +413,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -465,6 +467,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -474,6 +477,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -569,6 +573,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -578,6 +583,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -751,6 +757,8 @@ components:
type: array
items:
$ref: "#/components/schemas/TransactionSignature"
transaction_type:
$ref: "#/components/schemas/TransactionType"
result:
$ref: "#/components/schemas/TransactionResult"
_expandable:
Expand All @@ -760,6 +768,7 @@ components:
example:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -769,6 +778,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -834,6 +844,8 @@ components:
computation_used:
type: string
format: uint64
transaction_type:
$ref: "#/components/schemas/TransactionType"
events:
type: array
items:
Expand All @@ -847,6 +859,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -861,6 +874,16 @@ components:
type: type
event_index: event_index
status: Pending
TransactionType:
type: string
description: "This value indicates whether the transaction is a standard transaction,\
\ a scheduled transaction, or a system transaction. Unknown is returned for\
\ transactions that are not yet executed or could not be determined."
enum:
- standard
- scheduled
- system
- unknown
TransactionExecution:
type: string
description: "This value indicates whether the transaction execution succeeded\
Expand Down Expand Up @@ -930,6 +953,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -951,6 +975,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -960,6 +985,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -1028,6 +1054,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -1049,6 +1076,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -1058,6 +1086,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -1139,6 +1168,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -1161,6 +1191,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -1170,6 +1201,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -1237,6 +1269,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -1259,6 +1292,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -1268,6 +1302,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -1394,6 +1429,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -1415,6 +1451,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -1424,6 +1461,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down Expand Up @@ -1550,6 +1588,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand All @@ -1572,6 +1611,7 @@ components:
transaction:
_links: null
reference_block_id: null
transaction_type: standard
payer: payer
script: script
result:
Expand All @@ -1581,6 +1621,7 @@ components:
status_code: 0
_links:
_self: _self
transaction_type: null
block_id: null
computation_used: computation_used
events:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**Authorizers** | **[]string** | | [default to null]
**PayloadSignatures** | [**[]TransactionSignature**](TransactionSignature.md) | | [default to null]
**EnvelopeSignatures** | [**[]TransactionSignature**](TransactionSignature.md) | | [default to null]
**TransactionType** | [***TransactionType**](TransactionType.md) | | [optional] [default to null]
**Result** | [***TransactionResult**](TransactionResult.md) | | [optional] [default to null]
**Expandable** | [***TransactionExpandable**](Transaction__expandable.md) | | [default to null]
**Links** | [***Links**](Links.md) | | [optional] [default to null]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**StatusCode** | **int32** | | [default to null]
**ErrorMessage** | **string** | Provided transaction error in case the transaction wasn't successful. | [default to null]
**ComputationUsed** | **string** | | [default to null]
**TransactionType** | [***TransactionType**](TransactionType.md) | | [optional] [default to null]
**Events** | [**[]Event**](Event.md) | | [default to null]
**Links** | [***Links**](Links.md) | | [optional] [default to null]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# TransactionType

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Transaction struct {
Authorizers []string `json:"authorizers"`
PayloadSignatures []TransactionSignature `json:"payload_signatures"`
EnvelopeSignatures []TransactionSignature `json:"envelope_signatures"`
TransactionType *TransactionType `json:"transaction_type,omitempty"`
Result *TransactionResult `json:"result,omitempty"`
Expandable *TransactionExpandable `json:"_expandable"`
Links *Links `json:"_links,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type TransactionResult struct {
// Provided transaction error in case the transaction wasn't successful.
ErrorMessage string `json:"error_message"`
ComputationUsed string `json:"computation_used"`
TransactionType *TransactionType `json:"transaction_type,omitempty"`
Events []Event `json:"events"`
Links *Links `json:"_links,omitempty"`
}
19 changes: 19 additions & 0 deletions openapi/experimental/go-client-generated/model_transaction_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Flow Experimental API
*
* Experimental API endpoints for the Flow Access Node. These endpoints are subject to change without notice. Endpoints may be moved to a permanent API once they are stable.
*
* API version: 0.1.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package swagger
// TransactionType : This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined.
type TransactionType string

// List of TransactionType
const (
STANDARD_TransactionType TransactionType = "standard"
SCHEDULED_TransactionType TransactionType = "scheduled"
SYSTEM_TransactionType TransactionType = "system"
UNKNOWN_TransactionType TransactionType = "unknown"
)
12 changes: 12 additions & 0 deletions openapi/experimental/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ components:
type: array
items:
$ref: '#/components/schemas/TransactionSignature'
transaction_type:
$ref: '#/components/schemas/TransactionType'
result:
$ref: '#/components/schemas/TransactionResult'
_expandable:
Expand Down Expand Up @@ -488,12 +490,22 @@ components:
computation_used:
type: string
format: uint64
transaction_type:
$ref: '#/components/schemas/TransactionType'
events:
type: array
items:
$ref: '#/components/schemas/Event'
_links:
$ref: '#/components/schemas/Links'
TransactionType:
type: string
description: This value indicates whether the transaction is a standard transaction, a scheduled transaction, or a system transaction. Unknown is returned for transactions that are not yet executed or could not be determined.
enum:
- standard
- scheduled
- system
- unknown
TransactionExecution:
type: string
description: This value indicates whether the transaction execution succeeded or not, this value should be checked when determining transaction success.
Expand Down
1 change: 1 addition & 0 deletions openapi/go-client-generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Class | Method | HTTP request | Description
- [TransactionResult](docs/TransactionResult.md)
- [TransactionSignature](docs/TransactionSignature.md)
- [TransactionStatus](docs/TransactionStatus.md)
- [TransactionType](docs/TransactionType.md)
- [TransactionsBody](docs/TransactionsBody.md)

## Documentation For Authorization
Expand Down
Loading
Loading