privy_ruby 0.3.0 → 0.4.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 +11 -0
- data/README.md +1 -1
- data/lib/privy/authorization/canonicalization.rb +2 -0
- data/lib/privy/models/rpc_intent_request_details.rb +2 -2
- data/lib/privy/models/rpc_intent_response.rb +2 -2
- data/lib/privy/models/spark_coop_exit_fee_quote.rb +101 -0
- data/lib/privy/models/spark_coop_exit_request.rb +90 -0
- data/lib/privy/models/spark_currency_amount.rb +23 -0
- data/lib/privy/models/spark_exit_speed.rb +17 -0
- data/lib/privy/models/spark_get_withdrawal_fee_quote_rpc_input.rb +43 -0
- data/lib/privy/models/spark_get_withdrawal_fee_quote_rpc_input_params.rb +23 -0
- data/lib/privy/models/spark_get_withdrawal_fee_quote_rpc_response.rb +35 -0
- data/lib/privy/models/spark_rpc_input.rb +7 -1
- data/lib/privy/models/spark_rpc_response.rb +7 -1
- data/lib/privy/models/spark_withdraw_rpc_input.rb +43 -0
- data/lib/privy/models/spark_withdraw_rpc_input_params.rb +53 -0
- data/lib/privy/models/spark_withdraw_rpc_response.rb +35 -0
- data/lib/privy/models/transaction_chain_name_input.rb +25 -0
- data/lib/privy/models/transfer_received_transaction_detail.rb +6 -0
- data/lib/privy/models/transfer_sent_transaction_detail.rb +6 -0
- data/lib/privy/models/wallet_asset.rb +2 -0
- data/lib/privy/models/wallet_asset_chain_name_input.rb +3 -0
- data/lib/privy/models/wallet_creation_input.rb +11 -1
- data/lib/privy/models/wallet_ethereum_asset.rb +1 -0
- data/lib/privy/models/wallet_rpc_request_body.rb +7 -1
- data/lib/privy/models/wallet_rpc_response.rb +7 -1
- data/lib/privy/models/wallet_tron_asset.rb +17 -0
- data/lib/privy/models/wallets/aave_vault_details.rb +130 -0
- data/lib/privy/models/wallets/balance_get_params.rb +6 -0
- data/lib/privy/models/wallets/balance_get_response.rb +6 -0
- data/lib/privy/models/wallets/ethereum_earn_vault_details_response.rb +11 -84
- data/lib/privy/models/wallets/morpho_vault_details.rb +130 -0
- data/lib/privy/models/wallets/transaction_get_params.rb +10 -20
- data/lib/privy/models.rb +24 -0
- data/lib/privy/public_api/services/tron.rb +103 -0
- data/lib/privy/public_api/services/wallets.rb +4 -0
- data/lib/privy/resources/intents.rb +1 -1
- data/lib/privy/resources/wallets/transactions.rb +1 -1
- data/lib/privy/resources/wallets.rb +2 -2
- data/lib/privy/version.rb +1 -1
- data/lib/privy.rb +15 -0
- data/rbi/privy/models/rpc_intent_request_details.rbi +6 -0
- data/rbi/privy/models/rpc_intent_response.rbi +2 -0
- data/rbi/privy/models/spark_coop_exit_fee_quote.rbi +143 -0
- data/rbi/privy/models/spark_coop_exit_request.rbi +114 -0
- data/rbi/privy/models/spark_currency_amount.rbi +31 -0
- data/rbi/privy/models/spark_exit_speed.rbi +21 -0
- data/rbi/privy/models/spark_get_withdrawal_fee_quote_rpc_input.rbi +94 -0
- data/rbi/privy/models/spark_get_withdrawal_fee_quote_rpc_input_params.rbi +34 -0
- data/rbi/privy/models/spark_get_withdrawal_fee_quote_rpc_response.rbi +82 -0
- data/rbi/privy/models/spark_rpc_input.rbi +3 -1
- data/rbi/privy/models/spark_rpc_response.rbi +3 -1
- data/rbi/privy/models/spark_withdraw_rpc_input.rbi +77 -0
- data/rbi/privy/models/spark_withdraw_rpc_input_params.rbi +80 -0
- data/rbi/privy/models/spark_withdraw_rpc_response.rbi +71 -0
- data/rbi/privy/models/transaction_chain_name_input.rbi +38 -0
- data/rbi/privy/models/transfer_received_transaction_detail.rbi +10 -0
- data/rbi/privy/models/transfer_sent_transaction_detail.rbi +4 -0
- data/rbi/privy/models/wallet_asset.rbi +2 -0
- data/rbi/privy/models/wallet_asset_chain_name_input.rbi +4 -0
- data/rbi/privy/models/wallet_creation_input.rbi +15 -0
- data/rbi/privy/models/wallet_ethereum_asset.rbi +1 -0
- data/rbi/privy/models/wallet_rpc_request_body.rbi +2 -0
- data/rbi/privy/models/wallet_rpc_response.rbi +2 -0
- data/rbi/privy/models/wallet_tron_asset.rbi +21 -0
- data/rbi/privy/models/wallets/aave_vault_details.rbi +165 -0
- data/rbi/privy/models/wallets/balance_get_params.rbi +4 -0
- data/rbi/privy/models/wallets/balance_get_response.rbi +10 -0
- data/rbi/privy/models/wallets/ethereum_earn_vault_details_response.rbi +10 -103
- data/rbi/privy/models/wallets/morpho_vault_details.rbi +167 -0
- data/rbi/privy/models/wallets/transaction_get_params.rbi +15 -69
- data/rbi/privy/models.rbi +27 -0
- data/rbi/privy/resources/intents.rbi +2 -0
- data/rbi/privy/resources/wallets/transactions.rbi +2 -1
- data/rbi/privy/resources/wallets.rbi +2 -0
- data/sig/privy/models/spark_coop_exit_fee_quote.rbs +75 -0
- data/sig/privy/models/spark_coop_exit_request.rbs +76 -0
- data/sig/privy/models/spark_currency_amount.rbs +16 -0
- data/sig/privy/models/spark_exit_speed.rbs +15 -0
- data/sig/privy/models/spark_get_withdrawal_fee_quote_rpc_input.rbs +44 -0
- data/sig/privy/models/spark_get_withdrawal_fee_quote_rpc_input_params.rbs +16 -0
- data/sig/privy/models/spark_get_withdrawal_fee_quote_rpc_response.rbs +37 -0
- data/sig/privy/models/spark_rpc_input.rbs +2 -0
- data/sig/privy/models/spark_rpc_response.rbs +2 -0
- data/sig/privy/models/spark_withdraw_rpc_input.rbs +44 -0
- data/sig/privy/models/spark_withdraw_rpc_input_params.rbs +53 -0
- data/sig/privy/models/spark_withdraw_rpc_response.rbs +37 -0
- data/sig/privy/models/transaction_chain_name_input.rbs +34 -0
- data/sig/privy/models/transfer_received_transaction_detail.rbs +4 -0
- data/sig/privy/models/transfer_sent_transaction_detail.rbs +4 -0
- data/sig/privy/models/wallet_asset.rbs +13 -1
- data/sig/privy/models/wallet_asset_chain_name_input.rbs +6 -0
- data/sig/privy/models/wallet_creation_input.rbs +7 -0
- data/sig/privy/models/wallet_ethereum_asset.rbs +2 -1
- data/sig/privy/models/wallet_rpc_request_body.rbs +2 -0
- data/sig/privy/models/wallet_rpc_response.rbs +2 -0
- data/sig/privy/models/wallet_tron_asset.rbs +15 -0
- data/sig/privy/models/wallets/aave_vault_details.rbs +92 -0
- data/sig/privy/models/wallets/balance_get_params.rbs +4 -0
- data/sig/privy/models/wallets/balance_get_response.rbs +4 -0
- data/sig/privy/models/wallets/ethereum_earn_vault_details_response.rbs +4 -57
- data/sig/privy/models/wallets/morpho_vault_details.rbs +92 -0
- data/sig/privy/models/wallets/transaction_get_params.rbs +8 -31
- data/sig/privy/models.rbs +24 -0
- data/sig/privy/resources/wallets/transactions.rbs +1 -1
- metadata +45 -2
|
@@ -153,6 +153,8 @@ module Privy
|
|
|
153
153
|
Privy::SparkCreateLightningInvoiceRpcInput::OrHash,
|
|
154
154
|
Privy::SparkPayLightningInvoiceRpcInput::OrHash,
|
|
155
155
|
Privy::SparkSignMessageWithIdentityKeyRpcInput::OrHash,
|
|
156
|
+
Privy::SparkWithdrawRpcInput::OrHash,
|
|
157
|
+
Privy::SparkGetWithdrawalFeeQuoteRpcInput::OrHash,
|
|
156
158
|
Privy::TronSignTransactionRpcInput::OrHash,
|
|
157
159
|
Privy::TronSendTransactionRpcInput::OrHash,
|
|
158
160
|
Privy::ExportPrivateKeyRpcInput::OrHash,
|
|
@@ -9,7 +9,7 @@ module Privy
|
|
|
9
9
|
sig do
|
|
10
10
|
params(
|
|
11
11
|
wallet_id: String,
|
|
12
|
-
chain: Privy::
|
|
12
|
+
chain: Privy::TransactionChainNameInput::OrSymbol,
|
|
13
13
|
token: Privy::Wallets::TransactionGetParams::Token::Variants,
|
|
14
14
|
asset:
|
|
15
15
|
T.any(
|
|
@@ -26,6 +26,7 @@ module Privy
|
|
|
26
26
|
def get(
|
|
27
27
|
# ID of the wallet.
|
|
28
28
|
wallet_id,
|
|
29
|
+
# Chains supported for transaction history queries.
|
|
29
30
|
chain:,
|
|
30
31
|
# Exactly one of `token` or `asset` is required. Cannot be used together with
|
|
31
32
|
# `asset`.
|
|
@@ -481,6 +481,8 @@ module Privy
|
|
|
481
481
|
Privy::SparkCreateLightningInvoiceRpcInput::OrHash,
|
|
482
482
|
Privy::SparkPayLightningInvoiceRpcInput::OrHash,
|
|
483
483
|
Privy::SparkSignMessageWithIdentityKeyRpcInput::OrHash,
|
|
484
|
+
Privy::SparkWithdrawRpcInput::OrHash,
|
|
485
|
+
Privy::SparkGetWithdrawalFeeQuoteRpcInput::OrHash,
|
|
484
486
|
Privy::TronSignTransactionRpcInput::OrHash,
|
|
485
487
|
Privy::TronSendTransactionRpcInput::OrHash,
|
|
486
488
|
Privy::ExportPrivateKeyRpcInput::OrHash,
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_coop_exit_fee_quote =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: String,
|
|
7
|
+
expires_at: String,
|
|
8
|
+
:l1_broadcast_fee_fast => Privy::SparkCurrencyAmount,
|
|
9
|
+
:l1_broadcast_fee_medium => Privy::SparkCurrencyAmount,
|
|
10
|
+
:l1_broadcast_fee_slow => Privy::SparkCurrencyAmount,
|
|
11
|
+
network: String,
|
|
12
|
+
total_amount: Privy::SparkCurrencyAmount,
|
|
13
|
+
updated_at: String,
|
|
14
|
+
user_fee_fast: Privy::SparkCurrencyAmount,
|
|
15
|
+
user_fee_medium: Privy::SparkCurrencyAmount,
|
|
16
|
+
user_fee_slow: Privy::SparkCurrencyAmount
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class SparkCoopExitFeeQuote < Privy::Internal::Type::BaseModel
|
|
20
|
+
attr_accessor id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor created_at: String
|
|
23
|
+
|
|
24
|
+
attr_accessor expires_at: String
|
|
25
|
+
|
|
26
|
+
attr_accessor l1_broadcast_fee_fast: Privy::SparkCurrencyAmount
|
|
27
|
+
|
|
28
|
+
attr_accessor l1_broadcast_fee_medium: Privy::SparkCurrencyAmount
|
|
29
|
+
|
|
30
|
+
attr_accessor l1_broadcast_fee_slow: Privy::SparkCurrencyAmount
|
|
31
|
+
|
|
32
|
+
attr_accessor network: String
|
|
33
|
+
|
|
34
|
+
attr_accessor total_amount: Privy::SparkCurrencyAmount
|
|
35
|
+
|
|
36
|
+
attr_accessor updated_at: String
|
|
37
|
+
|
|
38
|
+
attr_accessor user_fee_fast: Privy::SparkCurrencyAmount
|
|
39
|
+
|
|
40
|
+
attr_accessor user_fee_medium: Privy::SparkCurrencyAmount
|
|
41
|
+
|
|
42
|
+
attr_accessor user_fee_slow: Privy::SparkCurrencyAmount
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
id: String,
|
|
46
|
+
created_at: String,
|
|
47
|
+
expires_at: String,
|
|
48
|
+
l1_broadcast_fee_fast: Privy::SparkCurrencyAmount,
|
|
49
|
+
l1_broadcast_fee_medium: Privy::SparkCurrencyAmount,
|
|
50
|
+
l1_broadcast_fee_slow: Privy::SparkCurrencyAmount,
|
|
51
|
+
network: String,
|
|
52
|
+
total_amount: Privy::SparkCurrencyAmount,
|
|
53
|
+
updated_at: String,
|
|
54
|
+
user_fee_fast: Privy::SparkCurrencyAmount,
|
|
55
|
+
user_fee_medium: Privy::SparkCurrencyAmount,
|
|
56
|
+
user_fee_slow: Privy::SparkCurrencyAmount
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
id: String,
|
|
61
|
+
created_at: String,
|
|
62
|
+
expires_at: String,
|
|
63
|
+
:l1_broadcast_fee_fast => Privy::SparkCurrencyAmount,
|
|
64
|
+
:l1_broadcast_fee_medium => Privy::SparkCurrencyAmount,
|
|
65
|
+
:l1_broadcast_fee_slow => Privy::SparkCurrencyAmount,
|
|
66
|
+
network: String,
|
|
67
|
+
total_amount: Privy::SparkCurrencyAmount,
|
|
68
|
+
updated_at: String,
|
|
69
|
+
user_fee_fast: Privy::SparkCurrencyAmount,
|
|
70
|
+
user_fee_medium: Privy::SparkCurrencyAmount,
|
|
71
|
+
user_fee_slow: Privy::SparkCurrencyAmount
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_coop_exit_request =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
coop_exit_txid: String,
|
|
7
|
+
created_at: String,
|
|
8
|
+
expires_at: String,
|
|
9
|
+
fee: Privy::SparkCurrencyAmount,
|
|
10
|
+
:l1_broadcast_fee => Privy::SparkCurrencyAmount,
|
|
11
|
+
network: String,
|
|
12
|
+
status: String,
|
|
13
|
+
updated_at: String,
|
|
14
|
+
exit_speed: Privy::Models::spark_exit_speed,
|
|
15
|
+
fee_quote_id: String
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SparkCoopExitRequest < Privy::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor coop_exit_txid: String
|
|
22
|
+
|
|
23
|
+
attr_accessor created_at: String
|
|
24
|
+
|
|
25
|
+
attr_accessor expires_at: String
|
|
26
|
+
|
|
27
|
+
attr_accessor fee: Privy::SparkCurrencyAmount
|
|
28
|
+
|
|
29
|
+
attr_accessor l1_broadcast_fee: Privy::SparkCurrencyAmount
|
|
30
|
+
|
|
31
|
+
attr_accessor network: String
|
|
32
|
+
|
|
33
|
+
attr_accessor status: String
|
|
34
|
+
|
|
35
|
+
attr_accessor updated_at: String
|
|
36
|
+
|
|
37
|
+
attr_reader exit_speed: Privy::Models::spark_exit_speed?
|
|
38
|
+
|
|
39
|
+
def exit_speed=: (
|
|
40
|
+
Privy::Models::spark_exit_speed
|
|
41
|
+
) -> Privy::Models::spark_exit_speed
|
|
42
|
+
|
|
43
|
+
attr_reader fee_quote_id: String?
|
|
44
|
+
|
|
45
|
+
def fee_quote_id=: (String) -> String
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
id: String,
|
|
49
|
+
coop_exit_txid: String,
|
|
50
|
+
created_at: String,
|
|
51
|
+
expires_at: String,
|
|
52
|
+
fee: Privy::SparkCurrencyAmount,
|
|
53
|
+
l1_broadcast_fee: Privy::SparkCurrencyAmount,
|
|
54
|
+
network: String,
|
|
55
|
+
status: String,
|
|
56
|
+
updated_at: String,
|
|
57
|
+
?exit_speed: Privy::Models::spark_exit_speed,
|
|
58
|
+
?fee_quote_id: String
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
id: String,
|
|
63
|
+
coop_exit_txid: String,
|
|
64
|
+
created_at: String,
|
|
65
|
+
expires_at: String,
|
|
66
|
+
fee: Privy::SparkCurrencyAmount,
|
|
67
|
+
:l1_broadcast_fee => Privy::SparkCurrencyAmount,
|
|
68
|
+
network: String,
|
|
69
|
+
status: String,
|
|
70
|
+
updated_at: String,
|
|
71
|
+
exit_speed: Privy::Models::spark_exit_speed,
|
|
72
|
+
fee_quote_id: String
|
|
73
|
+
}
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_currency_amount =
|
|
4
|
+
{ original_unit: String, original_value: Float }
|
|
5
|
+
|
|
6
|
+
class SparkCurrencyAmount < Privy::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor original_unit: String
|
|
8
|
+
|
|
9
|
+
attr_accessor original_value: Float
|
|
10
|
+
|
|
11
|
+
def initialize: (original_unit: String, original_value: Float) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { original_unit: String, original_value: Float }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_exit_speed = :FAST | :MEDIUM | :SLOW
|
|
4
|
+
|
|
5
|
+
module SparkExitSpeed
|
|
6
|
+
extend Privy::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
FAST: :FAST
|
|
9
|
+
MEDIUM: :MEDIUM
|
|
10
|
+
SLOW: :SLOW
|
|
11
|
+
|
|
12
|
+
def self?.values: -> ::Array[Privy::Models::spark_exit_speed]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_get_withdrawal_fee_quote_rpc_input =
|
|
4
|
+
{
|
|
5
|
+
method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcInput::method_,
|
|
6
|
+
params: Privy::SparkGetWithdrawalFeeQuoteRpcInputParams,
|
|
7
|
+
network: Privy::Models::spark_network
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SparkGetWithdrawalFeeQuoteRpcInput < Privy::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcInput::method_
|
|
12
|
+
|
|
13
|
+
attr_accessor params: Privy::SparkGetWithdrawalFeeQuoteRpcInputParams
|
|
14
|
+
|
|
15
|
+
attr_reader network: Privy::Models::spark_network?
|
|
16
|
+
|
|
17
|
+
def network=: (
|
|
18
|
+
Privy::Models::spark_network
|
|
19
|
+
) -> Privy::Models::spark_network
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcInput::method_,
|
|
23
|
+
params: Privy::SparkGetWithdrawalFeeQuoteRpcInputParams,
|
|
24
|
+
?network: Privy::Models::spark_network
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcInput::method_,
|
|
29
|
+
params: Privy::SparkGetWithdrawalFeeQuoteRpcInputParams,
|
|
30
|
+
network: Privy::Models::spark_network
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type method_ = :getWithdrawalFeeQuote
|
|
34
|
+
|
|
35
|
+
module Method
|
|
36
|
+
extend Privy::Internal::Type::Enum
|
|
37
|
+
|
|
38
|
+
GET_WITHDRAWAL_FEE_QUOTE: :getWithdrawalFeeQuote
|
|
39
|
+
|
|
40
|
+
def self?.values: -> ::Array[Privy::Models::SparkGetWithdrawalFeeQuoteRpcInput::method_]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_get_withdrawal_fee_quote_rpc_input_params =
|
|
4
|
+
{ amount_sats: Float, onchain_address: String }
|
|
5
|
+
|
|
6
|
+
class SparkGetWithdrawalFeeQuoteRpcInputParams < Privy::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor amount_sats: Float
|
|
8
|
+
|
|
9
|
+
attr_accessor onchain_address: String
|
|
10
|
+
|
|
11
|
+
def initialize: (amount_sats: Float, onchain_address: String) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { amount_sats: Float, onchain_address: String }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_get_withdrawal_fee_quote_rpc_response =
|
|
4
|
+
{
|
|
5
|
+
method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcResponse::method_,
|
|
6
|
+
data: Privy::SparkCoopExitFeeQuote
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SparkGetWithdrawalFeeQuoteRpcResponse < Privy::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcResponse::method_
|
|
11
|
+
|
|
12
|
+
attr_reader data: Privy::SparkCoopExitFeeQuote?
|
|
13
|
+
|
|
14
|
+
def data=: (Privy::SparkCoopExitFeeQuote) -> Privy::SparkCoopExitFeeQuote
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcResponse::method_,
|
|
18
|
+
?data: Privy::SparkCoopExitFeeQuote
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
method_: Privy::Models::SparkGetWithdrawalFeeQuoteRpcResponse::method_,
|
|
23
|
+
data: Privy::SparkCoopExitFeeQuote
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type method_ = :getWithdrawalFeeQuote
|
|
27
|
+
|
|
28
|
+
module Method
|
|
29
|
+
extend Privy::Internal::Type::Enum
|
|
30
|
+
|
|
31
|
+
GET_WITHDRAWAL_FEE_QUOTE: :getWithdrawalFeeQuote
|
|
32
|
+
|
|
33
|
+
def self?.values: -> ::Array[Privy::Models::SparkGetWithdrawalFeeQuoteRpcResponse::method_]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -10,6 +10,8 @@ module Privy
|
|
|
10
10
|
| Privy::SparkCreateLightningInvoiceRpcInput
|
|
11
11
|
| Privy::SparkPayLightningInvoiceRpcInput
|
|
12
12
|
| Privy::SparkSignMessageWithIdentityKeyRpcInput
|
|
13
|
+
| Privy::SparkWithdrawRpcInput
|
|
14
|
+
| Privy::SparkGetWithdrawalFeeQuoteRpcInput
|
|
13
15
|
|
|
14
16
|
module SparkRpcInput
|
|
15
17
|
extend Privy::Internal::Type::Union
|
|
@@ -10,6 +10,8 @@ module Privy
|
|
|
10
10
|
| Privy::SparkCreateLightningInvoiceRpcResponse
|
|
11
11
|
| Privy::SparkPayLightningInvoiceRpcResponse
|
|
12
12
|
| Privy::SparkSignMessageWithIdentityKeyRpcResponse
|
|
13
|
+
| Privy::SparkWithdrawRpcResponse
|
|
14
|
+
| Privy::SparkGetWithdrawalFeeQuoteRpcResponse
|
|
13
15
|
|
|
14
16
|
module SparkRpcResponse
|
|
15
17
|
extend Privy::Internal::Type::Union
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_withdraw_rpc_input =
|
|
4
|
+
{
|
|
5
|
+
method_: Privy::Models::SparkWithdrawRpcInput::method_,
|
|
6
|
+
params: Privy::SparkWithdrawRpcInputParams,
|
|
7
|
+
network: Privy::Models::spark_network
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SparkWithdrawRpcInput < Privy::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor method_: Privy::Models::SparkWithdrawRpcInput::method_
|
|
12
|
+
|
|
13
|
+
attr_accessor params: Privy::SparkWithdrawRpcInputParams
|
|
14
|
+
|
|
15
|
+
attr_reader network: Privy::Models::spark_network?
|
|
16
|
+
|
|
17
|
+
def network=: (
|
|
18
|
+
Privy::Models::spark_network
|
|
19
|
+
) -> Privy::Models::spark_network
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
method_: Privy::Models::SparkWithdrawRpcInput::method_,
|
|
23
|
+
params: Privy::SparkWithdrawRpcInputParams,
|
|
24
|
+
?network: Privy::Models::spark_network
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
method_: Privy::Models::SparkWithdrawRpcInput::method_,
|
|
29
|
+
params: Privy::SparkWithdrawRpcInputParams,
|
|
30
|
+
network: Privy::Models::spark_network
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type method_ = :withdraw
|
|
34
|
+
|
|
35
|
+
module Method
|
|
36
|
+
extend Privy::Internal::Type::Enum
|
|
37
|
+
|
|
38
|
+
WITHDRAW: :withdraw
|
|
39
|
+
|
|
40
|
+
def self?.values: -> ::Array[Privy::Models::SparkWithdrawRpcInput::method_]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_withdraw_rpc_input_params =
|
|
4
|
+
{
|
|
5
|
+
exit_speed: Privy::Models::spark_exit_speed,
|
|
6
|
+
onchain_address: String,
|
|
7
|
+
amount_sats: Float,
|
|
8
|
+
deduct_fee_from_withdrawal_amount: bool,
|
|
9
|
+
fee_amount_sats: Float,
|
|
10
|
+
fee_quote_id: String
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class SparkWithdrawRpcInputParams < Privy::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor exit_speed: Privy::Models::spark_exit_speed
|
|
15
|
+
|
|
16
|
+
attr_accessor onchain_address: String
|
|
17
|
+
|
|
18
|
+
attr_reader amount_sats: Float?
|
|
19
|
+
|
|
20
|
+
def amount_sats=: (Float) -> Float
|
|
21
|
+
|
|
22
|
+
attr_reader deduct_fee_from_withdrawal_amount: bool?
|
|
23
|
+
|
|
24
|
+
def deduct_fee_from_withdrawal_amount=: (bool) -> bool
|
|
25
|
+
|
|
26
|
+
attr_reader fee_amount_sats: Float?
|
|
27
|
+
|
|
28
|
+
def fee_amount_sats=: (Float) -> Float
|
|
29
|
+
|
|
30
|
+
attr_reader fee_quote_id: String?
|
|
31
|
+
|
|
32
|
+
def fee_quote_id=: (String) -> String
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
exit_speed: Privy::Models::spark_exit_speed,
|
|
36
|
+
onchain_address: String,
|
|
37
|
+
?amount_sats: Float,
|
|
38
|
+
?deduct_fee_from_withdrawal_amount: bool,
|
|
39
|
+
?fee_amount_sats: Float,
|
|
40
|
+
?fee_quote_id: String
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
exit_speed: Privy::Models::spark_exit_speed,
|
|
45
|
+
onchain_address: String,
|
|
46
|
+
amount_sats: Float,
|
|
47
|
+
deduct_fee_from_withdrawal_amount: bool,
|
|
48
|
+
fee_amount_sats: Float,
|
|
49
|
+
fee_quote_id: String
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type spark_withdraw_rpc_response =
|
|
4
|
+
{
|
|
5
|
+
method_: Privy::Models::SparkWithdrawRpcResponse::method_,
|
|
6
|
+
data: Privy::SparkCoopExitRequest
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SparkWithdrawRpcResponse < Privy::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor method_: Privy::Models::SparkWithdrawRpcResponse::method_
|
|
11
|
+
|
|
12
|
+
attr_reader data: Privy::SparkCoopExitRequest?
|
|
13
|
+
|
|
14
|
+
def data=: (Privy::SparkCoopExitRequest) -> Privy::SparkCoopExitRequest
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
method_: Privy::Models::SparkWithdrawRpcResponse::method_,
|
|
18
|
+
?data: Privy::SparkCoopExitRequest
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
method_: Privy::Models::SparkWithdrawRpcResponse::method_,
|
|
23
|
+
data: Privy::SparkCoopExitRequest
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type method_ = :withdraw
|
|
27
|
+
|
|
28
|
+
module Method
|
|
29
|
+
extend Privy::Internal::Type::Enum
|
|
30
|
+
|
|
31
|
+
WITHDRAW: :withdraw
|
|
32
|
+
|
|
33
|
+
def self?.values: -> ::Array[Privy::Models::SparkWithdrawRpcResponse::method_]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type transaction_chain_name_input =
|
|
4
|
+
:ethereum
|
|
5
|
+
| :arbitrum
|
|
6
|
+
| :avalanche
|
|
7
|
+
| :base
|
|
8
|
+
| :bsc
|
|
9
|
+
| :tempo
|
|
10
|
+
| :linea
|
|
11
|
+
| :optimism
|
|
12
|
+
| :polygon
|
|
13
|
+
| :solana
|
|
14
|
+
| :sepolia
|
|
15
|
+
|
|
16
|
+
module TransactionChainNameInput
|
|
17
|
+
extend Privy::Internal::Type::Enum
|
|
18
|
+
|
|
19
|
+
ETHEREUM: :ethereum
|
|
20
|
+
ARBITRUM: :arbitrum
|
|
21
|
+
AVALANCHE: :avalanche
|
|
22
|
+
BASE: :base
|
|
23
|
+
BSC: :bsc
|
|
24
|
+
TEMPO: :tempo
|
|
25
|
+
LINEA: :linea
|
|
26
|
+
OPTIMISM: :optimism
|
|
27
|
+
POLYGON: :polygon
|
|
28
|
+
SOLANA: :solana
|
|
29
|
+
SEPOLIA: :sepolia
|
|
30
|
+
|
|
31
|
+
def self?.values: -> ::Array[Privy::Models::transaction_chain_name_input]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -67,10 +67,12 @@ module Privy
|
|
|
67
67
|
| :eth
|
|
68
68
|
| :avax
|
|
69
69
|
| :pol
|
|
70
|
+
| :bnb
|
|
70
71
|
| :usdt
|
|
71
72
|
| :eurc
|
|
72
73
|
| :usdb
|
|
73
74
|
| :sol
|
|
75
|
+
| :trx
|
|
74
76
|
| String
|
|
75
77
|
|
|
76
78
|
module Asset
|
|
@@ -83,10 +85,12 @@ module Privy
|
|
|
83
85
|
ETH: :eth
|
|
84
86
|
AVAX: :avax
|
|
85
87
|
POL: :pol
|
|
88
|
+
BNB: :bnb
|
|
86
89
|
USDT: :usdt
|
|
87
90
|
EURC: :eurc
|
|
88
91
|
USDB: :usdb
|
|
89
92
|
SOL: :sol
|
|
93
|
+
TRX: :trx
|
|
90
94
|
end
|
|
91
95
|
|
|
92
96
|
type type_ = :transfer_received
|
|
@@ -67,10 +67,12 @@ module Privy
|
|
|
67
67
|
| :eth
|
|
68
68
|
| :avax
|
|
69
69
|
| :pol
|
|
70
|
+
| :bnb
|
|
70
71
|
| :usdt
|
|
71
72
|
| :eurc
|
|
72
73
|
| :usdb
|
|
73
74
|
| :sol
|
|
75
|
+
| :trx
|
|
74
76
|
| String
|
|
75
77
|
|
|
76
78
|
module Asset
|
|
@@ -83,10 +85,12 @@ module Privy
|
|
|
83
85
|
ETH: :eth
|
|
84
86
|
AVAX: :avax
|
|
85
87
|
POL: :pol
|
|
88
|
+
BNB: :bnb
|
|
86
89
|
USDT: :usdt
|
|
87
90
|
EURC: :eurc
|
|
88
91
|
USDB: :usdb
|
|
89
92
|
SOL: :sol
|
|
93
|
+
TRX: :trx
|
|
90
94
|
end
|
|
91
95
|
|
|
92
96
|
type type_ = :transfer_sent
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
module Privy
|
|
2
2
|
module Models
|
|
3
3
|
type wallet_asset =
|
|
4
|
-
:usdc
|
|
4
|
+
:usdc
|
|
5
|
+
| :"usdc.e"
|
|
6
|
+
| :eth
|
|
7
|
+
| :avax
|
|
8
|
+
| :pol
|
|
9
|
+
| :bnb
|
|
10
|
+
| :usdt
|
|
11
|
+
| :eurc
|
|
12
|
+
| :usdb
|
|
13
|
+
| :sol
|
|
14
|
+
| :trx
|
|
5
15
|
|
|
6
16
|
module WalletAsset
|
|
7
17
|
extend Privy::Internal::Type::Enum
|
|
@@ -11,10 +21,12 @@ module Privy
|
|
|
11
21
|
ETH: :eth
|
|
12
22
|
AVAX: :avax
|
|
13
23
|
POL: :pol
|
|
24
|
+
BNB: :bnb
|
|
14
25
|
USDT: :usdt
|
|
15
26
|
EURC: :eurc
|
|
16
27
|
USDB: :usdb
|
|
17
28
|
SOL: :sol
|
|
29
|
+
TRX: :trx
|
|
18
30
|
|
|
19
31
|
def self?.values: -> ::Array[Privy::Models::wallet_asset]
|
|
20
32
|
end
|
|
@@ -9,7 +9,9 @@ module Privy
|
|
|
9
9
|
| :linea
|
|
10
10
|
| :optimism
|
|
11
11
|
| :polygon
|
|
12
|
+
| :bsc
|
|
12
13
|
| :solana
|
|
14
|
+
| :tron
|
|
13
15
|
| :zksync_era
|
|
14
16
|
| :sepolia
|
|
15
17
|
| :arbitrum_sepolia
|
|
@@ -20,6 +22,7 @@ module Privy
|
|
|
20
22
|
| :polygon_amoy
|
|
21
23
|
| :solana_devnet
|
|
22
24
|
| :solana_testnet
|
|
25
|
+
| :tron_nile
|
|
23
26
|
|
|
24
27
|
module WalletAssetChainNameInput
|
|
25
28
|
extend Privy::Internal::Type::Enum
|
|
@@ -32,7 +35,9 @@ module Privy
|
|
|
32
35
|
LINEA: :linea
|
|
33
36
|
OPTIMISM: :optimism
|
|
34
37
|
POLYGON: :polygon
|
|
38
|
+
BSC: :bsc
|
|
35
39
|
SOLANA: :solana
|
|
40
|
+
TRON: :tron
|
|
36
41
|
ZKSYNC_ERA: :zksync_era
|
|
37
42
|
SEPOLIA: :sepolia
|
|
38
43
|
ARBITRUM_SEPOLIA: :arbitrum_sepolia
|
|
@@ -43,6 +48,7 @@ module Privy
|
|
|
43
48
|
POLYGON_AMOY: :polygon_amoy
|
|
44
49
|
SOLANA_DEVNET: :solana_devnet
|
|
45
50
|
SOLANA_TESTNET: :solana_testnet
|
|
51
|
+
TRON_NILE: :tron_nile
|
|
46
52
|
|
|
47
53
|
def self?.values: -> ::Array[Privy::Models::wallet_asset_chain_name_input]
|
|
48
54
|
end
|
|
@@ -5,6 +5,7 @@ module Privy
|
|
|
5
5
|
chain_type: Privy::Models::wallet_chain_type,
|
|
6
6
|
additional_signers: ::Array[Privy::WalletCreationAdditionalSignerItem],
|
|
7
7
|
create_smart_wallet: bool,
|
|
8
|
+
external_id: String,
|
|
8
9
|
policy_ids: ::Array[String]
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -21,6 +22,10 @@ module Privy
|
|
|
21
22
|
|
|
22
23
|
def create_smart_wallet=: (bool) -> bool
|
|
23
24
|
|
|
25
|
+
attr_reader external_id: String?
|
|
26
|
+
|
|
27
|
+
def external_id=: (String) -> String
|
|
28
|
+
|
|
24
29
|
attr_reader policy_ids: ::Array[String]?
|
|
25
30
|
|
|
26
31
|
def policy_ids=: (::Array[String]) -> ::Array[String]
|
|
@@ -29,6 +34,7 @@ module Privy
|
|
|
29
34
|
chain_type: Privy::Models::wallet_chain_type,
|
|
30
35
|
?additional_signers: ::Array[Privy::WalletCreationAdditionalSignerItem],
|
|
31
36
|
?create_smart_wallet: bool,
|
|
37
|
+
?external_id: String,
|
|
32
38
|
?policy_ids: ::Array[String]
|
|
33
39
|
) -> void
|
|
34
40
|
|
|
@@ -36,6 +42,7 @@ module Privy
|
|
|
36
42
|
chain_type: Privy::Models::wallet_chain_type,
|
|
37
43
|
additional_signers: ::Array[Privy::WalletCreationAdditionalSignerItem],
|
|
38
44
|
create_smart_wallet: bool,
|
|
45
|
+
external_id: String,
|
|
39
46
|
policy_ids: ::Array[String]
|
|
40
47
|
}
|
|
41
48
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Privy
|
|
2
2
|
module Models
|
|
3
3
|
type wallet_ethereum_asset =
|
|
4
|
-
:usdc | :"usdc.e" | :eth | :avax | :pol | :usdt | :eurc | :usdb
|
|
4
|
+
:usdc | :"usdc.e" | :eth | :avax | :pol | :bnb | :usdt | :eurc | :usdb
|
|
5
5
|
|
|
6
6
|
module WalletEthereumAsset
|
|
7
7
|
extend Privy::Internal::Type::Enum
|
|
@@ -11,6 +11,7 @@ module Privy
|
|
|
11
11
|
ETH: :eth
|
|
12
12
|
AVAX: :avax
|
|
13
13
|
POL: :pol
|
|
14
|
+
BNB: :bnb
|
|
14
15
|
USDT: :usdt
|
|
15
16
|
EURC: :eurc
|
|
16
17
|
USDB: :usdb
|