privy_ruby 0.5.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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -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 +1 -1
  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/fiat_onramp_destination.rb +3 -3
  17. data/lib/privy/models/named_token_transfer_source.rb +4 -4
  18. data/lib/privy/models/solana_sign_and_send_transaction_rpc_input.rb +5 -2
  19. data/lib/privy/models/solana_sign_and_send_transaction_rpc_response_data.rb +5 -2
  20. data/lib/privy/models/swap_source.rb +6 -2
  21. data/lib/privy/models/token_transfer_destination.rb +1 -1
  22. data/lib/privy/models/transaction_broadcasted_webhook_payload.rb +3 -2
  23. data/lib/privy/models/transaction_chain_name_input.rb +1 -0
  24. data/lib/privy/models/transaction_confirmed_webhook_payload.rb +3 -2
  25. data/lib/privy/models/transaction_execution_reverted_webhook_payload.rb +3 -2
  26. data/lib/privy/models/transaction_failed_webhook_payload.rb +3 -2
  27. data/lib/privy/models/transaction_provider_error_webhook_payload.rb +3 -2
  28. data/lib/privy/models/transaction_replaced_webhook_payload.rb +3 -2
  29. data/lib/privy/models/transaction_still_pending_webhook_payload.rb +3 -2
  30. data/lib/privy/models/transfer_received_transaction_detail.rb +3 -0
  31. data/lib/privy/models/transfer_sent_transaction_detail.rb +3 -0
  32. data/lib/privy/models/tron_send_transaction_rpc_input.rb +5 -2
  33. data/lib/privy/models/tron_send_transaction_rpc_response_data.rb +5 -2
  34. data/lib/privy/models/user_operation_input.rb +17 -1
  35. data/lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb +2 -2
  36. data/lib/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rb +2 -2
  37. data/lib/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rb +2 -2
  38. data/lib/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rb +2 -2
  39. data/lib/privy/models/wallet_action_transfer_created_webhook_payload.rb +2 -2
  40. data/lib/privy/models/wallet_action_transfer_failed_webhook_payload.rb +2 -2
  41. data/lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb +2 -2
  42. data/lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb +2 -2
  43. data/lib/privy/models/wallet_asset.rb +1 -0
  44. data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
  45. data/lib/privy/models/wallets/aave_vault_details.rb +2 -2
  46. data/lib/privy/models/wallets/balance_get_params.rb +9 -6
  47. data/lib/privy/models/wallets/balance_get_response.rb +3 -0
  48. data/lib/privy/models/wallets/earn_incentive_claim_action_response.rb +2 -2
  49. data/lib/privy/models/wallets/earn_incentive_claim_request_body.rb +2 -2
  50. data/lib/privy/models/wallets/earn_incentive_rewards_query.rb +2 -2
  51. data/lib/privy/models/wallets/morpho_vault_details.rb +2 -2
  52. data/lib/privy/models/wallets/transaction_get_params.rb +3 -0
  53. data/lib/privy/models/wallets/transfer_action_response.rb +2 -2
  54. data/lib/privy/models/wallets/veda_vault_details.rb +2 -2
  55. data/lib/privy/resources/wallets/balance.rb +2 -2
  56. data/lib/privy/version.rb +1 -1
  57. data/rbi/privy/models/balance_asset_by_chain.rbi +2 -2
  58. data/rbi/privy/models/currency.rbi +2 -2
  59. data/rbi/privy/models/custom_token_transfer_source.rbi +2 -2
  60. data/rbi/privy/models/ethereum_personal_sign_rpc_input.rbi +2 -2
  61. data/rbi/privy/models/ethereum_send_calls_rpc_input.rbi +2 -2
  62. data/rbi/privy/models/ethereum_send_calls_rpc_response_data.rbi +2 -2
  63. data/rbi/privy/models/ethereum_send_transaction_rpc_input.rbi +2 -2
  64. data/rbi/privy/models/ethereum_send_transaction_rpc_response_data.rbi +2 -2
  65. data/rbi/privy/models/ethereum_sign_typed_data_rpc_input.rbi +2 -2
  66. data/rbi/privy/models/ethereum_vault_details_response.rbi +2 -2
  67. data/rbi/privy/models/ethereum_yield_claim_input.rbi +4 -2
  68. data/rbi/privy/models/ethereum_yield_claim_response.rbi +4 -2
  69. data/rbi/privy/models/fiat_onramp_destination.rbi +4 -4
  70. data/rbi/privy/models/named_token_transfer_source.rbi +6 -6
  71. data/rbi/privy/models/solana_sign_and_send_transaction_rpc_input.rbi +2 -2
  72. data/rbi/privy/models/solana_sign_and_send_transaction_rpc_response_data.rbi +2 -2
  73. data/rbi/privy/models/swap_source.rbi +4 -2
  74. data/rbi/privy/models/token_transfer_destination.rbi +2 -2
  75. data/rbi/privy/models/transaction_broadcasted_webhook_payload.rbi +4 -2
  76. data/rbi/privy/models/transaction_chain_name_input.rbi +2 -0
  77. data/rbi/privy/models/transaction_confirmed_webhook_payload.rbi +4 -2
  78. data/rbi/privy/models/transaction_execution_reverted_webhook_payload.rbi +4 -2
  79. data/rbi/privy/models/transaction_failed_webhook_payload.rbi +4 -2
  80. data/rbi/privy/models/transaction_provider_error_webhook_payload.rbi +4 -2
  81. data/rbi/privy/models/transaction_replaced_webhook_payload.rbi +4 -2
  82. data/rbi/privy/models/transaction_still_pending_webhook_payload.rbi +4 -2
  83. data/rbi/privy/models/transfer_received_transaction_detail.rbi +5 -0
  84. data/rbi/privy/models/transfer_sent_transaction_detail.rbi +5 -0
  85. data/rbi/privy/models/tron_send_transaction_rpc_input.rbi +2 -2
  86. data/rbi/privy/models/tron_send_transaction_rpc_response_data.rbi +2 -2
  87. data/rbi/privy/models/user_operation_input.rbi +22 -0
  88. data/rbi/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rbi +2 -2
  89. data/rbi/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rbi +2 -2
  90. data/rbi/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rbi +2 -2
  91. data/rbi/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rbi +2 -2
  92. data/rbi/privy/models/wallet_action_transfer_created_webhook_payload.rbi +2 -2
  93. data/rbi/privy/models/wallet_action_transfer_failed_webhook_payload.rbi +2 -2
  94. data/rbi/privy/models/wallet_action_transfer_rejected_webhook_payload.rbi +2 -2
  95. data/rbi/privy/models/wallet_action_transfer_succeeded_webhook_payload.rbi +2 -2
  96. data/rbi/privy/models/wallet_asset.rbi +1 -0
  97. data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
  98. data/rbi/privy/models/wallets/aave_vault_details.rbi +2 -2
  99. data/rbi/privy/models/wallets/balance_get_params.rbi +11 -6
  100. data/rbi/privy/models/wallets/balance_get_response.rbi +5 -0
  101. data/rbi/privy/models/wallets/earn_incentive_claim_action_response.rbi +2 -2
  102. data/rbi/privy/models/wallets/earn_incentive_claim_request_body.rbi +4 -4
  103. data/rbi/privy/models/wallets/earn_incentive_rewards_query.rbi +2 -2
  104. data/rbi/privy/models/wallets/morpho_vault_details.rbi +2 -2
  105. data/rbi/privy/models/wallets/transaction_get_params.rbi +5 -0
  106. data/rbi/privy/models/wallets/transfer_action_response.rbi +2 -2
  107. data/rbi/privy/models/wallets/veda_vault_details.rbi +2 -2
  108. data/rbi/privy/resources/wallets/balance.rbi +2 -2
  109. data/rbi/privy/resources/wallets/earn/ethereum/incentive.rbi +2 -2
  110. data/sig/privy/models/transaction_chain_name_input.rbs +2 -0
  111. data/sig/privy/models/transfer_received_transaction_detail.rbs +2 -0
  112. data/sig/privy/models/transfer_sent_transaction_detail.rbs +2 -0
  113. data/sig/privy/models/user_operation_input.rbs +14 -0
  114. data/sig/privy/models/wallet_asset.rbs +2 -0
  115. data/sig/privy/models/wallet_ethereum_asset.rbs +11 -1
  116. data/sig/privy/models/wallets/balance_get_params.rbs +2 -0
  117. data/sig/privy/models/wallets/balance_get_response.rbs +2 -0
  118. data/sig/privy/models/wallets/transaction_get_params.rbs +2 -0
  119. metadata +2 -2
