aws-sdk-managedblockchainquery 1.6.0 → 1.8.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: 20d53fcdc723e9fa03df0eed5607e1ec076022cf186fb81df6a06abaf4b7983f
4
- data.tar.gz: 1010a08100229329b9ad6229ad52685e01720dd449352dc526e0d96e6f824b8e
3
+ metadata.gz: 0a8caf61c32dbfbb0fca4d40e42eb640de976e5698244434724c962e77654af3
4
+ data.tar.gz: f59d5578787971e9b858f13edabe36c8e6f533f4c7d86a30152e858add2ed6a2
5
5
  SHA512:
6
- metadata.gz: 6afd01487af3858f5d957c95217d168bb2d9a916054f9ce27053e9bbb94312340022694233cf526dd16ef584ab62e363e55e547cc309941fc274e7ab69083991
7
- data.tar.gz: a19d481e2089cb84e864dfeee991724c2c1bb138736f992dfa6c68da71486c0fe6dfc4d785e4283b7884f6b3de16283bbff820846bba074e82e8c04c7bd9c02b
6
+ metadata.gz: b2dd6740a464da4efbff8b0b1bb8aea2686282da086317550ff566ae9fa20150120de252a4c3aa47a8920e412706e09c71bb5680a5db8ee42f2a2f119f8d7aa9
7
+ data.tar.gz: 38dca042c45f0e557ab1711ddedfa52d2881818bab28f03a0d75037a437aadfcad8312c9a126a45f88a5aa6860ca9285020ca285263331c5e7dc256bd07a3557
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2024-02-01)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for transactions that have not reached finality. It also removes support for the status property from the response of the GetTransaction operation. You can use the confirmationStatus and executionStatus properties to determine the status of the transaction.
8
+
9
+ 1.7.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.6.0 (2023-12-20)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.8.0
@@ -391,8 +391,8 @@ module Aws::ManagedBlockchainQuery
391
391
  # Gets the token balance for a batch of tokens by using the
392
392
  # `BatchGetTokenBalance` action for every token in the request.
393
393
  #
394
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155
395
- # token standards are supported.
394
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
395
+ # 1155 token standards are supported.
396
396
  #
397
397
  # </note>
398
398
  #
@@ -506,8 +506,8 @@ module Aws::ManagedBlockchainQuery
506
506
  # Gets the balance of a specific token, including native tokens, for a
507
507
  # given address (wallet or contract) on the blockchain.
508
508
  #
509
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155
510
- # token standards are supported.
509
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
510
+ # 1155 token standards are supported.
511
511
  #
512
512
  # </note>
513
513
  #
@@ -569,7 +569,17 @@ module Aws::ManagedBlockchainQuery
569
569
  req.send_request(options)
570
570
  end
571
571
 
572
- # Get the details of a transaction.
572
+ # Gets the details of a transaction.
573
+ #
574
+ # <note markdown="1"> This action will return transaction details for all transactions that
575
+ # are *confirmed* on the blockchain, even if they have not reached
576
+ # [finality][1].
577
+ #
578
+ # </note>
579
+ #
580
+ #
581
+ #
582
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
573
583
  #
574
584
  # @option params [required, String] :transaction_hash
575
585
  # The hash of the transaction. It is generated whenever a transaction is
@@ -598,7 +608,6 @@ module Aws::ManagedBlockchainQuery
598
608
  # resp.transaction.transaction_timestamp #=> Time
599
609
  # resp.transaction.transaction_index #=> Integer
600
610
  # resp.transaction.number_of_transactions #=> Integer
601
- # resp.transaction.status #=> String, one of "FINAL", "FAILED"
602
611
  # resp.transaction.to #=> String
603
612
  # resp.transaction.from #=> String
604
613
  # resp.transaction.contract_address #=> String
@@ -610,7 +619,7 @@ module Aws::ManagedBlockchainQuery
610
619
  # resp.transaction.signature_s #=> String
611
620
  # resp.transaction.transaction_fee #=> String
612
621
  # resp.transaction.transaction_id #=> String
613
- # resp.transaction.confirmation_status #=> String, one of "FINAL"
622
+ # resp.transaction.confirmation_status #=> String, one of "FINAL", "NONFINAL"
614
623
  # resp.transaction.execution_status #=> String, one of "FAILED", "SUCCEEDED"
615
624
  #
616
625
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/GetTransaction AWS API Documentation
@@ -637,6 +646,17 @@ module Aws::ManagedBlockchainQuery
637
646
  # @option params [Integer] :max_results
638
647
  # The maximum number of contracts to list.
639
648
  #
649
+ # Default:`100`
650
+ #
651
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
652
+ # less results than `maxResults` or an empty array of results.
653
+ #
654
+ # To retrieve the next set of results, make another request with the
655
+ # returned `nextToken` value. The value of `nextToken` is `null` when
656
+ # there are no more results to return
657
+ #
658
+ # </note>
659
+ #
640
660
  # @return [Types::ListAssetContractsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
641
661
  #
642
662
  # * {Types::ListAssetContractsOutput#contracts #contracts} => Array&lt;Types::AssetContract&gt;
@@ -710,6 +730,17 @@ module Aws::ManagedBlockchainQuery
710
730
  # @option params [Integer] :max_results
711
731
  # The maximum number of token balances to return.
712
732
  #
733
+ # Default:`100`
734
+ #
735
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
736
+ # less results than `maxResults` or an empty array of results.
737
+ #
738
+ # To retrieve the next set of results, make another request with the
739
+ # returned `nextToken` value. The value of `nextToken` is `null` when
740
+ # there are no more results to return
741
+ #
742
+ # </note>
743
+ #
713
744
  # @return [Types::ListTokenBalancesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
