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
function hashMessage(address sender) internal pure returns(bytes32) { | |
bytes32 payloadHash = keccak256(abi.encode(sender, salt)); | |
bytes32 messageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", payloadHash)); | |
return messageHash; | |
} |
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
We create Genesis Contract, with 10,000 NFT's max. Users in the pre-sale mode can mint max 5, and in the public sale, | |
they can mint as many as they want, though, each mint transaction can mint max 20. So one user can mint 20 and | |
then call mint again and mint another 20.. When Genesis's public sale is done, we build another contract Called Stage2Airdrop | |
and depending on how many users bought on Genesis, we give them specific badge NFTs. | |
if user bought 5, we give him black ops badge NFT | |
Question 1: if user bought 10, we give him 2 black ops and if user bought 14, | |
we give him 2 black ops + 1 Special ops ? Is this correct assumption ? | |
If user has black ops badge id on Stage2Aidrop contract, he is always gonna have this. |
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
/* | |
* SPDX-License-Identifier: GPL-3.0 | |
*/ | |
pragma solidity ^0.6.8; | |
pragma experimental ABIEncoderV2; | |
import "@aragon/govern-core/contracts/GovernRegistry.sol"; | |
import "@aragon/govern-token/contracts/GovernTokenFactory.sol"; |
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
pragma solidity ^0.6.8; | |
contract Finance { | |
address owner; | |
constructor() public { | |
owner = msg.sender; |
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
jobs: | |
deploy-govern-console: | |
runs-on: ubuntu-latest | |
container: fleek/create-react-app:node-15 | |
name: deploys to rinkeby/mainnet depending on the branch | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies and build the project | |
run: yarn && yarn build | |
working-directory: packages/govern-core |
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 IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
import { | |
ethereum, | |
JSONValue, | |
TypedMap, | |
Entity, | |
Bytes, | |
Address, | |
BigInt |
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
# Do not edit subgraph.yaml,this is a generated file. | |
# Instead, edit subgraph.template.yaml and run `yarn manifest-<network>-[staging]` | |
specVersion: 0.0.2 | |
description: A template for Aragon subgraphs | |
repository: https://github.com/aragon/govern | |
schema: | |
file: ./schema.graphql | |
dataSources: | |
#Govern Registry | |
# GovernRegistry |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract ContractTest { | |
bytes public byteParam; | |
function setBytes(bytes memory param) public { | |
byteParam = param; |
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
pragma solidity 0.5.17; | |
import '../interfaces/ApproveAndCallReceiver.sol'; | |
import '../interfaces/ILockManager.sol'; | |
import '../interfaces/IGuardiansRegistry.sol'; | |
import '../interfaces/IERC20.sol'; | |
import '../ANTv2MultiMinter.sol'; | |
contract ANJLockMinter is ApproveAndCallReceiver, ILockManager { |
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
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract ANTv2MultiMinter", | |
"name": "_minter", | |
"type": "address" | |
}, | |
{ |
NewerOlder