Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated arc.js, test env and subgraph #2072

Merged
merged 3 commits into from
Aug 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ services:
GRAPH_GRAPHQL_MAX_FIRST: 1000

ipfs:
image: daostack/test-env-experimental-ipfs:4.0.17
image: daostack/test-env-experimental-ipfs:4.0.18
ports:
- 5001:5001

postgres:
image: daostack/test-env-experimental-postgres:4.0.17
image: daostack/test-env-experimental-postgres:4.0.18
ports:
- 9432:5432
environment:
POSTGRES_PASSWORD: 'letmein'

ganache:
image: daostack/test-env-experimental-ganache:4.0.17
image: daostack/test-env-experimental-ganache:4.0.18
ports:
- 8545:8545
2 changes: 1 addition & 1 deletion docs/Alchemy_2_0_Benefits.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
## Misc
- NFT management plugin - send/mint/list
- Arc.react - enable easy custom React UI components on top of subgraph and arc.js
- 2 new Common plugins - JoinAndQuit and Funding Request.
- 2 new Common plugins - Join and Funding Request.
- Key value on chain DAO DB (implemented for Common) though can be used by other DAOs.
- Automatic etherscan/blockscout contract verification upon each DAO deployment.
33,627 changes: 26,990 additions & 6,637 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"dependencies": {
"3box": "^1.20.3",
"@burner-wallet/burner-connect-provider": "^0.1.1",
"@daostack/arc.js": "2.0.0-experimental.48",
"@daostack/arc.js": "2.0.0-experimental.50",
"@dorgtech/daocreator-ui-experimental": "1.1.12",
"@fortawesome/fontawesome-svg-core": "^1.2.10",
"@fortawesome/free-brands-svg-icons": "^5.6.1",
Expand Down Expand Up @@ -150,7 +150,7 @@
},
"devDependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@daostack/test-env-experimental": "4.0.17",
"@daostack/test-env-experimental": "4.0.18",
"@storybook/addon-info": "^5.0.10",
"@storybook/react": "^5.0.10",
"@types/chai": "^4.1.7",
Expand Down
6 changes: 3 additions & 3 deletions src/actions/arcActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ReputationFromTokenPlugin,
Proposal,
FundingRequestProposal,
JoinAndQuitProposal,
JoinProposal,
IProposalState,
} from "@daostack/arc.js";
import { IAsyncAction } from "actions/async";
Expand Down Expand Up @@ -88,8 +88,8 @@ async function tryRedeemProposal(proposalId: string, accountAddress: string, obs
case "FundingRequest":
await (proposal as FundingRequestProposal).redeem().subscribe(...observer);
break;
case "JoinAndQuit":
await (proposal as JoinAndQuitProposal).redeem().subscribe(...observer);
case "Join":
await (proposal as JoinProposal).redeem().subscribe(...observer);
break;
default:
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface IFormValues {
votingParams: IGenesisProtocolFormValues;
fundingToken: string;
};
JoinAndQuit: {
Join: {
permissions: IPermissions;
votingParams: IGenesisProtocolFormValues;
fundingToken: string;
Expand Down Expand Up @@ -218,7 +218,7 @@ const defaultValues: IFormValues = {
},
fundingToken: "0x0000000000000000000000000000000000000000",
},
JoinAndQuit: {
Join: {
votingParams: { ...votingParams },
permissions: {
registerPlugins: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ const FundingRequest = () => (
</div>
);

const JoinAndQuit = () => (
const Join = () => (
<div>
{fieldView("JoinAndQuit", "Funding Token", "fundingToken")}
{fieldView("JoinAndQuit", "Minimum Join Fee", "minFeeToJoin")}
{fieldView("JoinAndQuit", "Initial Reputation", "memberReputation")}
{fieldView("JoinAndQuit", "Funding Goal", "fundingGoal")}
{fieldView("JoinAndQuit", "Deadline", "fundingGoalDeadline")}
{fieldView("JoinAndQuit", "Allow Rage Quit", "rageQuitEnable")}
{fieldView("Join", "Funding Token", "fundingToken")}
{fieldView("Join", "Minimum Join Fee", "minFeeToJoin")}
{fieldView("Join", "Initial Reputation", "memberReputation")}
{fieldView("Join", "Funding Goal", "fundingGoal")}
{fieldView("Join", "Deadline", "fundingGoalDeadline")}
{fieldView("Join", "Allow Rage Quit", "rageQuitEnable")}
</div>
);

Expand Down Expand Up @@ -173,7 +173,7 @@ const fieldsMap = {
Competition: CompetitionFields,
ContributionRewardExt: ContributionRewardExtFields,
FundingRequest: FundingRequest,
JoinAndQuit: JoinAndQuit,
Join: Join,
SchemeRegistrar: SchemeRegistrarFields,
SchemeFactory: PluginManagerFields,
ReputationFromToken: ReputationFromTokenFields,
Expand Down
12 changes: 6 additions & 6 deletions src/subgraph_endpoints.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"http_main": "https://api.thegraph.com/subgraphs-daostack/name/daostack/TODO",
"ws_main": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/TODO",
"http_rinkeby": "https://api.thegraph.com/subgraphs-daostack/name/daostack/v8_10_exp_rinkeby",
"ws_rinkeby": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/v8_10_exp_rinkeby",
"http_kovan": "https://api.thegraph.com/subgraphs-daostack/name/daostack/v8_10_exp_kovan",
"ws_kovan": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/v8_10_exp_kovan",
"http_xdai": "https://api.thegraph.com/subgraphs-daostack/name/daostack/v8_10_exp_xdai",
"ws_xdai": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/v8_10_exp_xdai",
"http_rinkeby": "https://api.thegraph.com/subgraphs-daostack/name/daostack/v8_11_exp_rinkeby",
"ws_rinkeby": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/v8_11_exp_rinkeby",
"http_kovan": "https://api.thegraph.com/subgraphs-daostack/name/daostack/v8_11_exp_kovan",
"ws_kovan": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/v8_11_exp_kovan",
"http_xdai": "https://api.thegraph.com/subgraphs-daostack/name/daostack/v8_11_exp_xdai",
"ws_xdai": "wss://api.thegraph.com/subgraphs-daostack/name/daostack/v8_11_exp_xdai",
"http_ganache": "http://127.0.0.1:8000/subgraphs/name/daostack",
"ws_ganache": "ws://127.0.0.1:8001/subgraphs/name/daostack"
}