strade-stx 1.0.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.
- package/.activity_counter +1 -0
- package/.gitattributes +3 -0
- package/.vscode/settings.json +4 -0
- package/.vscode/tasks.json +19 -0
- package/CHANGELOG.md +1 -0
- package/Clarinet.toml +56 -0
- package/Clarinet.toml.backup +174 -0
- package/Clarinet.toml.old +146 -0
- package/DEPLOYMENT_RESULTS.md +160 -0
- package/README.md +344 -0
- package/TODO.md +34 -0
- package/contracts/CoreMarketPlace.clar +227 -0
- package/contracts/DisputeResolution_clar.clar +265 -0
- package/contracts/EscrowService.clar +171 -0
- package/contracts/UserProfile.clar +280 -0
- package/contracts/ft-trait.clar +24 -0
- package/contracts/token.clar +178 -0
- package/costs-reports.json +76026 -0
- package/deployments/default.mainnet-plan.yaml +67 -0
- package/deployments/default.simnet-plan.yaml +105 -0
- package/deployments/default.testnet-plan.yaml +67 -0
- package/deployments/new-contracts.testnet-plan.yaml +32 -0
- package/frontend/README.md +10 -0
- package/frontend/components.json +22 -0
- package/frontend/dist/assets/index-BacuuL66.css +1 -0
- package/frontend/dist/assets/index-jryypd5B.js +194 -0
- package/frontend/dist/favicon.png +0 -0
- package/frontend/dist/index.html +15 -0
- package/frontend/dist/manifest.json +15 -0
- package/frontend/dist/vite.svg +1 -0
- package/frontend/empty-mock.js +1 -0
- package/frontend/eslint.config.js +23 -0
- package/frontend/eslint.config.mjs +25 -0
- package/frontend/index.html +14 -0
- package/frontend/next.config.ts +17 -0
- package/frontend/package-lock.json +14740 -0
- package/frontend/package.json +56 -0
- package/frontend/postcss.config.js +5 -0
- package/frontend/postcss.config.mjs +5 -0
- package/frontend/public/favicon.png +0 -0
- package/frontend/public/file.svg +1 -0
- package/frontend/public/globe.svg +1 -0
- package/frontend/public/manifest.json +15 -0
- package/frontend/public/next.svg +1 -0
- package/frontend/public/vercel.svg +1 -0
- package/frontend/public/vite.svg +1 -0
- package/frontend/public/window.svg +1 -0
- package/frontend/src/App.css +42 -0
- package/frontend/src/App.tsx +177 -0
- package/frontend/src/app/about/page.tsx +208 -0
- package/frontend/src/app/favicon.ico +0 -0
- package/frontend/src/app/globals.css +129 -0
- package/frontend/src/app/help/page.tsx +167 -0
- package/frontend/src/app/how-it-works/page.tsx +274 -0
- package/frontend/src/app/layout.tsx +55 -0
- package/frontend/src/app/marketplace/page.tsx +324 -0
- package/frontend/src/app/my-listings/page.tsx +318 -0
- package/frontend/src/app/page.tsx +15 -0
- package/frontend/src/assets/react.svg +1 -0
- package/frontend/src/components/ConfirmDialog.tsx +54 -0
- package/frontend/src/components/CreateListingForm.tsx +231 -0
- package/frontend/src/components/ErrorBoundary.tsx +73 -0
- package/frontend/src/components/FilterPanel.tsx +10 -0
- package/frontend/src/components/Footer.tsx +100 -0
- package/frontend/src/components/Header.tsx +268 -0
- package/frontend/src/components/ImageUpload.tsx +147 -0
- package/frontend/src/components/LandingPage.tsx +322 -0
- package/frontend/src/components/ListingCard.tsx +154 -0
- package/frontend/src/components/LoadingSkeleton.tsx +44 -0
- package/frontend/src/components/MobileNav.tsx +89 -0
- package/frontend/src/components/NotificationBell.tsx +8 -0
- package/frontend/src/components/NotificationPanel.tsx +14 -0
- package/frontend/src/components/README.md +14 -0
- package/frontend/src/components/SearchBar.tsx +10 -0
- package/frontend/src/components/TestnetBanner.tsx +29 -0
- package/frontend/src/components/ThemeToggle.tsx +32 -0
- package/frontend/src/components/__tests__/Header.test.tsx +70 -0
- package/frontend/src/components/__tests__/ListingCard.test.tsx +86 -0
- package/frontend/src/components/providers/ThemeProvider.tsx +9 -0
- package/frontend/src/components/ui/alert-dialog.tsx +141 -0
- package/frontend/src/components/ui/avatar.tsx +53 -0
- package/frontend/src/components/ui/badge.tsx +46 -0
- package/frontend/src/components/ui/button.tsx +60 -0
- package/frontend/src/components/ui/card.tsx +92 -0
- package/frontend/src/components/ui/dialog.tsx +143 -0
- package/frontend/src/components/ui/dropdown-menu.tsx +257 -0
- package/frontend/src/components/ui/input.tsx +21 -0
- package/frontend/src/components/ui/label.tsx +24 -0
- package/frontend/src/components/ui/select.tsx +187 -0
- package/frontend/src/components/ui/sonner.tsx +40 -0
- package/frontend/src/components/ui/textarea.tsx +18 -0
- package/frontend/src/context/README.md +27 -0
- package/frontend/src/index.css +166 -0
- package/frontend/src/lib/notificationEvents.ts +10 -0
- package/frontend/src/lib/notificationStore.ts +13 -0
- package/frontend/src/lib/notifications.ts +13 -0
- package/frontend/src/lib/search.ts +28 -0
- package/frontend/src/lib/stacks.ts +189 -0
- package/frontend/src/lib/utils.ts +6 -0
- package/frontend/src/main.tsx +10 -0
- package/frontend/src/test/setup.ts +23 -0
- package/frontend/src/types.d.ts +9 -0
- package/frontend/tsconfig.app.json +28 -0
- package/frontend/tsconfig.json +41 -0
- package/frontend/tsconfig.node.json +26 -0
- package/frontend/vercel.json +4 -0
- package/frontend/vite.config.ts +6 -0
- package/frontend/vitest.config.ts +17 -0
- package/lcov.info +31338 -0
- package/mainnetcontracts.md +16 -0
- package/package.json +53 -0
- package/scripts/auto-activity.sh +9 -0
- package/scripts/cancel-pending.ts +67 -0
- package/scripts/check-balances.ts +23 -0
- package/scripts/distribute-evenly.ts +56 -0
- package/scripts/drain-accounts.ts +70 -0
- package/scripts/fund-accounts.ts +88 -0
- package/scripts/fund-active.ts +59 -0
- package/scripts/fund-unfunded.ts +88 -0
- package/scripts/generate-activity.ts +181 -0
- package/scripts/git-activity-generator.ts +154 -0
- package/scripts/mobile-server.ts +123 -0
- package/settings/Devnet.toml +155 -0
- package/settings/Mainnet.toml +7 -0
- package/settings/Testnet.toml +9 -0
- package/tests/CoreMarketPlace.fuzz.test.ts +435 -0
- package/tests/CoreMarketPlace.test.ts +564 -0
- package/tsconfig.json +26 -0
- package/vitest.config.js +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
100
|
package/.gitattributes
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"label": "check contracts",
|
|
7
|
+
"group": "test",
|
|
8
|
+
"type": "shell",
|
|
9
|
+
"command": "clarinet check"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "npm",
|
|
13
|
+
"script": "test",
|
|
14
|
+
"group": "test",
|
|
15
|
+
"problemMatcher": [],
|
|
16
|
+
"label": "npm test"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## [Unreleased]\n### Added\n- Advanced search and filter functionality
|
package/Clarinet.toml
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = 'Strade'
|
|
3
|
+
description = ''
|
|
4
|
+
authors = []
|
|
5
|
+
telemetry = true
|
|
6
|
+
cache_dir = './.cache'
|
|
7
|
+
requirements = []
|
|
8
|
+
|
|
9
|
+
[contracts.CoreMarketPlace]
|
|
10
|
+
path = 'contracts/CoreMarketPlace.clar'
|
|
11
|
+
clarity_version = 3
|
|
12
|
+
epoch = 3.0
|
|
13
|
+
|
|
14
|
+
[contracts.DisputeResolution_clar]
|
|
15
|
+
path = 'contracts/DisputeResolution_clar.clar'
|
|
16
|
+
clarity_version = 3
|
|
17
|
+
epoch = 3.0
|
|
18
|
+
|
|
19
|
+
[contracts.EscrowService]
|
|
20
|
+
path = 'contracts/EscrowService.clar'
|
|
21
|
+
clarity_version = 3
|
|
22
|
+
epoch = 3.0
|
|
23
|
+
|
|
24
|
+
[contracts.UserProfile]
|
|
25
|
+
path = 'contracts/UserProfile.clar'
|
|
26
|
+
clarity_version = 3
|
|
27
|
+
epoch = 3.0
|
|
28
|
+
|
|
29
|
+
[contracts.token]
|
|
30
|
+
path = 'contracts/token.clar'
|
|
31
|
+
clarity_version = 3
|
|
32
|
+
epoch = 3.0
|
|
33
|
+
|
|
34
|
+
[contracts.ft-trait]
|
|
35
|
+
path = 'contracts/ft-trait.clar'
|
|
36
|
+
clarity_version = 3
|
|
37
|
+
epoch = 3.0
|
|
38
|
+
|
|
39
|
+
[contracts.nft-trait]
|
|
40
|
+
path = 'contracts/nft-trait.clar'
|
|
41
|
+
clarity_version = 3
|
|
42
|
+
epoch = 3.0
|
|
43
|
+
|
|
44
|
+
[contracts.non-fungible-token]
|
|
45
|
+
path = 'contracts/non-fungible-token.clar'
|
|
46
|
+
clarity_version = 3
|
|
47
|
+
epoch = 3.0
|
|
48
|
+
|
|
49
|
+
[repl.analysis]
|
|
50
|
+
passes = ['check_checker']
|
|
51
|
+
|
|
52
|
+
[repl.analysis.check_checker]
|
|
53
|
+
strict = false
|
|
54
|
+
trusted_sender = false
|
|
55
|
+
trusted_caller = false
|
|
56
|
+
callee_filter = false
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = 'Strade'
|
|
3
|
+
description = ''
|
|
4
|
+
authors = []
|
|
5
|
+
telemetry = true
|
|
6
|
+
cache_dir = './.cache'
|
|
7
|
+
requirements = []
|
|
8
|
+
[contracts.CoreMarketPlace]
|
|
9
|
+
path = 'contracts/CoreMarketPlace.clar'
|
|
10
|
+
clarity_version = 3
|
|
11
|
+
epoch = 3.0
|
|
12
|
+
|
|
13
|
+
[contracts.DisputeResolution_clar]
|
|
14
|
+
path = 'contracts/DisputeResolution_clar.clar'
|
|
15
|
+
clarity_version = 3
|
|
16
|
+
epoch = 3.0
|
|
17
|
+
|
|
18
|
+
[contracts.EscrowService]
|
|
19
|
+
path = 'contracts/EscrowService.clar'
|
|
20
|
+
clarity_version = 3
|
|
21
|
+
epoch = 3.0
|
|
22
|
+
|
|
23
|
+
[contracts.UserProfile]
|
|
24
|
+
path = 'contracts/UserProfile.clar'
|
|
25
|
+
clarity_version = 3
|
|
26
|
+
epoch = 3.0
|
|
27
|
+
|
|
28
|
+
[contracts.token]
|
|
29
|
+
path = 'contracts/token.clar'
|
|
30
|
+
clarity_version = 3
|
|
31
|
+
epoch = 3.0
|
|
32
|
+
|
|
33
|
+
[contracts.ft-trait]
|
|
34
|
+
path = 'contracts/ft-trait.clar'
|
|
35
|
+
clarity_version = 3
|
|
36
|
+
epoch = 3.0
|
|
37
|
+
|
|
38
|
+
[contracts.nft-trait]
|
|
39
|
+
path = 'contracts/nft-trait.clar'
|
|
40
|
+
clarity_version = 3
|
|
41
|
+
epoch = 3.0
|
|
42
|
+
|
|
43
|
+
[contracts.non-fungible-token]
|
|
44
|
+
path = 'contracts/non-fungible-token.clar'
|
|
45
|
+
clarity_version = 3
|
|
46
|
+
epoch = 3.0
|
|
47
|
+
[repl.analysis]
|
|
48
|
+
passes = ['check_checker']
|
|
49
|
+
|
|
50
|
+
[repl.analysis.check_checker]
|
|
51
|
+
strict = false
|
|
52
|
+
trusted_sender = false
|
|
53
|
+
trusted_caller = false
|
|
54
|
+
callee_filter = false
|
|
55
|
+
|
|
56
|
+
[contracts.escrow]
|
|
57
|
+
path = 'contracts/escrow.clar'
|
|
58
|
+
clarity_version = 3
|
|
59
|
+
epoch = 3.0
|
|
60
|
+
|
|
61
|
+
[contracts.fungible-token]
|
|
62
|
+
path = 'contracts/fungible-token.clar'
|
|
63
|
+
clarity_version = 3
|
|
64
|
+
epoch = 3.0
|
|
65
|
+
|
|
66
|
+
[contracts.hodl-token]
|
|
67
|
+
path = 'contracts/hodl-token.clar'
|
|
68
|
+
clarity_version = 3
|
|
69
|
+
epoch = 3.0
|
|
70
|
+
|
|
71
|
+
[contracts.beeple]
|
|
72
|
+
path = 'contracts/beeple.clar'
|
|
73
|
+
clarity_version = 3
|
|
74
|
+
epoch = 3.0
|
|
75
|
+
|
|
76
|
+
[contracts.friedger-pool-nft]
|
|
77
|
+
path = 'contracts/friedger-pool-nft.clar'
|
|
78
|
+
clarity_version = 3
|
|
79
|
+
epoch = 3.0
|
|
80
|
+
|
|
81
|
+
[contracts.perishable-token]
|
|
82
|
+
path = 'contracts/perishable-token.clar'
|
|
83
|
+
clarity_version = 3
|
|
84
|
+
epoch = 3.0
|
|
85
|
+
|
|
86
|
+
[contracts.rocket-token]
|
|
87
|
+
path = 'contracts/rocket-token.clar'
|
|
88
|
+
clarity_version = 3
|
|
89
|
+
epoch = 3.0
|
|
90
|
+
|
|
91
|
+
[contracts.rocket-market]
|
|
92
|
+
path = 'contracts/rocket-market.clar'
|
|
93
|
+
clarity_version = 3
|
|
94
|
+
epoch = 3.0
|
|
95
|
+
|
|
96
|
+
[contracts.rocket-factory]
|
|
97
|
+
path = 'contracts/rocket-factory.clar'
|
|
98
|
+
clarity_version = 3
|
|
99
|
+
epoch = 3.0
|
|
100
|
+
|
|
101
|
+
[contracts.license]
|
|
102
|
+
path = 'contracts/license.clar'
|
|
103
|
+
clarity_version = 3
|
|
104
|
+
epoch = 3.0
|
|
105
|
+
|
|
106
|
+
[contracts.animal-kingdom]
|
|
107
|
+
path = 'contracts/animal-kingdom.clar'
|
|
108
|
+
clarity_version = 3
|
|
109
|
+
epoch = 3.0
|
|
110
|
+
|
|
111
|
+
[contracts.company-registry]
|
|
112
|
+
path = 'contracts/company-registry.clar'
|
|
113
|
+
clarity_version = 3
|
|
114
|
+
epoch = 3.0
|
|
115
|
+
|
|
116
|
+
[contracts.flip-coin]
|
|
117
|
+
path = 'contracts/flip-coin.clar'
|
|
118
|
+
clarity_version = 3
|
|
119
|
+
epoch = 3.0
|
|
120
|
+
|
|
121
|
+
[contracts.flip-coin-at-two]
|
|
122
|
+
path = 'contracts/flip-coin-at-two.clar'
|
|
123
|
+
clarity_version = 3
|
|
124
|
+
epoch = 3.0
|
|
125
|
+
|
|
126
|
+
[contracts.flip-coin-delegate]
|
|
127
|
+
path = 'contracts/flip-coin-delegate.clar'
|
|
128
|
+
clarity_version = 3
|
|
129
|
+
epoch = 3.0
|
|
130
|
+
|
|
131
|
+
[contracts.flip-coin-jackpot]
|
|
132
|
+
path = 'contracts/flip-coin-jackpot.clar'
|
|
133
|
+
clarity_version = 3
|
|
134
|
+
epoch = 3.0
|
|
135
|
+
|
|
136
|
+
[contracts.flip-coin-tax-office]
|
|
137
|
+
path = 'contracts/flip-coin-tax-office.clar'
|
|
138
|
+
clarity_version = 3
|
|
139
|
+
epoch = 3.0
|
|
140
|
+
|
|
141
|
+
[contracts.history]
|
|
142
|
+
path = 'contracts/history.clar'
|
|
143
|
+
clarity_version = 3
|
|
144
|
+
epoch = 3.0
|
|
145
|
+
|
|
146
|
+
[contracts.kv-store]
|
|
147
|
+
path = 'contracts/kv-store.clar'
|
|
148
|
+
clarity_version = 3
|
|
149
|
+
epoch = 3.0
|
|
150
|
+
|
|
151
|
+
[contracts.lists]
|
|
152
|
+
path = 'contracts/lists.clar'
|
|
153
|
+
clarity_version = 3
|
|
154
|
+
epoch = 3.0
|
|
155
|
+
|
|
156
|
+
[contracts.panic]
|
|
157
|
+
path = 'contracts/panic.clar'
|
|
158
|
+
clarity_version = 3
|
|
159
|
+
epoch = 3.0
|
|
160
|
+
|
|
161
|
+
[contracts.todo-registry]
|
|
162
|
+
path = 'contracts/todo-registry.clar'
|
|
163
|
+
clarity_version = 3
|
|
164
|
+
epoch = 3.0
|
|
165
|
+
|
|
166
|
+
[contracts.trait-conversion]
|
|
167
|
+
path = 'contracts/trait-conversion.clar'
|
|
168
|
+
clarity_version = 3
|
|
169
|
+
epoch = 3.0
|
|
170
|
+
|
|
171
|
+
[contracts.trait-conversion-router]
|
|
172
|
+
path = 'contracts/trait-conversion-router.clar'
|
|
173
|
+
clarity_version = 3
|
|
174
|
+
epoch = 3.0
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = 'Strade'
|
|
3
|
+
description = ''
|
|
4
|
+
authors = []
|
|
5
|
+
telemetry = true
|
|
6
|
+
cache_dir = './.cache'
|
|
7
|
+
requirements = []
|
|
8
|
+
[contracts.CoreMarketPlace]
|
|
9
|
+
path = 'contracts/CoreMarketPlace.clar'
|
|
10
|
+
clarity_version = 3
|
|
11
|
+
epoch = 3.0
|
|
12
|
+
|
|
13
|
+
[contracts.DisputeResolution_clar]
|
|
14
|
+
path = 'contracts/DisputeResolution_clar.clar'
|
|
15
|
+
clarity_version = 3
|
|
16
|
+
epoch = 3.0
|
|
17
|
+
|
|
18
|
+
[contracts.EscrowService]
|
|
19
|
+
path = 'contracts/EscrowService.clar'
|
|
20
|
+
clarity_version = 3
|
|
21
|
+
epoch = 3.0
|
|
22
|
+
|
|
23
|
+
[contracts.UserProfile]
|
|
24
|
+
path = 'contracts/UserProfile.clar'
|
|
25
|
+
clarity_version = 3
|
|
26
|
+
epoch = 3.0
|
|
27
|
+
|
|
28
|
+
[contracts.token]
|
|
29
|
+
path = 'contracts/token.clar'
|
|
30
|
+
clarity_version = 3
|
|
31
|
+
epoch = 3.0
|
|
32
|
+
|
|
33
|
+
[contracts.ft-trait]
|
|
34
|
+
path = 'contracts/ft-trait.clar'
|
|
35
|
+
clarity_version = 3
|
|
36
|
+
epoch = 3.0
|
|
37
|
+
|
|
38
|
+
[contracts.nft-trait]
|
|
39
|
+
path = 'contracts/nft-trait.clar'
|
|
40
|
+
clarity_version = 3
|
|
41
|
+
epoch = 3.0
|
|
42
|
+
|
|
43
|
+
[contracts.non-fungible-token]
|
|
44
|
+
path = 'contracts/non-fungible-token.clar'
|
|
45
|
+
clarity_version = 3
|
|
46
|
+
epoch = 3.0
|
|
47
|
+
[repl.analysis]
|
|
48
|
+
passes = ['check_checker']
|
|
49
|
+
|
|
50
|
+
[repl.analysis.check_checker]
|
|
51
|
+
strict = false
|
|
52
|
+
trusted_sender = false
|
|
53
|
+
trusted_caller = false
|
|
54
|
+
callee_filter = false
|
|
55
|
+
|
|
56
|
+
[contracts.escrow]
|
|
57
|
+
path = 'contracts/escrow.clar'
|
|
58
|
+
clarity_version = 3
|
|
59
|
+
epoch = 3.0
|
|
60
|
+
|
|
61
|
+
[contracts.fungible-token]
|
|
62
|
+
path = 'contracts/fungible-token.clar'
|
|
63
|
+
clarity_version = 3
|
|
64
|
+
epoch = 3.0
|
|
65
|
+
|
|
66
|
+
[contracts.hodl-token]
|
|
67
|
+
path = 'contracts/hodl-token.clar'
|
|
68
|
+
clarity_version = 3
|
|
69
|
+
epoch = 3.0
|
|
70
|
+
|
|
71
|
+
[contracts.beeple]
|
|
72
|
+
path = 'contracts/beeple.clar'
|
|
73
|
+
clarity_version = 3
|
|
74
|
+
epoch = 3.0
|
|
75
|
+
|
|
76
|
+
clarity_version = 3
|
|
77
|
+
epoch = 3.0
|
|
78
|
+
|
|
79
|
+
[contracts.perishable-token]
|
|
80
|
+
path = 'contracts/perishable-token.clar'
|
|
81
|
+
clarity_version = 3
|
|
82
|
+
epoch = 3.0
|
|
83
|
+
|
|
84
|
+
[contracts.rocket-token]
|
|
85
|
+
path = 'contracts/rocket-token.clar'
|
|
86
|
+
clarity_version = 3
|
|
87
|
+
epoch = 3.0
|
|
88
|
+
|
|
89
|
+
[contracts.rocket-market]
|
|
90
|
+
path = 'contracts/rocket-market.clar'
|
|
91
|
+
clarity_version = 3
|
|
92
|
+
epoch = 3.0
|
|
93
|
+
|
|
94
|
+
[contracts.rocket-factory]
|
|
95
|
+
path = 'contracts/rocket-factory.clar'
|
|
96
|
+
clarity_version = 3
|
|
97
|
+
epoch = 3.0
|
|
98
|
+
|
|
99
|
+
[contracts.license]
|
|
100
|
+
path = 'contracts/license.clar'
|
|
101
|
+
clarity_version = 3
|
|
102
|
+
epoch = 3.0
|
|
103
|
+
|
|
104
|
+
clarity_version = 3
|
|
105
|
+
epoch = 3.0
|
|
106
|
+
|
|
107
|
+
clarity_version = 3
|
|
108
|
+
epoch = 3.0
|
|
109
|
+
|
|
110
|
+
[contracts.flip-coin]
|
|
111
|
+
path = 'contracts/flip-coin.clar'
|
|
112
|
+
clarity_version = 3
|
|
113
|
+
epoch = 3.0
|
|
114
|
+
|
|
115
|
+
clarity_version = 3
|
|
116
|
+
epoch = 3.0
|
|
117
|
+
|
|
118
|
+
clarity_version = 3
|
|
119
|
+
epoch = 3.0
|
|
120
|
+
|
|
121
|
+
clarity_version = 3
|
|
122
|
+
epoch = 3.0
|
|
123
|
+
|
|
124
|
+
clarity_version = 3
|
|
125
|
+
epoch = 3.0
|
|
126
|
+
|
|
127
|
+
clarity_version = 3
|
|
128
|
+
epoch = 3.0
|
|
129
|
+
|
|
130
|
+
clarity_version = 3
|
|
131
|
+
epoch = 3.0
|
|
132
|
+
|
|
133
|
+
clarity_version = 3
|
|
134
|
+
epoch = 3.0
|
|
135
|
+
|
|
136
|
+
clarity_version = 3
|
|
137
|
+
epoch = 3.0
|
|
138
|
+
|
|
139
|
+
clarity_version = 3
|
|
140
|
+
epoch = 3.0
|
|
141
|
+
|
|
142
|
+
clarity_version = 3
|
|
143
|
+
epoch = 3.0
|
|
144
|
+
|
|
145
|
+
clarity_version = 3
|
|
146
|
+
epoch = 3.0
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Strade Contracts - Testnet Deployment Results
|
|
2
|
+
|
|
3
|
+
## Deployment Summary
|
|
4
|
+
|
|
5
|
+
✅ **All contracts successfully deployed to Stacks Testnet with Clarity 4!**
|
|
6
|
+
|
|
7
|
+
**Deployment Date:** December 13, 2025
|
|
8
|
+
**Network:** Stacks Testnet
|
|
9
|
+
**Deployer Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF
|
|
10
|
+
**Clarity Version:** 3 (Clarity 4)
|
|
11
|
+
**Epoch:** 3.0
|
|
12
|
+
**Total Cost:** 0.427370 STX
|
|
13
|
+
|
|
14
|
+
## Deployed Contracts
|
|
15
|
+
|
|
16
|
+
### 1. CoreMarketPlace
|
|
17
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.CoreMarketPlace
|
|
18
|
+
- **Transaction ID:** 0x48c4c676f7e128fe5d231efb395390e541aff7457db1aaef9571
|
|
19
|
+
- **Cost:** 0.087570 STX
|
|
20
|
+
- **Status:** ✅ Confirmed
|
|
21
|
+
- **Explorer:** https://explorer.hiro.so/txid/0x48c4c676f7e128fe5d231efb395390e541aff7457db1aaef9571?chain=testnet
|
|
22
|
+
|
|
23
|
+
### 2. DisputeResolution_clar
|
|
24
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.DisputeResolution_clar
|
|
25
|
+
- **Transaction ID:** 0x6a92bb4aa83ca5a8ff0639c18aec82089425eba94e37bd9d58da
|
|
26
|
+
- **Cost:** 0.109500 STX
|
|
27
|
+
- **Status:** ✅ Confirmed
|
|
28
|
+
- **Explorer:** https://explorer.hiro.so/txid/0x6a92bb4aa83ca5a8ff0639c18aec82089425eba94e37bd9d58da?chain=testnet
|
|
29
|
+
|
|
30
|
+
### 3. EscrowService
|
|
31
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.EscrowService
|
|
32
|
+
- **Transaction ID:** 0x9dbe90bb8822de33edf35ed04f18eb7dff914639519a1a67ced9
|
|
33
|
+
- **Cost:** 0.063160 STX
|
|
34
|
+
- **Status:** ✅ Confirmed
|
|
35
|
+
- **Explorer:** https://explorer.hiro.so/txid/0x9dbe90bb8822de33edf35ed04f18eb7dff914639519a1a67ced9?chain=testnet
|
|
36
|
+
|
|
37
|
+
### 4. UserProfile
|
|
38
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.UserProfile
|
|
39
|
+
- **Transaction ID:** 0xc537afd13d6f968d5af6d0b52566f4d83de4d571e1ebae03116a
|
|
40
|
+
- **Cost:** 0.098010 STX
|
|
41
|
+
- **Status:** ✅ Confirmed
|
|
42
|
+
- **Explorer:** https://explorer.hiro.so/txid/0xc537afd13d6f968d5af6d0b52566f4d83de4d571e1ebae03116a?chain=testnet
|
|
43
|
+
|
|
44
|
+
### 5. token (BST)
|
|
45
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.token
|
|
46
|
+
- **Transaction ID:** 0xa607d0c3f1d6de1b9e9ea4cacd14f737ddd60f2a9f17843a8c9c
|
|
47
|
+
- **Cost:** 0.069130 STX
|
|
48
|
+
- **Status:** ✅ Confirmed
|
|
49
|
+
- **Explorer:** https://explorer.hiro.so/txid/0xa607d0c3f1d6de1b9e9ea4cacd14f737ddd60f2a9f17843a8c9c?chain=testnet
|
|
50
|
+
|
|
51
|
+
### 6. ft-trait (SIP-010 Fungible Token Trait)
|
|
52
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.ft-trait
|
|
53
|
+
- **Transaction ID:** 0xb1f5fbde5f2afef19f1a3909fbc489d812adafa33cf395119fdb
|
|
54
|
+
- **Cost:** 0.010000 STX
|
|
55
|
+
- **Status:** ✅ Confirmed
|
|
56
|
+
- **Explorer:** https://explorer.hiro.so/txid/0xb1f5fbde5f2afef19f1a3909fbc489d812adafa33cf395119fdb?chain=testnet
|
|
57
|
+
|
|
58
|
+
### 7. nft-trait (SIP-009 NFT Trait)
|
|
59
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.nft-trait
|
|
60
|
+
- **Transaction ID:** 0x09bb0f5777cb99b7d7f4a8855fec9c657a9f7a9c1fb2382a86e6
|
|
61
|
+
- **Cost:** 0.010000 STX
|
|
62
|
+
- **Status:** ✅ Confirmed
|
|
63
|
+
- **Explorer:** https://explorer.hiro.so/txid/0x09bb0f5777cb99b7d7f4a8855fec9c657a9f7a9c1fb2382a86e6?chain=testnet
|
|
64
|
+
|
|
65
|
+
### 8. non-fungible-token (NFT Implementation)
|
|
66
|
+
- **Contract Address:** STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF.non-fungible-token
|
|
67
|
+
- **Transaction ID:** 0x60286c4456dcf237aaaeef6bb36156e54affd9e70d82412c666c
|
|
68
|
+
- **Cost:** 0.150000 STX
|
|
69
|
+
- **Status:** ✅ Confirmed
|
|
70
|
+
- **Explorer:** https://explorer.hiro.so/txid/0x60286c4456dcf237aaaeef6bb36156e54affd9e70d82412c666c?chain=testnet
|
|
71
|
+
|
|
72
|
+
## Contract Details
|
|
73
|
+
|
|
74
|
+
### BST Token (token.clar)
|
|
75
|
+
- **Name:** Strade Token
|
|
76
|
+
- **Symbol:** BST
|
|
77
|
+
- **Decimals:** 6
|
|
78
|
+
- **Total Supply:** 1,000,000,000,000 BST (1 trillion)
|
|
79
|
+
- **Initial Mint:** 1,000,000,000,000 BST to deployer
|
|
80
|
+
|
|
81
|
+
### CoreMarketPlace (CoreMarketPlace.clar)
|
|
82
|
+
- **Features:** Listing creation, updates, cancellation, purchasing
|
|
83
|
+
- **Payment:** Direct STX transfers
|
|
84
|
+
- **Status Tracking:** active, sold, cancelled
|
|
85
|
+
|
|
86
|
+
### EscrowService (EscrowService.clar)
|
|
87
|
+
- **Features:** Secure escrow for transactions
|
|
88
|
+
- **Duration:** 1,008 blocks (~7 days)
|
|
89
|
+
- **States:** locked, released, refunded
|
|
90
|
+
|
|
91
|
+
### UserProfile (UserProfile.clar)
|
|
92
|
+
- **Features:** User registration, profiles, ratings, reputation
|
|
93
|
+
- **Rating System:** 1-5 stars
|
|
94
|
+
- **Authorization:** Contract owner can authorize users
|
|
95
|
+
|
|
96
|
+
### DisputeResolution_clar (DisputeResolution_clar.clar)
|
|
97
|
+
- **Features:** Dispute raising, arbitrator voting, resolution
|
|
98
|
+
- **Voting Period:** 144 blocks (~24 hours)
|
|
99
|
+
- **Minimum Votes:** 3 votes required
|
|
100
|
+
|
|
101
|
+
### ft-trait (ft-trait.clar)
|
|
102
|
+
- **Standard:** SIP-010 Fungible Token Trait
|
|
103
|
+
- **Purpose:** Interface definition for fungible tokens
|
|
104
|
+
- **Functions:** transfer, get-name, get-symbol, get-decimals, get-balance, get-total-supply, get-token-uri
|
|
105
|
+
|
|
106
|
+
### nft-trait (nft-trait.clar)
|
|
107
|
+
- **Standard:** SIP-009 Non-Fungible Token Trait
|
|
108
|
+
- **Purpose:** Interface definition for NFTs
|
|
109
|
+
- **Functions:** get-last-token-id, get-token-uri, get-owner, transfer
|
|
110
|
+
|
|
111
|
+
### non-fungible-token (non-fungible-token.clar)
|
|
112
|
+
- **Standard:** SIP-009 compliant NFT
|
|
113
|
+
- **Features:** NFT minting, transfers, operator approvals, spender management
|
|
114
|
+
- **Initial Supply:** 7 NFTs pre-minted for testing
|
|
115
|
+
- **Metadata:** IPFS-based token URI support
|
|
116
|
+
|
|
117
|
+
## Verification
|
|
118
|
+
|
|
119
|
+
You can verify the deployment on the Stacks Explorer:
|
|
120
|
+
- **Testnet Explorer:** https://explorer.hiro.so/?chain=testnet
|
|
121
|
+
- **Deployer Address:** https://explorer.hiro.so/address/STGEE2D7NV4RJC1MHK59AN83PEN0CBBEXNG4QQVF?chain=testnet
|
|
122
|
+
|
|
123
|
+
## Next Steps
|
|
124
|
+
|
|
125
|
+
1. **Update Frontend Configuration:**
|
|
126
|
+
- Update `frontend/src/lib/stacks.ts` with the deployed contract addresses
|
|
127
|
+
- Test contract interactions on testnet
|
|
128
|
+
|
|
129
|
+
2. **Test Contract Functions:**
|
|
130
|
+
- Mint BST tokens
|
|
131
|
+
- Create user profiles
|
|
132
|
+
- Create marketplace listings
|
|
133
|
+
- Test escrow functionality
|
|
134
|
+
- Test dispute resolution
|
|
135
|
+
|
|
136
|
+
3. **Monitor Contracts:**
|
|
137
|
+
- Watch for any issues on testnet
|
|
138
|
+
- Monitor gas costs and optimize if needed
|
|
139
|
+
|
|
140
|
+
4. **Prepare for Mainnet:**
|
|
141
|
+
- Once testing is complete, prepare mainnet deployment
|
|
142
|
+
- Consider contract audits before mainnet deployment
|
|
143
|
+
|
|
144
|
+
## Important Notes
|
|
145
|
+
|
|
146
|
+
- **Testnet Reset:** Testnet may be reset periodically, requiring redeployment
|
|
147
|
+
- **Contract Addresses:** Save these addresses securely for frontend integration
|
|
148
|
+
- **Transaction IDs:** Use these to track deployment transactions on the explorer
|
|
149
|
+
- **Costs:** Total deployment cost was ~0.43 STX
|
|
150
|
+
|
|
151
|
+
## Support
|
|
152
|
+
|
|
153
|
+
If you encounter any issues:
|
|
154
|
+
1. Check the Stacks Explorer for transaction status
|
|
155
|
+
2. Verify your account has sufficient STX balance
|
|
156
|
+
3. Contact the Stacks community for support
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
**Deployment completed successfully! 🎉**
|