@@ -8,14 +8,16 @@ module Privy
8
8
  T.any(Privy::EthereumYieldClaimInput, Privy::Internal::AnyHash)
9
9
  end
10
10
 
11
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
11
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
12
+ # Base).
12
13
  sig { returns(String) }
13
14
  attr_accessor :caip2
14
15
 
15
16
  # Input for claiming incentive rewards from vault participation.
16
17
  sig { params(caip2: String).returns(T.attached_class) }
17
18
  def self.new(
18
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
19
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
20
+ # Base).
19
21
  caip2:
20
22
  )
21
23
  end
@@ -12,7 +12,8 @@ module Privy
12
12
  sig { returns(String) }
13
13
  attr_accessor :id
14
14
 
15
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
15
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
16
+ # Base).
16
17
  sig { returns(String) }
17
18
  attr_accessor :caip2
18
19
 
@@ -46,7 +47,8 @@ module Privy
46
47
  def self.new(
47
48
  # Privy transaction record ID for the claim operation.
48
49
  id:,
49
- # An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
50
+ # An EVM CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:8453" for
51
+ # Base).
50
52
  caip2:,
51
53
  # Unix timestamp of when the claim was created, in milliseconds.
52
54
  created_at:,
@@ -17,8 +17,8 @@ module Privy
17
17
  sig { returns(String) }
18
18
  attr_accessor :asset
19
19
 
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
  sig { returns(String) }
23
23
  attr_accessor :chain
24
24
 
@@ -34,8 +34,8 @@ module Privy
34
34
  # case, 16-byte Hyperliquid token IDs normalize to lowercase, and all other
35
35
  # identifiers pass through unchanged.
36
36
  asset:,
37
- # A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
38
- # Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
37
+ # A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
38
+ # Tempo or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
39
39
  chain:
40
40
  )
