Skip to content

Commit 3ba28d5

Browse files
authored
Merge pull request #4 from aji70/main
pulling from aji branch
2 parents af2e95b + 0952a41 commit 3ba28d5

13 files changed

Lines changed: 139 additions & 1233 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: software-mansion/setup-scarb@v1
1212
with:
13-
scarb-version: 2.8.4
13+
scarb-version: 2.11.2
1414
- name: Check cairo format
1515
run: scarb fmt --check
1616
- name: Build cairo programs
@@ -22,9 +22,9 @@ jobs:
2222
- uses: actions/checkout@v3
2323
- uses: software-mansion/setup-scarb@v1
2424
with:
25-
scarb-version: 2.8.4
25+
scarb-version: 2.11.2
2626
- uses: foundry-rs/setup-snfoundry@v3
2727
with:
28-
starknet-foundry-version: 0.37.0
28+
starknet-foundry-version: 0.40.0
2929
- name: Run cairo tests
3030
run: snforge test

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
target
22
.snfoundry_cache/
3-
account0_keystore.json
3+
snfoundry_trace/
4+
coverage/
5+
profile/

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

Readme.MD

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,70 @@
1-
# Trybenft Deployment Details
1+
# 🚀 Trybenft Deployment Details
22

3-
This document outlines the declaration and deployment information for the **Trybenft** class and **Factory** contract on Starknet Sepolia testnet.
3+
This document outlines the declaration and deployment information for the **Trybenft** NFT contract and its **Factory** on the **Starknet Sepolia** testnet.
44

55
---
66

7-
Mock usdc class hash : 0x01f3003c05accef1f32470f2aa088506544696180d236959971eefabe482833c
8-
contract_address: 0x0475e85c9f471885c1624c297862df9aaffa82ad55c7d1fde1ac892232445e06
9-
transaction_hash: 0x0693ebed6ffaf37d9740a171f7ca0a362a205b78516762105603c797236ff045
7+
## 💰 Mock USDC Token
108

11-
To see deployment details, visit:
12-
contract: https://sepolia.starkscan.co/contract/0x0475e85c9f471885c1624c297862df9aaffa82ad55c7d1fde1ac892232445e06
13-
transaction: https://sepolia.starkscan.co/tx/0x0693ebed6ffaf37d9740a171f7ca0a362a205b78516762105603c797236ff045
9+
- **Class Hash**: `0x01f3003c05accef1f32470f2aa088506544696180d236959971eefabe482833c`
10+
- **Contract Address**: `0x0475e85c9f471885c1624c297862df9aaffa82ad55c7d1fde1ac892232445e06`
11+
- **Transaction Hash**: `0x0693ebed6ffaf37d9740a171f7ca0a362a205b78516762105603c797236ff045`
1412

15-
## 📦 Trybenft Class Declaration
13+
🔗 **Explorer**
1614