714
745
  #
715
746
  # * {Types::ListTokenBalancesOutput#token_balances #token_balances} => Array&lt;Types::TokenBalance&gt;
@@ -756,6 +787,16 @@ module Aws::ManagedBlockchainQuery
756
787
  # An array of `TransactionEvent` objects. Each object contains details
757
788
  # about the transaction event.
758
789
  #
790
+ # <note markdown="1"> This action will return transaction details for all transactions that
791
+ # are *confirmed* on the blockchain, even if they have not reached
792
+ # [finality][1].
793
+ #
794
+ # </note>
795
+ #
796
+ #
797
+ #
798
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
799
+ #
759
800
  # @option params [required, String] :transaction_hash
760
801
  # The hash of the transaction. It is generated whenever a transaction is
761
802
  # verified and added to the blockchain.
@@ -770,6 +811,8 @@ module Aws::ManagedBlockchainQuery
770
811
  # @option params [Integer] :max_results
771
812
  # The maximum number of transaction events to list.
772
813
  #
814
+ # Default:`100`
815
+ #
773
816
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
774
817
  # less results than `maxResults` or an empty array of results.
775
818
  #
@@ -836,9 +879,8 @@ module Aws::ManagedBlockchainQuery
836
879
  # The container for time.
837
880
  #
838
881
  # @option params [Types::ListTransactionsSort] :sort
839
- # Sorts items in an ascending order if the first page starts at
840
- # `fromTime`. Sorts items in a descending order if the first page starts
841
- # at `toTime`.
882
+ # The order by which the results will be sorted. If `ASCENNDING` is
883
+ # selected, the results will be ordered by `fromTime`.
842
884
  #
843
885
  # @option params [String] :next_token
844
886
  # The pagination token that indicates the next set of results to
@@ -847,6 +889,8 @@ module Aws::ManagedBlockchainQuery
847
889
  # @option params [Integer] :max_results
848
890
  # The maximum number of transactions to list.
849
891
  #
892
+ # Default:`100`
893
+ #
850
894
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
851
895
  # less results than `maxResults` or an empty array of results.
852
896
  #
@@ -856,6 +900,15 @@ module Aws::ManagedBlockchainQuery
856
900
  #
857
901
  # </note>
858
902
  #
903
+ # @option params [Types::ConfirmationStatusFilter] :confirmation_status_filter
904
+ # This filter is used to include transactions in the response that
905
+ # haven't reached [ *finality* ][1]. Transactions that have reached
906
+ # finiality are always part of the response.
907
+ #
908
+ #
909
+ #
910
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
911
+ #
859
912
  # @return [Types::ListTransactionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
860
913
  #
861
914
  # * {Types::ListTransactionsOutput#transactions #transactions} => Array&lt;Types::TransactionOutputItem&gt;
@@ -880,6 +933,9 @@ module Aws::ManagedBlockchainQuery
880
933
  # },
881
934
  # next_token: "NextToken",
882
935
  # max_results: 1,
936
+ # confirmation_status_filter: {
937
+ # include: ["FINAL"], # required, accepts FINAL, NONFINAL
938
+ # },
883
939
  # })
884
940
  #
885
941
  # @example Response structure
@@ -888,6 +944,7 @@ module Aws::ManagedBlockchainQuery
888
944
  # resp.transactions[0].transaction_hash #=> String
889
945
  # resp.transactions[0].network #=> String, one of "ETHEREUM_MAINNET", "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", "BITCOIN_TESTNET"
890
946
  # resp.transactions[0].transaction_timestamp #=> Time
947
+ # resp.transactions[0].confirmation_status #=> String, one of "FINAL", "NONFINAL"
891
948
  # resp.next_token #=> String
892
949
  #
893
950
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactions AWS API Documentation
@@ -912,7 +969,7 @@ module Aws::ManagedBlockchainQuery
912
969
  params: params,
913
970
  config: config)
914
971
  context[:gem_name] = 'aws-sdk-managedblockchainquery'
915
- context[:gem_version] = '1.6.0'
972
+ context[:gem_version] = '1.8.0'
916
973
  Seahorse::Client::Request.new(handlers, context)
917
974
  end
918
975
 
@@ -27,6 +27,8 @@ module Aws::ManagedBlockchainQuery
27
27
  BlockchainInstant = Shapes::StructureShape.new(name: 'BlockchainInstant')
28
28
  ChainAddress = Shapes::StringShape.new(name: 'ChainAddress')
29
29
  ConfirmationStatus = Shapes::StringShape.new(name: 'ConfirmationStatus')
30
+ ConfirmationStatusFilter = Shapes::StructureShape.new(name: 'ConfirmationStatusFilter')
31
+ ConfirmationStatusIncludeList = Shapes::ListShape.new(name: 'ConfirmationStatusIncludeList')
30
32
  ContractFilter = Shapes::StructureShape.new(name: 'ContractFilter')
31
33
  ContractIdentifier = Shapes::StructureShape.new(name: 'ContractIdentifier')
32
34
  ContractMetadata = Shapes::StructureShape.new(name: 'ContractMetadata')
@@ -65,7 +67,6 @@ module Aws::ManagedBlockchainQuery
65
67
  QueryTokenStandard = Shapes::StringShape.new(name: 'QueryTokenStandard')
66
68
  QueryTransactionEventType = Shapes::StringShape.new(name: 'QueryTransactionEventType')
67
69
  QueryTransactionHash = Shapes::StringShape.new(name: 'QueryTransactionHash')