41
41
  end
@@ -8,13 +8,13 @@ module Privy
8
8
  T.any(Privy::NamedTokenTransferSource, Privy::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth'
12
- # (native Ethereum), 'sol' (native Solana).
11
+ # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd'
12
+ # (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
13
13
  sig { returns(String) }
14
14
  attr_accessor :asset
15
15
 
16
16
  # The blockchain network on which to perform the transfer. Supported chains
17
- # include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
17
+ # include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
18
18
  # respective testnets.
19
19
  sig { returns(String) }
20
20
  attr_accessor :chain
@@ -37,11 +37,11 @@ module Privy
37
37
  )
38
38
  end
39
39
  def self.new(
40
- # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth'
41
- # (native Ethereum), 'sol' (native Solana).
40
+ # The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'pathusd'
41
+ # (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
42
42
  asset:,
43
43
  # The blockchain network on which to perform the transfer. Supported chains
44
- # include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
44
+ # include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and their
45
45
  # respective testnets.
46
46
  chain:,
47
47
  # Amount as a decimal string in the token's standard unit (e.g. "1.5" for 1.5
@@ -11,7 +11,7 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
14
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
15
15
  sig { returns(String) }
16
16
  attr_accessor :caip2
17
17
 
@@ -96,7 +96,7 @@ module Privy
96
96
  ).returns(T.attached_class)
97
97
  end
98
98
  def self.new(
99
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
99
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
100
100
  caip2:,
101
101
  method_:,
102
102
  # Parameters for the SVM `signAndSendTransaction` RPC.
@@ -11,7 +11,7 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
14
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
15
15
  sig { returns(String) }
16
16
  attr_accessor :caip2
17
17
 
@@ -44,7 +44,7 @@ module Privy
44
44
  ).returns(T.attached_class)
45
45
  end
