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
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
21
|
-
#
|
|
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:
|
|
38
|
-
#
|
|
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'
|
|
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'
|
|
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 '
|
|
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 '
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:,
|
|
@@ -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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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. "
|
|
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:,
|