Skip to content

Commit 863ee5f

Browse files
committed
feat(services/ocp): add swap support to facilitate buy and sell of currency creator tokens
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 7bd3483 commit 863ee5f

File tree

182 files changed

+4777
-368
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+4777
-368
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ buildscript {
2222
classpath(Classpath.protobuf_plugin)
2323
classpath(Classpath.versioning_gradle_plugin)
2424
classpath(Classpath.androidx_room_gradle_plugin)
25-
classpath("com.ahasbini.tools:android-opencv-gradle-plugin:0.1.3-dev")
25+
classpath(Classpath.opencv_gradle_plugin)
2626
}
2727
}
2828

buildSrc/src/main/java/Dependencies.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ object Classpath {
119119
"com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1"
120120
const val versioning_gradle_plugin = "de.nanogiants:android-versioning:2.4.0"
121121
const val androidx_room_gradle_plugin = "androidx.room:room-gradle-plugin:${Versions.androidx_room}"
122+
const val opencv_gradle_plugin = "com.ahasbini.tools:android-opencv-gradle-plugin:0.1.3-dev"
122123
}
123124

124125
object Plugins {

definitions/opencode/protos/src/main/proto/common/v1/model.proto

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ enum AccountType {
3131
message SolanaAccountId {
3232
bytes value = 1 ;
3333
}
34-
// InstructionAccount is an account public key used within the context of
35-
// an instruction.
36-
message InstructionAccount {
37-
SolanaAccountId account = 1;
38-
bool is_signer = 2;
39-
bool is_writable = 3;
34+
// A Solana address lookup table used in versioned transactions
35+
message SolanaAddressLookupTable {
36+
common.v1.SolanaAccountId address = 1;
37+
repeated common.v1.SolanaAccountId entries = 2 ;
4038
}
4139
// Transaction is a raw binary Solana transaction
4240
message Transaction {
@@ -56,6 +54,10 @@ message Signature {
5654
message IntentId {
5755
bytes value = 1 ;
5856
}
57+
// SwapId is a client-side generated ID that maps to a swap.
58+
message SwapId {
59+
bytes value = 1 ;
60+
}
5961
// Hash is a raw binary 32 byte hash value
6062
message Hash {
6163
bytes value = 1 ;

definitions/opencode/protos/src/main/proto/messaging/v1/messaging_service.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ service Messaging {
2020
// 2. The payment sender calls OpenMessageStream on the rendezvous public key.
2121
// 3. The payment sender uses SendMessage to send the mint in a RequestToGiveBill message.
2222
// 4. The payment sender shows the bill with the scan code containing the rendezvous public key.
23-
// 5. The payment recipient scans the code.
24-
// 6. The payment recipient uses PollMessages to get the RequestToGiveBill message from part 3.
25-
// 7. The payment recipient sends the destination address in a RequestToGrabBill message.
26-
// 8. The payment sender receives the RequestToGrabBill message in real time, submits the intent
23+
// 4. The payment recipient scans the code.
24+
// 5. The payment recipient uses PollMessages to get the RequestToGiveBill message from part 3.
25+
// 6. The payment recipient sends the destination address in a RequestToGrabBill message.
26+
// 7. The payment sender receives the RequestToGrabBill message in real time, submits the intent
2727
// for the payment to the provided destination, and then closes the stream.
2828
rpc OpenMessageStream(OpenMessageStreamRequest) returns (stream OpenMessageStreamResponse);
2929
// OpenMessageStreamWithKeepAlive is like OpenMessageStream, but enables a ping/pong

definitions/opencode/protos/src/main/proto/transaction/v2/transaction_service.proto

Lines changed: 346 additions & 3 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Binary file not shown.
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
int anim fragment_fast_out_extra_slow_in 0x0
2+
int animator fragment_close_enter 0x0
3+
int animator fragment_close_exit 0x0
4+
int animator fragment_fade_enter 0x0
5+
int animator fragment_fade_exit 0x0
6+
int animator fragment_open_enter 0x0
7+
int animator fragment_open_exit 0x0
8+
int attr alpha 0x0
9+
int attr font 0x0
10+
int attr fontProviderAuthority 0x0
11+
int attr fontProviderCerts 0x0
12+
int attr fontProviderFetchStrategy 0x0
13+
int attr fontProviderFetchTimeout 0x0
14+
int attr fontProviderPackage 0x0
15+
int attr fontProviderQuery 0x0
16+
int attr fontProviderSystemFontFamily 0x0
17+
int attr fontStyle 0x0
18+
int attr fontVariationSettings 0x0
19+
int attr fontWeight 0x0
20+
int attr lStar 0x0
21+
int attr nestedScrollViewStyle 0x0
22+
int attr queryPatterns 0x0
23+
int attr shortcutMatchRequired 0x0
24+
int attr ttcIndex 0x0
25+
int color androidx_core_ripple_material_light 0x0
26+
int color androidx_core_secondary_text_default_material_light 0x0
27+
int color notification_action_color_filter 0x0
28+
int color notification_icon_bg_color 0x0
29+
int color ripple_material_light 0x0
30+
int color secondary_text_default_material_light 0x0
31+
int dimen compat_button_inset_horizontal_material 0x0
32+
int dimen compat_button_inset_vertical_material 0x0
33+
int dimen compat_button_padding_horizontal_material 0x0
34+
int dimen compat_button_padding_vertical_material 0x0
35+
int dimen compat_control_corner_material 0x0
36+
int dimen compat_notification_large_icon_max_height 0x0
37+
int dimen compat_notification_large_icon_max_width 0x0
38+
int dimen notification_action_icon_size 0x0
39+
int dimen notification_action_text_size 0x0
40+
int dimen notification_big_circle_margin 0x0
41+
int dimen notification_content_margin_start 0x0
42+
int dimen notification_large_icon_height 0x0
43+
int dimen notification_large_icon_width 0x0
44+
int dimen notification_main_column_padding_top 0x0
45+
int dimen notification_media_narrow_margin 0x0
46+
int dimen notification_right_icon_size 0x0
47+
int dimen notification_right_side_padding_top 0x0
48+
int dimen notification_small_icon_background_padding 0x0
49+
int dimen notification_small_icon_size_as_large 0x0
50+
int dimen notification_subtext_size 0x0
51+
int dimen notification_top_pad 0x0
52+
int dimen notification_top_pad_large_text 0x0
53+
int drawable notification_action_background 0x0
54+
int drawable notification_bg 0x0
55+
int drawable notification_bg_low 0x0
56+
int drawable notification_bg_low_normal 0x0
57+
int drawable notification_bg_low_pressed 0x0
58+
int drawable notification_bg_normal 0x0
59+
int drawable notification_bg_normal_pressed 0x0
60+
int drawable notification_icon_background 0x0
61+
int drawable notification_template_icon_bg 0x0
62+
int drawable notification_template_icon_low_bg 0x0
63+
int drawable notification_tile_bg 0x0
64+
int drawable notify_panel_notification_icon_bg 0x0
65+
int id accessibility_action_clickable_span 0x0
66+
int id accessibility_custom_action_0 0x0
67+
int id accessibility_custom_action_1 0x0
68+
int id accessibility_custom_action_10 0x0
69+
int id accessibility_custom_action_11 0x0
70+
int id accessibility_custom_action_12 0x0
71+
int id accessibility_custom_action_13 0x0
72+
int id accessibility_custom_action_14 0x0
73+
int id accessibility_custom_action_15 0x0
74+
int id accessibility_custom_action_16 0x0
75+
int id accessibility_custom_action_17 0x0
76+
int id accessibility_custom_action_18 0x0
77+
int id accessibility_custom_action_19 0x0
78+
int id accessibility_custom_action_2 0x0
79+
int id accessibility_custom_action_20 0x0
80+
int id accessibility_custom_action_21 0x0
81+
int id accessibility_custom_action_22 0x0
82+
int id accessibility_custom_action_23 0x0
83+
int id accessibility_custom_action_24 0x0
84+
int id accessibility_custom_action_25 0x0
85+
int id accessibility_custom_action_26 0x0
86+
int id accessibility_custom_action_27 0x0
87+
int id accessibility_custom_action_28 0x0
88+
int id accessibility_custom_action_29 0x0
89+
int id accessibility_custom_action_3 0x0
90+
int id accessibility_custom_action_30 0x0
91+
int id accessibility_custom_action_31 0x0
92+
int id accessibility_custom_action_4 0x0
93+
int id accessibility_custom_action_5 0x0
94+
int id accessibility_custom_action_6 0x0
95+
int id accessibility_custom_action_7 0x0
96+
int id accessibility_custom_action_8 0x0
97+
int id accessibility_custom_action_9 0x0
98+
int id action_container 0x0
99+
int id action_divider 0x0
100+
int id action_image 0x0
101+
int id action_text 0x0
102+
int id actions 0x0
103+
int id async 0x0
104+
int id blocking 0x0
105+
int id chronometer 0x0
106+
int id dialog_button 0x0
107+
int id forever 0x0
108+
int id fragment_container_view_tag 0x0
109+
int id icon 0x0
110+
int id icon_group 0x0
111+
int id info 0x0
112+
int id italic 0x0
113+
int id line1 0x0
114+
int id line3 0x0
115+
int id normal 0x0
116+
int id notification_background 0x0
117+
int id notification_main_column 0x0
118+
int id notification_main_column_container 0x0
119+
int id right_icon 0x0
120+
int id right_side 0x0
121+
int id special_effects_controller_view_tag 0x0
122+
int id tag_accessibility_actions 0x0
123+
int id tag_accessibility_clickable_spans 0x0
124+
int id tag_accessibility_heading 0x0
125+
int id tag_accessibility_pane_title 0x0
126+
int id tag_on_apply_window_listener 0x0
127+
int id tag_on_receive_content_listener 0x0
128+
int id tag_on_receive_content_mime_types 0x0
129+
int id tag_screen_reader_focusable 0x0
130+
int id tag_state_description 0x0
131+
int id tag_transition_group 0x0
132+
int id tag_unhandled_key_event_manager 0x0
133+
int id tag_unhandled_key_listeners 0x0
134+
int id tag_window_insets_animation_callback 0x0
135+
int id text 0x0
136+
int id text2 0x0
137+
int id time 0x0
138+
int id title 0x0
139+
int id view_tree_lifecycle_owner 0x0
140+
int id view_tree_on_back_pressed_dispatcher_owner 0x0
141+
int id view_tree_saved_state_registry_owner 0x0
142+
int id view_tree_view_model_store_owner 0x0
143+
int id visible_removing_fragment_view_tag 0x0
144+
int integer status_bar_notification_info_maxnum 0x0
145+
int layout custom_dialog 0x0
146+
int layout notification_action 0x0
147+
int layout notification_action_tombstone 0x0
148+
int layout notification_template_custom_big 0x0
149+
int layout notification_template_icon_group 0x0
150+
int layout notification_template_part_chronometer 0x0
151+
int layout notification_template_part_time 0x0
152+
int string status_bar_notification_info_overflow 0x0
153+
int style TextAppearance_Compat_Notification 0x0
154+
int style TextAppearance_Compat_Notification_Info 0x0
155+
int style TextAppearance_Compat_Notification_Line2 0x0
156+
int style TextAppearance_Compat_Notification_Time 0x0
157+
int style TextAppearance_Compat_Notification_Title 0x0
158+
int style Widget_Compat_NotificationActionContainer 0x0
159+
int style Widget_Compat_NotificationActionText 0x0
160+
int[] styleable Capability { 0x0, 0x0 }
161+
int styleable Capability_queryPatterns 0
162+
int styleable Capability_shortcutMatchRequired 1
163+
int[] styleable ColorStateListItem { 0x0, 0x101031f, 0x10101a5, 0x1010647, 0x0 }
164+
int styleable ColorStateListItem_alpha 0
165+
int styleable ColorStateListItem_android_alpha 1
166+
int styleable ColorStateListItem_android_color 2
167+
int styleable ColorStateListItem_android_lStar 3
168+
int styleable ColorStateListItem_lStar 4
169+
int[] styleable FontFamily { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
170+
int styleable FontFamily_fontProviderAuthority 0
171+
int styleable FontFamily_fontProviderCerts 1
172+
int styleable FontFamily_fontProviderFetchStrategy 2
173+
int styleable FontFamily_fontProviderFetchTimeout 3
174+
int styleable FontFamily_fontProviderPackage 4
175+
int styleable FontFamily_fontProviderQuery 5
176+
int styleable FontFamily_fontProviderSystemFontFamily 6
177+
int[] styleable FontFamilyFont { 0x1010532, 0x101053f, 0x1010570, 0x1010533, 0x101056f, 0x0, 0x0, 0x0, 0x0, 0x0 }
178+
int styleable FontFamilyFont_android_font 0
179+
int styleable FontFamilyFont_android_fontStyle 1
180+
int styleable FontFamilyFont_android_fontVariationSettings 2
181+
int styleable FontFamilyFont_android_fontWeight 3
182+
int styleable FontFamilyFont_android_ttcIndex 4
183+
int styleable FontFamilyFont_font 5
184+
int styleable FontFamilyFont_fontStyle 6
185+
int styleable FontFamilyFont_fontVariationSettings 7
186+
int styleable FontFamilyFont_fontWeight 8
187+
int styleable FontFamilyFont_ttcIndex 9
188+
int[] styleable Fragment { 0x10100d0, 0x1010003, 0x10100d1 }
189+
int styleable Fragment_android_id 0
190+
int styleable Fragment_android_name 1
191+
int styleable Fragment_android_tag 2
192+
int[] styleable FragmentContainerView { 0x1010003, 0x10100d1 }
193+
int styleable FragmentContainerView_android_name 0
194+
int styleable FragmentContainerView_android_tag 1
195+
int[] styleable GradientColor { 0x101020b, 0x10101a2, 0x10101a3, 0x101019e, 0x1010512, 0x1010513, 0x10101a4, 0x101019d, 0x1010510, 0x1010511, 0x1010201, 0x10101a1 }
196+
int styleable GradientColor_android_centerColor 0
197+
int styleable GradientColor_android_centerX 1
198+
int styleable GradientColor_android_centerY 2
199+
int styleable GradientColor_android_endColor 3
200+
int styleable GradientColor_android_endX 4
201+
int styleable GradientColor_android_endY 5
202+
int styleable GradientColor_android_gradientRadius 6
203+
int styleable GradientColor_android_startColor 7
204+
int styleable GradientColor_android_startX 8
205+
int styleable GradientColor_android_startY 9
206+
int styleable GradientColor_android_tileMode 10
207+
int styleable GradientColor_android_type 11
208+
int[] styleable GradientColorItem { 0x10101a5, 0x1010514 }
209+
int styleable GradientColorItem_android_color 0
210+
int styleable GradientColorItem_android_offset 1
Binary file not shown.

0 commit comments

Comments
 (0)