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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/lib/privy/models/balance_asset_by_chain.rb +2 -2
- data/lib/privy/models/currency.rb +5 -2
- data/lib/privy/models/custom_token_transfer_source.rb +1 -1
- data/lib/privy/models/ethereum_personal_sign_rpc_input.rb +2 -2
- data/lib/privy/models/ethereum_send_calls_rpc_input.rb +2 -2
- data/lib/privy/models/ethereum_send_calls_rpc_response_data.rb +5 -2
- data/lib/privy/models/ethereum_send_transaction_rpc_input.rb +2 -2
- data/lib/privy/models/ethereum_send_transaction_rpc_response_data.rb +2 -2
- data/lib/privy/models/ethereum_sign_typed_data_rpc_input.rb +2 -2
- data/lib/privy/models/ethereum_vault_details_response.rb +2 -2
- data/lib/privy/models/ethereum_yield_claim_input.rb +6 -2
- data/lib/privy/models/ethereum_yield_claim_response.rb +6 -2
- data/lib/privy/models/fiat_onramp_destination.rb +3 -3
- data/lib/privy/models/named_token_transfer_source.rb +4 -4
- data/lib/privy/models/solana_sign_and_send_transaction_rpc_input.rb +5 -2
- data/lib/privy/models/solana_sign_and_send_transaction_rpc_response_data.rb +5 -2
- data/lib/privy/models/swap_source.rb +6 -2
- data/lib/privy/models/token_transfer_destination.rb +1 -1
- data/lib/privy/models/transaction_broadcasted_webhook_payload.rb +3 -2
- data/lib/privy/models/transaction_chain_name_input.rb +1 -0
- data/lib/privy/models/transaction_confirmed_webhook_payload.rb +3 -2
- data/lib/privy/models/transaction_execution_reverted_webhook_payload.rb +3 -2
- data/lib/privy/models/transaction_failed_webhook_payload.rb +3 -2
- data/lib/privy/models/transaction_provider_error_webhook_payload.rb +3 -2
- data/lib/privy/models/transaction_replaced_webhook_payload.rb +3 -2
- data/lib/privy/models/transaction_still_pending_webhook_payload.rb +3 -2
- data/lib/privy/models/transfer_received_transaction_detail.rb +3 -0
- data/lib/privy/models/transfer_sent_transaction_detail.rb +3 -0
- data/lib/privy/models/tron_send_transaction_rpc_input.rb +5 -2
- data/lib/privy/models/tron_send_transaction_rpc_response_data.rb +5 -2
- data/lib/privy/models/user_operation_input.rb +17 -1
- data/lib/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_transfer_created_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_transfer_failed_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_transfer_rejected_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb +2 -2
- data/lib/privy/models/wallet_asset.rb +1 -0
- data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
- data/lib/privy/models/wallets/aave_vault_details.rb +2 -2
- data/lib/privy/models/wallets/balance_get_params.rb +9 -6
- data/lib/privy/models/wallets/balance_get_response.rb +3 -0
- data/lib/privy/models/wallets/earn_incentive_claim_action_response.rb +2 -2
- data/lib/privy/models/wallets/earn_incentive_claim_request_body.rb +2 -2
- data/lib/privy/models/wallets/earn_incentive_rewards_query.rb +2 -2
- data/lib/privy/models/wallets/morpho_vault_details.rb +2 -2
- data/lib/privy/models/wallets/transaction_get_params.rb +3 -0
- data/lib/privy/models/wallets/transfer_action_response.rb +2 -2
- data/lib/privy/models/wallets/veda_vault_details.rb +2 -2
- data/lib/privy/resources/wallets/balance.rb +2 -2
- data/lib/privy/version.rb +1 -1
- data/rbi/privy/models/balance_asset_by_chain.rbi +2 -2
- data/rbi/privy/models/currency.rbi +2 -2
- data/rbi/privy/models/custom_token_transfer_source.rbi +2 -2
- data/rbi/privy/models/ethereum_personal_sign_rpc_input.rbi +2 -2
- data/rbi/privy/models/ethereum_send_calls_rpc_input.rbi +2 -2
- data/rbi/privy/models/ethereum_send_calls_rpc_response_data.rbi +2 -2
- data/rbi/privy/models/ethereum_send_transaction_rpc_input.rbi +2 -2
- data/rbi/privy/models/ethereum_send_transaction_rpc_response_data.rbi +2 -2
- data/rbi/privy/models/ethereum_sign_typed_data_rpc_input.rbi +2 -2
- data/rbi/privy/models/ethereum_vault_details_response.rbi +2 -2
- data/rbi/privy/models/ethereum_yield_claim_input.rbi +4 -2
- data/rbi/privy/models/ethereum_yield_claim_response.rbi +4 -2
- data/rbi/privy/models/fiat_onramp_destination.rbi +4 -4
- data/rbi/privy/models/named_token_transfer_source.rbi +6 -6
- data/rbi/privy/models/solana_sign_and_send_transaction_rpc_input.rbi +2 -2
- data/rbi/privy/models/solana_sign_and_send_transaction_rpc_response_data.rbi +2 -2
- data/rbi/privy/models/swap_source.rbi +4 -2
- data/rbi/privy/models/token_transfer_destination.rbi +2 -2
- data/rbi/privy/models/transaction_broadcasted_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transaction_chain_name_input.rbi +2 -0
- data/rbi/privy/models/transaction_confirmed_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transaction_execution_reverted_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transaction_failed_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transaction_provider_error_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transaction_replaced_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transaction_still_pending_webhook_payload.rbi +4 -2
- data/rbi/privy/models/transfer_received_transaction_detail.rbi +5 -0
- data/rbi/privy/models/transfer_sent_transaction_detail.rbi +5 -0
- data/rbi/privy/models/tron_send_transaction_rpc_input.rbi +2 -2
- data/rbi/privy/models/tron_send_transaction_rpc_response_data.rbi +2 -2
- data/rbi/privy/models/user_operation_input.rbi +22 -0
- data/rbi/privy/models/wallet_action_earn_incentive_claim_created_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_earn_incentive_claim_failed_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_earn_incentive_claim_rejected_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_earn_incentive_claim_succeeded_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_transfer_created_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_transfer_failed_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_transfer_rejected_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_action_transfer_succeeded_webhook_payload.rbi +2 -2
- data/rbi/privy/models/wallet_asset.rbi +1 -0
- data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
- data/rbi/privy/models/wallets/aave_vault_details.rbi +2 -2
- data/rbi/privy/models/wallets/balance_get_params.rbi +11 -6
- data/rbi/privy/models/wallets/balance_get_response.rbi +5 -0
- data/rbi/privy/models/wallets/earn_incentive_claim_action_response.rbi +2 -2
- data/rbi/privy/models/wallets/earn_incentive_claim_request_body.rbi +4 -4
- data/rbi/privy/models/wallets/earn_incentive_rewards_query.rbi +2 -2
- data/rbi/privy/models/wallets/morpho_vault_details.rbi +2 -2
- data/rbi/privy/models/wallets/transaction_get_params.rbi +5 -0
- data/rbi/privy/models/wallets/transfer_action_response.rbi +2 -2
- data/rbi/privy/models/wallets/veda_vault_details.rbi +2 -2
- data/rbi/privy/resources/wallets/balance.rbi +2 -2
- data/rbi/privy/resources/wallets/earn/ethereum/incentive.rbi +2 -2
- data/sig/privy/models/transaction_chain_name_input.rbs +2 -0
- data/sig/privy/models/transfer_received_transaction_detail.rbs +2 -0
- data/sig/privy/models/transfer_sent_transaction_detail.rbs +2 -0
- data/sig/privy/models/user_operation_input.rbs +14 -0
- data/sig/privy/models/wallet_asset.rbs +2 -0
- data/sig/privy/models/wallet_ethereum_asset.rbs +11 -1
- data/sig/privy/models/wallets/balance_get_params.rbs +2 -0
- data/sig/privy/models/wallets/balance_get_response.rbs +2 -0
- data/sig/privy/models/wallets/transaction_get_params.rbs +2 -0
- metadata +2 -2
|
@@ -57,6 +57,18 @@ module Privy
|
|
|
57
57
|
# @return [String]
|
|
58
58
|
required :verification_gas_limit, String
|
|
59
59
|
|
|
60
|
+
# @!attribute factory
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :factory, String
|
|
64
|
+
|
|
65
|
+
# @!attribute factory_data
|
|
66
|
+
# A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
67
|
+
# bytes).
|
|
68
|
+
#
|
|
69
|
+
# @return [String, nil]
|
|
70
|
+
optional :factory_data, String
|
|
71
|
+
|
|
60
72
|
# @!attribute paymaster
|
|
61
73
|
#
|
|
62
74
|
# @return [String, nil]
|
|
@@ -83,7 +95,7 @@ module Privy
|
|
|
83
95
|
# @return [String, nil]
|
|
84
96
|
optional :paymaster_verification_gas_limit, String
|
|
85
97
|
|
|
86
|
-
# @!method initialize(call_data:, call_gas_limit:, max_fee_per_gas:, max_priority_fee_per_gas:, nonce:, pre_verification_gas:, sender:, verification_gas_limit:, paymaster: nil, paymaster_data: nil, paymaster_post_op_gas_limit: nil, paymaster_verification_gas_limit: nil)
|
|
98
|
+
# @!method initialize(call_data:, call_gas_limit:, max_fee_per_gas:, max_priority_fee_per_gas:, nonce:, pre_verification_gas:, sender:, verification_gas_limit:, factory: nil, factory_data: nil, paymaster: nil, paymaster_data: nil, paymaster_post_op_gas_limit: nil, paymaster_verification_gas_limit: nil)
|
|
87
99
|
# Some parameter documentations has been truncated, see
|
|
88
100
|
# {Privy::Models::UserOperationInput} for more details.
|
|
89
101
|
#
|
|
@@ -105,6 +117,10 @@ module Privy
|
|
|
105
117
|
#
|
|
106
118
|
# @param verification_gas_limit [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
|
|
107
119
|
#
|
|
120
|
+
# @param factory [String]
|
|
121
|
+
#
|
|
122
|
+
# @param factory_data [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
|
|
123
|
+
#
|
|
108
124
|
# @param paymaster [String]
|
|
109
125
|
#
|
|
110
126
|
# @param paymaster_data [String] A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000 byt
|
|
@@ -10,7 +10,7 @@ module Privy
|
|
|
10
10
|
required :action_type, enum: -> { Privy::Wallets::WalletActionType }
|
|
11
11
|
|
|
12
12
|
# @!attribute chain
|
|
13
|
-
# EVM chain name (e.g. "
|
|
13
|
+
# EVM chain name (e.g. "tempo", "base").
|
|
14
14
|
#
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :chain, String
|
|
@@ -58,7 +58,7 @@ module Privy
|
|
|
58
58
|
#
|
|
59
59
|
# @param action_type [Symbol, Privy::Models::Wallets::WalletActionType] Type of wallet action
|
|
60
60
|
#
|
|
61
|
-
# @param chain [String] EVM chain name (e.g. "
|
|
61
|
+
# @param chain [String] EVM chain name (e.g. "tempo", "base").
|
|
62
62
|
#
|
|
63
63
|
# @param created_at [String] ISO 8601 timestamp of when the wallet action was created.
|
|
64
64
|
#
|
|
@@ -10,7 +10,7 @@ module Privy
|
|
|
10
10
|
required :action_type, enum: -> { Privy::Wallets::WalletActionType }
|
|
11
11
|
|
|
12
12
|
# @!attribute chain
|
|
13
|
-
# EVM chain name (e.g. "
|
|
13
|
+
# EVM chain name (e.g. "tempo", "base").
|
|
14
14
|
#
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :chain, String
|
|
@@ -81,7 +81,7 @@ module Privy
|
|
|
81
81
|
#
|
|
82
82
|
# @param action_type [Symbol, Privy::Models::Wallets::WalletActionType] Type of wallet action
|
|
83
83
|
#
|
|
84
|
-
# @param chain [String] EVM chain name (e.g. "
|
|
84
|
+
# @param chain [String] EVM chain name (e.g. "tempo", "base").
|
|
85
85
|
#
|
|
86
86
|
# @param created_at [String] ISO 8601 timestamp of when the wallet action was created.
|
|
87
87
|
#
|
|
@@ -10,7 +10,7 @@ module Privy
|
|
|
10
10
|
required :action_type, enum: -> { Privy::Wallets::WalletActionType }
|
|
11
11
|
|
|
12
12
|
# @!attribute chain
|
|
13
|
-
# EVM chain name (e.g. "
|
|
13
|
+
# EVM chain name (e.g. "tempo", "base").
|
|
14
14
|
#
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :chain, String
|
|
@@ -76,7 +76,7 @@ module Privy
|
|
|
76
76
|
#
|
|
77
77
|
# @param action_type [Symbol, Privy::Models::Wallets::WalletActionType] Type of wallet action
|
|
78
78
|
#
|
|
79
|
-
# @param chain [String] EVM chain name (e.g. "
|
|
79
|
+
# @param chain [String] EVM chain name (e.g. "tempo", "base").
|
|
80
80
|
#
|
|
81
81
|
# @param created_at [String] ISO 8601 timestamp of when the wallet action was created.
|
|
82
82
|
#
|
|
@@ -10,7 +10,7 @@ module Privy
|
|
|
10
10
|
required :action_type, enum: -> { Privy::Wallets::WalletActionType }
|
|
11
11
|
|
|
12
12
|
# @!attribute chain
|
|
13
|
-
# EVM chain name (e.g. "
|
|
13
|
+
# EVM chain name (e.g. "tempo", "base").
|
|
14
14
|
#
|
|
15
15
|
# @return [String]
|
|
16
16
|
required :chain, String
|
|
@@ -70,7 +70,7 @@ module Privy
|
|
|
70
70
|
#
|
|
71
71
|
# @param action_type [Symbol, Privy::Models::Wallets::WalletActionType] Type of wallet action
|
|
72
72
|
#
|
|
73
|
-
# @param chain [String] EVM chain name (e.g. "
|
|
73
|
+
# @param chain [String] EVM chain name (e.g. "tempo", "base").
|
|
74
74
|
#
|
|
75
75
|
# @param completed_at [String] ISO 8601 timestamp of when the wallet action completed successfully.
|
|
76
76
|
#
|
|
@@ -22,7 +22,7 @@ module Privy
|
|
|
22
22
|
required :destination_address, String
|
|
23
23
|
|
|
24
24
|
# @!attribute source_chain
|
|
25
|
-
# Chain name (e.g. "
|
|
25
|
+
# Chain name (e.g. "tempo", "base").
|
|
26
26
|
#
|
|
27
27
|
# @return [String]
|
|
28
28
|
required :source_chain, String
|
|
@@ -91,7 +91,7 @@ module Privy
|
|
|
91
91
|
#
|
|
92
92
|
# @param destination_address [String] Recipient address.
|
|
93
93
|
#
|
|
94
|
-
# @param source_chain [String] Chain name (e.g. "
|
|
94
|
+
# @param source_chain [String] Chain name (e.g. "tempo", "base").
|
|
95
95
|
#
|
|
96
96
|
# @param status [Symbol, Privy::Models::WalletActionTransferCreatedWebhookPayload::Status] The status of the wallet action.
|
|
97
97
|
#
|
|
@@ -34,7 +34,7 @@ module Privy
|
|
|
34
34
|
required :failure_reason, -> { Privy::Wallets::FailureReason }
|
|
35
35
|
|
|
36
36
|
# @!attribute source_chain
|
|
37
|
-
# Chain name (e.g. "
|
|
37
|
+
# Chain name (e.g. "tempo", "base").
|
|
38
38
|
#
|
|
39
39
|
# @return [String]
|
|
40
40
|
required :source_chain, String
|
|
@@ -114,7 +114,7 @@ module Privy
|
|
|
114
114
|
#
|
|
115
115
|
# @param failure_reason [Privy::Models::Wallets::FailureReason] A description of why a wallet action (or a step within a wallet action) failed.
|
|
116
116
|
#
|
|
117
|
-
# @param source_chain [String] Chain name (e.g. "
|
|
117
|
+
# @param source_chain [String] Chain name (e.g. "tempo", "base").
|
|
118
118
|
#
|
|
119
119
|
# @param status [Symbol, Privy::Models::WalletActionTransferFailedWebhookPayload::Status] The status of the wallet action.
|
|
120
120
|
#
|
|
@@ -34,7 +34,7 @@ module Privy
|
|
|
34
34
|
required :rejected_at, String
|
|
35
35
|
|
|
36
36
|
# @!attribute source_chain
|
|
37
|
-
# Chain name (e.g. "
|
|
37
|
+
# Chain name (e.g. "tempo", "base").
|
|
38
38
|
#
|
|
39
39
|
# @return [String]
|
|
40
40
|
required :source_chain, String
|
|
@@ -113,7 +113,7 @@ module Privy
|
|
|
113
113
|
#
|
|
114
114
|
# @param rejected_at [String] ISO 8601 timestamp of when the wallet action was rejected.
|
|
115
115
|
#
|
|
116
|
-
# @param source_chain [String] Chain name (e.g. "
|
|
116
|
+
# @param source_chain [String] Chain name (e.g. "tempo", "base").
|
|
117
117
|
#
|
|
118
118
|
# @param status [Symbol, Privy::Models::WalletActionTransferRejectedWebhookPayload::Status] The status of the wallet action.
|
|
119
119
|
#
|
|
@@ -28,7 +28,7 @@ module Privy
|
|
|
28
28
|
required :destination_address, String
|
|
29
29
|
|
|
30
30
|
# @!attribute source_chain
|
|
31
|
-
# Chain name (e.g. "
|
|
31
|
+
# Chain name (e.g. "tempo", "base").
|
|
32
32
|
#
|
|
33
33
|
# @return [String]
|
|
34
34
|
required :source_chain, String
|
|
@@ -105,7 +105,7 @@ module Privy
|
|
|
105
105
|
#
|
|
106
106
|
# @param destination_address [String] Recipient address.
|
|
107
107
|
#
|
|
108
|
-
# @param source_chain [String] Chain name (e.g. "
|
|
108
|
+
# @param source_chain [String] Chain name (e.g. "tempo", "base").
|
|
109
109
|
#
|
|
110
110
|
# @param status [Symbol, Privy::Models::WalletActionTransferSucceededWebhookPayload::Status] The status of the wallet action.
|
|
111
111
|
#
|
|
@@ -48,7 +48,7 @@ module Privy
|
|
|
48
48
|
required :available_liquidity_usd, Float, nil?: true
|
|
49
49
|
|
|
50
50
|
# @!attribute caip2
|
|
51
|
-
# CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
51
|
+
# CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
52
52
|
#
|
|
53
53
|
# @return [String]
|
|
54
54
|
required :caip2, String
|
|
@@ -103,7 +103,7 @@ module Privy
|
|
|
103
103
|
#
|
|
104
104
|
# @param available_liquidity_usd [Float, nil] Available liquidity in USD.
|
|
105
105
|
#
|
|
106
|
-
# @param caip2 [String] CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
106
|
+
# @param caip2 [String] CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
107
107
|
#
|
|
108
108
|
# @param name [String] Human-readable vault name from the yield provider.
|
|
109
109
|
#
|
|
@@ -16,7 +16,7 @@ module Privy
|
|
|
16
16
|
|
|
17
17
|
# @!attribute token
|
|
18
18
|
# The token contract address(es) to query in format "chain:address" (e.g.,
|
|
19
|
-
# "
|
|
19
|
+
# "tempo:0x20c000000000000000000000b9537d11c60e8b50" or
|
|
20
20
|
# "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"). Cannot be used together
|
|
21
21
|
# with `asset`/`chain` or with `include_currency`.
|
|
22
22
|
#
|
|
@@ -31,7 +31,7 @@ module Privy
|
|
|
31
31
|
optional :asset, union: -> { Privy::Wallets::BalanceGetParams::Asset }
|
|
32
32
|
|
|
33
33
|
# @!attribute chain
|
|
34
|
-
# Chain(s) to query named assets on (e.g. `
|
|
34
|
+
# Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with
|
|
35
35
|
# `asset`. Cannot be used with `token`.
|
|
36
36
|
#
|
|
37
37
|
# @return [Symbol, Privy::Models::WalletAssetChainNameInput, Array<Symbol, Privy::Models::WalletAssetChainNameInput>, nil]
|
|
@@ -56,11 +56,11 @@ module Privy
|
|
|
56
56
|
#
|
|
57
57
|
# @param wallet_id [String] ID of the wallet.
|
|
58
58
|
#
|
|
59
|
-
# @param token [String, Array<String>] The token contract address(es) to query in format "chain:address" (e.g., "
|
|
59
|
+
# @param token [String, Array<String>] The token contract address(es) to query in format "chain:address" (e.g., "tempo:
|
|
60
60
|
#
|
|
61
61
|
# @param asset [Symbol, Array<Symbol, Privy::Models::WalletAsset>, Privy::Models::Wallets::BalanceGetParams::Asset] Named asset(s) to query (e.g. `eth`, `usdc`). Use together with `chain` to scope
|
|
62
62
|
#
|
|
63
|
-
# @param chain [Symbol, Privy::Models::WalletAssetChainNameInput, Array<Symbol, Privy::Models::WalletAssetChainNameInput>] Chain(s) to query named assets on (e.g. `
|
|
63
|
+
# @param chain [Symbol, Privy::Models::WalletAssetChainNameInput, Array<Symbol, Privy::Models::WalletAssetChainNameInput>] Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with `ass
|
|
64
64
|
#
|
|
65
65
|
# @param include_archived [Boolean] Include archived wallets in lookup. Defaults to false.
|
|
66
66
|
#
|
|
@@ -69,7 +69,7 @@ module Privy
|
|
|
69
69
|
# @param request_options [Privy::RequestOptions, Hash{Symbol=>Object}]
|
|
70
70
|
|
|
71
71
|
# The token contract address(es) to query in format "chain:address" (e.g.,
|
|
72
|
-
# "
|
|
72
|
+
# "tempo:0x20c000000000000000000000b9537d11c60e8b50" or
|
|
73
73
|
# "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"). Cannot be used together
|
|
74
74
|
# with `asset`/`chain` or with `include_currency`.
|
|
75
75
|
module Token
|
|
@@ -109,6 +109,8 @@ module Privy
|
|
|
109
109
|
|
|
110
110
|
variant const: -> { Privy::Models::Wallets::BalanceGetParams::Asset::USDB }
|
|
111
111
|
|
|
112
|
+
variant const: -> { Privy::Models::Wallets::BalanceGetParams::Asset::PATHUSD }
|
|
113
|
+
|
|
112
114
|
variant const: -> { Privy::Models::Wallets::BalanceGetParams::Asset::SOL }
|
|
113
115
|
|
|
114
116
|
variant const: -> { Privy::Models::Wallets::BalanceGetParams::Asset::TRX }
|
|
@@ -133,6 +135,7 @@ module Privy
|
|
|
133
135
|
USDT = :usdt
|
|
134
136
|
EURC = :eurc
|
|
135
137
|
USDB = :usdb
|
|
138
|
+
PATHUSD = :pathusd
|
|
136
139
|
SOL = :sol
|
|
137
140
|
TRX = :trx
|
|
138
141
|
|
|
@@ -142,7 +145,7 @@ module Privy
|
|
|
142
145
|
WalletAssetArray = Privy::Internal::Type::ArrayOf[enum: -> { Privy::WalletAsset }]
|
|
143
146
|
end
|
|
144
147
|
|
|
145
|
-
# Chain(s) to query named assets on (e.g. `
|
|
148
|
+
# Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with
|
|
146
149
|
# `asset`. Cannot be used with `token`.
|
|
147
150
|
module Chain
|
|
148
151
|
extend Privy::Internal::Type::Union
|
|
@@ -74,6 +74,8 @@ module Privy
|
|
|
74
74
|
|
|
75
75
|
variant const: -> { Privy::Models::Wallets::BalanceGetResponse::Balance::Asset::USDB }
|
|
76
76
|
|
|
77
|
+
variant const: -> { Privy::Models::Wallets::BalanceGetResponse::Balance::Asset::PATHUSD }
|
|
78
|
+
|
|
77
79
|
variant const: -> { Privy::Models::Wallets::BalanceGetResponse::Balance::Asset::SOL }
|
|
78
80
|
|
|
79
81
|
variant const: -> { Privy::Models::Wallets::BalanceGetResponse::Balance::Asset::TRX }
|
|
@@ -98,6 +100,7 @@ module Privy
|
|
|
98
100
|
USDT = :usdt
|
|
99
101
|
EURC = :eurc
|
|
100
102
|
USDB = :usdb
|
|
103
|
+
PATHUSD = :pathusd
|
|
101
104
|
SOL = :sol
|
|
102
105
|
TRX = :trx
|
|
103
106
|
|
|
@@ -11,7 +11,7 @@ module Privy
|
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
13
|
# @!attribute chain
|
|
14
|
-
# EVM chain name (e.g. "
|
|
14
|
+
# EVM chain name (e.g. "tempo", "base").
|
|
15
15
|
#
|
|
16
16
|
# @return [String]
|
|
17
17
|
required :chain, String
|
|
@@ -64,7 +64,7 @@ module Privy
|
|
|
64
64
|
#
|
|
65
65
|
# @param id [String] The ID of the wallet action.
|
|
66
66
|
#
|
|
67
|
-
# @param chain [String] EVM chain name (e.g. "
|
|
67
|
+
# @param chain [String] EVM chain name (e.g. "tempo", "base").
|
|
68
68
|
#
|
|
69
69
|
# @param created_at [Time] ISO 8601 timestamp of when the wallet action was created.
|
|
70
70
|
#
|
|
@@ -6,8 +6,8 @@ module Privy
|
|
|
6
6
|
class EarnIncentiveClaimRequestBody < Privy::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute chain
|
|
8
8
|
# The blockchain network on which to perform the incentive claim. Supported chains
|
|
9
|
-
# include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and more,
|
|
10
|
-
# with their respective testnets.
|
|
9
|
+
# include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and more,
|
|
10
|
+
# along with their respective testnets.
|
|
11
11
|
#
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :chain, String
|
|
@@ -5,7 +5,7 @@ module Privy
|
|
|
5
5
|
module Wallets
|
|
6
6
|
class EarnIncentiveRewardsQuery < Privy::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute chain
|
|
8
|
-
# Chain name to fetch rewards for (e.g. "
|
|
8
|
+
# Chain name to fetch rewards for (e.g. "tempo", "base").
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :chain, String
|
|
@@ -13,7 +13,7 @@ module Privy
|
|
|
13
13
|
# @!method initialize(chain:)
|
|
14
14
|
# Query parameters for fetching incentive rewards.
|
|
15
15
|
#
|
|
16
|
-
# @param chain [String] Chain name to fetch rewards for (e.g. "
|
|
16
|
+
# @param chain [String] Chain name to fetch rewards for (e.g. "tempo", "base").
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -42,7 +42,7 @@ module Privy
|
|
|
42
42
|
required :available_liquidity_usd, Float, nil?: true
|
|
43
43
|
|
|
44
44
|
# @!attribute caip2
|
|
45
|
-
# CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
45
|
+
# CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
46
46
|
#
|
|
47
47
|
# @return [String]
|
|
48
48
|
required :caip2, String
|
|
@@ -101,7 +101,7 @@ module Privy
|
|
|
101
101
|
#
|
|
102
102
|
# @param available_liquidity_usd [Float, nil] Available liquidity in USD.
|
|
103
103
|
#
|
|
104
|
-
# @param caip2 [String] CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
104
|
+
# @param caip2 [String] CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
105
105
|
#
|
|
106
106
|
# @param name [String] Human-readable vault name from the yield provider.
|
|
107
107
|
#
|
|
@@ -117,6 +117,8 @@ module Privy
|
|
|
117
117
|
|
|
118
118
|
variant const: -> { Privy::Models::Wallets::TransactionGetParams::Asset::USDB }
|
|
119
119
|
|
|
120
|
+
variant const: -> { Privy::Models::Wallets::TransactionGetParams::Asset::PATHUSD }
|
|
121
|
+
|
|
120
122
|
variant const: -> { Privy::Models::Wallets::TransactionGetParams::Asset::SOL }
|
|
121
123
|
|
|
122
124
|
variant const: -> { Privy::Models::Wallets::TransactionGetParams::Asset::TRX }
|
|
@@ -146,6 +148,7 @@ module Privy
|
|
|
146
148
|
USDT = :usdt
|
|
147
149
|
EURC = :eurc
|
|
148
150
|
USDB = :usdb
|
|
151
|
+
PATHUSD = :pathusd
|
|
149
152
|
SOL = :sol
|
|
150
153
|
TRX = :trx
|
|
151
154
|
|
|
@@ -31,7 +31,7 @@ module Privy
|
|
|
31
31
|
required :destination_amount, String, nil?: true
|
|
32
32
|
|
|
33
33
|
# @!attribute source_chain
|
|
34
|
-
# Chain name (e.g. "
|
|
34
|
+
# Chain name (e.g. "tempo", "base").
|
|
35
35
|
#
|
|
36
36
|
# @return [String]
|
|
37
37
|
required :source_chain, String
|
|
@@ -153,7 +153,7 @@ module Privy
|
|
|
153
153
|
#
|
|
154
154
|
# @param destination_amount [String, nil] Amount received on the destination chain. For exact_output cross-chain transfers
|
|
155
155
|
#
|
|
156
|
-
# @param source_chain [String] Chain name (e.g. "
|
|
156
|
+
# @param source_chain [String] Chain name (e.g. "tempo", "base").
|
|
157
157
|
#
|
|
158
158
|
# @param status [Symbol, Privy::Models::Wallets::WalletActionStatus] Status of a wallet action.
|
|
159
159
|
#
|
|
@@ -42,7 +42,7 @@ module Privy
|
|
|
42
42
|
required :available_liquidity_usd, Float, nil?: true
|
|
43
43
|
|
|
44
44
|
# @!attribute caip2
|
|
45
|
-
# CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
45
|
+
# CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
46
46
|
#
|
|
47
47
|
# @return [String]
|
|
48
48
|
required :caip2, String
|
|
@@ -95,7 +95,7 @@ module Privy
|
|
|
95
95
|
#
|
|
96
96
|
# @param available_liquidity_usd [Float, nil] Available liquidity in USD.
|
|
97
97
|
#
|
|
98
|
-
# @param caip2 [String] CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
98
|
+
# @param caip2 [String] CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
99
99
|
#
|
|
100
100
|
# @param name [String] Human-readable vault name from the yield provider.
|
|
101
101
|
#
|
|
@@ -14,11 +14,11 @@ module Privy
|
|
|
14
14
|
#
|
|
15
15
|
# @param wallet_id [String] ID of the wallet.
|
|
16
16
|
#
|
|
17
|
-
# @param token [String, Array<String>] The token contract address(es) to query in format "chain:address" (e.g., "
|
|
17
|
+
# @param token [String, Array<String>] The token contract address(es) to query in format "chain:address" (e.g., "tempo:
|
|
18
18
|
#
|
|
19
19
|
# @param asset [Symbol, Array<Symbol, Privy::Models::WalletAsset>, Privy::Models::Wallets::BalanceGetParams::Asset] Named asset(s) to query (e.g. `eth`, `usdc`). Use together with `chain` to scope
|
|
20
20
|
#
|
|
21
|
-
# @param chain [Symbol, Privy::Models::WalletAssetChainNameInput, Array<Symbol, Privy::Models::WalletAssetChainNameInput>] Chain(s) to query named assets on (e.g. `
|
|
21
|
+
# @param chain [Symbol, Privy::Models::WalletAssetChainNameInput, Array<Symbol, Privy::Models::WalletAssetChainNameInput>] Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with `ass
|
|
22
22
|
#
|
|
23
23
|
# @param include_archived [Boolean] Include archived wallets in lookup. Defaults to false.
|
|
24
24
|
#
|
data/lib/privy/version.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Privy
|
|
|
13
13
|
sig { returns(String) }
|
|
14
14
|
attr_accessor :amount
|
|
15
15
|
|
|
16
|
-
# The CAIP-2 chain identifier (e.g. eip155:8453).
|
|
16
|
+
# The CAIP-2 chain identifier (e.g. eip155:4217 for Tempo, eip155:8453 for Base).
|
|
17
17
|
sig { returns(String) }
|
|
18
18
|
attr_accessor :chain_id
|
|
19
19
|
|
|
@@ -41,7 +41,7 @@ module Privy
|
|
|
41
41
|
# The amount of the asset held on this chain, denominated in the unit of the asset
|
|
42
42
|
# itself.
|
|
43
43
|
amount:,
|
|
44
|
-
# The CAIP-2 chain identifier (e.g. eip155:8453).
|
|
44
|
+
# The CAIP-2 chain identifier (e.g. eip155:4217 for Tempo, eip155:8453 for Base).
|
|
45
45
|
chain_id:,
|
|
46
46
|
# A monetary value with its currency denomination.
|
|
47
47
|
price:,
|
|
@@ -5,7 +5,7 @@ module Privy
|
|
|
5
5
|
class Currency < Privy::Internal::Type::BaseModel
|
|
6
6
|
OrHash = T.type_alias { T.any(Privy::Currency, Privy::Internal::AnyHash) }
|
|
7
7
|
|
|
8
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
8
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
9
9
|
sig { returns(String) }
|
|
10
10
|
attr_accessor :chain
|
|
11
11
|
|
|
@@ -23,7 +23,7 @@ module Privy
|
|
|
23
23
|
)
|
|
24
24
|
end
|
|
25
25
|
def self.new(
|
|
26
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
26
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
27
27
|
chain:,
|
|
28
28
|
# A currency asset type.
|
|
29
29
|
asset: nil
|
|
@@ -14,7 +14,7 @@ module Privy
|
|
|
14
14
|
attr_accessor :asset_address
|
|
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
|
|
@@ -41,7 +41,7 @@ module Privy
|
|
|
41
41
|
# transfer.
|
|
42
42
|
asset_address:,
|
|
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
|
|
@@ -26,7 +26,7 @@ module Privy
|
|
|
26
26
|
sig { params(address: String).void }
|
|
27
27
|
attr_writer :address
|
|
28
28
|
|
|
29
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
29
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
30
30
|
sig { returns(T.nilable(String)) }
|
|
31
31
|
attr_reader :caip2
|
|
32
32
|
|
|
@@ -78,7 +78,7 @@ module Privy
|
|
|
78
78
|
# Parameters for the EVM `personal_sign` RPC.
|
|
79
79
|
params:,
|
|
80
80
|
address: nil,
|
|
81
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
81
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
82
82
|
caip2: nil,
|
|
83
83
|
chain_type: nil,
|
|
84
84
|
# Options controlling signature production for personal_sign and
|
|
@@ -8,7 +8,7 @@ module Privy
|
|
|
8
8
|
T.any(Privy::EthereumSendCallsRpcInput, Privy::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
11
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
12
12
|
sig { returns(String) }
|
|
13
13
|
attr_accessor :caip2
|
|
14
14
|
|
|
@@ -79,7 +79,7 @@ module Privy
|
|
|
79
79
|
).returns(T.attached_class)
|
|
80
80
|
end
|
|
81
81
|
def self.new(
|
|
82
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
82
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
83
83
|
caip2:,
|
|
84
84
|
method_:,
|
|
85
85
|
# Parameters for the `wallet_sendCalls` 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
|
|
|
@@ -23,7 +23,7 @@ module Privy
|
|
|
23
23
|
params(caip2: String, transaction_id: String).returns(T.attached_class)
|
|
24
24
|
end
|
|
25
25
|
def self.new(
|
|
26
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
26
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
27
27
|
caip2:,
|
|
28
28
|
transaction_id:
|
|
29
29
|
)
|
|
@@ -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
|
|
|
@@ -92,7 +92,7 @@ module Privy
|
|
|
92
92
|
).returns(T.attached_class)
|
|
93
93
|
end
|
|
94
94
|
def self.new(
|
|
95
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
95
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
96
96
|
caip2:,
|
|
97
97
|
method_:,
|
|
98
98
|
# Parameters for the EVM `eth_sendTransaction` 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
|
|
|
@@ -65,7 +65,7 @@ module Privy
|
|
|
65
65
|
).returns(T.attached_class)
|
|
66
66
|
end
|
|
67
67
|
def self.new(
|
|
68
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
68
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
69
69
|
caip2:,
|
|
70
70
|
hash_:,
|
|
71
71
|
reference_id: nil,
|
|
@@ -26,7 +26,7 @@ module Privy
|
|
|
26
26
|
sig { params(address: String).void }
|
|
27
27
|
attr_writer :address
|
|
28
28
|
|
|
29
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
29
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
30
30
|
sig { returns(T.nilable(String)) }
|
|
31
31
|
attr_reader :caip2
|
|
32
32
|
|
|
@@ -79,7 +79,7 @@ module Privy
|
|
|
79
79
|
# Parameters for the EVM `eth_signTypedData_v4` RPC.
|
|
80
80
|
params:,
|
|
81
81
|
address: nil,
|
|
82
|
-
# A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
82
|
+
# A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
83
83
|
caip2: nil,
|
|
84
84
|
chain_type: nil,
|
|
85
85
|
# Options controlling signature production for personal_sign and
|
|
@@ -25,7 +25,7 @@ module Privy
|
|
|
25
25
|
sig { returns(T.nilable(Float)) }
|
|
26
26
|
attr_accessor :available_liquidity_usd
|
|
27
27
|
|
|
28
|
-
# Chain identifier (e.g., eip155:8453).
|
|
28
|
+
# Chain identifier (e.g., eip155:4217 for Tempo, eip155:8453 for Base).
|
|
29
29
|
sig { returns(String) }
|
|
30
30
|
attr_accessor :caip2
|
|
31
31
|
|
|
@@ -75,7 +75,7 @@ module Privy
|
|
|
75
75
|
asset_address:,
|
|
76
76
|
# Assets available for instant withdrawal in USD.
|
|
77
77
|
available_liquidity_usd:,
|
|
78
|
-
# Chain identifier (e.g., eip155:8453).
|
|
78
|
+
# Chain identifier (e.g., eip155:4217 for Tempo, eip155:8453 for Base).
|
|
79
79
|
caip2:,
|
|
80
80
|
# Human-readable vault name from the yield provider.
|
|
81
81
|
name:,
|