Skip to content

Commit 7dd150b

Browse files
authored
feat: Implement Market Categories as Symbols (#361)
* feat: Implement Market Categories as Symbols * fix: resolve CI failures - fix toolchain config, add symbol_short import, remove duplicate field, fix category validation
1 parent 85b9e58 commit 7dd150b

File tree

9 files changed

+120
-505
lines changed

9 files changed

+120
-505
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v3
2828
- name: Install Rust
29-
uses: dtolnay/rust-toolchain@stable
29+
uses: dtolnay/rust-toolchain@master
3030
with:
3131
toolchain: stable
3232
targets: wasm32-unknown-unknown

MONITORING.md

Lines changed: 0 additions & 235 deletions
This file was deleted.

PR-d.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

contract/BENCHMARKS.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

contract/contracts/predifi-contract/src/integration_test.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use super::*;
44
use crate::test_utils::TokenTestContext;
55
use soroban_sdk::{
6+
symbol_short,
67
testutils::{Address as _, Ledger},
78
Address, Env, String,
89
};
@@ -94,7 +95,7 @@ fn test_full_market_lifecycle() {
9495
&1i128,
9596
&0i128,
9697
&0i128,
97-
&Symbol::new(&env, "tech"),
98+
&symbol_short!("Tech"),
9899
);
99100

100101
// 2. Place Predictions
@@ -169,7 +170,7 @@ fn test_multi_user_betting_and_balance_verification() {
169170
&1i128,
170171
&0i128,
171172
&0i128,
172-
&Symbol::new(&env, "tech"),
173+
&symbol_short!("Tech"),
173174
);
174175

175176
// Bets:
@@ -238,7 +239,7 @@ fn test_market_resolution_multiple_winners() {
238239
&1i128,
239240
&0i128,
240241
&0i128,
241-
&Symbol::new(&env, "tech"),
242+
&symbol_short!("Tech"),
242243
);
243244

244245
// Bets:

0 commit comments

Comments
 (0)