diff --git a/openapi/experimental/go-client-generated/api/swagger.yaml b/openapi/experimental/go-client-generated/api/swagger.yaml index d989602b3..f540db561 100644 --- a/openapi/experimental/go-client-generated/api/swagger.yaml +++ b/openapi/experimental/go-client-generated/api/swagger.yaml @@ -2347,6 +2347,7 @@ components: execution_effort: execution_effort transaction_handler_owner: transaction_handler_owner transaction_handler_uuid: transaction_handler_uuid + is_placeholder: true cancelled_transaction_id: null id: id executed_transaction_id: null @@ -2357,14 +2358,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null _expandable: result: http://example.com/aeiou @@ -2454,6 +2457,7 @@ components: execution_effort: execution_effort transaction_handler_owner: transaction_handler_owner transaction_handler_uuid: transaction_handler_uuid + is_placeholder: true cancelled_transaction_id: null id: id executed_transaction_id: null @@ -2464,14 +2468,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null _expandable: result: http://example.com/aeiou @@ -2588,6 +2594,11 @@ components: $ref: "#/components/schemas/Identifier" cancelled_transaction_id: $ref: "#/components/schemas/Identifier" + is_placeholder: + type: boolean + description: "True if the scheduled transaction was created during bootstrapping\ + \ based on the current chain state, not based on a protocol event. When\ + \ true, block_height, transaction_id, tx_index, and event_index are absent." transaction: $ref: "#/components/schemas/Transaction" result: @@ -2630,6 +2641,7 @@ components: execution_effort: execution_effort transaction_handler_owner: transaction_handler_owner transaction_handler_uuid: transaction_handler_uuid + is_placeholder: true cancelled_transaction_id: null id: id executed_transaction_id: null @@ -2640,14 +2652,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null _expandable: result: http://example.com/aeiou @@ -2729,7 +2743,6 @@ components: required: - _expandable - address - - code - code_hash - contract_id type: object @@ -2767,6 +2780,8 @@ components: \ block_height, transaction_id, tx_index, and event_index are absent." transaction: $ref: "#/components/schemas/Transaction" + result: + $ref: "#/components/schemas/TransactionResult" _expandable: $ref: "#/components/schemas/ContractDeployment__expandable" _links: @@ -2778,14 +2793,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null ContractsResponse: required: @@ -2807,14 +2824,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null - transaction_id: null address: null @@ -2822,14 +2841,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null ContractDeploymentsResponse: required: @@ -2850,14 +2871,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null - transaction_id: null address: null @@ -2865,14 +2888,16 @@ components: _links: _self: _self contract_id: contract_id - is_placeholder: true block_height: block_height + event_index: event_index + code_hash: code_hash + result: null + is_placeholder: true tx_index: tx_index _expandable: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou - event_index: event_index - code_hash: code_hash transaction: null next_cursor: next_cursor Error: @@ -2938,6 +2963,10 @@ components: ContractDeployment__expandable: type: object properties: + code: + type: string + description: Link to fetch the Cadence source code of this deployment. + format: uri transaction: type: string description: Link to fetch the full transaction that applied this deployment. @@ -2951,6 +2980,7 @@ components: \ and is removed from `_expandable`." example: result: http://example.com/aeiou + code: http://example.com/aeiou transaction: http://example.com/aeiou parameters: cursorParam: diff --git a/openapi/experimental/go-client-generated/docs/ContractDeployment.md b/openapi/experimental/go-client-generated/docs/ContractDeployment.md index ae51193ca..0d783376f 100644 --- a/openapi/experimental/go-client-generated/docs/ContractDeployment.md +++ b/openapi/experimental/go-client-generated/docs/ContractDeployment.md @@ -9,10 +9,11 @@ Name | Type | Description | Notes **TransactionId** | **string** | | [optional] [default to null] **TxIndex** | **string** | Position of the deploying transaction within its block. | [optional] [default to null] **EventIndex** | **string** | Position of the contract event within its transaction. | [optional] [default to null] -**Code** | **string** | Base64-encoded Cadence source code of the contract deployed. | [default to null] +**Code** | **string** | Base64-encoded Cadence source code of the contract deployed. | [optional] [default to null] **CodeHash** | **string** | Hex-encoded SHA3-256 hash of the contract code. | [default to null] **IsPlaceholder** | **bool** | True if the deployment was created during bootstrapping based on the current chain state, not based on a protocol event. When true, block_height, transaction_id, tx_index, and event_index are absent. | [optional] [default to null] **Transaction** | [***Transaction**](Transaction.md) | | [optional] [default to null] +**Result** | [***TransactionResult**](TransactionResult.md) | | [optional] [default to null] **Expandable** | [***ContractDeploymentExpandable**](ContractDeployment__expandable.md) | | [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] diff --git a/openapi/experimental/go-client-generated/docs/ContractDeploymentExpandable.md b/openapi/experimental/go-client-generated/docs/ContractDeploymentExpandable.md index b59bc7548..1951e4147 100644 --- a/openapi/experimental/go-client-generated/docs/ContractDeploymentExpandable.md +++ b/openapi/experimental/go-client-generated/docs/ContractDeploymentExpandable.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | **string** | Link to fetch the Cadence source code of this deployment. | [optional] [default to null] **Transaction** | **string** | Link to fetch the full transaction that applied this deployment. | [optional] [default to null] **Result** | **string** | Link to fetch the transaction result. | [optional] [default to null] diff --git a/openapi/experimental/go-client-generated/docs/ScheduledTransaction.md b/openapi/experimental/go-client-generated/docs/ScheduledTransaction.md index c5fdba1a3..1b3d40944 100644 --- a/openapi/experimental/go-client-generated/docs/ScheduledTransaction.md +++ b/openapi/experimental/go-client-generated/docs/ScheduledTransaction.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **CreatedTransactionId** | **string** | | [default to null] **ExecutedTransactionId** | **string** | | [optional] [default to null] **CancelledTransactionId** | **string** | | [optional] [default to null] +**IsPlaceholder** | **bool** | True if the scheduled transaction was created during bootstrapping based on the current chain state, not based on a protocol event. When true, block_height, transaction_id, tx_index, and event_index are absent. | [optional] [default to null] **Transaction** | [***Transaction**](Transaction.md) | | [optional] [default to null] **Result** | [***TransactionResult**](TransactionResult.md) | | [optional] [default to null] **HandlerContract** | [***ContractDeployment**](ContractDeployment.md) | | [optional] [default to null] diff --git a/openapi/experimental/go-client-generated/model_contract_deployment.go b/openapi/experimental/go-client-generated/model_contract_deployment.go index f4b504f6d..f288d754f 100644 --- a/openapi/experimental/go-client-generated/model_contract_deployment.go +++ b/openapi/experimental/go-client-generated/model_contract_deployment.go @@ -19,12 +19,13 @@ type ContractDeployment struct { // Position of the contract event within its transaction. EventIndex string `json:"event_index,omitempty"` // Base64-encoded Cadence source code of the contract deployed. - Code string `json:"code"` + Code string `json:"code,omitempty"` // Hex-encoded SHA3-256 hash of the contract code. CodeHash string `json:"code_hash"` // True if the deployment was created during bootstrapping based on the current chain state, not based on a protocol event. When true, block_height, transaction_id, tx_index, and event_index are absent. IsPlaceholder bool `json:"is_placeholder,omitempty"` Transaction *Transaction `json:"transaction,omitempty"` + Result *TransactionResult `json:"result,omitempty"` Expandable *ContractDeploymentExpandable `json:"_expandable"` Links *Links `json:"_links,omitempty"` } diff --git a/openapi/experimental/go-client-generated/model_contract_deployment__expandable.go b/openapi/experimental/go-client-generated/model_contract_deployment__expandable.go index 02839aec0..397fff6c9 100644 --- a/openapi/experimental/go-client-generated/model_contract_deployment__expandable.go +++ b/openapi/experimental/go-client-generated/model_contract_deployment__expandable.go @@ -10,6 +10,8 @@ package swagger // Contains URI links for fields not included in the response. When a field is expanded via the `expand` query parameter, it appears inline and is removed from `_expandable`. type ContractDeploymentExpandable struct { + // Link to fetch the Cadence source code of this deployment. + Code string `json:"code,omitempty"` // Link to fetch the full transaction that applied this deployment. Transaction string `json:"transaction,omitempty"` // Link to fetch the transaction result. diff --git a/openapi/experimental/go-client-generated/model_scheduled_transaction.go b/openapi/experimental/go-client-generated/model_scheduled_transaction.go index c8446ec27..196309de1 100644 --- a/openapi/experimental/go-client-generated/model_scheduled_transaction.go +++ b/openapi/experimental/go-client-generated/model_scheduled_transaction.go @@ -33,6 +33,8 @@ type ScheduledTransaction struct { CreatedTransactionId string `json:"created_transaction_id"` ExecutedTransactionId string `json:"executed_transaction_id,omitempty"` CancelledTransactionId string `json:"cancelled_transaction_id,omitempty"` + // True if the scheduled transaction was created during bootstrapping based on the current chain state, not based on a protocol event. When true, block_height, transaction_id, tx_index, and event_index are absent. + IsPlaceholder bool `json:"is_placeholder,omitempty"` Transaction *Transaction `json:"transaction,omitempty"` Result *TransactionResult `json:"result,omitempty"` HandlerContract *ContractDeployment `json:"handler_contract,omitempty"` diff --git a/openapi/experimental/openapi.yaml b/openapi/experimental/openapi.yaml index a9e835d3f..5b464363f 100644 --- a/openapi/experimental/openapi.yaml +++ b/openapi/experimental/openapi.yaml @@ -1126,6 +1126,9 @@ components: cancelled_transaction_id: description: Flow transaction ID of the cancellation transaction. $ref: "#/components/schemas/Identifier" + is_placeholder: + description: True if the scheduled transaction was created during bootstrapping based on the current chain state, not based on a protocol event. When true, block_height, transaction_id, tx_index, and event_index are absent. + type: boolean transaction: $ref: "#/components/schemas/Transaction" result: @@ -1176,7 +1179,6 @@ components: required: - contract_id - address - - code - code_hash - _expandable properties: @@ -1214,10 +1216,16 @@ components: type: boolean transaction: $ref: "#/components/schemas/Transaction" + result: + $ref: "#/components/schemas/TransactionResult" _expandable: type: object description: Contains URI links for fields not included in the response. When a field is expanded via the `expand` query parameter, it appears inline and is removed from `_expandable`. properties: + code: + type: string + format: uri + description: Link to fetch the Cadence source code of this deployment. transaction: type: string format: uri