46
46
  def self.new(
47
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
47
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
48
48
  caip2:,
49
49
  hash_:,
50
50
  reference_id: nil,
@@ -10,7 +10,8 @@ module Privy
10
10
  sig { returns(String) }
11
11
  attr_accessor :asset_address
12
12
 
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
  sig { returns(String) }
15
16
  attr_accessor :caip2
16
17
 
@@ -21,7 +22,8 @@ module Privy
21
22
  def self.new(
22
23
  # Token contract address to sell, or "native" for the chain's native token.
23
24
  asset_address:,
24
- # CAIP-2 chain identifier (e.g., "eip155:1").
25
+ # CAIP-2 chain identifier (e.g., "eip155:4217" for Tempo, "eip155:1" for
26
+ # Ethereum).
25
27
  caip2:
26
28
  )
27
29
  end
@@ -21,7 +21,7 @@ module Privy
21
21
  attr_writer :asset
22
22
 
23
23
  # The destination blockchain network. Required for cross-chain transfers (e.g.,
24
- # source 'base' to destination 'arbitrum').
24
+ # source 'tempo' to destination 'base').
25
25
  sig { returns(T.nilable(String)) }
26
26
  attr_reader :chain
27
27
 
@@ -42,7 +42,7 @@ module Privy
42
42
  # to destination 'usdc').
43
43
  asset: nil,
44
44
  # The destination blockchain network. Required for cross-chain transfers (e.g.,
45
- # source 'base' to destination 'arbitrum').
45
+ # source 'tempo' to destination 'base').
46
46
  chain: nil
47
47
  )
48
48
  end
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -50,7 +51,8 @@ module Privy
50
51
  ).returns(T.attached_class)
51
52
  end
52
53
  def self.new(
53
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
54
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
55
+ # mainnet).
54
56
  caip2:,
55
57
  # The blockchain transaction hash.
56
58
  transaction_hash:,
@@ -17,6 +17,8 @@ module Privy
17
17
  AVALANCHE =
18
18
  T.let(:avalanche, Privy::TransactionChainNameInput::TaggedSymbol)
19
19
  BASE = T.let(:base, Privy::TransactionChainNameInput::TaggedSymbol)
20
+ BASE_SEPOLIA =
21
+ T.let(:base_sepolia, Privy::TransactionChainNameInput::TaggedSymbol)
20
22
  BSC = T.let(:bsc, Privy::TransactionChainNameInput::TaggedSymbol)
21
23
  TEMPO = T.let(:tempo, Privy::TransactionChainNameInput::TaggedSymbol)
22
24
  LINEA = T.let(:linea, Privy::TransactionChainNameInput::TaggedSymbol)
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -50,7 +51,8 @@ module Privy
50
51
  ).returns(T.attached_class)
51
52
  end
52
53
  def self.new(
53
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
54
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
55
+ # mainnet).
54
56
  caip2:,
55
57
  # The blockchain transaction hash.
56
58
  transaction_hash:,
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -53,7 +54,8 @@ module Privy
53
54
  ).returns(T.attached_class)
54
55
  end
55
56
  def self.new(
56
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
57
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
58
+ # mainnet).
57
59
  caip2:,
58
60
  # The blockchain transaction hash.
59
61
  transaction_hash:,
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -50,7 +51,8 @@ module Privy
50
51
  ).returns(T.attached_class)
51
52
  end
52
53
  def self.new(
53
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
54
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
55
+ # mainnet).
54
56
  caip2:,
55
57
  # The blockchain transaction hash.
56
58
  transaction_hash:,
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -52,7 +53,8 @@ module Privy
52
53
  ).returns(T.attached_class)
53
54
  end
54
55
  def self.new(
55
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
56
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
57
+ # mainnet).
56
58
  caip2:,
57
59
  # The blockchain transaction hash.
58
60
  transaction_hash:,
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -50,7 +51,8 @@ module Privy
50
51
  ).returns(T.attached_class)
51
52
  end
52
53
  def self.new(
53
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
54
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
55
+ # mainnet).
54
56
  caip2:,
55
57
  # The blockchain transaction hash.
56
58
  transaction_hash:,
@@ -11,7 +11,8 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
14
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
15
+ # mainnet).
15
16
  sig { returns(String) }
16
17
  attr_accessor :caip2
17
18
 
@@ -67,7 +68,8 @@ module Privy
67
68
  ).returns(T.attached_class)
