Skip to content

Commit

Permalink
DAO-402: minime factory and standard bounties as app (#1398)
Browse files Browse the repository at this point in the history
* add minime factory and move standard bounties as app
* fix to stop on publish error
  • Loading branch information
yuetloo authored Oct 22, 2021
1 parent 050bac2 commit 785fae4
Show file tree
Hide file tree
Showing 44 changed files with 200 additions and 173 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,12 @@ jobs:
fi
- name: publish
id: publish
env:
PUBLISH_LOG: ./publish-deploy.log
run: |
cd apps/${{ needs.checkTag.outputs.app }}
npx hardhat publish ${{ needs.checkTag.outputs.version }} --skip-validation --skip-app-build --network ${{ needs.checkTag.outputs.network }} | tee $PUBLISH_LOG
echo "::set-output name=cid::$(cat $PUBLISH_LOG | sed -nE 's/^.*ContentURI: *([^ ]*) *.*$/\1/p')"
echo "::set-output name=contract::$(cat $PUBLISH_LOG | sed -nE 's/^.*Contract address: *([^ ]*) *.*$/\1/p')"
echo "::set-output name=txhash::$(cat $PUBLISH_LOG | sed -nE 's/^.*Tx hash: *([^ ]*) *.*$/\1/p')"
PUBLISH_MESSAGE=$(npx hardhat publish ${{ needs.checkTag.outputs.version }} --skip-validation --skip-app-build --network ${{ needs.checkTag.outputs.network }})
echo "::set-output name=cid::$(echo $PUBLISH_MESSAGE | sed -nE 's/^.*ContentURI: *([^ ]*) *.*$/\1/p')"
echo "::set-output name=contract::$(echo $PUBLISH_MESSAGE | sed -nE 's/^.*Contract address: *([^ ]*) *.*$/\1/p')"
echo "::set-output name=txhash::$(echo $PUBLISH_MESSAGE | sed -nE 's/^.*Tx hash: *([^ ]*) *.*$/\1/p')"
- name: package app
id: packaging
env:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,10 @@ jobs:
fi
- name: publish
id: publish
env:
PUBLISH_LOG: ./publish-release.log
run: |
cd apps/${{ matrix.app }}
npx hardhat publish ${{ matrix.level }} --dry-run --skip-validation --skip-app-build --network ${{ matrix.network }} | tee $PUBLISH_LOG
echo "::set-output name=version::$(cat $PUBLISH_LOG | sed -nE 's/^.*next version: *([^ ]*) *.*$/\1/p')"
PUBLISH_MESSAGE=$(npx hardhat publish ${{ matrix.level }} --dry-run --skip-validation --skip-app-build --network ${{ matrix.network }})
echo "::set-output name=version::$(echo $PUBLISH_MESSAGE | sed -nE 's/^.*next version: *([^ ]*) *.*$/\1/p')"
- name: create tag
uses: actions/github-script@v5
env:
Expand Down
51 changes: 51 additions & 0 deletions apps/minime-factory/arapp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"path": "contracts/MiniMeTokenFactory.sol",
"environments": {
"default": {
"registry": "0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1",
"appName": "minime-factory.aragonpm.eth",
"network": "rpc"
},
"harmony": {
"registry": "0x5d0d0212199b2c041483226b20f1e4ed6ca4a4de",
"appName": "minime-factory.aragonpm.eth",
"network": "harmony"
},
"harmonyTest": {
"registry": "0xbc7828fa8665c637901ad5abd5c7e647c9ab140f",
"appName": "minime-factory.aragonpm.eth",
"network": "harmonyTest"
},
"mainnet": {
"registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
"appName": "minime-factory.aragonpm.eth",
"network": "mainnet"
},
"rinkeby": {
"registry": "0x98Df287B6C145399Aaa709692c8D308357bC085D",
"appName": "minime-factory.aragonpm.eth",
"network": "rinkeby"
},
"ropsten": {
"registry": "0x6afe2cacee211ea9179992f89dc61ff25c61e923",
"appName": "minime-factory.aragonpm.eth",
"network": "ropsten"
},
"staging": {
"registry": "0xfe03625ea880a8cba336f9b5ad6e15b0a3b5a939",
"appName": "minime-factory.aragonpm.eth",
"network": "rinkeby"
},
"mumbai": {
"registry": "0x431f0eed904590b176f9ff8c36a1c4ff0ee9b982",
"appName": "minime-factory.aragonpm.eth",
"network": "mumbai"
},
"matic": {
"registry": "0x3c70a0190d09f34519e6e218364451add21b7d4b",
"appName": "minime-factory.aragonpm.eth",
"network": "matic"
}
},
"roles": []
}
4 changes: 4 additions & 0 deletions apps/minime-factory/contracts/MiniMeTokenFactory.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pragma solidity 0.4.24;

import "@aragon/apps-shared-minime/contracts/MiniMeToken.sol";

