aws-sdk-managedblockchainquery 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc6f21242d6a1ace83e5893aaf67b3d6e8a5625ae9004e805cd65ef183e92f7f
4
- data.tar.gz: b4f9cb65aba318722ae54a3b74095e492f427d3f05d2336a04758d9f601a2cd9
3
+ metadata.gz: 20d53fcdc723e9fa03df0eed5607e1ec076022cf186fb81df6a06abaf4b7983f
4
+ data.tar.gz: 1010a08100229329b9ad6229ad52685e01720dd449352dc526e0d96e6f824b8e
5
5
  SHA512:
6
- metadata.gz: 20401c785149c617574fac4fee98b3c27043ea7a43ba29c7bb303a5f9f2163e03baeb8f9634f53f3d7a1f82c3b3860392f5356de4eae42b1ca628423e1e37631
7
- data.tar.gz: 1a62eed13ec9ad4bce2d700257d76f4dd63a00c42fe617ab225a99b4aba5153a722961a46dbb9138b350058b9a82fe2284991eaadb67461fb16e24a8d3e03152
6
+ metadata.gz: 6afd01487af3858f5d957c95217d168bb2d9a916054f9ce27053e9bbb94312340022694233cf526dd16ef584ab62e363e55e547cc309941fc274e7ab69083991
7
+ data.tar.gz: a19d481e2089cb84e864dfeee991724c2c1bb138736f992dfa6c68da71486c0fe6dfc4d785e4283b7884f6b3de16283bbff820846bba074e82e8c04c7bd9c02b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.6.0 (2023-12-20)
5
+ ------------------
6
+
7
+ * Feature - Adding Confirmation Status and Execution Status to GetTransaction Response.
8
+
4
9
  1.5.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.6.0
@@ -411,7 +411,7 @@ module Aws::ManagedBlockchainQuery
411
411
  # get_token_balance_inputs: [
412
412
  # {
413
413
  # token_identifier: { # required
414
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
414
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
415
415
  # contract_address: "ChainAddress",
416
416
  # token_id: "QueryTokenId",
417
417
  # },
@@ -429,14 +429,14 @@ module Aws::ManagedBlockchainQuery
429
429
  #
430
430
  # resp.token_balances #=> Array
431
431
  # resp.token_balances[0].owner_identifier.address #=> String
432
- # resp.token_balances[0].token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
432
+ # resp.token_balances[0].token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
433
433
  # resp.token_balances[0].token_identifier.contract_address #=> String
434
434
  # resp.token_balances[0].token_identifier.token_id #=> String
435
435
  # resp.token_balances[0].balance #=> String
436
436
  # resp.token_balances[0].at_blockchain_instant.time #=> Time
437
437
  # resp.token_balances[0].last_updated_time.time #=> Time
438
438
  # resp.errors #=> Array
439
- # resp.errors[0].token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
439
+ # resp.errors[0].token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
440
440
  # resp.errors[0].token_identifier.contract_address #=> String
441
441
  # resp.errors[0].token_identifier.token_id #=> String
442
442
  # resp.errors[0].owner_identifier.address #=> String
@@ -479,14 +479,14 @@ module Aws::ManagedBlockchainQuery
479
479
  #
480
480
  # resp = client.get_asset_contract({
481
481
  # contract_identifier: { # required
482
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
482
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
483
483
  # contract_address: "ChainAddress", # required
484
484
  # },
485
485
  # })
486
486
  #
487
487
  # @example Response structure
488
488
  #
489
- # resp.contract_identifier.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
489
+ # resp.contract_identifier.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
490
490
  # resp.contract_identifier.contract_address #=> String
491
491
  # resp.token_standard #=> String, one of "ERC20", "ERC721", "ERC1155"
492
492
  # resp.deployer_address #=> String
@@ -538,7 +538,7 @@ module Aws::ManagedBlockchainQuery
538
538
  #
539
539
  # resp = client.get_token_balance({
540
540
  # token_identifier: { # required
541
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
541
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
542
542
  # contract_address: "ChainAddress",
543
543
  # token_id: "QueryTokenId",
544
544
  # },
@@ -553,7 +553,7 @@ module Aws::ManagedBlockchainQuery
553
553
  # @example Response structure
554
554
  #
555
555
  # resp.owner_identifier.address #=> String
556
- # resp.token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
556
+ # resp.token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
557
557
  # resp.token_identifier.contract_address #=> String
558
558
  # resp.token_identifier.token_id #=> String
559
559
  # resp.balance #=> String
@@ -586,12 +586,12 @@ module Aws::ManagedBlockchainQuery
586
586
  #
587
587
  # resp = client.get_transaction({
588
588
  # transaction_hash: "QueryTransactionHash", # required
589
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
589
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
590
590
  # })
591
591
  #
592
592
  # @example Response structure
593
593
  #
594
- # resp.transaction.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
594
+ # resp.transaction.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
595
595
  # resp.transaction.block_hash #=> String
596
596
  # resp.transaction.transaction_hash #=> String
597
597
  # resp.transaction.block_number #=> String
