privy_ruby 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/privy/models/balance_asset_by_chain.rb +2 -2
  5. data/lib/privy/models/currency.rb +5 -2
  6. data/lib/privy/models/custom_token_transfer_source.rb +15 -14
  7. data/lib/privy/models/ethereum_personal_sign_rpc_input.rb +2 -2
  8. data/lib/privy/models/ethereum_send_calls_rpc_input.rb +2 -2
  9. data/lib/privy/models/ethereum_send_calls_rpc_response_data.rb +5 -2
  10. data/lib/privy/models/ethereum_send_transaction_rpc_input.rb +2 -2
  11. data/lib/privy/models/ethereum_send_transaction_rpc_response_data.rb +2 -2
  12. data/lib/privy/models/ethereum_sign_typed_data_rpc_input.rb +2 -2
  13. data/lib/privy/models/ethereum_vault_details_response.rb +2 -2
  14. data/lib/privy/models/ethereum_yield_claim_input.rb +6 -2
  15. data/lib/privy/models/ethereum_yield_claim_response.rb +6 -2
  16. data/lib/privy/models/ethereum_yield_provider.rb +1 -0
  17. data/lib/privy/models/fiat_onramp_destination.rb +3 -3
  18. data/lib/privy/models/named_token_transfer_source.rb +18 -17
  19. data/lib/privy/models/solana_sign_and_send_transaction_rpc_input.rb +5 -2
  20. data/lib/privy/models/solana_sign_and_send_transaction_rpc_response_data.rb +5 -2
  21. data/lib/privy/models/swap_source.rb +6 -2
  22. data/lib/privy/models/token_transfer_destination.rb +1 -1
  23. data/lib/privy/models/transaction_broadcasted_webhook_payload.rb +3 -2
  24. data/lib/privy/models/transaction_chain_name_input.rb +1 -0
  25. data/lib/privy/models/transaction_confirmed_webhook_payload.rb +3 -2
  26. data/lib/privy/models/transaction_execution_reverted_webhook_payload.rb +3 -2
  27. data/lib/privy/models/transaction_failed_webhook_payload.rb +3 -2
  28. data/lib/privy/models/transaction_provider_error_webhook_payload.rb +3 -2
  29. data/lib/privy/models/transaction_replaced_webhook_payload.rb +3 -2
  30. data/lib/privy/models/transaction_still_pending_webhook_payload.rb +3 -2
  31. data/lib/privy/models/transfer_received_transaction_detail.rb +3 -0
  32. data/lib/privy/models/transfer_sent_transaction_detail.rb +3 -0
  33. data/lib/privy/models/tron_send_transaction_rpc_input.rb +5 -2
  34. data/lib/privy/models/tron_send_transaction_rpc_response_data.rb +5 -2
  35. data/lib/privy/models/unsafe_unwrap_webhook_event.rb +17 -1
  36. data/lib/privy/models/user_operation_input.rb +17 -1
  37. data/lib/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rb +153 -0
  38. data/lib/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rb +178 -0
  39. data/lib/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rb +177 -0
  40. data/lib/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rb +169 -0
  41. data/lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb +2 -2
  42. data/lib/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rb +2 -2
  43. data/lib/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rb +2 -2
  44. data/lib/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rb +2 -2
  45. data/lib/privy/models/wallet_action_transfer_created_webhook_payload.rb +2 -2
  46. data/lib/privy/models/wallet_action_transfer_failed_webhook_payload.rb +2 -2
  47. data/lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb +2 -2
  48. data/lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb +2 -2
  49. data/lib/privy/models/wallet_asset.rb +1 -0
  50. data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
  51. data/lib/privy/models/wallets/aave_vault_details.rb +2 -2
  52. data/lib/privy/models/wallets/balance_get_params.rb +9 -6
  53. data/lib/privy/models/wallets/balance_get_response.rb +3 -0
  54. data/lib/privy/models/wallets/earn_fee_collect_action_response.rb +149 -0
  55. data/lib/privy/models/wallets/earn_fee_collect_request_body.rb +20 -0
  56. data/lib/privy/models/wallets/earn_incentive_claim_action_response.rb +2 -2
  57. data/lib/privy/models/wallets/earn_incentive_claim_request_body.rb +2 -2
  58. data/lib/privy/models/wallets/earn_incentive_rewards_query.rb +2 -2
  59. data/lib/privy/models/wallets/ethereum_earn_provider.rb +1 -0
  60. data/lib/privy/models/wallets/ethereum_earn_vault_details_response.rb +4 -1
  61. data/lib/privy/models/wallets/list_wallet_actions_response.rb +2 -2
  62. data/lib/privy/models/wallets/morpho_vault_details.rb +2 -2
  63. data/lib/privy/models/wallets/transaction_get_params.rb +3 -0
  64. data/lib/privy/models/wallets/transfer_action_response.rb +2 -2
  65. data/lib/privy/models/wallets/veda_vault_details.rb +122 -0
  66. data/lib/privy/models/wallets/wallet_action_response.rb +4 -1
  67. data/lib/privy/models/wallets/wallet_action_type.rb +1 -0
  68. data/lib/privy/models/webhook_payload.rb +13 -1
  69. data/lib/privy/models.rb +12 -0
  70. data/lib/privy/resources/wallets/actions.rb +1 -1
  71. data/lib/privy/resources/wallets/balance.rb +2 -2
  72. data/lib/privy/resources/webhooks.rb +1 -1
  73. data/lib/privy/version.rb +1 -1
  74. data/lib/privy.rb +7 -0
  75. data/rbi/privy/models/balance_asset_by_chain.rbi +2 -2
  76. data/rbi/privy/models/currency.rbi +2 -2
  77. data/rbi/privy/models/custom_token_transfer_source.rbi +20 -15
  78. data/rbi/privy/models/ethereum_personal_sign_rpc_input.rbi +2 -2
  79. data/rbi/privy/models/ethereum_send_calls_rpc_input.rbi +2 -2
  80. data/rbi/privy/models/ethereum_send_calls_rpc_response_data.rbi +2 -2
  81. data/rbi/privy/models/ethereum_send_transaction_rpc_input.rbi +2 -2
  82. data/rbi/privy/models/ethereum_send_transaction_rpc_response_data.rbi +2 -2
  83. data/rbi/privy/models/ethereum_sign_typed_data_rpc_input.rbi +2 -2
  84. data/rbi/privy/models/ethereum_vault_details_response.rbi +2 -2
  85. data/rbi/privy/models/ethereum_yield_claim_input.rbi +4 -2
  86. data/rbi/privy/models/ethereum_yield_claim_response.rbi +4 -2
  87. data/rbi/privy/models/ethereum_yield_provider.rbi +1 -0
  88. data/rbi/privy/models/fiat_onramp_destination.rbi +4 -4
  89. data/rbi/privy/models/named_token_transfer_source.rbi +24 -19
  90. data/rbi/privy/models/solana_sign_and_send_transaction_rpc_input.rbi +2 -2
  91. data/rbi/privy/models/solana_sign_and_send_transaction_rpc_response_data.rbi +2 -2
  92. data/rbi/privy/models/swap_source.rbi +4 -2
  93. data/rbi/privy/models/token_transfer_destination.rbi +2 -2
  94. data/rbi/privy/models/transaction_broadcasted_webhook_payload.rbi +4 -2
  95. data/rbi/privy/models/transaction_chain_name_input.rbi +2 -0
  96. data/rbi/privy/models/transaction_confirmed_webhook_payload.rbi +4 -2
  97. data/rbi/privy/models/transaction_execution_reverted_webhook_payload.rbi +4 -2
  98. data/rbi/privy/models/transaction_failed_webhook_payload.rbi +4 -2
  99. data/rbi/privy/models/transaction_provider_error_webhook_payload.rbi +4 -2
  100. data/rbi/privy/models/transaction_replaced_webhook_payload.rbi +4 -2
  101. data/rbi/privy/models/transaction_still_pending_webhook_payload.rbi +4 -2
  102. data/rbi/privy/models/transfer_received_transaction_detail.rbi +5 -0
  103. data/rbi/privy/models/transfer_sent_transaction_detail.rbi +5 -0
  104. data/rbi/privy/models/tron_send_transaction_rpc_input.rbi +2 -2
  105. data/rbi/privy/models/tron_send_transaction_rpc_response_data.rbi +2 -2
  106. data/rbi/privy/models/unsafe_unwrap_webhook_event.rbi +4 -0
  107. data/rbi/privy/models/user_operation_input.rbi +22 -0
  108. data/rbi/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rbi +232 -0
  109. data/rbi/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rbi +271 -0
  110. data/rbi/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rbi +269 -0
  111. data/rbi/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rbi +258 -0
  112. data/rbi/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rbi +2 -2
  113. data/rbi/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rbi +2 -2
  114. data/rbi/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rbi +2 -2
  115. data/rbi/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rbi +2 -2
  116. data/rbi/privy/models/wallet_action_transfer_created_webhook_payload.rbi +2 -2
  117. data/rbi/privy/models/wallet_action_transfer_failed_webhook_payload.rbi +2 -2
  118. data/rbi/privy/models/wallet_action_transfer_rejected_webhook_payload.rbi +2 -2
  119. data/rbi/privy/models/wallet_action_transfer_succeeded_webhook_payload.rbi +2 -2
  120. data/rbi/privy/models/wallet_asset.rbi +1 -0
  121. data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
  122. data/rbi/privy/models/wallets/aave_vault_details.rbi +2 -2
  123. data/rbi/privy/models/wallets/balance_get_params.rbi +11 -6
  124. data/rbi/privy/models/wallets/balance_get_response.rbi +5 -0
  125. data/rbi/privy/models/wallets/earn_fee_collect_action_response.rbi +236 -0
  126. data/rbi/privy/models/wallets/earn_fee_collect_request_body.rbi +33 -0
  127. data/rbi/privy/models/wallets/earn_incentive_claim_action_response.rbi +2 -2
  128. data/rbi/privy/models/wallets/earn_incentive_claim_request_body.rbi +4 -4
  129. data/rbi/privy/models/wallets/earn_incentive_rewards_query.rbi +2 -2
  130. data/rbi/privy/models/wallets/ethereum_earn_provider.rbi +1 -0
  131. data/rbi/privy/models/wallets/ethereum_earn_vault_details_response.rbi +2 -1
  132. data/rbi/privy/models/wallets/list_wallet_actions_response.rbi +6 -3
  133. data/rbi/privy/models/wallets/morpho_vault_details.rbi +2 -2
  134. data/rbi/privy/models/wallets/transaction_get_params.rbi +5 -0
  135. data/rbi/privy/models/wallets/transfer_action_response.rbi +2 -2
  136. data/rbi/privy/models/wallets/veda_vault_details.rbi +157 -0
  137. data/rbi/privy/models/wallets/wallet_action_response.rbi +2 -1
  138. data/rbi/privy/models/wallets/wallet_action_type.rbi +5 -0
  139. data/rbi/privy/models/webhook_payload.rbi +5 -1
  140. data/rbi/privy/models.rbi +12 -0
  141. data/rbi/privy/resources/wallets/balance.rbi +2 -2
  142. data/rbi/privy/resources/wallets/earn/ethereum/incentive.rbi +2 -2
  143. data/rbi/privy/resources/webhooks.rbi +4 -0
  144. data/sig/privy/models/custom_token_transfer_source.rbs +8 -6
  145. data/sig/privy/models/ethereum_yield_provider.rbs +2 -1
  146. data/sig/privy/models/named_token_transfer_source.rbs +7 -5
  147. data/sig/privy/models/transaction_chain_name_input.rbs +2 -0
  148. data/sig/privy/models/transfer_received_transaction_detail.rbs +2 -0
  149. data/sig/privy/models/transfer_sent_transaction_detail.rbs +2 -0
  150. data/sig/privy/models/unsafe_unwrap_webhook_event.rbs +4 -0
  151. data/sig/privy/models/user_operation_input.rbs +14 -0
  152. data/sig/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rbs +111 -0
  153. data/sig/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rbs +126 -0
  154. data/sig/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rbs +126 -0
  155. data/sig/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rbs +121 -0
  156. data/sig/privy/models/wallet_asset.rbs +2 -0
  157. data/sig/privy/models/wallet_ethereum_asset.rbs +11 -1
  158. data/sig/privy/models/wallets/balance_get_params.rbs +2 -0
  159. data/sig/privy/models/wallets/balance_get_response.rbs +2 -0
  160. data/sig/privy/models/wallets/earn_fee_collect_action_response.rbs +114 -0
  161. data/sig/privy/models/wallets/earn_fee_collect_request_body.rbs +15 -0
  162. data/sig/privy/models/wallets/ethereum_earn_provider.rbs +2 -1
  163. data/sig/privy/models/wallets/ethereum_earn_vault_details_response.rbs +3 -1
  164. data/sig/privy/models/wallets/transaction_get_params.rbs +2 -0
  165. data/sig/privy/models/wallets/veda_vault_details.rbs +87 -0
  166. data/sig/privy/models/wallets/wallet_action_response.rbs +1 -0
  167. data/sig/privy/models/wallets/wallet_action_type.rbs +2 -0
  168. data/sig/privy/models/webhook_payload.rbs +4 -0
  169. data/sig/privy/models.rbs +8 -0
  170. data/sig/privy/resources/webhooks.rbs +4 -0
  171. metadata +23 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e71a526f910a6b42076902c1e0c8baaf2788413c776110de063241a36f8a28f7