1 change: 1 addition & 0 deletions apps/minime-factory/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@aragon/hardhat-config')
11 changes: 11 additions & 0 deletions apps/minime-factory/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "MiniMeTokenFactory",
"author": "Aragon Association",
"description": "Factory of Minime tokens",
"changelog_url": "https://github.com/aragon/aragon-apps/releases",
"details_url": "/meta/details.md",
"source_url": "https://github.com/aragon/aragon-apps/blob/master/apps/minime-factory",
"icons": [
{ "src": "/meta/icon.svg", "sizes": "56x56" }
]
}
27 changes: 27 additions & 0 deletions apps/minime-factory/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "@aragon/apps-minime-factory",
"version": "1.0.0",
"author": "Aragon Association <[email protected]>",
"license": "(GPL-3.0-or-later OR AGPL-3.0-or-later)",
"files": [
"/arapp.json",
"/manifest.json",
"/hardhat-config.js",
"/public",
"/contracts"
],
"scripts": {
"compile": "hardhat compile"
},
"devDependencies": {
"@aragon/hardhat-aragon": "^1.0.0",
"@aragon/hardhat-config": "^1.0.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-etherscan": "^2.1.6",
"ethers": "^5.4.7",
"hardhat": "^2.6.5"
},
"dependencies": {
"@aragon/apps-shared-minime": "^1.0.2"
}
}
3 changes: 3 additions & 0 deletions apps/minime-factory/public/meta/details.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Minime Token Factory

Lightly modified. See [original](https://github.com/Giveth/minime).
1 change: 1 addition & 0 deletions apps/minime-factory/public/meta/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/standard-bounties/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
artifacts
File renamed without changes.
File renamed without changes.
51 changes: 51 additions & 0 deletions apps/standard-bounties/arapp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"path": "contracts/StandardBounties.sol",
"environments": {
"default": {
"registry": "0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1",
"appName": "standard-bounties.aragonpm.eth",
"network": "rpc"
},
"harmony": {
"registry": "0x5d0d0212199b2c041483226b20f1e4ed6ca4a4de",
"appName": "standard-bounties.aragonpm.eth",
"network": "harmony"
},
"harmonyTest": {
"registry": "0xbc7828fa8665c637901ad5abd5c7e647c9ab140f",
"appName": "standard-bounties.aragonpm.eth",
"network": "harmonyTest"
},
"mainnet": {
"registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
"appName": "standard-bounties.aragonpm.eth",
"network": "mainnet"
},
"rinkeby": {
"registry": "0x98Df287B6C145399Aaa709692c8D308357bC085D",
"appName": "standard-bounties.aragonpm.eth",
"network": "rinkeby"
},
"ropsten": {
"registry": "0x6afe2cacee211ea9179992f89dc61ff25c61e923",
"appName": "standard-bounties.aragonpm.eth",
"network": "ropsten"
},
"staging": {
"registry": "0xfe03625ea880a8cba336f9b5ad6e15b0a3b5a939",
"appName": "standard-bounties.aragonpm.eth",
"network": "rinkeby"
},
"mumbai": {
"registry": "0x431f0eed904590b176f9ff8c36a1c4ff0ee9b982",
"appName": "standard-bounties.aragonpm.eth",
"network": "mumbai"
},
"matic": {
"registry": "0x3c70a0190d09f34519e6e218364451add21b7d4b",
"appName": "standard-bounties.aragonpm.eth",
"network": "matic"
}
},
"roles": []
}
File renamed without changes.
4 changes: 4 additions & 0 deletions apps/standard-bounties/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const config = require('@aragon/hardhat-config')
config.solidity.version = '0.5.0'

module.exports = config
File renamed without changes.
11 changes: 11 additions & 0 deletions apps/standard-bounties/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "StandardBounties",
"author": "Aragon Association",
"description": "A generalized set of contracts to issue bounties",
"changelog_url": "https://github.com/aragon/aragon-apps/releases",
"details_url": "/meta/details.md",
"source_url": "https://github.com/aragon/aragon-apps/blob/master/apps/standard-bounties",
"icons": [
{ "src": "/meta/icon.svg", "sizes": "56x56" }
]
}
24 changes: 24 additions & 0 deletions apps/standard-bounties/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "@aragon/apps-standard-bounties",
"version": "1.0.0",
"author": "Aragon Association <[email protected]>",
"license": "(GPL-3.0-or-later OR AGPL-3.0-or-later)",
"files": [
"/arapp.json",
"/manifest.json",
"/hardhat-config.js",
"/public",
"/contracts"
],
"scripts": {
"compile": "hardhat compile"
},
"devDependencies": {
"@aragon/hardhat-aragon": "^1.0.0",
"@aragon/hardhat-config": "^1.0.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-etherscan": "^2.1.6",
"ethers": "^5.4.7",
"hardhat": "^2.6.5"
}
}
3 changes: 3 additions & 0 deletions apps/standard-bounties/public/meta/details.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# StandardBounties
A generalized set of contracts to issue bounties for any task, paying in any ERC20, ERC721, or ETH tokens.

1 change: 1 addition & 0 deletions apps/standard-bounties/public/meta/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions shared/integrations/StandardBounties/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions shared/integrations/StandardBounties/.solcover.js

This file was deleted.

1 change: 0 additions & 1 deletion shared/integrations/StandardBounties/.soliumignore

This file was deleted.

22 changes: 0 additions & 22 deletions shared/integrations/StandardBounties/.soliumrc.json

This file was deleted.

This file was deleted.

This file was deleted.

42 changes: 0 additions & 42 deletions shared/integrations/StandardBounties/package.json

This file was deleted.

Loading

0 comments on commit 785fae4

Please sign in to comment.