@@ -610,6 +610,8 @@ module Aws::ManagedBlockchainQuery
610
610
  # resp.transaction.signature_s #=> String
611
611
  # resp.transaction.transaction_fee #=> String
612
612
  # resp.transaction.transaction_id #=> String
613
+ # resp.transaction.confirmation_status #=> String, one of "FINAL"
614
+ # resp.transaction.execution_status #=> String, one of "FAILED", "SUCCEEDED"
613
615
  #
614
616
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransaction AWS API Documentation
615
617
  #
@@ -646,7 +648,7 @@ module Aws::ManagedBlockchainQuery
646
648
  #
647
649
  # resp = client.list_asset_contracts({
648
650
  # contract_filter: { # required
649
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
651
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
650
652
  # token_standard: "ERC20", # required, accepts ERC20, ERC721, ERC1155
651
653
  # deployer_address: "ChainAddress", # required
652
654
  # },
@@ -657,7 +659,7 @@ module Aws::ManagedBlockchainQuery
657
659
  # @example Response structure
658
660
  #
659
661
  # resp.contracts #=> Array
660
- # resp.contracts[0].contract_identifier.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
662
+ # resp.contracts[0].contract_identifier.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
661
663
  # resp.contracts[0].contract_identifier.contract_address #=> String
662
664
  # resp.contracts[0].token_standard #=> String, one of "ERC20", "ERC721", "ERC1155"
663
665
  # resp.contracts[0].deployer_address #=> String
@@ -722,7 +724,7 @@ module Aws::ManagedBlockchainQuery
722
724
  # address: "ChainAddress", # required
723
725
  # },
724
726
  # token_filter: { # required
725
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
727
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
726
728
  # contract_address: "ChainAddress",
727
729
  # token_id: "QueryTokenId",
728
730
  # },
@@ -734,7 +736,7 @@ module Aws::ManagedBlockchainQuery
734
736
  #
735
737
  # resp.token_balances #=> Array
736
738
  # resp.token_balances[0].owner_identifier.address #=> String
737
- # resp.token_balances[0].token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
739
+ # resp.token_balances[0].token_identifier.network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
738
740
  # resp.token_balances[0].token_identifier.contract_address #=> String
739
741
  # resp.token_balances[0].token_identifier.token_id #=> String
740
742
  # resp.token_balances[0].balance #=> String
@@ -788,7 +790,7 @@ module Aws::ManagedBlockchainQuery
788
790
  #
789
791
  # resp = client.list_transaction_events({
790
792
  # transaction_hash: "QueryTransactionHash", # required
791
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
793
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
792
794
  # next_token: "NextToken",
793
795
  # max_results: 1,
794
796
  # })
@@ -796,7 +798,7 @@ module Aws::ManagedBlockchainQuery
796
798
  # @example Response structure
797
799
  #
798
800
  # resp.events #=> Array
799
- # resp.events[0].network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
801
+ # resp.events[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
800
802
  # resp.events[0].transaction_hash #=> String
801
803
  # resp.events[0].event_type #=> String, one of "ERC20_TRANSFER", "ERC20_MINT", "ERC20_BURN", "ERC20_DEPOSIT", "ERC20_WITHDRAWAL", "ERC721_TRANSFER", "ERC1155_TRANSFER", "BITCOIN_VIN", "BITCOIN_VOUT", "INTERNAL_ETH_TRANSFER", "ETH_TRANSFER"
802
804
  # resp.events[0].from #=> String
@@ -865,7 +867,7 @@ module Aws::ManagedBlockchainQuery
865
867
  #
866
868
  # resp = client.list_transactions({
867
869
  # address: "ChainAddress", # required
868
- # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, BITCOIN_MAINNET, BITCOIN_TESTNET, ETHEREUM_SEPOLIA_TESTNET
870
+ # network: "ETHEREUM_MAINNET", # required, accepts ETHEREUM_MAINNET, ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, BITCOIN_TESTNET
869
871
  # from_blockchain_instant: {
870
872
  # time: Time.now,
871
873
  # },
@@ -884,7 +886,7 @@ module Aws::ManagedBlockchainQuery
884
886
  #
885
887
  # resp.transactions #=> Array
886
888
  # resp.transactions[0].transaction_hash #=> String
887
- # resp.transactions[0].network #=> String, one of "ETHEREUM_MAINNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET", "ETHEREUM_SEPOLIA_TESTNET"
889
+ # resp.transactions[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
888
890
  # resp.transactions[0].transaction_timestamp #=> Time
889
891
  # resp.next_token #=> String
890
892
  #
@@ -910,7 +912,7 @@ module Aws::ManagedBlockchainQuery
910
912
  params: params,
911
913
  config: config)
912
914
  context[:gem_name] = 'aws-sdk-managedblockchainquery'
913
- context[:gem_version] = '1.5.0'
915
+ context[:gem_version] = '1.6.0'
914
916
  Seahorse::Client::Request.new(handlers, context)
915
917
  end
916
918
 
@@ -26,11 +26,13 @@ module Aws::ManagedBlockchainQuery
26
26
  BlockHash = Shapes::StringShape.new(name: 'BlockHash')
