Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

WIP Branch SDK V2 #1329

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d2649d6
feat(apis): env init and select endpoints
bitbeckers Jun 11, 2024
2ac55ff
chore(release): alpha.14
bitbeckers Jun 11, 2024
0ddf16e
fix(api): fix graph path
bitbeckers Jun 12, 2024
ec64c45
fix(graph): metadata queries
bitbeckers Jun 12, 2024
59d86c9
Merge branch 'develop' into feat/cleanup_client_init
bitbeckers Jun 12, 2024
f3f894e
feat(client): optional public client
bitbeckers Jun 12, 2024
c2613fe
feat(viem): optional public client
bitbeckers Jun 12, 2024
45a2b11
fix(storage): upload with default config
bitbeckers Jun 12, 2024
b175b3c
fix(storage): cleanup logs
bitbeckers Jun 12, 2024
2461423
(chore): update to new graphql scheme and bump version number
Jipperism Jun 19, 2024
42eb39f
chore(cleanup): remove unused deps
bitbeckers Jun 19, 2024
f36800a
fix(build): types and swc rollup
bitbeckers Jun 20, 2024
5dba26b
feat(graph): remove indexer module and cleanup build dependencies
bitbeckers Jun 23, 2024
d12b05e
feat(sdk): remove unused evaluation and cleanup
bitbeckers Jun 26, 2024
cee148d
feat(client): updated method signatures
bitbeckers Jul 5, 2024
f21c10a
(feat): add support for passing allowlist by uri, parsing and inserting
Jipperism Jul 7, 2024
95ae00c
chore(deploy): fresh marketplace on sepolia
bitbeckers Jul 17, 2024
1c8a4ee
Merge branch 'feat/cleanup_client_init' of github.com:hypercerts-org/…
bitbeckers Jul 17, 2024
cb3c996
chore(bump): sdk uses contracts 2.0.0-alpha.1
bitbeckers Jul 17, 2024
59aa570
fix(api): updated api client and minting flow
bitbeckers Aug 2, 2024
c09c36a
chore(docs): update SDK readme and typedoc
bitbeckers Aug 2, 2024
8c7166e
fix(mint): improve allowlist mint handling
bitbeckers Aug 5, 2024
ba85f61
chore(deploy): arb sepolia deployment
bitbeckers Aug 5, 2024
7ac979e
chore(updates): api submodule and arb sep contracts
bitbeckers Aug 5, 2024
055efcd
chore(deploy): base-sepolia
bitbeckers Aug 18, 2024
618e445
chore(deploy): base-sepolia and update contracts pacakge
bitbeckers Aug 19, 2024
14e607a
chore(deploy): op mainnet and updated fee recipient b-sep
bitbeckers Aug 19, 2024
ac7a67b
chore(update): OP minter implementation - release alpha.6
bitbeckers Aug 20, 2024
15f3980
feat(arb): setup arb testnet params
bitbeckers Aug 20, 2024
67731f5
build(arb-sepolia-depoloyment): deployed contracts and marketplace to…
0xRowdy Aug 20, 2024
5f540e0
chore(release): alpha.7 - arb sepolia marketplace
bitbeckers Aug 21, 2024
5893783
feat(arbOne): deploy to arbitrum one
bitbeckers Sep 9, 2024
3579544
chore(deploy): cleanup docs deploy arbOne
bitbeckers Sep 29, 2024
5ed2f8a
feat: deploy and verify fvm calibration
bitbeckers Oct 16, 2024
9b58d33
fix: support chainId
bitbeckers Oct 18, 2024
e6a9fb4
feat(celo): marketplace deployment celo
bitbeckers Nov 22, 2024
4e82dc2
feat(celo): celo support in package
bitbeckers Jan 18, 2025
3de4a03
fix(ci): restore turborepo for github action
bitbeckers Jan 18, 2025
f034376
fix(tests): contracts tests and dep updates
bitbeckers Jan 18, 2025
aa052c5
fix(lockfile): update contracts package lockfile
bitbeckers Jan 18, 2025
ded75eb
Merge pull request #1351 from hypercerts-org/feat/marketplace_celo_de…
bitbeckers Jan 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: deploy and verify fvm calibration
  • Loading branch information