68
69
  end
69
70
  def self.new(
70
- # The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
71
+ # The CAIP-2 chain identifier (e.g., eip155:4217 for Tempo, eip155:1 for Ethereum
72
+ # mainnet).
71
73
  caip2:,
72
74
  # The blockchain transaction hash.
73
75
  transaction_hash:,
@@ -167,6 +167,11 @@ module Privy
167
167
  :usdb,
168
168
  Privy::TransferReceivedTransactionDetail::Asset::TaggedSymbol
169
169
  )
170
+ PATHUSD =
171
+ T.let(
172
+ :pathusd,
173
+ Privy::TransferReceivedTransactionDetail::Asset::TaggedSymbol
174
+ )
170
175
  SOL =
171
176
  T.let(
172
177
  :sol,
@@ -153,6 +153,11 @@ module Privy
153
153
  :usdb,
154
154
  Privy::TransferSentTransactionDetail::Asset::TaggedSymbol
155
155
  )
156
+ PATHUSD =
157
+ T.let(
158
+ :pathusd,
159
+ Privy::TransferSentTransactionDetail::Asset::TaggedSymbol
160
+ )
156
161
  SOL =
157
162
  T.let(:sol, Privy::TransferSentTransactionDetail::Asset::TaggedSymbol)
158
163
  TRX =
@@ -20,7 +20,7 @@ module Privy
20
20
  end
21
21
  attr_writer :params
22
22
 
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
  sig { returns(T.nilable(String)) }
25
25
  attr_reader :caip2
26
26
 
@@ -40,7 +40,7 @@ module Privy
40
40
  method_:,
41
41
  # Parameters for the Tron `tron_sendTransaction` RPC.
42
42
  params:,
43
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
43
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
44
44
  caip2: nil
45
45
  )
46
46
  end
@@ -11,7 +11,7 @@ module Privy
11
11
  )
12
12
  end
13
13
 
14
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
14
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
15
15
  sig { returns(String) }
16
16
  attr_accessor :caip2
17
17
 
@@ -37,7 +37,7 @@ module Privy
37
37
  ).returns(T.attached_class)
38
38
  end
