/
GlobalParameters.ts
76 lines (58 loc) · 1.99 KB
/
GlobalParameters.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { Expose, Type } from "class-transformer";
import * as Long from "long";
import { LongToClassSigned, LongToPlain } from "../net/adapter/TypeAdapters";
import { FeeSchedule } from "./FeeSchedule";
export class GlobalParameters {
@Type(() => FeeSchedule)
@Expose({ name: "current_fees" })
public fees: FeeSchedule;
// UInt8
@Expose({ name: "block_interval" })
public blockInterval: number;
// UInt32
@Expose({ name: "maintenance_interval" })
public maintenanceInterval: number;
// UInt8
@Expose({ name: "maintenance_skip_slots" })
public maintenanceSkipSlots: number;
// UInt32
@Expose({ name: "miner_proposal_review_period" })
public minerProposalReviewPeriod: number;
// UInt32
@Expose({ name: "maximum_transaction_size" })
public maximumTransactionSize: number;
// UInt32
@Expose({ name: "maximum_block_size" })
public maximumBlockSize: number;
// UInt32
@Expose({ name: "maximum_time_until_expiration" })
public maximumTimeUntilExpiration: number;
// UInt32
@Expose({ name: "maximum_proposal_lifetime" })
public maximumProposalLifetime: number;
// UInt8
@Expose({ name: "maximum_asset_feed_publishers" })
public maximumAssetFeedPublishers: number;
// UInt16
@Expose({ name: "maximum_miner_count" })
public maximumMinerCount: number;
// UInt16
@Expose({ name: "maximum_authority_membership" })
public maximumAuthorityMembership: number;
// UInt32
@Expose({ name: "cashback_vesting_period_seconds" })
public cashbackVestingPeriodSeconds: number;
// Int64
@LongToPlain
@LongToClassSigned
@Expose({ name: "cashback_vesting_threshold" })
public cashbackVestingThreshold: Long;
// UInt16
@Expose({ name: "max_predicate_opcode" })
public maxPredicateOpcode: number;
// UInt8
@Expose({ name: "max_authority_depth" })
public maxAuthorityDepth: number;
@Expose({ name: "extensions" })
public extensions: object[];
}