bitbeckers committed Oct 16, 2024
commit 5ed2f8a666cf818fa51cc34c2cb62c58bc1d962b
378 changes: 378 additions & 0 deletions contracts/.openzeppelin/unknown-314159.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,378 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0x822F17A9A5EeCFd66dBAFf7946a8071C265D1d07",
"txHash": "0x48fb8bb34e32583a1db6011284651b234cbb8286bb6e76053f0b99d6dc5cebee",
"kind": "uups"
}
],
"impls": {
"125db54394ee349f18c5e7b6f717dff5868c4ccab68a96eeef38a6321b3f05b2": {
"address": "0xc6FbcFE16D5eBFEd21aCe224C49C94dE49046A04",
"txHash": "0x8f86a7a66134dc6a83edf0f47fb2219d5b403125d7efc723ea8a6ec48102ab88",
"layout": {
"solcVersion": "0.8.17",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol:36"
},
{
"label": "__gap",
"offset": 0,
"slot": "51",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC165Upgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/utils/introspection/ERC165Upgradeable.sol:41"
},
{
"label": "_balances",
"offset": 0,
"slot": "101",
"type": "t_mapping(t_uint256,t_mapping(t_address,t_uint256))",
"contract": "ERC1155Upgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/ERC1155Upgradeable.sol:25"
},
{
"label": "_operatorApprovals",
"offset": 0,
"slot": "102",
"type": "t_mapping(t_address,t_mapping(t_address,t_bool))",
"contract": "ERC1155Upgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/ERC1155Upgradeable.sol:28"
},
{
"label": "_uri",
"offset": 0,
"slot": "103",
"type": "t_string_storage",
"contract": "ERC1155Upgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/ERC1155Upgradeable.sol:31"
},
{
"label": "__gap",
"offset": 0,
"slot": "104",
"type": "t_array(t_uint256)47_storage",
"contract": "ERC1155Upgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/ERC1155Upgradeable.sol:528"
},
{
"label": "__gap",
"offset": 0,
"slot": "151",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC1155BurnableUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/extensions/ERC1155BurnableUpgradeable.sol:52"
},
{
"label": "_baseURI",
"offset": 0,
"slot": "201",
"type": "t_string_storage",
"contract": "ERC1155URIStorageUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol:27"
},
{
"label": "_tokenURIs",
"offset": 0,
"slot": "202",
"type": "t_mapping(t_uint256,t_string_storage)",
"contract": "ERC1155URIStorageUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol:30"
},
{
"label": "__gap",
"offset": 0,
"slot": "203",
"type": "t_array(t_uint256)48_storage",
"contract": "ERC1155URIStorageUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/token/ERC1155/extensions/ERC1155URIStorageUpgradeable.sol:77"
},
{
"label": "_owner",
"offset": 0,
"slot": "251",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "252",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/access/OwnableUpgradeable.sol:94"
},
{
"label": "__gap",
"offset": 0,
"slot": "301",
"type": "t_array(t_uint256)50_storage",
"contract": "ERC1967UpgradeUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:211"
},
{
"label": "__gap",
"offset": 0,
"slot": "351",
"type": "t_array(t_uint256)50_storage",
"contract": "UUPSUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol:107"
},
{
"label": "typeCounter",
"offset": 0,
"slot": "401",
"type": "t_uint256",
"contract": "SemiFungible1155",
"src": "src/protocol/SemiFungible1155.sol:27"
},
{
"label": "owners",
"offset": 0,
"slot": "402",
"type": "t_mapping(t_uint256,t_address)",
"contract": "SemiFungible1155",
"src": "src/protocol/SemiFungible1155.sol:38"
},
{
"label": "creators",
"offset": 0,
"slot": "403",
"type": "t_mapping(t_uint256,t_address)",
"contract": "SemiFungible1155",
"src": "src/protocol/SemiFungible1155.sol:41"
},
{
"label": "tokenValues",
"offset": 0,
"slot": "404",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "SemiFungible1155",
"src": "src/protocol/SemiFungible1155.sol:44"
},
{
"label": "maxIndex",
"offset": 0,
"slot": "405",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "SemiFungible1155",
"src": "src/protocol/SemiFungible1155.sol:47"
},
{
"label": "__gap",
"offset": 0,
"slot": "406",
"type": "t_array(t_uint256)25_storage",
"contract": "SemiFungible1155",
"src": "src/protocol/SemiFungible1155.sol:648"
},
{
"label": "merkleRoots",
"offset": 0,
"slot": "431",
"type": "t_mapping(t_uint256,t_bytes32)",
"contract": "AllowlistMinter",
"src": "src/protocol/AllowlistMinter.sol:17"
},
{
"label": "hasBeenClaimed",
"offset": 0,
"slot": "432",
"type": "t_mapping(t_uint256,t_mapping(t_bytes32,t_bool))",
"contract": "AllowlistMinter",
"src": "src/protocol/AllowlistMinter.sol:18"
},
{
"label": "maxUnits",
"offset": 0,
"slot": "433",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "AllowlistMinter",
"src": "src/protocol/AllowlistMinter.sol:19"
},
{
"label": "minted",
"offset": 0,
"slot": "434",
"type": "t_mapping(t_uint256,t_uint256)",
"contract": "AllowlistMinter",
"src": "src/protocol/AllowlistMinter.sol:20"
},
{
"label": "__gap",
"offset": 0,
"slot": "435",
"type": "t_array(t_uint256)26_storage",
"contract": "AllowlistMinter",
"src": "src/protocol/AllowlistMinter.sol:75"
},
{
"label": "_paused",
"offset": 0,
"slot": "461",
"type": "t_bool",
"contract": "PausableUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol:29"
},
{
"label": "__gap",
"offset": 0,
"slot": "462",
"type": "t_array(t_uint256)49_storage",
"contract": "PausableUpgradeable",
"src": "lib/openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol:116"
},
{
"label": "typeRestrictions",
"offset": 0,
"slot": "511",
"type": "t_mapping(t_uint256,t_enum(TransferRestrictions)19603)",
"contract": "HypercertMinter",
"src": "src/protocol/HypercertMinter.sol:20"
},
{
"label": "__gap",
"offset": 0,
"slot": "512",
"type": "t_array(t_uint256)29_storage",
"contract": "HypercertMinter",
"src": "src/protocol/HypercertMinter.sol:258"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)25_storage": {
"label": "uint256[25]",
"numberOfBytes": "800"
},
"t_array(t_uint256)26_storage": {
"label": "uint256[26]",
"numberOfBytes": "832"
},
"t_array(t_uint256)29_storage": {
"label": "uint256[29]",
"numberOfBytes": "928"
},
"t_array(t_uint256)47_storage": {
"label": "uint256[47]",
"numberOfBytes": "1504"
},
"t_array(t_uint256)48_storage": {
"label": "uint256[48]",
"numberOfBytes": "1536"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_enum(TransferRestrictions)19603": {
"label": "enum IHypercertToken.TransferRestrictions",
"members": [
"AllowAll",
"DisallowAll",
"FromCreatorOnly"
],
"numberOfBytes": "1"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_mapping(t_address,t_bool))": {
"label": "mapping(address => mapping(address => bool))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_bool)": {
"label": "mapping(bytes32 => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_address)": {
"label": "mapping(uint256 => address)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_bytes32)": {
"label": "mapping(uint256 => bytes32)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_enum(TransferRestrictions)19603)": {
"label": "mapping(uint256 => enum IHypercertToken.TransferRestrictions)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_mapping(t_address,t_uint256))": {
"label": "mapping(uint256 => mapping(address => uint256))",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_mapping(t_bytes32,t_bool))": {
"label": "mapping(uint256 => mapping(bytes32 => bool))",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_string_storage)": {
"label": "mapping(uint256 => string)",
"numberOfBytes": "32"
},
"t_mapping(t_uint256,t_uint256)": {
"label": "mapping(uint256 => uint256)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
}
}
}
15 changes: 15 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,18 @@ token implementation or standard.
### HypercertMinter

Example implementation for a hypercert token that is an `ERC1155 NFT` under the hood with an `Allowlist` extension.

## Deploying to FVM

### Verification

To verify the contracts on Starboard, run the following command:

Minter: `npx hardhat flatten src/protocol/HypercertMinter.sol > FlattenedHypercertMinter.sol` Proxy:
`npx hardhat flatten lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol > FlattenedProxy.sol`

To validate, upload the flattened file to Filfox using the contact verification flow.

In the `Metadata settings` section, add the following:

`{ "bytecodeHash": "none" }`
Loading