27
27
  BlockchainInstant = Shapes::StructureShape.new(name: 'BlockchainInstant')
28
28
  ChainAddress = Shapes::StringShape.new(name: 'ChainAddress')
29
+ ConfirmationStatus = Shapes::StringShape.new(name: 'ConfirmationStatus')
29
30
  ContractFilter = Shapes::StructureShape.new(name: 'ContractFilter')
30
31
  ContractIdentifier = Shapes::StructureShape.new(name: 'ContractIdentifier')
31
32
  ContractMetadata = Shapes::StructureShape.new(name: 'ContractMetadata')
32
33
  ErrorType = Shapes::StringShape.new(name: 'ErrorType')
33
34
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
35
+ ExecutionStatus = Shapes::StringShape.new(name: 'ExecutionStatus')
34
36
  GetAssetContractInput = Shapes::StructureShape.new(name: 'GetAssetContractInput')
35
37
  GetAssetContractOutput = Shapes::StructureShape.new(name: 'GetAssetContractOutput')
36
38
  GetTokenBalanceInput = Shapes::StructureShape.new(name: 'GetTokenBalanceInput')
@@ -276,7 +278,7 @@ module Aws::ManagedBlockchainQuery
276
278
  Transaction.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
277
279
  Transaction.add_member(:transaction_index, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "transactionIndex"))
278
280
  Transaction.add_member(:number_of_transactions, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "numberOfTransactions"))
279
- Transaction.add_member(:status, Shapes::ShapeRef.new(shape: QueryTransactionStatus, required: true, location_name: "status"))
281
+ Transaction.add_member(:status, Shapes::ShapeRef.new(shape: QueryTransactionStatus, deprecated: true, location_name: "status", metadata: {"deprecatedMessage"=>"The status field in the GetTransaction response is deprecated and is replaced with the confirmationStatus and executionStatus fields."}))
280
282
  Transaction.add_member(:to, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "to"))
281
283
  Transaction.add_member(:from, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "from"))
282
284
  Transaction.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
@@ -288,6 +290,8 @@ module Aws::ManagedBlockchainQuery
288
290
  Transaction.add_member(:signature_s, Shapes::ShapeRef.new(shape: String, location_name: "signatureS"))
289
291
  Transaction.add_member(:transaction_fee, Shapes::ShapeRef.new(shape: String, location_name: "transactionFee"))
290
292
  Transaction.add_member(:transaction_id, Shapes::ShapeRef.new(shape: String, location_name: "transactionId"))
293
+ Transaction.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
294
+ Transaction.add_member(:execution_status, Shapes::ShapeRef.new(shape: ExecutionStatus, location_name: "executionStatus"))
291
295
  Transaction.struct_class = Types::Transaction
292
296
 
293
297
  TransactionEvent.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
@@ -963,6 +963,18 @@ module Aws::ManagedBlockchainQuery
963
963
  #
964
964
  # @!attribute [rw] status
965
965
  # The status of the transaction.
966
+ #
967
+ # This property is deprecated. You must use the `confirmationStatus`
968
+ # and the `executionStatus` properties to determine if the `status` of
969
+ # the transaction is `FINAL` or `FAILED`.
970
+ #
971
+ # * Transactions with a `status` of `FINAL` will now have the
972
+ # `confirmationStatus` set to `FINAL` and the `executionStatus` set
973
+ # to `SUCCEEDED`.
974
+ #
975
+ # * Transactions with a `status` of `FAILED` will now have the
976
+ # `confirmationStatus` set to `FINAL` and the `executionStatus` set
977
+ # to `FAILED`.
966
978
  # @return [String]
967
979
  #
968
980
  # @!attribute [rw] to
@@ -1012,6 +1024,14 @@ module Aws::ManagedBlockchainQuery
1012
1024
  # transaction is verified and added to the blockchain.
1013
1025
  # @return [String]
1014
1026
  #
1027
+ # @!attribute [rw] confirmation_status
1028
+ # Specifies whether the transaction has reached Finality.
1029
+ # @return [String]
1030
+ #
1031
+ # @!attribute [rw] execution_status
1032
+ # Identifies whether the transaction has succeeded or failed.
1033
+ # @return [String]
1034
+ #
1015
1035
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/Transaction AWS API Documentation
1016
1036
  #
1017
1037
  class Transaction < Struct.new(
@@ -1033,7 +1053,9 @@ module Aws::ManagedBlockchainQuery
1033
1053
  :signature_r,
1034
1054
  :signature_s,
1035
1055
  :transaction_fee,
1036
- :transaction_id)
1056
+ :transaction_id,
1057
+ :confirmation_status,
1058
+ :execution_status)
1037
1059
  SENSITIVE = []
1038
1060
  include Aws::Structure
1039
1061
  end
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-managedblockchainquery/customizations'
53
53
  # @!group service
54
54
  module Aws::ManagedBlockchainQuery
55
55
 
56
- GEM_VERSION = '1.5.0'
56
+ GEM_VERSION = '1.6.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-managedblockchainquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core