17-
- **Command**: `declare`
18-
- **Class Hash**:
19-
`0x01b517d0730a6ea7039e207ed985c9fc45c02329c9fa014349933af5025f9285`
20-
- **Transaction Hash**:
21-
`0x02d8fa65c3f909f436432788ff6cc6b5778b93aefcb01f358e3cccad936345bd`
22-
23-
🔗 **View on StarkScan**:
24-
25-
- [Class Details](https://sepolia.starkscan.co/class/0x01b517d0730a6ea7039e207ed985c9fc45c02329c9fa014349933af5025f9285)
26-
- [Transaction Details](https://sepolia.starkscan.co/tx/0x02d8fa65c3f909f436432788ff6cc6b5778b93aefcb01f358e3cccad936345bd)
15+
- [Contract on StarkScan](https://sepolia.starkscan.co/contract/0x0475e85c9f471885c1624c297862df9aaffa82ad55c7d1fde1ac892232445e06)
16+
- [Transaction Details](https://sepolia.starkscan.co/tx/0x0693ebed6ffaf37d9740a171f7ca0a362a205b78516762105603c797236ff045)
2717

2818
---
2919

30-
## 🏗️ Factory Contract
20+
## 🖼️ TRYBENFT
3121

3222
### Declaration
3323

3424
- **Command**: `declare`
35-
- **Class Hash**:
36-
`0x0062ba8dfbc16e6a465907436ebe00684608e47743db277b458a6a01849103f9`
37-
- **Transaction Hash**:
38-
`0x01195e485cb74a463ab557a179b266461782fb2e51f6de67503e02c56fb474a2`
25+
- **Class Hash**: `0x0668b562d0e7224ed2279594bdfc4577c2faeec79e55a1d94da441f7c11bac6f`
26+
- **Transaction Hash**: `0x0133be5f8f9a08d512d3d0e245148ecfe6ba71bb61f57a18c384caaf87fcfb48`
27+
28+
🔗 **Explorer**
29+
30+
- [Class on StarkScan](https://sepolia.starkscan.co/class/0x0668b562d0e7224ed2279594bdfc4577c2faeec79e55a1d94da441f7c11bac6f)
31+
- [Declaration TX](https://sepolia.starkscan.co/tx/0x0133be5f8f9a08d512d3d0e245148ecfe6ba71bb61f57a18c384caaf87fcfb48)
3932

4033
### Deployment
4134

4235
- **Command**: `deploy`
43-
- **Contract Address**:
44-
`0x0292010c95c853d3e3238c47367e04d07939d9f48274c53da78ed02a8266a17b`
45-
- **Transaction Hash**:
46-
`0x076b64931c4526130010d13fb468dbcca268be0e2429872ab4d015b86e7723e6`
36+
- **Contract Address**: `0x01506d709e65937451c344c59e6a122f7427e4a63a7792017d0ad16e787b49c0`
37+
- **Transaction Hash**: `0x026a58588575e294616d2b1cc1bc75652da123e21de67d782decf00496bf9770`
4738

48-
- **Stark sepolia Token Address**:
49-
`0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d`
39+
🔗 **Explorer**
40+
41+
- [Contract on StarkScan](https://sepolia.starkscan.co/contract/0x01506d709e65937451c344c59e6a122f7427e4a63a7792017d0ad16e787b49c0)
42+
- [Deployment TX](https://sepolia.starkscan.co/tx/0x026a58588575e294616d2b1cc1bc75652da123e21de67d782decf00496bf9770)
5043

51-
🔗 **View on StarkScan**:
44+
---
5245

53-
- [Contract Address](https://sepolia.starkscan.co/contract/0x0292010c95c853d3e3238c47367e04d07939d9f48274c53da78ed02a8266a17b)
54-
- [Deployment Transaction](https://sepolia.starkscan.co/tx/0x076b64931c4526130010d13fb468dbcca268be0e2429872ab4d015b86e7723e6)
46+
## 🏭 TRYBENFT Factory
47+
48+
### Declaration
49+
50+
- **Command**: `declare`
51+
- **Class Hash**: `0x02287d136a868c4d7136450c0f18b3f244e5b169cb2e8671d1f9150131f3b8db`
52+
- **Transaction Hash**: `0x0439ee68143361670c4d1cfd9e35dbb48d76ab5e69d03866733a7a3c7fcba8d0`
53+
54+
🔗 **Explorer**
55+
56+
- [Class on StarkScan](https://sepolia.starkscan.co/class/0x02287d136a868c4d7136450c0f18b3f244e5b169cb2e8671d1f9150131f3b8db)
57+
- [Declaration TX](https://sepolia.starkscan.co/tx/0x0439ee68143361670c4d1cfd9e35dbb48d76ab5e69d03866733a7a3c7fcba8d0)
5558

5659
---
5760

58-
## 📍 Notes
61+
## 📦 Other Information
5962

60-
- These transactions are conducted on the **Starknet Sepolia** testnet.
61-
- Use [StarkScan](https://sepolia.starkscan.co/) for real-time transaction and contract data.
63+
- **Starknet Sepolia Token Address**:
64+
`0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d`
6265

6366
---
67+
68+
## 🧭 Resources
69+
70+
- 🌐 [StarkScan - Sepolia Explorer](https://sepolia.starkscan.co/)

Scarb.lock

Lines changed: 59 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ dependencies = [
1111

1212
[[package]]
1313
name = "openzeppelin"
14-
version = "0.15.0"
15-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
14+
version = "1.0.0"
15+
source = "registry+https://scarbs.xyz/"
16+
checksum = "sha256:320185f3e17cf9fafda88b1ce490f5eaed0bfcc273036b56cd22ce4fb8de628f"
1617
dependencies = [
1718
"openzeppelin_access",
1819
"openzeppelin_account",
20+
"openzeppelin_finance",
1921
"openzeppelin_governance",
2022
"openzeppelin_introspection",
23+
"openzeppelin_merkle_tree",
2124
"openzeppelin_presets",
2225
"openzeppelin_security",
2326
"openzeppelin_token",
@@ -27,85 +30,115 @@ dependencies = [
2730

2831
[[package]]
2932
name = "openzeppelin_access"
30-
version = "0.15.0"
31-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
33+
version = "1.0.0"
34+
source = "registry+https://scarbs.xyz/"
35+
checksum = "sha256:a39a4ea1582916c637bf7e3aee0832c3fe1ea3a3e39191955e8dc39d08327f9b"
3236
dependencies = [
3337
"openzeppelin_introspection",
3438
"openzeppelin_utils",
3539
]
3640

3741
[[package]]
3842
name = "openzeppelin_account"
39-
version = "0.15.0"
40-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
43+
version = "1.0.0"
44+
source = "registry+https://scarbs.xyz/"
45+
checksum = "sha256:7e943a2de32ddca4d48e467e52790e380ab1f49c4daddbbbc4634dd930d0243f"
4146
dependencies = [
4247
"openzeppelin_introspection",
43-
"openzeppelin_token",
4448
"openzeppelin_utils",
4549
]
4650

51+
[[package]]
52+
name = "openzeppelin_finance"
53+
version = "1.0.0"
54+
source = "registry+https://scarbs.xyz/"
55+
checksum = "sha256:9fa9e91d39b6ccdfa31eef32fdc087cd06c0269cc9c6b86e32d57f5a6997d98b"
56+
dependencies = [
57+
"openzeppelin_access",
58+
"openzeppelin_token",
59+
]
60+
4761
[[package]]
4862
name = "openzeppelin_governance"
49-
version = "0.15.0"
50-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
63+
version = "1.0.0"
64+
source = "registry+https://scarbs.xyz/"
65+
checksum = "sha256:c05add2974b3193c3a5c022b9586a84cf98c5970cdb884dcf201c77dbe359f55"
5166
dependencies = [
5267
"openzeppelin_access",
68+
"openzeppelin_account",
5369
"openzeppelin_introspection",
70+
"openzeppelin_token",
71+
"openzeppelin_utils",
5472
]
5573

5674
[[package]]
5775
name = "openzeppelin_introspection"
58-
version = "0.15.0"
59-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
76+
version = "1.0.0"
77+
source = "registry+https://scarbs.xyz/"
78+
checksum = "sha256:34e088ecf19e0b3012481a29f1fbb20e600540cb9a5db1c3002a97ebb7f5a32a"
79+
80+
[[package]]
81+
name = "openzeppelin_merkle_tree"
82+
version = "1.0.0"
83+
source = "registry+https://scarbs.xyz/"
84+
checksum = "sha256:a5341705514a3d9beeeb39cf11464111f7355be621639740d2c5006786aa63dc"
6085

6186
[[package]]
6287
name = "openzeppelin_presets"
63-
version = "0.15.0"
64-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
88+
version = "1.0.0"
89+
source = "registry+https://scarbs.xyz/"
90+
checksum = "sha256:4eb098e2ee3ac0e67b6828115a7de62f781418beab767d4e80b54e176808369d"
6591
dependencies = [
6692
"openzeppelin_access",
6793
"openzeppelin_account",
94+
"openzeppelin_finance",
6895
"openzeppelin_introspection",
6996
"openzeppelin_token",
7097
"openzeppelin_upgrades",
98+
"openzeppelin_utils",
7199
]
72100

73101
[[package]]
74102
name = "openzeppelin_security"
75-
version = "0.15.0"
76-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
103+
version = "1.0.0"
104+
source = "registry+https://scarbs.xyz/"
105+
checksum = "sha256:1deb811a239c4f9cc28fc302039e2ffcb19911698a8c612487207448d70d2e6e"
77106

78107
[[package]]
79108
name = "openzeppelin_token"
80-
version = "0.15.0"
81-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
109+
version = "1.0.0"
110+
source = "registry+https://scarbs.xyz/"
111+
checksum = "sha256:33fcb84a1a76d2d3fff9302094ff564f78d45b743548fd7568c130b272473f66"
82112
dependencies = [
113+
"openzeppelin_access",
83114
"openzeppelin_account",
84-
"openzeppelin_governance",
85115
"openzeppelin_introspection",
116+
"openzeppelin_utils",
86117
]
87118

88119
[[package]]
89120
name = "openzeppelin_upgrades"
90-
version = "0.15.0"
91-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
121+
version = "1.0.0"
122+
source = "registry+https://scarbs.xyz/"
123+
checksum = "sha256:36f7a03e7e7111577916aacf31f88ad0053de20f33ee10b0ab3804849c3aa373"
92124

93125
[[package]]
94126
name = "openzeppelin_utils"
95-
version = "0.15.0"
96-
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.15.0#f57642960f1c8cffafefb88bfff418eca8510634"
127+
version = "1.0.0"
128+
source = "registry+https://scarbs.xyz/"
129+
checksum = "sha256:fd348b31c4a4407add33adc3c2b8f26dca71dbd7431faaf726168f37a91db0c1"
97130

98131
[[package]]
99132
name = "snforge_scarb_plugin"
100-
version = "0.37.0"
133+
version = "0.40.0"
101134
source = "registry+https://scarbs.xyz/"
102-
checksum = "sha256:9dbb114f853decc27b2d6d53e2ddd207217ce63c2d24a47c5c48d5f475b0b9a5"
135+
checksum = "sha256:7c3b21f6cdab14fc63e19f9e6789b6a3d44f5618ebcf02d03b397375304e1891"
103136

104137
[[package]]
105138
name = "snforge_std"
106-
version = "0.37.0"
139+
version = "0.40.0"
107140
source = "registry+https://scarbs.xyz/"
108-
checksum = "sha256:f5702c4a6d54e3563b4aa78c834de6ddcf18ef8ca8fd35dc1bceb7ece58e9571"
141+
checksum = "sha256:0221bbe959eec72eb2e30be68df66c4ff5dcd924ec491f285c974e49671fabc0"
109142
dependencies = [
110143
"snforge_scarb_plugin",
111144
]

Scarb.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ edition = "2024_07"
66
# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html
77

88
[dependencies]
9-
starknet = "2.8.4"
10-
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", tag = "v0.15.0" }
9+
starknet = "2.11.2"
10+
openzeppelin = "1.0.0"
1111

1212
[dev-dependencies]
13-
snforge_std = "0.37.0"
14-
assert_macros = "2.8.4"
13+
snforge_std = "0.40.0"
14+
assert_macros = "2.11.2"
1515

1616
[[target.starknet-contract]]
1717
sierra = true

0 commit comments

Comments
 (0)