68
- QueryTransactionStatus = Shapes::StringShape.new(name: 'QueryTransactionStatus')
69
70
  QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
70
71
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
71
72
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -134,6 +135,11 @@ module Aws::ManagedBlockchainQuery
134
135
  BlockchainInstant.add_member(:time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "time"))
135
136
  BlockchainInstant.struct_class = Types::BlockchainInstant
136
137
 
138
+ ConfirmationStatusFilter.add_member(:include, Shapes::ShapeRef.new(shape: ConfirmationStatusIncludeList, required: true, location_name: "include"))
139
+ ConfirmationStatusFilter.struct_class = Types::ConfirmationStatusFilter
140
+
141
+ ConfirmationStatusIncludeList.member = Shapes::ShapeRef.new(shape: ConfirmationStatus)
142
+
137
143
  ContractFilter.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
138
144
  ContractFilter.add_member(:token_standard, Shapes::ShapeRef.new(shape: QueryTokenStandard, required: true, location_name: "tokenStandard"))
139
145
  ContractFilter.add_member(:deployer_address, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "deployerAddress"))
@@ -218,6 +224,7 @@ module Aws::ManagedBlockchainQuery
218
224
  ListTransactionsInput.add_member(:sort, Shapes::ShapeRef.new(shape: ListTransactionsSort, location_name: "sort"))
219
225
  ListTransactionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
220
226
  ListTransactionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTransactionsInputMaxResultsInteger, location_name: "maxResults"))
227
+ ListTransactionsInput.add_member(:confirmation_status_filter, Shapes::ShapeRef.new(shape: ConfirmationStatusFilter, location_name: "confirmationStatusFilter"))
221
228
  ListTransactionsInput.struct_class = Types::ListTransactionsInput
222
229
 
223
230
  ListTransactionsOutput.add_member(:transactions, Shapes::ShapeRef.new(shape: TransactionOutputList, required: true, location_name: "transactions"))
@@ -278,7 +285,6 @@ module Aws::ManagedBlockchainQuery
278
285
  Transaction.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
279
286
  Transaction.add_member(:transaction_index, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "transactionIndex"))
280
287
  Transaction.add_member(:number_of_transactions, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "numberOfTransactions"))
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."}))
282
288
  Transaction.add_member(:to, Shapes::ShapeRef.new(shape: ChainAddress, required: true, location_name: "to"))
283
289
  Transaction.add_member(:from, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "from"))
284
290
  Transaction.add_member(:contract_address, Shapes::ShapeRef.new(shape: ChainAddress, location_name: "contractAddress"))
@@ -311,6 +317,7 @@ module Aws::ManagedBlockchainQuery
311
317
  TransactionOutputItem.add_member(:transaction_hash, Shapes::ShapeRef.new(shape: QueryTransactionHash, required: true, location_name: "transactionHash"))
312
318
  TransactionOutputItem.add_member(:network, Shapes::ShapeRef.new(shape: QueryNetwork, required: true, location_name: "network"))
313
319
  TransactionOutputItem.add_member(:transaction_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "transactionTimestamp"))
320
+ TransactionOutputItem.add_member(:confirmation_status, Shapes::ShapeRef.new(shape: ConfirmationStatus, location_name: "confirmationStatus"))
314
321
  TransactionOutputItem.struct_class = Types::TransactionOutputItem
315
322
 
316
323
  TransactionOutputList.member = Shapes::ShapeRef.new(shape: TransactionOutputItem)
@@ -14,6 +14,7 @@ module Aws::ManagedBlockchainQuery
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::ManagedBlockchainQuery::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -55,7 +55,7 @@ module Aws::ManagedBlockchainQuery
55
55
  # The container for the identifier for the token including the unique
56
56
  # token ID and its blockchain network.
57
57
  #
58
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
58
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
59
59
  # 1155 token standards are supported.
60
60
  #
61
61
  # </note>
@@ -113,7 +113,7 @@ module Aws::ManagedBlockchainQuery
113
113
  # The container for the identifier for the token including the unique
114
114
  # token ID and its blockchain network.
115
115
  #
116
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
116
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
117
117
  # 1155 token standards are supported.
118
118
  #
119
119
  # </note>
@@ -166,7 +166,7 @@ module Aws::ManagedBlockchainQuery
166
166
  # The container for the identifier for the token including the unique
167
167
  # token ID and its blockchain network.
168
168
  #
169
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
169
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
170
170
  # 1155 token standards are supported.
171
171
  #
172
172
  # </note>
@@ -214,6 +214,31 @@ module Aws::ManagedBlockchainQuery
214
214
  include Aws::Structure
215
215
  end
216
216
 
217
+ # The container for the `ConfirmationStatusFilter` that filters for the
218
+ # [ *finality* ][1] of the results.
219
+ #
220
+ #
221
+ #
222
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
223
+ #
224
+ # @!attribute [rw] include
225
+ # The container to determine whether to list results that have only
226
+ # reached [ *finality* ][1]. Transactions that have reached finality
227
+ # are always part of the response.
228
+ #
229
+ #
230
+ #
231
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
232
+ # @return [Array<String>]
233
+ #
234
+ # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ConfirmationStatusFilter AWS API Documentation
235
+ #
236
+ class ConfirmationStatusFilter < Struct.new(
237
+ :include)
238
+ SENSITIVE = []
239
+ include Aws::Structure
240
+ end
241
+
217
242
  # The contract or wallet address by which to filter the request.
218
243
  #
219
244
  # @!attribute [rw] network
@@ -359,7 +384,7 @@ module Aws::ManagedBlockchainQuery
359
384
  # The container for the identifier for the token including the unique
