Skip to content

Commit

Permalink
small fixes to snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
neokry committed Jan 17, 2024
1 parent a62e2b3 commit 25b9b51
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/web/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema: https://api.goldsky.com/api/public/project_clkk1ucdyf6ak38svcatie9tf/subgraphs/nouns-builder-goerli-testnet/1.1.0/gn
schema: https://api.goldsky.com/api/public/project_clkk1ucdyf6ak38svcatie9tf/subgraphs/nouns-builder-ethereum-mainnet/1.1.0/gn
documents: 'src/data/subgraph/**/*.graphql'
generates:
src/data/subgraph/sdk.generated.ts:
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/data/subgraph/queries/daoMembersList.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ query daoMembersList(
id
owner
daoTokenCount
daoTokens {
daoTokens(first: $first) {
tokenId
mintedAt
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/data/subgraph/queries/daoMetadata.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ query daoMetadata($tokenAddress: ID!, $first: Int!) {
ipfsBaseUri
ipfsExtension
names
items(orderBy: propertyId, first: $first) {
items(orderBy: index, first: $first) {
name
propertyId
isNewProperty
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/data/subgraph/requests/memberSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const memberSnapshotRequest = async (
where: {
dao: collectionAddress.toLowerCase(),
},
first: 1000,
orderBy: DaoTokenOwner_OrderBy.DaoTokenCount,
orderDirection: OrderDirection.Desc,
})
Expand Down
12 changes: 11 additions & 1 deletion apps/web/src/data/subgraph/sdk.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ export enum Dao_OrderBy {
export type MetadataItem = {
__typename?: 'MetadataItem'
id: Scalars['ID']
index: Scalars['Int']
isNewProperty: Scalars['Boolean']
name: Scalars['String']
propertyId: Scalars['BigInt']
Expand All @@ -862,6 +863,14 @@ export type MetadataItem_Filter = {
id_lte?: InputMaybe<Scalars['ID']>
id_not?: InputMaybe<Scalars['ID']>
id_not_in?: InputMaybe<Array<Scalars['ID']>>
index?: InputMaybe<Scalars['Int']>
index_gt?: InputMaybe<Scalars['Int']>
index_gte?: InputMaybe<Scalars['Int']>
index_in?: InputMaybe<Array<Scalars['Int']>>
index_lt?: InputMaybe<Scalars['Int']>
index_lte?: InputMaybe<Scalars['Int']>
index_not?: InputMaybe<Scalars['Int']>
index_not_in?: InputMaybe<Array<Scalars['Int']>>
isNewProperty?: InputMaybe<Scalars['Boolean']>
isNewProperty_in?: InputMaybe<Array<Scalars['Boolean']>>
isNewProperty_not?: InputMaybe<Scalars['Boolean']>
Expand Down Expand Up @@ -920,6 +929,7 @@ export type MetadataItem_Filter = {

export enum MetadataItem_OrderBy {
Id = 'id',
Index = 'index',
IsNewProperty = 'isNewProperty',
Name = 'name',
PropertyId = 'propertyId',
Expand Down Expand Up @@ -2890,7 +2900,7 @@ export const DaoMetadataDocument = gql`
ipfsBaseUri
ipfsExtension
names
items(orderBy: propertyId, first: $first) {
items(orderBy: index, first: $first) {
name
propertyId
isNewProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const prepareTransactions = ({
const { founderParams, tokenParams, auctionParams, govParams } = currentDAOConfig!

const delayedGovernanceAmount = 0n
const minimumMetadataCalls = 0n
const minimumMetadataCalls = BigInt(encodedMetadata.length)

const deployerParams = encodeFunctionData({
abi: L2DeployerABI,
Expand Down

0 comments on commit 25b9b51

Please sign in to comment.