privy_ruby 0.4.0 → 0.5.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 +10 -0
- data/README.md +1 -1
- data/lib/privy/models/custom_token_transfer_source.rb +14 -13
- data/lib/privy/models/ethereum_yield_provider.rb +1 -0
- data/lib/privy/models/named_token_transfer_source.rb +14 -13
- data/lib/privy/models/unsafe_unwrap_webhook_event.rb +17 -1
- data/lib/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rb +153 -0
- data/lib/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rb +178 -0
- data/lib/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rb +177 -0
- data/lib/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rb +169 -0
- data/lib/privy/models/wallets/earn_fee_collect_action_response.rb +149 -0
- data/lib/privy/models/wallets/earn_fee_collect_request_body.rb +20 -0
- data/lib/privy/models/wallets/ethereum_earn_provider.rb +1 -0
- data/lib/privy/models/wallets/ethereum_earn_vault_details_response.rb +4 -1
- data/lib/privy/models/wallets/list_wallet_actions_response.rb +2 -2
- data/lib/privy/models/wallets/veda_vault_details.rb +122 -0
- data/lib/privy/models/wallets/wallet_action_response.rb +4 -1
- data/lib/privy/models/wallets/wallet_action_type.rb +1 -0
- data/lib/privy/models/webhook_payload.rb +13 -1
- data/lib/privy/models.rb +12 -0
- data/lib/privy/resources/wallets/actions.rb +1 -1
- data/lib/privy/resources/webhooks.rb +1 -1
- data/lib/privy/version.rb +1 -1
- data/lib/privy.rb +7 -0
- data/rbi/privy/models/custom_token_transfer_source.rbi +18 -13
- data/rbi/privy/models/ethereum_yield_provider.rbi +1 -0
- data/rbi/privy/models/named_token_transfer_source.rbi +18 -13
- data/rbi/privy/models/unsafe_unwrap_webhook_event.rbi +4 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rbi +232 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rbi +271 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rbi +269 -0
- data/rbi/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rbi +258 -0
- data/rbi/privy/models/wallets/earn_fee_collect_action_response.rbi +236 -0
- data/rbi/privy/models/wallets/earn_fee_collect_request_body.rbi +33 -0
- data/rbi/privy/models/wallets/ethereum_earn_provider.rbi +1 -0
- data/rbi/privy/models/wallets/ethereum_earn_vault_details_response.rbi +2 -1
- data/rbi/privy/models/wallets/list_wallet_actions_response.rbi +6 -3
- data/rbi/privy/models/wallets/veda_vault_details.rbi +157 -0
- data/rbi/privy/models/wallets/wallet_action_response.rbi +2 -1
- data/rbi/privy/models/wallets/wallet_action_type.rbi +5 -0
- data/rbi/privy/models/webhook_payload.rbi +5 -1
- data/rbi/privy/models.rbi +12 -0
- data/rbi/privy/resources/webhooks.rbi +4 -0
- data/sig/privy/models/custom_token_transfer_source.rbs +8 -6
- data/sig/privy/models/ethereum_yield_provider.rbs +2 -1
- data/sig/privy/models/named_token_transfer_source.rbs +7 -5
- data/sig/privy/models/unsafe_unwrap_webhook_event.rbs +4 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_created_webhook_payload.rbs +111 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_failed_webhook_payload.rbs +126 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_rejected_webhook_payload.rbs +126 -0
- data/sig/privy/models/wallet_action_earn_fee_collect_succeeded_webhook_payload.rbs +121 -0
- data/sig/privy/models/wallets/earn_fee_collect_action_response.rbs +114 -0
- data/sig/privy/models/wallets/earn_fee_collect_request_body.rbs +15 -0
- data/sig/privy/models/wallets/ethereum_earn_provider.rbs +2 -1
- data/sig/privy/models/wallets/ethereum_earn_vault_details_response.rbs +3 -1
- data/sig/privy/models/wallets/veda_vault_details.rbs +87 -0
- data/sig/privy/models/wallets/wallet_action_response.rbs +1 -0
- data/sig/privy/models/wallets/wallet_action_type.rbs +2 -0
- data/sig/privy/models/webhook_payload.rbs +4 -0
- data/sig/privy/models.rbs +8 -0
- data/sig/privy/resources/webhooks.rbs +4 -0
- metadata +23 -2
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Privy
|
|
4
|
+
module Models
|
|
5
|
+
module Wallets
|
|
6
|
+
class VedaVaultDetails < Privy::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(Privy::Wallets::VedaVaultDetails, Privy::Internal::AnyHash)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Vault identifier.
|
|
13
|
+
sig { returns(String) }
|
|
14
|
+
attr_accessor :id
|
|
15
|
+
|
|
16
|
+
# EVM address of the vault admin wallet.
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :admin_wallet_address
|
|
19
|
+
|
|
20
|
+
# Privy wallet ID of the vault admin.
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :admin_wallet_id
|
|
23
|
+
|
|
24
|
+
# Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
25
|
+
# points.
|
|
26
|
+
sig { returns(T.nilable(Float)) }
|
|
27
|
+
attr_accessor :app_apy
|
|
28
|
+
|
|
29
|
+
# Asset metadata for an earn vault position.
|
|
30
|
+
sig { returns(Privy::Wallets::EarnAsset) }
|
|
31
|
+
attr_reader :asset
|
|
32
|
+
|
|
33
|
+
sig { params(asset: Privy::Wallets::EarnAsset::OrHash).void }
|
|
34
|
+
attr_writer :asset
|
|
35
|
+
|
|
36
|
+
# Available liquidity in USD.
|
|
37
|
+
sig { returns(T.nilable(Float)) }
|
|
38
|
+
attr_accessor :available_liquidity_usd
|
|
39
|
+
|
|
40
|
+
# CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
41
|
+
sig { returns(String) }
|
|
42
|
+
attr_accessor :caip2
|
|
43
|
+
|
|
44
|
+
# Human-readable vault name from the yield provider.
|
|
45
|
+
sig { returns(String) }
|
|
46
|
+
attr_accessor :name
|
|
47
|
+
|
|
48
|
+
sig { returns(Privy::Wallets::VedaVaultDetails::Provider::OrSymbol) }
|
|
49
|
+
attr_accessor :provider
|
|
50
|
+
|
|
51
|
+
# Total value locked in USD.
|
|
52
|
+
sig { returns(T.nilable(Float)) }
|
|
53
|
+
attr_accessor :tvl_usd
|
|
54
|
+
|
|
55
|
+
# Annual percentage yield available to the user, after fees and excluding rewards,
|
|
56
|
+
# in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
57
|
+
sig { returns(T.nilable(Float)) }
|
|
58
|
+
attr_accessor :user_apy
|
|
59
|
+
|
|
60
|
+
# Onchain vault contract address.
|
|
61
|
+
sig { returns(String) }
|
|
62
|
+
attr_accessor :vault_address
|
|
63
|
+
|
|
64
|
+
# Vault details for a Veda (BoringVault) earn vault.
|
|
65
|
+
sig do
|
|
66
|
+
params(
|
|
67
|
+
id: String,
|
|
68
|
+
admin_wallet_address: String,
|
|
69
|
+
admin_wallet_id: String,
|
|
70
|
+
app_apy: T.nilable(Float),
|
|
71
|
+
asset: Privy::Wallets::EarnAsset::OrHash,
|
|
72
|
+
available_liquidity_usd: T.nilable(Float),
|
|
73
|
+
caip2: String,
|
|
74
|
+
name: String,
|
|
75
|
+
provider: Privy::Wallets::VedaVaultDetails::Provider::OrSymbol,
|
|
76
|
+
tvl_usd: T.nilable(Float),
|
|
77
|
+
user_apy: T.nilable(Float),
|
|
78
|
+
vault_address: String
|
|
79
|
+
).returns(T.attached_class)
|
|
80
|
+
end
|
|
81
|
+
def self.new(
|
|
82
|
+
# Vault identifier.
|
|
83
|
+
id:,
|
|
84
|
+
# EVM address of the vault admin wallet.
|
|
85
|
+
admin_wallet_address:,
|
|
86
|
+
# Privy wallet ID of the vault admin.
|
|
87
|
+
admin_wallet_id:,
|
|
88
|
+
# Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
89
|
+
# points.
|
|
90
|
+
app_apy:,
|
|
91
|
+
# Asset metadata for an earn vault position.
|
|
92
|
+
asset:,
|
|
93
|
+
# Available liquidity in USD.
|
|
94
|
+
available_liquidity_usd:,
|
|
95
|
+
# CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
96
|
+
caip2:,
|
|
97
|
+
# Human-readable vault name from the yield provider.
|
|
98
|
+
name:,
|
|
99
|
+
provider:,
|
|
100
|
+
# Total value locked in USD.
|
|
101
|
+
tvl_usd:,
|
|
102
|
+
# Annual percentage yield available to the user, after fees and excluding rewards,
|
|
103
|
+
# in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
104
|
+
user_apy:,
|
|
105
|
+
# Onchain vault contract address.
|
|
106
|
+
vault_address:
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
sig do
|
|
111
|
+
override.returns(
|
|
112
|
+
{
|
|
113
|
+
id: String,
|
|
114
|
+
admin_wallet_address: String,
|
|
115
|
+
admin_wallet_id: String,
|
|
116
|
+
app_apy: T.nilable(Float),
|
|
117
|
+
asset: Privy::Wallets::EarnAsset,
|
|
118
|
+
available_liquidity_usd: T.nilable(Float),
|
|
119
|
+
caip2: String,
|
|
120
|
+
name: String,
|
|
121
|
+
provider: Privy::Wallets::VedaVaultDetails::Provider::OrSymbol,
|
|
122
|
+
tvl_usd: T.nilable(Float),
|
|
123
|
+
user_apy: T.nilable(Float),
|
|
124
|
+
vault_address: String
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
def to_hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
module Provider
|
|
132
|
+
extend Privy::Internal::Type::Enum
|
|
133
|
+
|
|
134
|
+
TaggedSymbol =
|
|
135
|
+
T.type_alias do
|
|
136
|
+
T.all(Symbol, Privy::Wallets::VedaVaultDetails::Provider)
|
|
137
|
+
end
|
|
138
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
139
|
+
|
|
140
|
+
VEDA =
|
|
141
|
+
T.let(
|
|
142
|
+
:veda,
|
|
143
|
+
Privy::Wallets::VedaVaultDetails::Provider::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
sig do
|
|
147
|
+
override.returns(
|
|
148
|
+
T::Array[Privy::Wallets::VedaVaultDetails::Provider::TaggedSymbol]
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
def self.values
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
@@ -16,7 +16,8 @@ module Privy
|
|
|
16
16
|
Privy::Wallets::TransferActionResponse,
|
|
17
17
|
Privy::Wallets::EarnDepositActionResponse,
|
|
18
18
|
Privy::Wallets::EarnWithdrawActionResponse,
|
|
19
|
-
Privy::Wallets::EarnIncentiveClaimActionResponse
|
|
19
|
+
Privy::Wallets::EarnIncentiveClaimActionResponse,
|
|
20
|
+
Privy::Wallets::EarnFeeCollectActionResponse
|
|
20
21
|
)
|
|
21
22
|
end
|
|
22
23
|
|
|
@@ -61,7 +61,11 @@ module Privy
|
|
|
61
61
|
Privy::WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
62
62
|
Privy::WalletActionEarnIncentiveClaimSucceededWebhookPayload,
|
|
63
63
|
Privy::WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
64
|
-
Privy::WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
64
|
+
Privy::WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
65
|
+
Privy::WalletActionEarnFeeCollectCreatedWebhookPayload,
|
|
66
|
+
Privy::WalletActionEarnFeeCollectSucceededWebhookPayload,
|
|
67
|
+
Privy::WalletActionEarnFeeCollectRejectedWebhookPayload,
|
|
68
|
+
Privy::WalletActionEarnFeeCollectFailedWebhookPayload
|
|
65
69
|
)
|
|
66
70
|
end
|
|
67
71
|
|
data/rbi/privy/models.rbi
CHANGED
|
@@ -2135,6 +2135,18 @@ module Privy
|
|
|
2135
2135
|
WalletActionEarnDepositSucceededWebhookPayload =
|
|
2136
2136
|
Privy::Models::WalletActionEarnDepositSucceededWebhookPayload
|
|
2137
2137
|
|
|
2138
|
+
WalletActionEarnFeeCollectCreatedWebhookPayload =
|
|
2139
|
+
Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload
|
|
2140
|
+
|
|
2141
|
+
WalletActionEarnFeeCollectFailedWebhookPayload =
|
|
2142
|
+
Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload
|
|
2143
|
+
|
|
2144
|
+
WalletActionEarnFeeCollectRejectedWebhookPayload =
|
|
2145
|
+
Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload
|
|
2146
|
+
|
|
2147
|
+
WalletActionEarnFeeCollectSucceededWebhookPayload =
|
|
2148
|
+
Privy::Models::WalletActionEarnFeeCollectSucceededWebhookPayload
|
|
2149
|
+
|
|
2138
2150
|
WalletActionEarnIncentiveClaimCreatedWebhookPayload =
|
|
2139
2151
|
Privy::Models::WalletActionEarnIncentiveClaimCreatedWebhookPayload
|
|
2140
2152
|
|
|
@@ -39,6 +39,10 @@ module Privy
|
|
|
39
39
|
Privy::WalletActionEarnDepositFailedWebhookPayload,
|
|
40
40
|
Privy::WalletActionEarnDepositRejectedWebhookPayload,
|
|
41
41
|
Privy::WalletActionEarnDepositSucceededWebhookPayload,
|
|
42
|
+
Privy::WalletActionEarnFeeCollectCreatedWebhookPayload,
|
|
43
|
+
Privy::WalletActionEarnFeeCollectFailedWebhookPayload,
|
|
44
|
+
Privy::WalletActionEarnFeeCollectRejectedWebhookPayload,
|
|
45
|
+
Privy::WalletActionEarnFeeCollectSucceededWebhookPayload,
|
|
42
46
|
Privy::WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
43
47
|
Privy::WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
44
48
|
Privy::WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
module Privy
|
|
2
2
|
module Models
|
|
3
3
|
type custom_token_transfer_source =
|
|
4
|
-
{
|
|
4
|
+
{ asset_address: String, chain: String, amount: String }
|
|
5
5
|
|
|
6
6
|
class CustomTokenTransferSource < Privy::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor amount: String
|
|
8
|
-
|
|
9
7
|
attr_accessor asset_address: String
|
|
10
8
|
|
|
11
9
|
attr_accessor chain: String
|
|
12
10
|
|
|
11
|
+
attr_reader amount: String?
|
|
12
|
+
|
|
13
|
+
def amount=: (String) -> String
|
|
14
|
+
|
|
13
15
|
def initialize: (
|
|
14
|
-
amount: String,
|
|
15
16
|
asset_address: String,
|
|
16
|
-
chain: String
|
|
17
|
+
chain: String,
|
|
18
|
+
?amount: String
|
|
17
19
|
) -> void
|
|
18
20
|
|
|
19
|
-
def to_hash: -> {
|
|
21
|
+
def to_hash: -> { asset_address: String, chain: String, amount: String }
|
|
20
22
|
end
|
|
21
23
|
end
|
|
22
24
|
end
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
module Privy
|
|
2
2
|
module Models
|
|
3
|
-
type ethereum_yield_provider = :morpho | :aave
|
|
3
|
+
type ethereum_yield_provider = :morpho | :aave | :veda
|
|
4
4
|
|
|
5
5
|
module EthereumYieldProvider
|
|
6
6
|
extend Privy::Internal::Type::Enum
|
|
7
7
|
|
|
8
8
|
MORPHO: :morpho
|
|
9
9
|
AAVE: :aave
|
|
10
|
+
VEDA: :veda
|
|
10
11
|
|
|
11
12
|
def self?.values: -> ::Array[Privy::Models::ethereum_yield_provider]
|
|
12
13
|
end
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
module Privy
|
|
2
2
|
module Models
|
|
3
3
|
type named_token_transfer_source =
|
|
4
|
-
{
|
|
4
|
+
{ asset: String, chain: String, amount: String }
|
|
5
5
|
|
|
6
6
|
class NamedTokenTransferSource < Privy::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor amount: String
|
|
8
|
-
|
|
9
7
|
attr_accessor asset: String
|
|
10
8
|
|
|
11
9
|
attr_accessor chain: String
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
attr_reader amount: String?
|
|
12
|
+
|
|
13
|
+
def amount=: (String) -> String
|
|
14
|
+
|
|
15
|
+
def initialize: (asset: String, chain: String, ?amount: String) -> void
|
|
14
16
|
|
|
15
|
-
def to_hash: -> {
|
|
17
|
+
def to_hash: -> { asset: String, chain: String, amount: String }
|
|
16
18
|
end
|
|
17
19
|
end
|
|
18
20
|
end
|
|
@@ -34,6 +34,10 @@ module Privy
|
|
|
34
34
|
| Privy::WalletActionEarnDepositFailedWebhookPayload
|
|
35
35
|
| Privy::WalletActionEarnDepositRejectedWebhookPayload
|
|
36
36
|
| Privy::WalletActionEarnDepositSucceededWebhookPayload
|
|
37
|
+
| Privy::WalletActionEarnFeeCollectCreatedWebhookPayload
|
|
38
|
+
| Privy::WalletActionEarnFeeCollectFailedWebhookPayload
|
|
39
|
+
| Privy::WalletActionEarnFeeCollectRejectedWebhookPayload
|
|
40
|
+
| Privy::WalletActionEarnFeeCollectSucceededWebhookPayload
|
|
37
41
|
| Privy::WalletActionEarnIncentiveClaimCreatedWebhookPayload
|
|
38
42
|
| Privy::WalletActionEarnIncentiveClaimFailedWebhookPayload
|
|
39
43
|
| Privy::WalletActionEarnIncentiveClaimRejectedWebhookPayload
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type wallet_action_earn_fee_collect_created_webhook_payload =
|
|
4
|
+
{
|
|
5
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
6
|
+
asset_address: String,
|
|
7
|
+
:caip2 => String,
|
|
8
|
+
created_at: String,
|
|
9
|
+
raw_amount: String,
|
|
10
|
+
status: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::status,
|
|
11
|
+
type: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::type_,
|
|
12
|
+
vault_address: String,
|
|
13
|
+
vault_id: String,
|
|
14
|
+
wallet_action_id: String,
|
|
15
|
+
wallet_id: String,
|
|
16
|
+
amount: String,
|
|
17
|
+
asset: String,
|
|
18
|
+
decimals: Integer
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class WalletActionEarnFeeCollectCreatedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor action_type: Privy::Models::Wallets::wallet_action_type
|
|
23
|
+
|
|
24
|
+
attr_accessor asset_address: String
|
|
25
|
+
|
|
26
|
+
attr_accessor caip2: String
|
|
27
|
+
|
|
28
|
+
attr_accessor created_at: String
|
|
29
|
+
|
|
30
|
+
attr_accessor raw_amount: String
|
|
31
|
+
|
|
32
|
+
attr_accessor status: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::status
|
|
33
|
+
|
|
34
|
+
attr_accessor type: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::type_
|
|
35
|
+
|
|
36
|
+
attr_accessor vault_address: String
|
|
37
|
+
|
|
38
|
+
attr_accessor vault_id: String
|
|
39
|
+
|
|
40
|
+
attr_accessor wallet_action_id: String
|
|
41
|
+
|
|
42
|
+
attr_accessor wallet_id: String
|
|
43
|
+
|
|
44
|
+
attr_reader amount: String?
|
|
45
|
+
|
|
46
|
+
def amount=: (String) -> String
|
|
47
|
+
|
|
48
|
+
attr_reader asset: String?
|
|
49
|
+
|
|
50
|
+
def asset=: (String) -> String
|
|
51
|
+
|
|
52
|
+
attr_reader decimals: Integer?
|
|
53
|
+
|
|
54
|
+
def decimals=: (Integer) -> Integer
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
58
|
+
asset_address: String,
|
|
59
|
+
caip2: String,
|
|
60
|
+
created_at: String,
|
|
61
|
+
raw_amount: String,
|
|
62
|
+
status: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::status,
|
|
63
|
+
type: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::type_,
|
|
64
|
+
vault_address: String,
|
|
65
|
+
vault_id: String,
|
|
66
|
+
wallet_action_id: String,
|
|
67
|
+
wallet_id: String,
|
|
68
|
+
?amount: String,
|
|
69
|
+
?asset: String,
|
|
70
|
+
?decimals: Integer
|
|
71
|
+
) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> {
|
|
74
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
75
|
+
asset_address: String,
|
|
76
|
+
:caip2 => String,
|
|
77
|
+
created_at: String,
|
|
78
|
+
raw_amount: String,
|
|
79
|
+
status: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::status,
|
|
80
|
+
type: Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::type_,
|
|
81
|
+
vault_address: String,
|
|
82
|
+
vault_id: String,
|
|
83
|
+
wallet_action_id: String,
|
|
84
|
+
wallet_id: String,
|
|
85
|
+
amount: String,
|
|
86
|
+
asset: String,
|
|
87
|
+
decimals: Integer
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type status = :pending
|
|
91
|
+
|
|
92
|
+
module Status
|
|
93
|
+
extend Privy::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
PENDING: :pending
|
|
96
|
+
|
|
97
|
+
def self?.values: -> ::Array[Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::status]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
type type_ = :"wallet_action.earn_fee_collect.created"
|
|
101
|
+
|
|
102
|
+
module Type
|
|
103
|
+
extend Privy::Internal::Type::Enum
|
|
104
|
+
|
|
105
|
+
WALLET_ACTION_EARN_FEE_COLLECT_CREATED: :"wallet_action.earn_fee_collect.created"
|
|
106
|
+
|
|
107
|
+
def self?.values: -> ::Array[Privy::Models::WalletActionEarnFeeCollectCreatedWebhookPayload::type_]
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type wallet_action_earn_fee_collect_failed_webhook_payload =
|
|
4
|
+
{
|
|
5
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
6
|
+
asset_address: String,
|
|
7
|
+
:caip2 => String,
|
|
8
|
+
created_at: String,
|
|
9
|
+
failed_at: String,
|
|
10
|
+
failure_reason: Privy::Wallets::FailureReason,
|
|
11
|
+
raw_amount: String,
|
|
12
|
+
status: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::status,
|
|
13
|
+
steps: ::Array[Privy::Models::Wallets::wallet_action_step],
|
|
14
|
+
type: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::type_,
|
|
15
|
+
vault_address: String,
|
|
16
|
+
vault_id: String,
|
|
17
|
+
wallet_action_id: String,
|
|
18
|
+
wallet_id: String,
|
|
19
|
+
amount: String,
|
|
20
|
+
asset: String,
|
|
21
|
+
decimals: Integer
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class WalletActionEarnFeeCollectFailedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor action_type: Privy::Models::Wallets::wallet_action_type
|
|
26
|
+
|
|
27
|
+
attr_accessor asset_address: String
|
|
28
|
+
|
|
29
|
+
attr_accessor caip2: String
|
|
30
|
+
|
|
31
|
+
attr_accessor created_at: String
|
|
32
|
+
|
|
33
|
+
attr_accessor failed_at: String
|
|
34
|
+
|
|
35
|
+
attr_accessor failure_reason: Privy::Wallets::FailureReason
|
|
36
|
+
|
|
37
|
+
attr_accessor raw_amount: String
|
|
38
|
+
|
|
39
|
+
attr_accessor status: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::status
|
|
40
|
+
|
|
41
|
+
attr_accessor steps: ::Array[Privy::Models::Wallets::wallet_action_step]
|
|
42
|
+
|
|
43
|
+
attr_accessor type: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::type_
|
|
44
|
+
|
|
45
|
+
attr_accessor vault_address: String
|
|
46
|
+
|
|
47
|
+
attr_accessor vault_id: String
|
|
48
|
+
|
|
49
|
+
attr_accessor wallet_action_id: String
|
|
50
|
+
|
|
51
|
+
attr_accessor wallet_id: String
|
|
52
|
+
|
|
53
|
+
attr_reader amount: String?
|
|
54
|
+
|
|
55
|
+
def amount=: (String) -> String
|
|
56
|
+
|
|
57
|
+
attr_reader asset: String?
|
|
58
|
+
|
|
59
|
+
def asset=: (String) -> String
|
|
60
|
+
|
|
61
|
+
attr_reader decimals: Integer?
|
|
62
|
+
|
|
63
|
+
def decimals=: (Integer) -> Integer
|
|
64
|
+
|
|
65
|
+
def initialize: (
|
|
66
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
67
|
+
asset_address: String,
|
|
68
|
+
caip2: String,
|
|
69
|
+
created_at: String,
|
|
70
|
+
failed_at: String,
|
|
71
|
+
failure_reason: Privy::Wallets::FailureReason,
|
|
72
|
+
raw_amount: String,
|
|
73
|
+
status: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::status,
|
|
74
|
+
steps: ::Array[Privy::Models::Wallets::wallet_action_step],
|
|
75
|
+
type: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::type_,
|
|
76
|
+
vault_address: String,
|
|
77
|
+
vault_id: String,
|
|
78
|
+
wallet_action_id: String,
|
|
79
|
+
wallet_id: String,
|
|
80
|
+
?amount: String,
|
|
81
|
+
?asset: String,
|
|
82
|
+
?decimals: Integer
|
|
83
|
+
) -> void
|
|
84
|
+
|
|
85
|
+
def to_hash: -> {
|
|
86
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
87
|
+
asset_address: String,
|
|
88
|
+
:caip2 => String,
|
|
89
|
+
created_at: String,
|
|
90
|
+
failed_at: String,
|
|
91
|
+
failure_reason: Privy::Wallets::FailureReason,
|
|
92
|
+
raw_amount: String,
|
|
93
|
+
status: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::status,
|
|
94
|
+
steps: ::Array[Privy::Models::Wallets::wallet_action_step],
|
|
95
|
+
type: Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::type_,
|
|
96
|
+
vault_address: String,
|
|
97
|
+
vault_id: String,
|
|
98
|
+
wallet_action_id: String,
|
|
99
|
+
wallet_id: String,
|
|
100
|
+
amount: String,
|
|
101
|
+
asset: String,
|
|
102
|
+
decimals: Integer
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type status = :failed
|
|
106
|
+
|
|
107
|
+
module Status
|
|
108
|
+
extend Privy::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
FAILED: :failed
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::status]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
type type_ = :"wallet_action.earn_fee_collect.failed"
|
|
116
|
+
|
|
117
|
+
module Type
|
|
118
|
+
extend Privy::Internal::Type::Enum
|
|
119
|
+
|
|
120
|
+
WALLET_ACTION_EARN_FEE_COLLECT_FAILED: :"wallet_action.earn_fee_collect.failed"
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[Privy::Models::WalletActionEarnFeeCollectFailedWebhookPayload::type_]
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module Privy
|
|
2
|
+
module Models
|
|
3
|
+
type wallet_action_earn_fee_collect_rejected_webhook_payload =
|
|
4
|
+
{
|
|
5
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
6
|
+
asset_address: String,
|
|
7
|
+
:caip2 => String,
|
|
8
|
+
created_at: String,
|
|
9
|
+
failure_reason: Privy::Wallets::FailureReason,
|
|
10
|
+
raw_amount: String,
|
|
11
|
+
rejected_at: String,
|
|
12
|
+
status: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::status,
|
|
13
|
+
steps: ::Array[Privy::Models::Wallets::wallet_action_step],
|
|
14
|
+
type: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::type_,
|
|
15
|
+
vault_address: String,
|
|
16
|
+
vault_id: String,
|
|
17
|
+
wallet_action_id: String,
|
|
18
|
+
wallet_id: String,
|
|
19
|
+
amount: String,
|
|
20
|
+
asset: String,
|
|
21
|
+
decimals: Integer
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class WalletActionEarnFeeCollectRejectedWebhookPayload < Privy::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor action_type: Privy::Models::Wallets::wallet_action_type
|
|
26
|
+
|
|
27
|
+
attr_accessor asset_address: String
|
|
28
|
+
|
|
29
|
+
attr_accessor caip2: String
|
|
30
|
+
|
|
31
|
+
attr_accessor created_at: String
|
|
32
|
+
|
|
33
|
+
attr_accessor failure_reason: Privy::Wallets::FailureReason
|
|
34
|
+
|
|
35
|
+
attr_accessor raw_amount: String
|
|
36
|
+
|
|
37
|
+
attr_accessor rejected_at: String
|
|
38
|
+
|
|
39
|
+
attr_accessor status: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::status
|
|
40
|
+
|
|
41
|
+
attr_accessor steps: ::Array[Privy::Models::Wallets::wallet_action_step]
|
|
42
|
+
|
|
43
|
+
attr_accessor type: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::type_
|
|
44
|
+
|
|
45
|
+
attr_accessor vault_address: String
|
|
46
|
+
|
|
47
|
+
attr_accessor vault_id: String
|
|
48
|
+
|
|
49
|
+
attr_accessor wallet_action_id: String
|
|
50
|
+
|
|
51
|
+
attr_accessor wallet_id: String
|
|
52
|
+
|
|
53
|
+
attr_reader amount: String?
|
|
54
|
+
|
|
55
|
+
def amount=: (String) -> String
|
|
56
|
+
|
|
57
|
+
attr_reader asset: String?
|
|
58
|
+
|
|
59
|
+
def asset=: (String) -> String
|
|
60
|
+
|
|
61
|
+
attr_reader decimals: Integer?
|
|
62
|
+
|
|
63
|
+
def decimals=: (Integer) -> Integer
|
|
64
|
+
|
|
65
|
+
def initialize: (
|
|
66
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
67
|
+
asset_address: String,
|
|
68
|
+
caip2: String,
|
|
69
|
+
created_at: String,
|
|
70
|
+
failure_reason: Privy::Wallets::FailureReason,
|
|
71
|
+
raw_amount: String,
|
|
72
|
+
rejected_at: String,
|
|
73
|
+
status: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::status,
|
|
74
|
+
steps: ::Array[Privy::Models::Wallets::wallet_action_step],
|
|
75
|
+
type: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::type_,
|
|
76
|
+
vault_address: String,
|
|
77
|
+
vault_id: String,
|
|
78
|
+
wallet_action_id: String,
|
|
79
|
+
wallet_id: String,
|
|
80
|
+
?amount: String,
|
|
81
|
+
?asset: String,
|
|
82
|
+
?decimals: Integer
|
|
83
|
+
) -> void
|
|
84
|
+
|
|
85
|
+
def to_hash: -> {
|
|
86
|
+
action_type: Privy::Models::Wallets::wallet_action_type,
|
|
87
|
+
asset_address: String,
|
|
88
|
+
:caip2 => String,
|
|
89
|
+
created_at: String,
|
|
90
|
+
failure_reason: Privy::Wallets::FailureReason,
|
|
91
|
+
raw_amount: String,
|
|
92
|
+
rejected_at: String,
|
|
93
|
+
status: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::status,
|
|
94
|
+
steps: ::Array[Privy::Models::Wallets::wallet_action_step],
|
|
95
|
+
type: Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::type_,
|
|
96
|
+
vault_address: String,
|
|
97
|
+
vault_id: String,
|
|
98
|
+
wallet_action_id: String,
|
|
99
|
+
wallet_id: String,
|
|
100
|
+
amount: String,
|
|
101
|
+
asset: String,
|
|
102
|
+
decimals: Integer
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
type status = :rejected
|
|
106
|
+
|
|
107
|
+
module Status
|
|
108
|
+
extend Privy::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
REJECTED: :rejected
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::status]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
type type_ = :"wallet_action.earn_fee_collect.rejected"
|
|
116
|
+
|
|
117
|
+
module Type
|
|
118
|
+
extend Privy::Internal::Type::Enum
|
|
119
|
+
|
|
120
|
+
WALLET_ACTION_EARN_FEE_COLLECT_REJECTED: :"wallet_action.earn_fee_collect.rejected"
|
|
121
|
+
|
|
122
|
+
def self?.values: -> ::Array[Privy::Models::WalletActionEarnFeeCollectRejectedWebhookPayload::type_]
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|