Skip to content

Commit

Permalink
Merge pull request #425 from HausDAO/feature/27092023-update-sweep
Browse files Browse the repository at this point in the history
Feature/27092023 update sweep
  • Loading branch information
skuhlmann authored Sep 27, 2023
2 parents de3c574 + 6bde5aa commit f5212fe
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 77 deletions.
9 changes: 6 additions & 3 deletions libs/contract-utils/src/lib/summon-tx-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const encodeTokenParams = (formValues: SummonParams) => {
throw new Error('Encoding Error');
};

const governanceConfigTX = (formValues: SummonParams) => {
export const governanceConfigTX = (formValues: SummonParams) => {
const {
votingPeriodInSeconds,
gracePeriodInSeconds,
Expand Down Expand Up @@ -197,7 +197,10 @@ export const shamanConfigTX = (formValues: SummonParams) => {
throw new Error('Encoding Error');
};

const metadataConfigTX = (formValues: SummonParams, posterAddress: string) => {
export const metadataConfigTX = (
formValues: SummonParams,
posterAddress: string
) => {
const { daoName } = formValues;
if (!isString(daoName)) {
console.log('ERROR: Form Values', formValues);
Expand All @@ -221,7 +224,7 @@ const metadataConfigTX = (formValues: SummonParams, posterAddress: string) => {
};

// THIS IS ONLY USED IN V3_FACTORY_ORIGINAL CONTRACT
const tokenConfigTX = (formValues: SummonParams) => {
export const tokenConfigTX = (formValues: SummonParams) => {
const pauseVoteToken = !formValues.votingTransferable;
const pauseNvToken = !formValues.nvTransferable;

Expand Down
32 changes: 0 additions & 32 deletions libs/moloch-v3-data/codegen-ens.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions libs/moloch-v3-data/codegen-lens.yaml

This file was deleted.

8 changes: 2 additions & 6 deletions libs/moloch-v3-data/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,15 @@
"executor": "nx:run-commands",
"options": {
"commands": [
"get-graphql-schema https://api.thegraph.com/subgraphs/name/hausdao/daohaus-v3-goerli > libs/moloch-v3-data/src/subgraph/schema.graphql",
"get-graphql-schema https://api.thegraph.com/subgraphs/name/ensdomains/ens > libs/moloch-v3-data/src/subgraph/schema-ens.graphql",
"get-graphql-schema https://api.lens.dev > libs/moloch-v3-data/src/subgraph/schema-lens.graphql"
"get-graphql-schema https://api.thegraph.com/subgraphs/name/hausdao/daohaus-v3-goerli > libs/moloch-v3-data/src/subgraph/schema.graphql"
]
}
},
"generate-gql-types": {
"executor": "nx:run-commands",
"options": {
"commands": [
"graphql-codegen --config libs/moloch-v3-data/codegen.yaml",
"graphql-codegen --config libs/moloch-v3-data/codegen-ens.yaml",
"graphql-codegen --config libs/moloch-v3-data/codegen-lens.yaml"
"graphql-codegen --config libs/moloch-v3-data/codegen.yaml"
]
}
}
Expand Down
6 changes: 3 additions & 3 deletions libs/moloch-v3-data/src/subgraph/queries/daos.generated.ts

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion libs/moloch-v3-data/src/subgraph/queries/daos.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ fragment daoFields on Dao {
contentType
content
}
shamen: shaman {
shamen: shaman(
orderBy: createdAt
orderDirection: desc
) {
id
createdAt
shamanAddress
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './DaoOverview';
export * from './DaoProfile';

0 comments on commit f5212fe

Please sign in to comment.