360
385
  # token ID and its blockchain network.
361
386
  #
362
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC
387
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
363
388
  # 1155 token standards are supported.
364
389
  #
365
390
  # </note>
@@ -450,6 +475,17 @@ module Aws::ManagedBlockchainQuery
450
475
  #
451
476
  # @!attribute [rw] max_results
452
477
  # The maximum number of contracts to list.
478
+ #
479
+ # Default:`100`
480
+ #
481
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
482
+ # less results than `maxResults` or an empty array of results.
483
+ #
484
+ # To retrieve the next set of results, make another request with the
485
+ # returned `nextToken` value. The value of `nextToken` is `null` when
486
+ # there are no more results to return
487
+ #
488
+ # </note>
453
489
  # @return [Integer]
454
490
  #
455
491
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListAssetContractsInput AWS API Documentation
@@ -506,6 +542,17 @@ module Aws::ManagedBlockchainQuery
506
542
  #
507
543
  # @!attribute [rw] max_results
508
544
  # The maximum number of token balances to return.
545
+ #
546
+ # Default:`100`
547
+ #
548
+ # <note markdown="1"> Even if additional results can be retrieved, the request can return
549
+ # less results than `maxResults` or an empty array of results.
550
+ #
551
+ # To retrieve the next set of results, make another request with the
552
+ # returned `nextToken` value. The value of `nextToken` is `null` when
553
+ # there are no more results to return
554
+ #
555
+ # </note>
509
556
  # @return [Integer]
510
557
  #
511
558
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTokenBalancesInput AWS API Documentation
@@ -555,6 +602,8 @@ module Aws::ManagedBlockchainQuery
555
602
  # @!attribute [rw] max_results
556
603
  # The maximum number of transaction events to list.
557
604
  #
605
+ # Default:`100`
606
+ #
558
607
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
559
608
  # less results than `maxResults` or an empty array of results.
560
609
  #
@@ -613,9 +662,8 @@ module Aws::ManagedBlockchainQuery
613
662
  # @return [Types::BlockchainInstant]
614
663
  #
615
664
  # @!attribute [rw] sort
616
- # Sorts items in an ascending order if the first page starts at
617
- # `fromTime`. Sorts items in a descending order if the first page
618
- # starts at `toTime`.
665
+ # The order by which the results will be sorted. If `ASCENNDING` is
666
+ # selected, the results will be ordered by `fromTime`.
619
667
  # @return [Types::ListTransactionsSort]
620
668
  #
621
669
  # @!attribute [rw] next_token
@@ -626,6 +674,8 @@ module Aws::ManagedBlockchainQuery
626
674
  # @!attribute [rw] max_results
627
675
  # The maximum number of transactions to list.
628
676
  #
677
+ # Default:`100`
678
+ #
629
679
  # <note markdown="1"> Even if additional results can be retrieved, the request can return
630
680
  # less results than `maxResults` or an empty array of results.
631
681
  #
@@ -636,6 +686,16 @@ module Aws::ManagedBlockchainQuery
636
686
  # </note>
637
687
  # @return [Integer]
638
688
  #
689
+ # @!attribute [rw] confirmation_status_filter
690
+ # This filter is used to include transactions in the response that
691
+ # haven't reached [ *finality* ][1]. Transactions that have reached
692
+ # finiality are always part of the response.
693
+ #
694
+ #
695
+ #
696
+ # [1]: https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality
697
+ # @return [Types::ConfirmationStatusFilter]
698
+ #
639
699
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionsInput AWS API Documentation
640
700
  #
641
701
  class ListTransactionsInput < Struct.new(
@@ -645,7 +705,8 @@ module Aws::ManagedBlockchainQuery
645
705
  :to_blockchain_instant,
646
706
  :sort,
647
707
  :next_token,
648
- :max_results)
708
+ :max_results,
709
+ :confirmation_status_filter)
649
710
  SENSITIVE = []
650
711
  include Aws::Structure
651
712
  end
@@ -884,8 +945,8 @@ module Aws::ManagedBlockchainQuery
884
945
  # The container for the identifier for the token including the unique
885
946
  # token ID and its blockchain network.
886
947
  #
887
- # <note markdown="1"> Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155
888
- # token standards are supported.
948
+ # <note markdown="1"> Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC
949
+ # 1155 token standards are supported.
889
950
  #
890
951
  # </note>
891
952
  #
@@ -900,10 +961,10 @@ module Aws::ManagedBlockchainQuery
900
961
  # @!attribute [rw] token_id
901
962
  # The unique identifier of the token.
902
963
  #
903
- # <note markdown="1"> You must specify this container with `btc` for the native BTC token,
904
- # and `eth` for the native ETH token. For all other token types you
905
- # must specify the `tokenId` in the 64 character hexadecimal `tokenid`
906
- # format.
964
+ # <note markdown="1"> For native tokens, use the 3 character abbreviation that best
965
+ # matches your token. For example, btc for Bitcoin, eth for Ether,
966
+ # etc. For all other token types you must specify the `tokenId` in the
967
+ # 64 character hexadecimal `tokenid` format.
907
968
  #
908
969
  # </note>
909
970
  # @return [String]
@@ -961,22 +1022,6 @@ module Aws::ManagedBlockchainQuery
961
1022
  # The number of transactions in the block.
962
1023
  # @return [Integer]
963
1024
  #
