fix: use Spec for PaymentSpec
This commit is contained in:
parent
8df0dc2f52
commit
16b9d93dca
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ class StorageSpec(Spec):
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
class AuthSpec(BaseModel):
|
class AuthSpec(Spec):
|
||||||
require_auth_events = Field(False, alias="requireAuthEvents")
|
require_auth_events = Field(False, alias="requireAuthEvents")
|
||||||
skiped_auth_events = Field([], alias="skipedAuthEvents")
|
skiped_auth_events = Field([], alias="skipedAuthEvents")
|
||||||
forced_auth_events = Field([], alias="forcedAuthEvents")
|
forced_auth_events = Field([], alias="forcedAuthEvents")
|
||||||
|
|
@ -72,7 +72,7 @@ class AuthSpec(BaseModel):
|
||||||
return kind in self.forced_auth_events
|
return kind in self.forced_auth_events
|
||||||
|
|
||||||
|
|
||||||
class PaymentSpec(BaseModel):
|
class PaymentSpec(Spec):
|
||||||
is_paid_relay = Field(False, alias="isPaidRelay")
|
is_paid_relay = Field(False, alias="isPaidRelay")
|
||||||
cost_to_join = Field(0, alias="costToJoin")
|
cost_to_join = Field(0, alias="costToJoin")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue