Skip to content

Commit

Permalink
Merge pull request #387 from meemproject/feature/launch
Browse files Browse the repository at this point in the history
fix: tokenId count
  • Loading branch information
kengoldfarb authored Apr 10, 2023
2 parents 2169fdb + 9d607f6 commit 2f8b229
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 193 deletions.
4 changes: 0 additions & 4 deletions src/services/Agreement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,10 +901,6 @@ export default class AgreementService {
})
])

if (tokenId === 0) {
tokenId = 1
}

const missingWalletAddresses = toAddresses.filter(a => {
const foundWallet = wallets.find(w => w.address === a)
if (foundWallet) {
Expand Down
210 changes: 105 additions & 105 deletions src/types/meem.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,73 @@ export namespace Login {



export namespace AuthenticateWithDiscord {
export interface IPathParams {}

export const path = (options: IPathParams) => `/api/1.0/discord/authenticate`

export const method = HttpMethod.Post

export interface IQueryParams {}

export interface IRequestBody {
/** The Discord authentication code */
authCode: string
/** The Discord authentication callback url */
redirectUri: string
}

export interface IResponseBody extends IApiResponseBody {
user: { [key: string]: any }
accessToken: string
}

export interface IDefinition {
pathParams: IPathParams
queryParams: IQueryParams
requestBody: IRequestBody
responseBody: IResponseBody
}

export type Response = IResponseBody | IError
}



export namespace GetDiscordServers {
export interface IPathParams {}

export const path = (options: IPathParams) => `/api/1.0/discord/servers`

export const method = HttpMethod.Get

export interface IQueryParams {
accessToken: string
}

export interface IRequestBody {
/** The Discord authentication code */
authCode: string
/** The Discord authentication callback url */
redirectUri: string
}

export interface IResponseBody extends IApiResponseBody {
discordServers: IDiscordServer[]
}

export interface IDefinition {
pathParams: IPathParams
queryParams: IQueryParams
requestBody: IRequestBody
responseBody: IResponseBody
}

export type Response = IResponseBody | IError
}



/** Bulk mint agreement role tokens */
export namespace BulkBurnAgreementRoleTokens {
export interface IPathParams {
Expand Down Expand Up @@ -2072,73 +2139,6 @@ export namespace UpgradeAgreementRole {



export namespace AuthenticateWithDiscord {
export interface IPathParams {}

export const path = (options: IPathParams) => `/api/1.0/discord/authenticate`

export const method = HttpMethod.Post

export interface IQueryParams {}

export interface IRequestBody {
/** The Discord authentication code */
authCode: string
/** The Discord authentication callback url */
redirectUri: string
}

export interface IResponseBody extends IApiResponseBody {
user: { [key: string]: any }
accessToken: string
}

export interface IDefinition {
pathParams: IPathParams
queryParams: IQueryParams
requestBody: IRequestBody
responseBody: IResponseBody
}

export type Response = IResponseBody | IError
}



export namespace GetDiscordServers {
export interface IPathParams {}

export const path = (options: IPathParams) => `/api/1.0/discord/servers`

export const method = HttpMethod.Get

export interface IQueryParams {
accessToken: string
}

export interface IRequestBody {
/** The Discord authentication code */
authCode: string
/** The Discord authentication callback url */
redirectUri: string
}

export interface IResponseBody extends IApiResponseBody {
discordServers: IDiscordServer[]
}

export interface IDefinition {
pathParams: IPathParams
queryParams: IQueryParams
requestBody: IRequestBody
responseBody: IResponseBody
}

export type Response = IResponseBody | IError
}



export namespace CreateBundle {
export interface IPathParams {}

Expand Down Expand Up @@ -2425,6 +2425,44 @@ export namespace JoinGuild {



/** Save some data to IPFS */
export namespace SaveToIPFS {
export interface IPathParams {}

export const path = () => `/api/1.0/ipfs`

export const method = HttpMethod.Post

export interface IQueryParams {}

export interface IRequestBody {
/** The data to save. Only one of "data" or "json" should be sent */
data?: string

/** The JSON to save. Only one of "data" or "json" should be sent */
json?: Record<string, any>
}

export interface IResponseBody extends IApiResponseBody {
/** The IPFS hash for the saved data */
ipfsHash: string
}

export interface IDefinition {
pathParams: IPathParams
queryParams: IQueryParams
requestBody: IRequestBody
responseBody: IResponseBody
}

export type Response = IResponseBody | IError
}

// TODO: How to specify json in OpenAPI definition




/** Create or update the current user */
export namespace CreateOrUpdateUser {
export interface IPathParams {}
Expand Down Expand Up @@ -2624,44 +2662,6 @@ export namespace UpdateUserIdentity {



/** Save some data to IPFS */
export namespace SaveToIPFS {
export interface IPathParams {}

export const path = () => `/api/1.0/ipfs`

export const method = HttpMethod.Post

export interface IQueryParams {}

export interface IRequestBody {
/** The data to save. Only one of "data" or "json" should be sent */
data?: string

/** The JSON to save. Only one of "data" or "json" should be sent */
json?: Record<string, any>
}

export interface IResponseBody extends IApiResponseBody {
/** The IPFS hash for the saved data */
ipfsHash: string
}

export interface IDefinition {
pathParams: IPathParams
queryParams: IQueryParams
requestBody: IRequestBody
responseBody: IResponseBody
}

export type Response = IResponseBody | IError
}

// TODO: How to specify json in OpenAPI definition




/** Redirect the user to this endpoint to authenticate w/ slack */
export namespace AuthenticateWithSlack {
export interface IPathParams {}
Expand Down
Loading

0 comments on commit 2f8b229

Please sign in to comment.