-
Notifications
You must be signed in to change notification settings - Fork 5
馃 server: add travel rule to offramp transfers #1131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@exactly/server": patch | ||
| --- | ||
|
|
||
| 馃 add travel rule to offramp transfers |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -956,6 +956,13 @@ export async function getOfframpDepositDetails( | |
| external_account_id: externalAccountId, | ||
| }, | ||
| features: { flexible_amount: true, static_template: true, allow_any_from_address: true }, | ||
| travel_rule_data: { | ||
| originator: { | ||
| is_self: true, | ||
| wallet_type: "self_custodied", // cspell:ignore custodied | ||
| wallet_attested_ownership_at: new Date().toISOString(), | ||
|
Comment on lines
+962
to
+963
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When users fund these instructions from an exchange or any other address, this template still sends Useful? React with 馃憤聽/ 馃憥. |
||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| return [ | ||
|
|
@@ -1933,6 +1940,15 @@ const CreateTransfer = object({ | |
| blockchain_memo: optional(string()), | ||
| swift_charges: optional(picklist(["ben", "our", "sha"])), | ||
| }), | ||
| travel_rule_data: optional( | ||
| object({ | ||
| originator: object({ | ||
| is_self: boolean(), | ||
| wallet_type: picklist(["external", "hosted", "self_custodied"]), // cspell:ignore custodied | ||
| wallet_attested_ownership_at: string(), | ||
| }), | ||
| }), | ||
| ), | ||
| }); | ||
|
|
||
| const Transfer = object({ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.