964
- # @!attribute [rw] status
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`.
978
- # @return [String]
979
- #
980
1025
  # @!attribute [rw] to
981
1026
  # The identifier of the transaction. It is generated whenever a
982
1027
  # transaction is verified and added to the blockchain.
@@ -1042,7 +1087,6 @@ module Aws::ManagedBlockchainQuery
1042
1087
  :transaction_timestamp,
1043
1088
  :transaction_index,
1044
1089
  :number_of_transactions,
1045
- :status,
1046
1090
  :to,
1047
1091
  :from,
1048
1092
  :contract_address,
@@ -1138,12 +1182,18 @@ module Aws::ManagedBlockchainQuery
1138
1182
  # The time when the transaction occurred.
1139
1183
  # @return [Time]
1140
1184
  #
1185
+ # @!attribute [rw] confirmation_status
1186
+ # Specifies whether to list transactions that have not reached
1187
+ # Finality.
1188
+ # @return [String]
1189
+ #
1141
1190
  # @see http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/TransactionOutputItem AWS API Documentation
1142
1191
  #
1143
1192
  class TransactionOutputItem < Struct.new(
1144
1193
  :transaction_hash,
1145
1194
  :network,
1146
- :transaction_timestamp)
1195
+ :transaction_timestamp,
1196
+ :confirmation_status)
1147
1197
  SENSITIVE = []
1148
1198
  include Aws::Structure
1149
1199
  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.6.0'
56
+ GEM_VERSION = '1.8.0'
57
57
 
58
58
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,231 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ManagedBlockchainQuery
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ interface _BatchGetTokenBalanceResponseSuccess
76
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetTokenBalanceOutput]
77
+ def token_balances: () -> ::Array[Types::BatchGetTokenBalanceOutputItem]
78
+ def errors: () -> ::Array[Types::BatchGetTokenBalanceErrorItem]
79
+ end
80
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#batch_get_token_balance-instance_method
81
+ def batch_get_token_balance: (
82
+ ?get_token_balance_inputs: Array[
83
+ {
84
+ token_identifier: {
85
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
86
+ contract_address: ::String?,
87
+ token_id: ::String?
88
+ },
89
+ owner_identifier: {
90
+ address: ::String
91
+ },
92
+ at_blockchain_instant: {
93
+ time: ::Time?
94
+ }?
95
+ },
96
+ ]
97
+ ) -> _BatchGetTokenBalanceResponseSuccess
98
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetTokenBalanceResponseSuccess
99
+
100
+ interface _GetAssetContractResponseSuccess
101
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAssetContractOutput]
102
+ def contract_identifier: () -> Types::ContractIdentifier
103
+ def token_standard: () -> ("ERC20" | "ERC721" | "ERC1155")
104
+ def deployer_address: () -> ::String
105
+ def metadata: () -> Types::ContractMetadata
106
+ end
107
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#get_asset_contract-instance_method
108
+ def get_asset_contract: (
109
+ contract_identifier: {
110
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
111
+ contract_address: ::String
112
+ }
113
+ ) -> _GetAssetContractResponseSuccess
114
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAssetContractResponseSuccess
115
+
116
+ interface _GetTokenBalanceResponseSuccess
117
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTokenBalanceOutput]
118
+ def owner_identifier: () -> Types::OwnerIdentifier
119
+ def token_identifier: () -> Types::TokenIdentifier
120
+ def balance: () -> ::String
121
+ def at_blockchain_instant: () -> Types::BlockchainInstant
122
+ def last_updated_time: () -> Types::BlockchainInstant
123
+ end
124
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#get_token_balance-instance_method
125
+ def get_token_balance: (
126
+ token_identifier: {
127
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
128
+ contract_address: ::String?,
129
+ token_id: ::String?
130
+ },
131
+ owner_identifier: {
132
+ address: ::String
133
+ },
134
+ ?at_blockchain_instant: {
135
+ time: ::Time?
136
+ }
137
+ ) -> _GetTokenBalanceResponseSuccess
138
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTokenBalanceResponseSuccess
139
+
140
+ interface _GetTransactionResponseSuccess
141
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetTransactionOutput]
142
+ def transaction: () -> Types::Transaction
143
+ end
144
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#get_transaction-instance_method
145
+ def get_transaction: (
146
+ transaction_hash: ::String,
147
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
148
+ ) -> _GetTransactionResponseSuccess
149
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTransactionResponseSuccess
150
+
151
+ interface _ListAssetContractsResponseSuccess
152
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAssetContractsOutput]
153
+ def contracts: () -> ::Array[Types::AssetContract]
154
+ def next_token: () -> ::String
155
+ end
156
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_asset_contracts-instance_method
157
+ def list_asset_contracts: (
158
+ contract_filter: {
159
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
160
+ token_standard: ("ERC20" | "ERC721" | "ERC1155"),
161
+ deployer_address: ::String
162
+ },
163
+ ?next_token: ::String,
164
+ ?max_results: ::Integer
165
+ ) -> _ListAssetContractsResponseSuccess
166
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAssetContractsResponseSuccess
167
+
168
+ interface _ListTokenBalancesResponseSuccess
169
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTokenBalancesOutput]
170
+ def token_balances: () -> ::Array[Types::TokenBalance]
171
+ def next_token: () -> ::String
172
+ end
173
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_token_balances-instance_method
174
+ def list_token_balances: (
175
+ ?owner_filter: {
176
+ address: ::String
177
+ },
178
+ token_filter: {
179
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
180
+ contract_address: ::String?,
181
+ token_id: ::String?
182
+ },
183
+ ?next_token: ::String,
184
+ ?max_results: ::Integer
185
+ ) -> _ListTokenBalancesResponseSuccess
186
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTokenBalancesResponseSuccess
187
+
188
+ interface _ListTransactionEventsResponseSuccess
189
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTransactionEventsOutput]
190
+ def events: () -> ::Array[Types::TransactionEvent]
191
+ def next_token: () -> ::String
192
+ end
193
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_transaction_events-instance_method
194
+ def list_transaction_events: (
195
+ transaction_hash: ::String,
196
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
197
+ ?next_token: ::String,
198
+ ?max_results: ::Integer
199
+ ) -> _ListTransactionEventsResponseSuccess
200
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTransactionEventsResponseSuccess
201
+
202
+ interface _ListTransactionsResponseSuccess
203
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTransactionsOutput]
204
+ def transactions: () -> ::Array[Types::TransactionOutputItem]
205
+ def next_token: () -> ::String
206
+ end
207
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Client.html#list_transactions-instance_method
208
+ def list_transactions: (
209
+ address: ::String,
210
+ network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET"),
211
+ ?from_blockchain_instant: {
212
+ time: ::Time?
213
+ },
214
+ ?to_blockchain_instant: {
215
+ time: ::Time?
216
+ },
217
+ ?sort: {
218
+ sort_by: ("TRANSACTION_TIMESTAMP")?,
219
+ sort_order: ("ASCENDING" | "DESCENDING")?
220
+ },
221
+ ?next_token: ::String,
222
+ ?max_results: ::Integer,
223
+ ?confirmation_status_filter: {
224
+ include: Array[("FINAL" | "NONFINAL")]
225
+ }
226
+ ) -> _ListTransactionsResponseSuccess
227
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTransactionsResponseSuccess
228
+ end
229
+ end
230
+ end
231
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,46 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ManagedBlockchainQuery
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class InternalServerException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ def retry_after_seconds: () -> ::String
20
+ end
21
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
22
+ def message: () -> ::String
23
+ def resource_id: () -> ::String
24
+ def resource_type: () -> ::String
25
+ end
26
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ def resource_id: () -> ::String
29
+ def resource_type: () -> ::String
30
+ def service_code: () -> ::String
31
+ def quota_code: () -> ::String
32
+ end
33
+ class ThrottlingException < ::Aws::Errors::ServiceError
34
+ def message: () -> ::String
35
+ def service_code: () -> ::String
36
+ def quota_code: () -> ::String
37
+ def retry_after_seconds: () -> ::String
38
+ end
39
+ class ValidationException < ::Aws::Errors::ServiceError
40
+ def message: () -> ::String
41
+ def reason: () -> ::String
42
+ def field_list: () -> ::String
43
+ end
44
+ end
45
+ end
46
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,79 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ManagedBlockchainQuery
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ManagedBlockchainQuery/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> void
72
+ | (?Hash[Symbol, untyped]) -> void
73
+
74
+ def client: () -> Client
75
+
76
+
77
+ end
78
+ end
79
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,317 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ManagedBlockchainQuery
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class AssetContract
17
+ attr_accessor contract_identifier: Types::ContractIdentifier
18
+ attr_accessor token_standard: ("ERC20" | "ERC721" | "ERC1155")
19
+ attr_accessor deployer_address: ::String
20
+ SENSITIVE: []
21
+ end
22
+
23
+ class BatchGetTokenBalanceErrorItem
24
+ attr_accessor token_identifier: Types::TokenIdentifier
25
+ attr_accessor owner_identifier: Types::OwnerIdentifier
26
+ attr_accessor at_blockchain_instant: Types::BlockchainInstant
27
+ attr_accessor error_code: ::String
28
+ attr_accessor error_message: ::String
29
+ attr_accessor error_type: ("VALIDATION_EXCEPTION" | "RESOURCE_NOT_FOUND_EXCEPTION")
30
+ SENSITIVE: []
31
+ end
32
+
33
+ class BatchGetTokenBalanceInput
34
+ attr_accessor get_token_balance_inputs: ::Array[Types::BatchGetTokenBalanceInputItem]
35
+ SENSITIVE: []
36
+ end
37
+
38
+ class BatchGetTokenBalanceInputItem
39
+ attr_accessor token_identifier: Types::TokenIdentifier
40
+ attr_accessor owner_identifier: Types::OwnerIdentifier
41
+ attr_accessor at_blockchain_instant: Types::BlockchainInstant
42
+ SENSITIVE: []
43
+ end
44
+
45
+ class BatchGetTokenBalanceOutput
46
+ attr_accessor token_balances: ::Array[Types::BatchGetTokenBalanceOutputItem]
47
+ attr_accessor errors: ::Array[Types::BatchGetTokenBalanceErrorItem]
48
+ SENSITIVE: []
49
+ end
50
+
51
+ class BatchGetTokenBalanceOutputItem
52
+ attr_accessor owner_identifier: Types::OwnerIdentifier
53
+ attr_accessor token_identifier: Types::TokenIdentifier
54
+ attr_accessor balance: ::String
55
+ attr_accessor at_blockchain_instant: Types::BlockchainInstant
56
+ attr_accessor last_updated_time: Types::BlockchainInstant
57
+ SENSITIVE: []
58
+ end
59
+
60
+ class BlockchainInstant
61
+ attr_accessor time: ::Time
62
+ SENSITIVE: []
63
+ end
64
+
65
+ class ConfirmationStatusFilter
66
+ attr_accessor include: ::Array[("FINAL" | "NONFINAL")]
67
+ SENSITIVE: []
68
+ end
69
+
70
+ class ContractFilter
71
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
72
+ attr_accessor token_standard: ("ERC20" | "ERC721" | "ERC1155")
73
+ attr_accessor deployer_address: ::String
74
+ SENSITIVE: []
75
+ end
76
+
77
+ class ContractIdentifier
78
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
79
+ attr_accessor contract_address: ::String
80
+ SENSITIVE: []
81
+ end
82
+
83
+ class ContractMetadata
84
+ attr_accessor name: ::String
85
+ attr_accessor symbol: ::String
86
+ attr_accessor decimals: ::Integer
87
+ SENSITIVE: []
88
+ end
89
+
90
+ class GetAssetContractInput
91
+ attr_accessor contract_identifier: Types::ContractIdentifier
92
+ SENSITIVE: []
93
+ end
94
+
95
+ class GetAssetContractOutput
96
+ attr_accessor contract_identifier: Types::ContractIdentifier
97
+ attr_accessor token_standard: ("ERC20" | "ERC721" | "ERC1155")
98
+ attr_accessor deployer_address: ::String
99
+ attr_accessor metadata: Types::ContractMetadata
100
+ SENSITIVE: []
101
+ end
102
+
103
+ class GetTokenBalanceInput
104
+ attr_accessor token_identifier: Types::TokenIdentifier
105
+ attr_accessor owner_identifier: Types::OwnerIdentifier
106
+ attr_accessor at_blockchain_instant: Types::BlockchainInstant
107
+ SENSITIVE: []
108
+ end
109
+
110
+ class GetTokenBalanceOutput
111
+ attr_accessor owner_identifier: Types::OwnerIdentifier
112
+ attr_accessor token_identifier: Types::TokenIdentifier
113
+ attr_accessor balance: ::String
114
+ attr_accessor at_blockchain_instant: Types::BlockchainInstant
115
+ attr_accessor last_updated_time: Types::BlockchainInstant
116
+ SENSITIVE: []
117
+ end
118
+
119
+ class GetTransactionInput
120
+ attr_accessor transaction_hash: ::String
121
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
122
+ SENSITIVE: []
123
+ end
124
+
125
+ class GetTransactionOutput
126
+ attr_accessor transaction: Types::Transaction
127
+ SENSITIVE: []
128
+ end
129
+
130
+ class InternalServerException
131
+ attr_accessor message: ::String
132
+ attr_accessor retry_after_seconds: ::Integer
133
+ SENSITIVE: []
134
+ end
135
+
136
+ class ListAssetContractsInput
137
+ attr_accessor contract_filter: Types::ContractFilter
138
+ attr_accessor next_token: ::String
139
+ attr_accessor max_results: ::Integer
140
+ SENSITIVE: []
141
+ end
142
+
143
+ class ListAssetContractsOutput
144
+ attr_accessor contracts: ::Array[Types::AssetContract]
145
+ attr_accessor next_token: ::String
146
+ SENSITIVE: []
147
+ end
148
+
149
+ class ListTokenBalancesInput
150
+ attr_accessor owner_filter: Types::OwnerFilter
151
+ attr_accessor token_filter: Types::TokenFilter
152
+ attr_accessor next_token: ::String
153
+ attr_accessor max_results: ::Integer
154
+ SENSITIVE: []
155
+ end
156
+
157
+ class ListTokenBalancesOutput
158
+ attr_accessor token_balances: ::Array[Types::TokenBalance]
159
+ attr_accessor next_token: ::String
160
+ SENSITIVE: []
161
+ end
162
+
163
+ class ListTransactionEventsInput
164
+ attr_accessor transaction_hash: ::String
165
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
166
+ attr_accessor next_token: ::String
167
+ attr_accessor max_results: ::Integer
168
+ SENSITIVE: []
169
+ end
170
+
171
+ class ListTransactionEventsOutput
172
+ attr_accessor events: ::Array[Types::TransactionEvent]
173
+ attr_accessor next_token: ::String
174
+ SENSITIVE: []
175
+ end
176
+
177
+ class ListTransactionsInput
178
+ attr_accessor address: ::String
179
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
180
+ attr_accessor from_blockchain_instant: Types::BlockchainInstant
181
+ attr_accessor to_blockchain_instant: Types::BlockchainInstant
182
+ attr_accessor sort: Types::ListTransactionsSort
183
+ attr_accessor next_token: ::String
184
+ attr_accessor max_results: ::Integer
185
+ attr_accessor confirmation_status_filter: Types::ConfirmationStatusFilter
186
+ SENSITIVE: []
187
+ end
188
+
189
+ class ListTransactionsOutput
190
+ attr_accessor transactions: ::Array[Types::TransactionOutputItem]
191
+ attr_accessor next_token: ::String
192
+ SENSITIVE: []
193
+ end
194
+
195
+ class ListTransactionsSort
196
+ attr_accessor sort_by: ("TRANSACTION_TIMESTAMP")
197
+ attr_accessor sort_order: ("ASCENDING" | "DESCENDING")
198
+ SENSITIVE: []
199
+ end
200
+
201
+ class OwnerFilter
202
+ attr_accessor address: ::String
203
+ SENSITIVE: []
204
+ end
205
+
206
+ class OwnerIdentifier
207
+ attr_accessor address: ::String
208
+ SENSITIVE: []
209
+ end
210
+
211
+ class ResourceNotFoundException
212
+ attr_accessor message: ::String
213
+ attr_accessor resource_id: ::String
214
+ attr_accessor resource_type: ("collection")
215
+ SENSITIVE: []
216
+ end
217
+
218
+ class ServiceQuotaExceededException
219
+ attr_accessor message: ::String
220
+ attr_accessor resource_id: ::String
221
+ attr_accessor resource_type: ("collection")
222
+ attr_accessor service_code: ::String
223
+ attr_accessor quota_code: ::String
224
+ SENSITIVE: []
225
+ end
226
+
227
+ class ThrottlingException
228
+ attr_accessor message: ::String
229
+ attr_accessor service_code: ::String
230
+ attr_accessor quota_code: ::String
231
+ attr_accessor retry_after_seconds: ::Integer
232
+ SENSITIVE: []
233
+ end
234
+
235
+ class TokenBalance
236
+ attr_accessor owner_identifier: Types::OwnerIdentifier
237
+ attr_accessor token_identifier: Types::TokenIdentifier
238
+ attr_accessor balance: ::String
239
+ attr_accessor at_blockchain_instant: Types::BlockchainInstant
240
+ attr_accessor last_updated_time: Types::BlockchainInstant
241
+ SENSITIVE: []
242
+ end
243
+
244
+ class TokenFilter
245
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
246
+ attr_accessor contract_address: ::String
247
+ attr_accessor token_id: ::String
248
+ SENSITIVE: []
249
+ end
250
+
251
+ class TokenIdentifier
252
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
253
+ attr_accessor contract_address: ::String
254
+ attr_accessor token_id: ::String
255
+ SENSITIVE: []
256
+ end
257
+
258
+ class Transaction
259
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
260
+ attr_accessor block_hash: ::String
261
+ attr_accessor transaction_hash: ::String
262
+ attr_accessor block_number: ::String
263
+ attr_accessor transaction_timestamp: ::Time
264
+ attr_accessor transaction_index: ::Integer
265
+ attr_accessor number_of_transactions: ::Integer
266
+ attr_accessor to: ::String
267
+ attr_accessor from: ::String
268
+ attr_accessor contract_address: ::String
269
+ attr_accessor gas_used: ::String
270
+ attr_accessor cumulative_gas_used: ::String
271
+ attr_accessor effective_gas_price: ::String
272
+ attr_accessor signature_v: ::Integer
273
+ attr_accessor signature_r: ::String
274
+ attr_accessor signature_s: ::String
275
+ attr_accessor transaction_fee: ::String
276
+ attr_accessor transaction_id: ::String
277
+ attr_accessor confirmation_status: ("FINAL" | "NONFINAL")
278
+ attr_accessor execution_status: ("FAILED" | "SUCCEEDED")
279
+ SENSITIVE: []
280
+ end
281
+
282
+ class TransactionEvent
283
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
284
+ attr_accessor transaction_hash: ::String
285
+ attr_accessor event_type: ("ERC20_TRANSFER" | "ERC20_MINT" | "ERC20_BURN" | "ERC20_DEPOSIT" | "ERC20_WITHDRAWAL" | "ERC721_TRANSFER" | "ERC1155_TRANSFER" | "BITCOIN_VIN" | "BITCOIN_VOUT" | "INTERNAL_ETH_TRANSFER" | "ETH_TRANSFER")
286
+ attr_accessor from: ::String
287
+ attr_accessor to: ::String
288
+ attr_accessor value: ::String
289
+ attr_accessor contract_address: ::String
290
+ attr_accessor token_id: ::String
291
+ attr_accessor transaction_id: ::String
292
+ attr_accessor vout_index: ::Integer
293
+ SENSITIVE: []
294
+ end
295
+
296
+ class TransactionOutputItem
297
+ attr_accessor transaction_hash: ::String
298
+ attr_accessor network: ("ETHEREUM_MAINNET" | "ETHEREUM_SEPOLIA_TESTNET" | "BITCOIN_MAINNET" | "BITCOIN_TESTNET")
299
+ attr_accessor transaction_timestamp: ::Time
300
+ attr_accessor confirmation_status: ("FINAL" | "NONFINAL")
301
+ SENSITIVE: []
302
+ end
303
+
304
+ class ValidationException
305
+ attr_accessor message: ::String
306
+ attr_accessor reason: ("unknownOperation" | "cannotParse" | "fieldValidationFailed" | "other")
307
+ attr_accessor field_list: ::Array[Types::ValidationExceptionField]
308
+ SENSITIVE: []
309
+ end
310
+
311
+ class ValidationExceptionField
312
+ attr_accessor name: ::String
313
+ attr_accessor message: ::String
314
+ SENSITIVE: []
315
+ end
316
+ end
317
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module ManagedBlockchainQuery
10
+ module Waiters
11
+ end
12
+ end
13
+ 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.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-20 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.188.0
22
+ version: 3.191.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.188.0
32
+ version: 3.191.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -67,13 +67,18 @@ files:
67
67
  - lib/aws-sdk-managedblockchainquery/resource.rb
68
68
  - lib/aws-sdk-managedblockchainquery/types.rb
69
69
  - lib/aws-sdk-managedblockchainquery/waiters.rb
70
+ - sig/client.rbs
71
+ - sig/errors.rbs
72
+ - sig/resource.rbs
73
+ - sig/types.rbs
74
+ - sig/waiters.rbs
70
75
  homepage: https://github.com/aws/aws-sdk-ruby
71
76
  licenses:
72
77
  - Apache-2.0
73
78
  metadata:
74
79
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-managedblockchainquery
75
80
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-managedblockchainquery/CHANGELOG.md
76
- post_install_message:
81
+ post_install_message:
77
82
  rdoc_options: []
78
83
  require_paths:
79
84
  - lib
@@ -88,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
93
  - !ruby/object:Gem::Version
89
94
  version: '0'
90
95
  requirements: []
91
- rubygems_version: 3.1.6
92
- signing_key:
96
+ rubygems_version: 3.4.10
97
+ signing_key:
93
98
  specification_version: 4
94
99
  summary: AWS SDK for Ruby - Amazon Managed Blockchain Query
95
100
  test_files: []