39
39
  def self.new(
40
- # A valid CAIP-2 chain ID (e.g. 'eip155:1').
40
+ # A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
41
41
  caip2:,
42
42
  hash_:,
43
43
  transaction_id:,
@@ -46,6 +46,20 @@ module Privy
46
46
  sig { returns(String) }
47
47
  attr_accessor :verification_gas_limit
48
48
 
49
+ sig { returns(T.nilable(String)) }
50
+ attr_reader :factory
51
+
52
+ sig { params(factory: String).void }
53
+ attr_writer :factory
54
+
55
+ # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
56
+ # bytes).
57
+ sig { returns(T.nilable(String)) }
58
+ attr_reader :factory_data
59
+
60
+ sig { params(factory_data: String).void }
61
+ attr_writer :factory_data
62
+
49
63
  sig { returns(T.nilable(String)) }
50
64
  attr_reader :paymaster
51
65
 
@@ -87,6 +101,8 @@ module Privy
87
101
  pre_verification_gas: String,
88
102
  sender: String,
89
103
  verification_gas_limit: String,
104
+ factory: String,
105
+ factory_data: String,
90
106
  paymaster: String,
91
107
  paymaster_data: String,
92
108
  paymaster_post_op_gas_limit: String,
@@ -116,6 +132,10 @@ module Privy
116
132
  # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
117
133
  # bytes).
118
134
  verification_gas_limit:,
135
+ factory: nil,
136
+ # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
137
+ # bytes).
138
+ factory_data: nil,
119
139
  paymaster: nil,
120
140
  # A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
121
141
  # bytes).
@@ -140,6 +160,8 @@ module Privy
140
160
  pre_verification_gas: String,
141
161
  sender: String,
142
162
  verification_gas_limit: String,
163
+ factory: String,
164
+ factory_data: String,
143
165
  paymaster: String,
144
166
  paymaster_data: String,
145
167
  paymaster_post_op_gas_limit: String,
@@ -15,7 +15,7 @@ module Privy
15
15
  sig { returns(Privy::Wallets::WalletActionType::TaggedSymbol) }
16
16
  attr_accessor :action_type
17
17
 
18
- # EVM chain name (e.g. "base", "ethereum").
18
+ # EVM chain name (e.g. "tempo", "base").
19
19
  sig { returns(String) }
20
20
  attr_accessor :chain
21
21
 
@@ -76,7 +76,7 @@ module Privy
76
76
  def self.new(
77
77
  # Type of wallet action
78
78
  action_type:,
79
- # EVM chain name (e.g. "base", "ethereum").
79
+ # EVM chain name (e.g. "tempo", "base").
80
80
  chain:,
81
81
  # ISO 8601 timestamp of when the wallet action was created.
82
82
  created_at:,
@@ -15,7 +15,7 @@ module Privy
15
15
  sig { returns(Privy::Wallets::WalletActionType::TaggedSymbol) }
16
16
  attr_accessor :action_type
17
17
 
18
- # EVM chain name (e.g. "base", "ethereum").
18
+ # EVM chain name (e.g. "tempo", "base").
19
19
  sig { returns(String) }
20
20
  attr_accessor :chain
21
21
 
@@ -105,7 +105,7 @@ module Privy
105
105
  def self.new(
106
106
  # Type of wallet action
107
107
  action_type:,
108
- # EVM chain name (e.g. "base", "ethereum").
108
+ # EVM chain name (e.g. "tempo", "base").
109
109
  chain:,
110
110
  # ISO 8601 timestamp of when the wallet action was created.
111
111
  created_at:,
@@ -15,7 +15,7 @@ module Privy
15
15
  sig { returns(Privy::Wallets::WalletActionType::TaggedSymbol) }
16
16
  attr_accessor :action_type
17
17
 
18
- # EVM chain name (e.g. "base", "ethereum").
18
+ # EVM chain name (e.g. "tempo", "base").
19
19
  sig { returns(String) }
20
20
  attr_accessor :chain
21
21
 
@@ -104,7 +104,7 @@ module Privy
104
104
  def self.new(
105
105
  # Type of wallet action
106
106
  action_type:,
107
- # EVM chain name (e.g. "base", "ethereum").
107
+ # EVM chain name (e.g. "tempo", "base").
108
108
  chain:,
109
109
  # ISO 8601 timestamp of when the wallet action was created.
110
110
  created_at:,
@@ -15,7 +15,7 @@ module Privy
15
15
  sig { returns(Privy::Wallets::WalletActionType::TaggedSymbol) }
16
16
  attr_accessor :action_type
17
17
 
18
- # EVM chain name (e.g. "base", "ethereum").
18
+ # EVM chain name (e.g. "tempo", "base").
19
19
  sig { returns(String) }
20
20
  attr_accessor :chain
21
21
 
@@ -96,7 +96,7 @@ module Privy
96
96
  def self.new(
97
97
  # Type of wallet action
98
98
  action_type:,
99
- # EVM chain name (e.g. "base", "ethereum").
99
+ # EVM chain name (e.g. "tempo", "base").
100
100
  chain:,
101
101
  # ISO 8601 timestamp of when the wallet action completed successfully.
102
102
  completed_at:,
@@ -23,7 +23,7 @@ module Privy
23
23
  sig { returns(String) }
24
24
  attr_accessor :destination_address
25
25
 
26
- # Chain name (e.g. "base", "ethereum").
26
+ # Chain name (e.g. "tempo", "base").
27
27
  sig { returns(String) }
28
28
  attr_accessor :source_chain
29
29
 
@@ -109,7 +109,7 @@ module Privy
109
109
  created_at:,
110
110
  # Recipient address.
111
111
  destination_address:,
112
- # Chain name (e.g. "base", "ethereum").
112
+ # Chain name (e.g. "tempo", "base").
113
113
  source_chain:,
114
114
  # The status of the wallet action.
115
115
  status:,
@@ -34,7 +34,7 @@ module Privy
34
34
  sig { params(failure_reason: Privy::Wallets::FailureReason::OrHash).void }
35
35
  attr_writer :failure_reason
36
36
 
37
- # Chain name (e.g. "base", "ethereum").
37
+ # Chain name (e.g. "tempo", "base").
38
38
  sig { returns(String) }
39
39
  attr_accessor :source_chain
40
40
 
@@ -141,7 +141,7 @@ module Privy
141
141
  failed_at:,
142
142
  # A description of why a wallet action (or a step within a wallet action) failed.
143
143
  failure_reason:,
144
- # Chain name (e.g. "base", "ethereum").
144
+ # Chain name (e.g. "tempo", "base").
145
145
  source_chain:,
146
146
  # The status of the wallet action.
147
147
  status:,
@@ -34,7 +34,7 @@ module Privy
34
34
  sig { returns(String) }
35
35
  attr_accessor :rejected_at
36
36
 
37
- # Chain name (e.g. "base", "ethereum").
37
+ # Chain name (e.g. "tempo", "base").
38
38
  sig { returns(String) }
39
39
  attr_accessor :source_chain
40
40
 
@@ -141,7 +141,7 @@ module Privy
141
141
  failure_reason:,
142
142
  # ISO 8601 timestamp of when the wallet action was rejected.
143
143
  rejected_at:,
144
- # Chain name (e.g. "base", "ethereum").
144
+ # Chain name (e.g. "tempo", "base").
145
145
  source_chain:,
146
146
  # The status of the wallet action.
147
147
  status:,
@@ -27,7 +27,7 @@ module Privy
27
27
  sig { returns(String) }
28
28
  attr_accessor :destination_address
29
29
 
30
- # Chain name (e.g. "base", "ethereum").
30
+ # Chain name (e.g. "tempo", "base").
31
31
  sig { returns(String) }
32
32
  attr_accessor :source_chain
33
33
 
@@ -131,7 +131,7 @@ module Privy
131
131
  created_at:,
132
132
  # Recipient address.
133
133
  destination_address:,
134
- # Chain name (e.g. "base", "ethereum").
134
+ # Chain name (e.g. "tempo", "base").
135
135
  source_chain:,
136
136
  # The status of the wallet action.
137
137
  status:,
@@ -18,6 +18,7 @@ module Privy
18
18
  USDT = T.let(:usdt, Privy::WalletAsset::TaggedSymbol)
19
19
  EURC = T.let(:eurc, Privy::WalletAsset::TaggedSymbol)
20
20
  USDB = T.let(:usdb, Privy::WalletAsset::TaggedSymbol)
21
+ PATHUSD = T.let(:pathusd, Privy::WalletAsset::TaggedSymbol)
21
22
  SOL = T.let(:sol, Privy::WalletAsset::TaggedSymbol)
22
23
  TRX = T.let(:trx, Privy::WalletAsset::TaggedSymbol)
23
24
 
@@ -18,6 +18,7 @@ module Privy
18
18
  USDT = T.let(:usdt, Privy::WalletEthereumAsset::TaggedSymbol)
19
19
  EURC = T.let(:eurc, Privy::WalletEthereumAsset::TaggedSymbol)
20
20
  USDB = T.let(:usdb, Privy::WalletEthereumAsset::TaggedSymbol)
21
+ PATHUSD = T.let(:pathusd, Privy::WalletEthereumAsset::TaggedSymbol)
21
22
 
22
23
  sig do
23
24
  override.returns(T::Array[Privy::WalletEthereumAsset::TaggedSymbol])
@@ -41,7 +41,7 @@ module Privy
41
41
  sig { returns(T.nilable(Float)) }
42
42
  attr_accessor :available_liquidity_usd
43
43
 
44
- # CAIP-2 chain identifier (e.g. "eip155:8453").
44
+ # CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
45
45
  sig { returns(String) }
46
46
  attr_accessor :caip2
47
47
 
@@ -99,7 +99,7 @@ module Privy
99
99
  available_fees:,
100
100
  # Available liquidity in USD.
101
101
  available_liquidity_usd:,
102
- # CAIP-2 chain identifier (e.g. "eip155:8453").
102
+ # CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
103
103
  caip2:,
104
104
  # Human-readable vault name from the yield provider.
105
105
  name:,