feat(nip11): update to nips pr nostr-protocol/nip#1821

This commit is contained in:
Kay
2025-03-25 14:37:14 +00:00
committed by fiatjaf_
parent b6f0e46a85
commit 40535e6b19
5 changed files with 21 additions and 19 deletions

View File

@ -43,17 +43,19 @@ func (info *RelayInformationDocument) AddSupportedNIPs(numbers []int) {
}
type RelayLimitationDocument struct {
MaxMessageLength int `json:"max_message_length,omitempty"`
MaxSubscriptions int `json:"max_subscriptions,omitempty"`
MaxFilters int `json:"max_filters,omitempty"`
MaxLimit int `json:"max_limit,omitempty"`
MaxSubidLength int `json:"max_subid_length,omitempty"`
MaxEventTags int `json:"max_event_tags,omitempty"`
MaxContentLength int `json:"max_content_length,omitempty"`
MinPowDifficulty int `json:"min_pow_difficulty,omitempty"`
AuthRequired bool `json:"auth_required"`
PaymentRequired bool `json:"payment_required"`
RestrictedWrites bool `json:"restricted_writes"`
MaxMessageLength int `json:"max_message_length,omitempty"`
MaxSubscriptions int `json:"max_subscriptions,omitempty"`
MaxLimit int `json:"max_limit,omitempty"`
DefaultLimit int `json:"default_limit,omitempty"`
MaxSubidLength int `json:"max_subid_length,omitempty"`
MaxEventTags int `json:"max_event_tags,omitempty"`
MaxContentLength int `json:"max_content_length,omitempty"`
MinPowDifficulty int `json:"min_pow_difficulty,omitempty"`
CreatedAtLowerLimit int64 `json:"created_at_lower_limit"`
CreatedAtUpperLimit int64 `json:"created_at_upper_limit"`
AuthRequired bool `json:"auth_required"`
PaymentRequired bool `json:"payment_required"`
RestrictedWrites bool `json:"restricted_writes"`
}
type RelayFeesDocument struct {