4
- data.tar.gz: 3c331ec1869155a60213f32ba140a9696f4af8072eb089e8dab21207e9dcbd52
3
+ metadata.gz: 9da072396f82f2edf8421e4ea8b4d1b172acd88fa9350df5d148161175334a47
4
+ data.tar.gz: e071fe00d6a391c6bf77f87c587232d9c4653dca453f3b36e92662f9a87758ff
5
5
  SHA512:
6
- metadata.gz: 24bc22c3f6c42f556bd83554a88f319fcaf94a71a47a9d7f502b2e5855a9e307c79135916ac579999d3ef1ab48a5e9b8fd2a1679ffe4d3ea9aa3f70ac8396187
7
- data.tar.gz: d062da13f5aec30b6fd974c0bebba6945e76ff5338555b6e086f7e379d49903529a8eb83a0987e1082a38c315c8c6f6c357523d7cc21c021021482dad25e90c3
6
+ metadata.gz: a637be8c1993aeab345122494a8486af4aaaf54863adace4acd2fcd2678bf7e57ea01ff2fe7c84b410c21c5f6293aa9b69a2cbe73d09065601af75c9d1ed021b
7
+ data.tar.gz: 3cf88d166d403a8304c39c7f18dda070a9375862fa2d53d8cc2af554e6ea78801d16eb1b504fae574e1013fab0c4c86d44cf06ed23f7a0778f8b21b4c3350878
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0 (2026-07-22)
4
+
5
+ Full Changelog: [v0.5.0...v0.6.0](https://github.com/privy-io/ruby-sdk/compare/v0.5.0...v0.6.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([44a9457](https://github.com/privy-io/ruby-sdk/commit/44a94575bfba4240a63f13f1ed190d90cd8acada))
10
+ * **api:** api update ([24431b8](https://github.com/privy-io/ruby-sdk/commit/24431b8cf491a36dabdf0bbe51c33ba1b2599913))
11
+ * **api:** api update ([3b76c00](https://github.com/privy-io/ruby-sdk/commit/3b76c00f2ebc28e1636a90b7e182698c49f2c293))
12
+ * **api:** api update ([d2d1208](https://github.com/privy-io/ruby-sdk/commit/d2d12088c0336ec81d3505e254a62a695738c556))
13
+ * **stlc:** configurable CI runner and private-production-repo support in workflow templates ([4620ce8](https://github.com/privy-io/ruby-sdk/commit/4620ce8b862b39b7449446b5bf7eadea38d2e107))
14
+
15
+ ## 0.5.0 (2026-07-10)
16
+
17
+ Full Changelog: [v0.4.0...v0.5.0](https://github.com/privy-io/ruby-sdk/compare/v0.4.0...v0.5.0)
18
+
19
+ ### Features
20
+
21
+ * **api:** api update ([8a25375](https://github.com/privy-io/ruby-sdk/commit/8a25375fc46294e194c8f9b24dc464f0a0d19b4a))
22
+ * **api:** api update ([b466cdf](https://github.com/privy-io/ruby-sdk/commit/b466cdf42c0287e880ff11809c1efa617527bd8d))
23
+ * **api:** api update ([6ac3d03](https://github.com/privy-io/ruby-sdk/commit/6ac3d039ff6d14791d25737fd4cc7c2f5304c876))
24
+
3
25
  ## 0.4.0 (2026-07-07)
4
26
 
5
27
  Full Changelog: [v0.3.0...v0.4.0](https://github.com/privy-io/ruby-sdk/compare/v0.3.0...v0.4.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "privy_ruby", "~> 0.4.0"
20
+ gem "privy_ruby", "~> 0.6.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -11,7 +11,7 @@ module Privy
11
11
  required :amount, String
12
12
 
13
13
  # @!attribute chain_id
14
- # The CAIP-2 chain identifier (e.g. eip155:8453).
14
+ # The CAIP-2 chain identifier (e.g. eip155:4217 for Tempo, eip155:8453 for Base).
15
15
  #
16
16
  # @return [String]
17
17
  required :chain_id, String
@@ -36,7 +36,7 @@ module Privy
36
36
  #
37
37
  # @param amount [String] The amount of the asset held on this chain, denominated in the unit of the asset
38
38
  #
39
- # @param chain_id [String] The CAIP-2 chain identifier (e.g. eip155:8453).
39
+ # @param chain_id [String] The CAIP-2 chain identifier (e.g. eip155:4217 for Tempo, eip155:8453 for Base).
40
40
  #
41
41
  # @param price [Privy::Models::CurrencyAmount] A monetary value with its currency denomination.
42
42
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class Currency < Privy::Internal::Type::BaseModel
6
6
  # @!attribute chain
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :chain, String
@@ -16,9 +16,12 @@ module Privy
16
16
  optional :asset, enum: -> { Privy::CurrencyAsset }
17
17
 
18
18
  # @!method initialize(chain:, asset: nil)
19
+ # Some parameter documentations has been truncated, see {Privy::Models::Currency}
20
+ # for more details.
21
+ #
19
22
  # A crypto currency identified by a CAIP-2 chain ID and optional asset.
20
23
  #
21
- # @param chain [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
24
+ # @param chain [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
22
25
  #
23
26
  # @param asset [Symbol, Privy::Models::CurrencyAsset] A currency asset type.
24
27
  end
@@ -3,16 +3,6 @@
3
3
  module Privy
4
4
  module Models
5
5
  class CustomTokenTransferSource < Privy::Internal::Type::BaseModel
6
- # @!attribute amount
7
- # @deprecated
8
- #
9
- # Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
10
- # USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
11
- # in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
12
- #
13
- # @return [String]
14
- required :amount, String
15
-
16
6
  # @!attribute asset_address
17
7
  # The token contract address (EVM) or mint address (Solana) of the asset to
18
8
  # transfer.
@@ -22,24 +12,35 @@ module Privy
22
12
 
23
13
  # @!attribute chain
24
14
  # The blockchain network on which to perform the transfer. Supported chains
25
- # include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
15
+ # include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
26
16
  # respective testnets.
27
17
  #
28
18
  # @return [String]
29
19
  required :chain, String
30
20
 
31
- # @!method initialize(amount:, asset_address:, chain:)
21
+ # @!attribute amount
22
+ # @deprecated
23
+ #
24
+ # Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
25
+ # USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
26
+ # in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
27
+ # Deprecated: use the top-level `amount` field instead.
28
+ #
29
+ # @return [String, nil]
30
+ optional :amount, String
31
+
32
+ # @!method initialize(asset_address:, chain:, amount: nil)
32
33
  # Some parameter documentations has been truncated, see
33
34
  # {Privy::Models::CustomTokenTransferSource} for more details.
34
35
  #
35
36
  # Source for a transfer identified by a token contract address (EVM) or mint
36
37
  # address (Solana). Use this variant for tokens that are not first-class assets.
37
38
  #
38
- # @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
39
- #
40
39
  # @param asset_address [String] The token contract address (EVM) or mint address (Solana) of the asset to transf
41
40
  #
42
41
  # @param chain [String] The blockchain network on which to perform the transfer. Supported chains includ
42
+ #
43
+ # @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
43
44
  end
44
45
  end
45
46
  end
@@ -20,7 +20,7 @@ module Privy
20
20
  optional :address, String
21
21
 
22
22
  # @!attribute caip2
23
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
23
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
24
24
  #
25
25
  # @return [String, nil]
26
26
  optional :caip2, String
@@ -54,7 +54,7 @@ module Privy
54
54
  #
55
55
  # @param address [String]
56
56
  #
57
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
57
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
58
58
  #
59
59
  # @param chain_type [Symbol, Privy::Models::EthereumPersonalSignRpcInput::ChainType]
60
60
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendCallsRpcInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -54,7 +54,7 @@ module Privy
54
54
  # Executes the `wallet_sendCalls` RPC (EIP-5792) to batch multiple calls into a
55
55
  # single atomic transaction.
56
56
  #
57
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
57
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
58
58
  #
59
59
  # @param method_ [Symbol, Privy::Models::EthereumSendCallsRpcInput::Method]
60
60
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendCallsRpcResponseData < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -15,9 +15,12 @@ module Privy
15
15
  required :transaction_id, String
16
16
 
17
17
  # @!method initialize(caip2:, transaction_id:)
18
+ # Some parameter documentations has been truncated, see
19
+ # {Privy::Models::EthereumSendCallsRpcResponseData} for more details.
20
+ #
18
21
  # Data returned by the `wallet_sendCalls` RPC.
19
22
  #
20
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
23
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
21
24
  #
22
25
  # @param transaction_id [String]
23
26
  end
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendTransactionRpcInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -58,7 +58,7 @@ module Privy
58
58
  #
59
59
  # Executes the EVM `eth_sendTransaction` RPC to sign and broadcast a transaction.
60
60
  #
61
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
61
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
62
62
  #
63
63
  # @param method_ [Symbol, Privy::Models::EthereumSendTransactionRpcInput::Method]
64
64
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class EthereumSendTransactionRpcResponseData < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -42,7 +42,7 @@ module Privy
42
42
  #
43
43
  # Data returned by the EVM `eth_sendTransaction` RPC.
44
44
  #
45
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
45
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
46
46
  #
47
47
  # @param hash_ [String]
48
48
  #
@@ -20,7 +20,7 @@ module Privy
20
20
  optional :address, String
21
21
 
22
22
  # @!attribute caip2
23
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
23
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
24
24
  #
25
25
  # @return [String, nil]
26
26
  optional :caip2, String
@@ -55,7 +55,7 @@ module Privy
55
55
  #
56
56
  # @param address [String]
57
57
  #
58
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
58
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
59
59
  #
60
60
  # @param chain_type [Symbol, Privy::Models::EthereumSignTypedDataRpcInput::ChainType]
61
61
  #
@@ -29,7 +29,7 @@ module Privy
29
29
  required :available_liquidity_usd, Float, nil?: true
30
30
 
31
31
  # @!attribute caip2
32
- # Chain identifier (e.g., eip155:8453).
32
+ # Chain identifier (e.g., eip155:4217 for Tempo, eip155:8453 for Base).
33
33
  #
34
34
  # @return [String]
35
35
  required :caip2, String
@@ -79,7 +79,7 @@ module Privy
79
79
  #
80
80
  # @param available_liquidity_usd [Float, nil] Assets available for instant withdrawal in USD.
81
81
  #
82
- # @param caip2 [String] Chain identifier (e.g., eip155:8453).
82
+ # @param caip2 [String] Chain identifier (e.g., eip155:4217 for Tempo, eip155:8453 for Base).
83
83
  #
84
84
  # @param name [String] Human-readable vault name from the yield provider.
85
85
  #
@@ -4,15 +4,19 @@ module Privy
4
4
  module Models
5
5
  class EthereumYieldClaimInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
7
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
8
+ # Base).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
11
12
 
12
13
  # @!method initialize(caip2:)
14
+ # Some parameter documentations has been truncated, see
15
+ # {Privy::Models::EthereumYieldClaimInput} for more details.
16
+ #
13
17
  # Input for claiming incentive rewards from vault participation.
14
18
  #
15
- # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
19
+ # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
16
20
  end
17
21
  end
18
22
  end
@@ -10,7 +10,8 @@ module Privy
10
10
  required :id, String
11
11
 
12
12
  # @!attribute caip2
13
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
13
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
14
+ # Base).
14
15
  #
15
16
  # @return [String]
16
17
  required :caip2, String
@@ -40,11 +41,14 @@ module Privy
40
41
  required :updated_at, Float
41
42
 
42
43
  # @!method initialize(id:, caip2:, created_at:, rewards:, status:, updated_at:)
44
+ # Some parameter documentations has been truncated, see
45
+ # {Privy::Models::EthereumYieldClaimResponse} for more details.
46
+ #
43
47
  # Response from a yield reward claim operation.
44
48
  #
45
49
  # @param id [String] Privy transaction record ID for the claim operation.
46
50
  #
47
- # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
51
+ # @param caip2 [String] An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
48
52
  #
49
53
  # @param created_at [Float] Unix timestamp of when the claim was created, in milliseconds.
50
54
  #
@@ -8,6 +8,7 @@ module Privy
8
8
 
9
9
  MORPHO = :morpho
10
10
  AAVE = :aave
11
+ VEDA = :veda
11
12
 
12
13
  # @!method self.values
13
14
  # @return [Array<Symbol>]
@@ -17,8 +17,8 @@ module Privy
17
17
  required :asset, String
18
18
 
19
19
  # @!attribute chain
20
- # A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
21
- # Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
20
+ # A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
21
+ # Tempo or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
22
22
  #
23
23
  # @return [String]
24
24
  required :chain, String
@@ -33,7 +33,7 @@ module Privy
33
33
  #
34
34
  # @param asset [String] Token identifier string. EVM-shaped 40-hex token addresses normalize to checksum
35
35
  #
36
- # @param chain [String] A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for Eth
36
+ # @param chain [String] A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
37
37
  end
38
38
  end
39
39
  end
@@ -3,43 +3,44 @@
3
3
  module Privy
4
4
  module Models
5
5
  class NamedTokenTransferSource < Privy::Internal::Type::BaseModel
6
- # @!attribute amount
7
- # @deprecated
8
- #
9
- # Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
10
- # USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
11
- # in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
12
- #
13
- # @return [String]
14
- required :amount, String
15
-
16
6
  # @!attribute asset
17
- # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth'
18
- # (native Ethereum), 'sol' (native Solana).
7
+ # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd'
8
+ # (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
19
9
  #
20
10
  # @return [String]
21
11
  required :asset, String
22
12
 
23
13
  # @!attribute chain
24
14
  # The blockchain network on which to perform the transfer. Supported chains
25
- # include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
15
+ # include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
26
16
  # respective testnets.
27
17
  #
28
18
  # @return [String]
29
19
  required :chain, String
30
20
 
31
- # @!method initialize(amount:, asset:, chain:)
21
+ # @!attribute amount
22
+ # @deprecated
23
+ #
24
+ # Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
25
+ # USDC, "0.01" for 0.01 ETH). For exact_input, specifies the amount to send. Not
26
+ # in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
27
+ # Deprecated: use the top-level `amount` field instead.
28
+ #
29
+ # @return [String, nil]
30
+ optional :amount, String
31
+
32
+ # @!method initialize(asset:, chain:, amount: nil)
32
33
  # Some parameter documentations has been truncated, see
33
34
  # {Privy::Models::NamedTokenTransferSource} for more details.
34
35
  #
35
36
  # Source for a transfer identified by a named asset (e.g. "usdc", "eth"). Use this
36
37
  # variant for first-class assets maintained by Privy.
37
38
  #
38
- # @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
39
- #
40
- # @param asset [String] The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth' (n
39
+ # @param asset [String] The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd' (stablecoins
41
40
  #
42
41
  # @param chain [String] The blockchain network on which to perform the transfer. Supported chains includ
42
+ #
43
+ # @param amount [String] Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5 USDC
43
44
  end
44
45
  end
45
46
  end
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class SolanaSignAndSendTransactionRpcInput < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -51,10 +51,13 @@ module Privy
51
51
  optional :wallet_id, String
52
52
 
53
53
  # @!method initialize(caip2:, method_:, params:, address: nil, chain_type: nil, optimistic_broadcast: nil, reference_id: nil, sponsor: nil, wallet_id: nil)
54
+ # Some parameter documentations has been truncated, see
55
+ # {Privy::Models::SolanaSignAndSendTransactionRpcInput} for more details.
56
+ #
54
57
  # Executes the SVM `signAndSendTransaction` RPC to sign and broadcast a
55
58
  # transaction.
56
59
  #
57
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
60
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
58
61
  #
59
62
  # @param method_ [Symbol, Privy::Models::SolanaSignAndSendTransactionRpcInput::Method]
60
63
  #
@@ -4,7 +4,7 @@ module Privy
4
4
  module Models
5
5
  class SolanaSignAndSendTransactionRpcResponseData < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
7
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
8
8
  #
9
9
  # @return [String]
10
10
  required :caip2, String
@@ -30,9 +30,12 @@ module Privy
30
30
  optional :transaction_id, String
31
31
 
32
32
  # @!method initialize(caip2:, hash_:, reference_id: nil, signed_transaction: nil, transaction_id: nil)
33
+ # Some parameter documentations has been truncated, see
34
+ # {Privy::Models::SolanaSignAndSendTransactionRpcResponseData} for more details.
35
+ #
33
36
  # Data returned by the SVM `signAndSendTransaction` RPC.
34
37
  #
35
- # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:1').
38
+ # @param caip2 [String] A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
36
39
  #
37
40
  # @param hash_ [String]
38
41
  #
@@ -10,17 +10,21 @@ module Privy
10
10
  required :asset_address, String
11
11
 
12
12
  # @!attribute caip2
13
- # CAIP-2 chain identifier (e.g., "eip155:1").
13
+ # CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:1" for
14
+ # Ethereum).
14
15
  #
15
16
  # @return [String]
16
17
  required :caip2, String
17
18
 
18
19
  # @!method initialize(asset_address:, caip2:)
20
+ # Some parameter documentations has been truncated, see
21
+ # {Privy::Models::SwapSource} for more details.
22
+ #
19
23
  # The input side of a swap request, including token and chain.
20
24
  #
21
25
  # @param asset_address [String] Token contract address to sell, or "native" for the chain's native token.
22
26
  #
23
- # @param caip2 [String] CAIP-2 chain identifier (e.g., "eip155:1").
27
+ # @param caip2 [String] CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:1" for Ethereum)
24
28
  end
25
29
  end
26
30
  end
@@ -18,7 +18,7 @@ module Privy
18
18
 
19
19
  # @!attribute chain
20
20
  # The destination blockchain network. Required for cross-chain transfers (e.g.,
21
- # source 'base' to destination 'arbitrum').
21
+ # source 'tempo' to destination 'base').
22
22
  #
23
23
  # @return [String, nil]
24
24
  optional :chain, String
@@ -4,7 +4,8 @@ module Privy
4
4
  module Models
5
5
  class TransactionBroadcastedWebhookPayload < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
7
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
8
+ # mainnet).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
@@ -46,7 +47,7 @@ module Privy
46
47
  #
47
48
  # Payload for the transaction.broadcasted webhook event.
48
49
  #
49
- # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
50
+ # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
50
51
  #
51
52
  # @param transaction_hash [String] The blockchain transaction hash.
52
53
  #
@@ -10,6 +10,7 @@ module Privy
10
10
  ARBITRUM = :arbitrum
11
11
  AVALANCHE = :avalanche
12
12
  BASE = :base
13
+ BASE_SEPOLIA = :base_sepolia
13
14
  BSC = :bsc
14
15
  TEMPO = :tempo
15
16
  LINEA = :linea
@@ -4,7 +4,8 @@ module Privy
4
4
  module Models
5
5
  class TransactionConfirmedWebhookPayload < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
7
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
8
+ # mainnet).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
@@ -46,7 +47,7 @@ module Privy
46
47
  #
47
48
  # Payload for the transaction.confirmed webhook event.
48
49
  #
49
- # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
50
+ # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
50
51
  #
51
52
  # @param transaction_hash [String] The blockchain transaction hash.
52
53
  #
@@ -4,7 +4,8 @@ module Privy
4
4
  module Models
5
5
  class TransactionExecutionRevertedWebhookPayload < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
7
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
8
+ # mainnet).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
@@ -46,7 +47,7 @@ module Privy
46
47
  #
47
48
  # Payload for the transaction.execution_reverted webhook event.
48
49
  #
49
- # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
50
+ # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
50
51
  #
51
52
  # @param transaction_hash [String] The blockchain transaction hash.
52
53
  #
@@ -4,7 +4,8 @@ module Privy
4
4
  module Models
5
5
  class TransactionFailedWebhookPayload < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
7
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
8
+ # mainnet).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
@@ -46,7 +47,7 @@ module Privy
46
47
  #
47
48
  # Payload for the transaction.failed webhook event.
48
49
  #
49
- # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
50
+ # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
50
51
  #
51
52
  # @param transaction_hash [String] The blockchain transaction hash.
52
53
  #
@@ -4,7 +4,8 @@ module Privy
4
4
  module Models
5
5
  class TransactionProviderErrorWebhookPayload < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
7
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
8
+ # mainnet).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
@@ -46,7 +47,7 @@ module Privy
46
47
  #
47
48
  # Payload for the transaction.provider_error webhook event.
48
49
  #
49
- # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
50
+ # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
50
51
  #
51
52
  # @param transaction_hash [String] The blockchain transaction hash.
52
53
  #
@@ -4,7 +4,8 @@ module Privy
4
4
  module Models
5
5
  class TransactionReplacedWebhookPayload < Privy::Internal::Type::BaseModel
6
6
  # @!attribute caip2
7
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
7
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
8
+ # mainnet).
8
9
  #
9
10
  # @return [String]
10
11
  required :caip2, String
@@ -46,7 +47,7 @@ module Privy
46
47
  #
47
48
  # Payload for the transaction.replaced webhook event.
48
49
  #
49
- # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
50
+ # @param caip2 [String] The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
50
51
  #
51
52
  # @param transaction_hash [String] The blockchain transaction hash.
52
53
  #