-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from desci-labs/contract-fixes
smart contract fixes
- Loading branch information
Showing
105 changed files
with
16,905 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# build.yml | ||
on: | ||
# pull_request: | ||
# paths: | ||
# - .github/workflows/** | ||
# - desci-models/** | ||
push: | ||
paths: | ||
- .github/workflows/** | ||
- desci-contracts/** | ||
|
||
name: Test desci-contracts | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
# container: | ||
# image: ubuntu:latest | ||
# options: --user 1001 | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up the environment | ||
# Replace this line with the appropriate setup for your project | ||
# Examples: | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: cd desci-contracts && npm i -g yarn && yarn && yarn build | ||
|
||
- name: Run tests | ||
run: | | ||
cd desci-contracts && npx hardhat clean && yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
"recommendations": [ | ||
"bradlc.vscode-tailwindcss", | ||
"juanblanco.solidity", | ||
"esbenp.prettier-vscode", | ||
"prisma.prisma", | ||
"rbbit.typescript-hero" | ||
] | ||
} | ||
"recommendations": [ | ||
"bradlc.vscode-tailwindcss", | ||
"juanblanco.solidity", | ||
"esbenp.prettier-vscode", | ||
"prisma.prisma", | ||
"eamodio.gitlens", | ||
"ms-vscode.makefile-tools" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
{ | ||
"manifestVersion": "3.2", | ||
"admin": { | ||
"address": "0x6FAD4bF532EbaA56Ecf5CFd0E59617F5Fe173aa2", | ||
"txHash": "0x5b1e70832abbcd6f11d19f027119d0da3deb062f82deff25b63d100dd1990056" | ||
}, | ||
"proxies": [ | ||
{ | ||
"address": "0xb9F1b29d9435Ff4772F57067C927367B337B0456", | ||
"txHash": "0xcbf8a479adaab2755220d93e8cddcf61e7ec0d9eb6e024e4f064851a8a7ef3a8", | ||
"kind": "transparent" | ||
} | ||
], | ||
"impls": { | ||
"7d36eb1fb5509724c9c86e5567a213c3dc9d83c3cbe4f6b633ad300b6ccc8728": { | ||
"address": "0xC9bd4f323E037f5560Bb96f90c4Dc170bdD6E550", | ||
"txHash": "0xd1081c86a9500a81fa498e3838ae05691b6185686e09c3de7133a83f262c704b", | ||
"layout": { | ||
"storage": [ | ||
{ | ||
"label": "_initialized", | ||
"offset": 0, | ||
"slot": "0", | ||
"type": "t_uint8", | ||
"contract": "Initializable", | ||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62", | ||
"retypedFrom": "bool" | ||
}, | ||
{ | ||
"label": "_initializing", | ||
"offset": 1, | ||
"slot": "0", | ||
"type": "t_bool", | ||
"contract": "Initializable", | ||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67" | ||
}, | ||
{ | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "1", | ||
"type": "t_array(t_uint256)50_storage", | ||
"contract": "ContextUpgradeable", | ||
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36" | ||
}, | ||
{ | ||
"label": "_owner", | ||
"offset": 0, | ||
"slot": "51", | ||
"type": "t_address", | ||
"contract": "OwnableUpgradeable", | ||
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" | ||
}, | ||
{ | ||
"label": "__gap", | ||
"offset": 0, | ||
"slot": "52", | ||
"type": "t_array(t_uint256)49_storage", | ||
"contract": "OwnableUpgradeable", | ||
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" | ||
}, | ||
{ | ||
"label": "organizations", | ||
"offset": 0, | ||
"slot": "101", | ||
"type": "t_mapping(t_bytes32,t_struct(Organization)4485_storage)", | ||
"contract": "DpidRegistry", | ||
"src": "contracts/DpidRegistry.sol:36" | ||
}, | ||
{ | ||
"label": "_fee", | ||
"offset": 0, | ||
"slot": "102", | ||
"type": "t_uint256", | ||
"contract": "DpidRegistry", | ||
"src": "contracts/DpidRegistry.sol:39" | ||
}, | ||
{ | ||
"label": "_orgFee", | ||
"offset": 0, | ||
"slot": "103", | ||
"type": "t_uint256", | ||
"contract": "DpidRegistry", | ||
"src": "contracts/DpidRegistry.sol:42" | ||
} | ||
], | ||
"types": { | ||
"t_address": { | ||
"label": "address", | ||
"numberOfBytes": "20" | ||
}, | ||
"t_array(t_address)dyn_storage": { | ||
"label": "address[]", | ||
"numberOfBytes": "32" | ||
}, | ||
"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_mapping(t_bytes32,t_struct(Organization)4485_storage)": { | ||
"label": "mapping(bytes32 => struct DpidRegistry.Organization)", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_mapping(t_uint256,t_uint256)": { | ||
"label": "mapping(uint256 => uint256)", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_struct(Organization)4485_storage": { | ||
"label": "struct DpidRegistry.Organization", | ||
"members": [ | ||
{ | ||
"label": "prefix", | ||
"type": "t_bytes32", | ||
"offset": 0, | ||
"slot": "0" | ||
}, | ||
{ | ||
"label": "registrant", | ||
"type": "t_address", | ||
"offset": 0, | ||
"slot": "1" | ||
}, | ||
{ | ||
"label": "tokenGate", | ||
"type": "t_array(t_address)dyn_storage", | ||
"offset": 0, | ||
"slot": "2" | ||
}, | ||
{ | ||
"label": "entries", | ||
"type": "t_mapping(t_uint256,t_uint256)", | ||
"offset": 0, | ||
"slot": "3" | ||
}, | ||
{ | ||
"label": "count", | ||
"type": "t_uint256", | ||
"offset": 0, | ||
"slot": "4" | ||
} | ||
], | ||
"numberOfBytes": "160" | ||
}, | ||
"t_uint256": { | ||
"label": "uint256", | ||
"numberOfBytes": "32" | ||
}, | ||
"t_uint8": { | ||
"label": "uint8", | ||
"numberOfBytes": "1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.