Releases: guildxyz/guild-sdk
Releases · guildxyz/guild-sdk
v2.4.0
v2.3.0
Improved typing for requirements
- The
type
field of a requirement is now a union type of all the possible requirement types - The
data
field is implemented for the following requirement types:FREE
,ALLOWLIST
,POINTS_TOTAL_AMOUNT
,POINTS_AMOUNT
,POINTS_RANK
,EMAIL_DOMAIN
,EMAIL_VERIFIED
- Note, that requirements will also be more strictly validated within the SDK itself, for example, submitting a
{ type: "ALLOWLIST", data: { addresses: [""] } }
as a requirement won't pass validation, as each entry must be a valid address