Type declaration
create:function
- create(base?): Subscription
Parameters
Optional
base: {
denom?: string;
deposit?: {
amount?: string;
denom?: string;
};
expiry?: Date;
free?: string;
id?: string | number | Long;
node?: string;
owner?: string;
plan?: string | number | Long;
price?: {
amount?: string;
denom?: string;
};
status?: Status;
statusAt?: Date;
}
Optional
denom?: string
Optional
deposit?: {
amount?: string;
denom?: string;
}
Optional
amount?: string
Optional
denom?: string
Optional
expiry?: Date
Optional
free?: string
Optional
id?: string | number | Long
Optional
node?: string
Optional
owner?: string
Optional
plan?: string | number | Long
Optional
price?: {
amount?: string;
denom?: string;
}
Optional
amount?: string
Optional
denom?: string
Optional
status?: Status
Optional
statusAt?: Date
decode:function
- decode(input, length?): Subscription
Parameters
input: Uint8Array | Reader
Optional
length: number
encode:function
- encode(message, writer?): Writer
Returns Writer
fromJSON:function
fromPartial:function
- fromPartial(object): Subscription
Parameters
object: {
denom?: string;
deposit?: {
amount?: string;
denom?: string;
};
expiry?: Date;
free?: string;
id?: string | number | Long;
node?: string;
owner?: string;
plan?: string | number | Long;
price?: {
amount?: string;
denom?: string;
};
status?: Status;
statusAt?: Date;
}
Optional
denom?: string
Optional
deposit?: {
amount?: string;
denom?: string;
}
Optional
amount?: string
Optional
denom?: string
Optional
expiry?: Date
Optional
free?: string
Optional
id?: string | number | Long
Optional
node?: string
Optional
owner?: string
Optional
plan?: string | number | Long
Optional
price?: {
amount?: string;
denom?: string;
}
Optional
amount?: string
Optional
denom?: string
Optional
status?: Status
Optional
statusAt?: Date
toJSON:function
- toJSON(message): unknown
Returns unknown