@geeqdev/geeq-sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/geeq_sdk.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.nvmrc +1 -0
- package/CONTRIBUTING.md +20 -0
- package/example/.env.example +4 -0
- package/example/README.md +304 -0
- package/example/USAGE.md +74 -0
- package/example/index.html +12 -0
- package/example/package-lock.json +1557 -0
- package/example/package.json +25 -0
- package/example/scripts/browser-check.mjs +1421 -0
- package/example/scripts/match-derivation.mjs +65 -0
- package/example/src/App.vue +138 -0
- package/example/src/components/AuthorityPanel.vue +277 -0
- package/example/src/components/ChainPanel.vue +267 -0
- package/example/src/components/ChainState.vue +59 -0
- package/example/src/components/CopyButton.vue +25 -0
- package/example/src/components/CreateAssetPanel.vue +313 -0
- package/example/src/components/DigitalAssetsPanel.vue +68 -0
- package/example/src/components/EvidencePanel.vue +396 -0
- package/example/src/components/ExplorerPanel.vue +119 -0
- package/example/src/components/KeypairPanel.vue +182 -0
- package/example/src/components/PhrasePanel.vue +105 -0
- package/example/src/components/SocketWarning.vue +18 -0
- package/example/src/components/StepGate.vue +24 -0
- package/example/src/components/TransferPanel.vue +416 -0
- package/example/src/components/TxDeadline.vue +19 -0
- package/example/src/components/TxFee.vue +31 -0
- package/example/src/components/TxStatus.vue +105 -0
- package/example/src/composables/useSocketConnection.ts +80 -0
- package/example/src/env.d.ts +12 -0
- package/example/src/main.ts +5 -0
- package/example/src/pennies.ts +7 -0
- package/example/src/style.css +149 -0
- package/example/tsconfig.json +19 -0
- package/example/vite.config.ts +26 -0
- package/jest.config.js +18 -0
- package/package.json +1 -5
- package/scripts/copy-wasm.mjs +21 -0
- package/scripts/smoke.mjs +382 -0
- package/src/address/record-type.ts +77 -0
- package/src/address/wallet-address.ts +105 -0
- package/src/amount.ts +143 -0
- package/src/assert.ts +30 -0
- package/src/capnp/README.md +15 -0
- package/src/capnp/adminNetTx.capnp.ts +66 -0
- package/src/capnp/appLayBlock.capnp.ts +26 -0
- package/src/capnp/appLayLedger.capnp.ts +35 -0
- package/src/capnp/appLayRec.capnp.ts +159 -0
- package/src/capnp/chainStateView.capnp.ts +49 -0
- package/src/capnp/coinAcctRec.capnp.ts +193 -0
- package/src/capnp/genesisBlock.capnp.ts +56 -0
- package/src/capnp/hubContentStmt.capnp.ts +59 -0
- package/src/capnp/misc.capnp.ts +19 -0
- package/src/capnp/netActorRec.capnp.ts +64 -0
- package/src/capnp/nodeContentStmt.capnp.ts +62 -0
- package/src/capnp/nodePayloadList.capnp.ts +28 -0
- package/src/capnp/nodeTxList.capnp.ts +37 -0
- package/src/capnp/paramAcctRec.capnp.ts +669 -0
- package/src/capnp/payload.capnp.ts +261 -0
- package/src/capnp/proxyAcctRec.capnp.ts +259 -0
- package/src/capnp/relayContentStmt.capnp.ts +85 -0
- package/src/capnp/sysAcctRec.capnp.ts +47 -0
- package/src/capnp/userAppTx.capnp.ts +269 -0
- package/src/capnp/userValTx.capnp.ts +1999 -0
- package/src/capnp/valLayBlock.capnp.ts +93 -0
- package/src/capnp/valLayLedger.capnp.ts +80 -0
- package/src/chain/geeq-chain.ts +1094 -0
- package/src/chain/geeq-node.ts +105 -0
- package/src/chain/nonce-guard.ts +73 -0
- package/src/chain/select.ts +149 -0
- package/src/crypto/account-id.ts +83 -0
- package/src/crypto/keypair.ts +221 -0
- package/src/crypto/mnemonic.ts +69 -0
- package/src/encoding/base64.ts +58 -0
- package/src/encoding/hex.ts +42 -0
- package/src/errors.ts +122 -0
- package/src/index.ts +195 -0
- package/src/ledger/coin-accounts.ts +73 -0
- package/src/ledger/decode.ts +147 -0
- package/src/ledger/geeq-ledger.ts +184 -0
- package/src/ledger/net-actors.ts +129 -0
- package/src/ledger/nft-records.ts +49 -0
- package/src/ledger/params.ts +82 -0
- package/src/ledger/proxy-accounts.ts +51 -0
- package/src/net/discovery.ts +231 -0
- package/src/net/explorer.ts +123 -0
- package/src/net/read-ledger.ts +58 -0
- package/src/net/routes.ts +79 -0
- package/src/net/transport.ts +221 -0
- package/src/net/websocket.ts +94 -0
- package/src/runtime/bindings.ts +38 -0
- package/src/runtime/init.ts +49 -0
- package/src/runtime/wasm-loader.browser.ts +22 -0
- package/src/runtime/wasm-loader.node.ts +16 -0
- package/src/socket/geeq-socket.ts +827 -0
- package/src/socket/tracked-tx.ts +319 -0
- package/src/socket/tx-status.ts +131 -0
- package/src/tx/attestation.ts +222 -0
- package/src/tx/content.ts +82 -0
- package/src/tx/encode.ts +107 -0
- package/src/tx/expiry.ts +11 -0
- package/src/tx/fee.ts +31 -0
- package/src/tx/metadata.ts +100 -0
- package/src/tx/nft.ts +108 -0
- package/src/tx/proxy.ts +156 -0
- package/src/tx/transfer.ts +162 -0
- package/src/types.ts +503 -0
- package/src/wasm/README.md +22 -0
- package/src/wasm/browser/geeq_core.d.ts +1224 -0
- package/src/wasm/browser/geeq_core.js +6014 -0
- package/src/wasm/browser/geeq_core_bg.wasm +0 -0
- package/src/wasm/browser/geeq_core_bg.wasm.d.ts +447 -0
- package/src/wasm/nodejs/geeq_core.d.ts +753 -0
- package/src/wasm/nodejs/geeq_core.js +6016 -0
- package/src/wasm/nodejs/geeq_core_bg.wasm +0 -0
- package/src/wasm/nodejs/geeq_core_bg.wasm.d.ts +447 -0
- package/src/wasm/nodejs/package.json +3 -0
- package/tsconfig.build.json +8 -0
- package/tsconfig.json +20 -0
- package/tsup.config.ts +60 -0
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as capnp from "capnp-ts";
|
|
8
|
+
import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
|
|
9
|
+
export const _capnpFileId = "90db5e39a2d60999";
|
|
10
|
+
export class ParamBoolean extends __S {
|
|
11
|
+
static readonly _capnp = { displayName: "ParamBoolean", id: "e96128ad27ec12cc", size: new __O(8, 0) };
|
|
12
|
+
getCurrentValue(): boolean { return __S.getBit(0, this); }
|
|
13
|
+
setCurrentValue(value: boolean): void { __S.setBit(0, value, this); }
|
|
14
|
+
getMinimumValue(): boolean { return __S.getBit(1, this); }
|
|
15
|
+
setMinimumValue(value: boolean): void { __S.setBit(1, value, this); }
|
|
16
|
+
getMaximumValue(): boolean { return __S.getBit(2, this); }
|
|
17
|
+
setMaximumValue(value: boolean): void { __S.setBit(2, value, this); }
|
|
18
|
+
toString(): string { return "ParamBoolean_" + super.toString(); }
|
|
19
|
+
}
|
|
20
|
+
export class ParamCountTwo extends __S {
|
|
21
|
+
static readonly _capnp = { displayName: "ParamCountTwo", id: "811c067fceb895d4", size: new __O(8, 0) };
|
|
22
|
+
getCurrentValue(): number { return __S.getUint16(0, this); }
|
|
23
|
+
setCurrentValue(value: number): void { __S.setUint16(0, value, this); }
|
|
24
|
+
getMinimumValue(): number { return __S.getUint16(2, this); }
|
|
25
|
+
setMinimumValue(value: number): void { __S.setUint16(2, value, this); }
|
|
26
|
+
getMaximumValue(): number { return __S.getUint16(4, this); }
|
|
27
|
+
setMaximumValue(value: number): void { __S.setUint16(4, value, this); }
|
|
28
|
+
toString(): string { return "ParamCountTwo_" + super.toString(); }
|
|
29
|
+
}
|
|
30
|
+
export class ParamCountEight extends __S {
|
|
31
|
+
static readonly _capnp = { displayName: "ParamCountEight", id: "f211b4f65dca0ff9", size: new __O(24, 0) };
|
|
32
|
+
getCurrentValue(): capnp.Uint64 { return __S.getUint64(0, this); }
|
|
33
|
+
setCurrentValue(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
|
|
34
|
+
getMinimumValue(): capnp.Uint64 { return __S.getUint64(8, this); }
|
|
35
|
+
setMinimumValue(value: capnp.Uint64): void { __S.setUint64(8, value, this); }
|
|
36
|
+
getMaximumValue(): capnp.Uint64 { return __S.getUint64(16, this); }
|
|
37
|
+
setMaximumValue(value: capnp.Uint64): void { __S.setUint64(16, value, this); }
|
|
38
|
+
toString(): string { return "ParamCountEight_" + super.toString(); }
|
|
39
|
+
}
|
|
40
|
+
export enum ParamAcctRec_ParamType_Which {
|
|
41
|
+
ALLOW_ATTEST = 7,
|
|
42
|
+
ALLOW_FUNDING_PROXIES = 8,
|
|
43
|
+
ALLOW_COINS = 0,
|
|
44
|
+
ALLOW_COUNTERPARTY = 1,
|
|
45
|
+
ALLOW_DCE = 27,
|
|
46
|
+
ALLOW_DYNAMIC_NAL = 28,
|
|
47
|
+
ALLOW_FEES = 2,
|
|
48
|
+
ALLOW_GBB = 11,
|
|
49
|
+
ALLOW_HASH_LOCKS = 3,
|
|
50
|
+
ALLOW_MICROCOINS = 4,
|
|
51
|
+
ALLOW_MULTISIG = 5,
|
|
52
|
+
ALLOW_NFT = 6,
|
|
53
|
+
ALLOW_STACKABLE = 26,
|
|
54
|
+
ALLOW_TOKEN = 9,
|
|
55
|
+
ALLOW_TREASURY = 10,
|
|
56
|
+
GBB_AMT = 13,
|
|
57
|
+
GEEQ_NORM = 14,
|
|
58
|
+
METADATA_FIXED_BYTES = 16,
|
|
59
|
+
METADATA_FIXED_NUM = 17,
|
|
60
|
+
METADATA_VAR_BYTES = 18,
|
|
61
|
+
METADATA_VAR_NUM = 19,
|
|
62
|
+
MIN_TX_AMT = 25,
|
|
63
|
+
NTL_MAX_NUM = 15,
|
|
64
|
+
RENT_INTERVAL = 20,
|
|
65
|
+
TARGET_ANCHOR_NODE = 21,
|
|
66
|
+
TARGET_ANON_NODE = 22,
|
|
67
|
+
TARGET_BLOCK_INTERVAL = 12,
|
|
68
|
+
TARGET_CERT_NODE = 23,
|
|
69
|
+
TARGET_GOSSIP_NET = 24
|
|
70
|
+
}
|
|
71
|
+
export class ParamAcctRec_ParamType extends __S {
|
|
72
|
+
static readonly ALLOW_ATTEST = ParamAcctRec_ParamType_Which.ALLOW_ATTEST;
|
|
73
|
+
static readonly ALLOW_FUNDING_PROXIES = ParamAcctRec_ParamType_Which.ALLOW_FUNDING_PROXIES;
|
|
74
|
+
static readonly ALLOW_COINS = ParamAcctRec_ParamType_Which.ALLOW_COINS;
|
|
75
|
+
static readonly ALLOW_COUNTERPARTY = ParamAcctRec_ParamType_Which.ALLOW_COUNTERPARTY;
|
|
76
|
+
static readonly ALLOW_DCE = ParamAcctRec_ParamType_Which.ALLOW_DCE;
|
|
77
|
+
static readonly ALLOW_DYNAMIC_NAL = ParamAcctRec_ParamType_Which.ALLOW_DYNAMIC_NAL;
|
|
78
|
+
static readonly ALLOW_FEES = ParamAcctRec_ParamType_Which.ALLOW_FEES;
|
|
79
|
+
static readonly ALLOW_GBB = ParamAcctRec_ParamType_Which.ALLOW_GBB;
|
|
80
|
+
static readonly ALLOW_HASH_LOCKS = ParamAcctRec_ParamType_Which.ALLOW_HASH_LOCKS;
|
|
81
|
+
static readonly ALLOW_MICROCOINS = ParamAcctRec_ParamType_Which.ALLOW_MICROCOINS;
|
|
82
|
+
static readonly ALLOW_MULTISIG = ParamAcctRec_ParamType_Which.ALLOW_MULTISIG;
|
|
83
|
+
static readonly ALLOW_NFT = ParamAcctRec_ParamType_Which.ALLOW_NFT;
|
|
84
|
+
static readonly ALLOW_STACKABLE = ParamAcctRec_ParamType_Which.ALLOW_STACKABLE;
|
|
85
|
+
static readonly ALLOW_TOKEN = ParamAcctRec_ParamType_Which.ALLOW_TOKEN;
|
|
86
|
+
static readonly ALLOW_TREASURY = ParamAcctRec_ParamType_Which.ALLOW_TREASURY;
|
|
87
|
+
static readonly GBB_AMT = ParamAcctRec_ParamType_Which.GBB_AMT;
|
|
88
|
+
static readonly GEEQ_NORM = ParamAcctRec_ParamType_Which.GEEQ_NORM;
|
|
89
|
+
static readonly METADATA_FIXED_BYTES = ParamAcctRec_ParamType_Which.METADATA_FIXED_BYTES;
|
|
90
|
+
static readonly METADATA_FIXED_NUM = ParamAcctRec_ParamType_Which.METADATA_FIXED_NUM;
|
|
91
|
+
static readonly METADATA_VAR_BYTES = ParamAcctRec_ParamType_Which.METADATA_VAR_BYTES;
|
|
92
|
+
static readonly METADATA_VAR_NUM = ParamAcctRec_ParamType_Which.METADATA_VAR_NUM;
|
|
93
|
+
static readonly MIN_TX_AMT = ParamAcctRec_ParamType_Which.MIN_TX_AMT;
|
|
94
|
+
static readonly NTL_MAX_NUM = ParamAcctRec_ParamType_Which.NTL_MAX_NUM;
|
|
95
|
+
static readonly RENT_INTERVAL = ParamAcctRec_ParamType_Which.RENT_INTERVAL;
|
|
96
|
+
static readonly TARGET_ANCHOR_NODE = ParamAcctRec_ParamType_Which.TARGET_ANCHOR_NODE;
|
|
97
|
+
static readonly TARGET_ANON_NODE = ParamAcctRec_ParamType_Which.TARGET_ANON_NODE;
|
|
98
|
+
static readonly TARGET_BLOCK_INTERVAL = ParamAcctRec_ParamType_Which.TARGET_BLOCK_INTERVAL;
|
|
99
|
+
static readonly TARGET_CERT_NODE = ParamAcctRec_ParamType_Which.TARGET_CERT_NODE;
|
|
100
|
+
static readonly TARGET_GOSSIP_NET = ParamAcctRec_ParamType_Which.TARGET_GOSSIP_NET;
|
|
101
|
+
static readonly _capnp = { displayName: "paramType", id: "d44240b7255d985f", size: new __O(8, 2) };
|
|
102
|
+
adoptAllowAttest(value: capnp.Orphan<ParamBoolean>): void {
|
|
103
|
+
__S.setUint16(4, 7, this);
|
|
104
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
105
|
+
}
|
|
106
|
+
disownAllowAttest(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowAttest()); }
|
|
107
|
+
getAllowAttest(): ParamBoolean {
|
|
108
|
+
__S.testWhich("allowAttest", __S.getUint16(4, this), 7, this);
|
|
109
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
110
|
+
}
|
|
111
|
+
hasAllowAttest(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
112
|
+
initAllowAttest(): ParamBoolean {
|
|
113
|
+
__S.setUint16(4, 7, this);
|
|
114
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
115
|
+
}
|
|
116
|
+
isAllowAttest(): boolean { return __S.getUint16(4, this) === 7; }
|
|
117
|
+
setAllowAttest(value: ParamBoolean): void {
|
|
118
|
+
__S.setUint16(4, 7, this);
|
|
119
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
120
|
+
}
|
|
121
|
+
adoptAllowFundingProxies(value: capnp.Orphan<ParamBoolean>): void {
|
|
122
|
+
__S.setUint16(4, 8, this);
|
|
123
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
124
|
+
}
|
|
125
|
+
disownAllowFundingProxies(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowFundingProxies()); }
|
|
126
|
+
getAllowFundingProxies(): ParamBoolean {
|
|
127
|
+
__S.testWhich("allowFundingProxies", __S.getUint16(4, this), 8, this);
|
|
128
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
129
|
+
}
|
|
130
|
+
hasAllowFundingProxies(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
131
|
+
initAllowFundingProxies(): ParamBoolean {
|
|
132
|
+
__S.setUint16(4, 8, this);
|
|
133
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
134
|
+
}
|
|
135
|
+
isAllowFundingProxies(): boolean { return __S.getUint16(4, this) === 8; }
|
|
136
|
+
setAllowFundingProxies(value: ParamBoolean): void {
|
|
137
|
+
__S.setUint16(4, 8, this);
|
|
138
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
139
|
+
}
|
|
140
|
+
adoptAllowCoins(value: capnp.Orphan<ParamBoolean>): void {
|
|
141
|
+
__S.setUint16(4, 0, this);
|
|
142
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
143
|
+
}
|
|
144
|
+
disownAllowCoins(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowCoins()); }
|
|
145
|
+
getAllowCoins(): ParamBoolean {
|
|
146
|
+
__S.testWhich("allowCoins", __S.getUint16(4, this), 0, this);
|
|
147
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
148
|
+
}
|
|
149
|
+
hasAllowCoins(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
150
|
+
initAllowCoins(): ParamBoolean {
|
|
151
|
+
__S.setUint16(4, 0, this);
|
|
152
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
153
|
+
}
|
|
154
|
+
isAllowCoins(): boolean { return __S.getUint16(4, this) === 0; }
|
|
155
|
+
setAllowCoins(value: ParamBoolean): void {
|
|
156
|
+
__S.setUint16(4, 0, this);
|
|
157
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
158
|
+
}
|
|
159
|
+
adoptAllowCounterparty(value: capnp.Orphan<ParamBoolean>): void {
|
|
160
|
+
__S.setUint16(4, 1, this);
|
|
161
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
162
|
+
}
|
|
163
|
+
disownAllowCounterparty(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowCounterparty()); }
|
|
164
|
+
getAllowCounterparty(): ParamBoolean {
|
|
165
|
+
__S.testWhich("allowCounterparty", __S.getUint16(4, this), 1, this);
|
|
166
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
167
|
+
}
|
|
168
|
+
hasAllowCounterparty(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
169
|
+
initAllowCounterparty(): ParamBoolean {
|
|
170
|
+
__S.setUint16(4, 1, this);
|
|
171
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
172
|
+
}
|
|
173
|
+
isAllowCounterparty(): boolean { return __S.getUint16(4, this) === 1; }
|
|
174
|
+
setAllowCounterparty(value: ParamBoolean): void {
|
|
175
|
+
__S.setUint16(4, 1, this);
|
|
176
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
177
|
+
}
|
|
178
|
+
adoptAllowDce(value: capnp.Orphan<ParamBoolean>): void {
|
|
179
|
+
__S.setUint16(4, 27, this);
|
|
180
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
181
|
+
}
|
|
182
|
+
disownAllowDce(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowDce()); }
|
|
183
|
+
getAllowDce(): ParamBoolean {
|
|
184
|
+
__S.testWhich("allowDce", __S.getUint16(4, this), 27, this);
|
|
185
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
186
|
+
}
|
|
187
|
+
hasAllowDce(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
188
|
+
initAllowDce(): ParamBoolean {
|
|
189
|
+
__S.setUint16(4, 27, this);
|
|
190
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
191
|
+
}
|
|
192
|
+
isAllowDce(): boolean { return __S.getUint16(4, this) === 27; }
|
|
193
|
+
setAllowDce(value: ParamBoolean): void {
|
|
194
|
+
__S.setUint16(4, 27, this);
|
|
195
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
196
|
+
}
|
|
197
|
+
adoptAllowDynamicNal(value: capnp.Orphan<ParamBoolean>): void {
|
|
198
|
+
__S.setUint16(4, 28, this);
|
|
199
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
200
|
+
}
|
|
201
|
+
disownAllowDynamicNal(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowDynamicNal()); }
|
|
202
|
+
getAllowDynamicNal(): ParamBoolean {
|
|
203
|
+
__S.testWhich("allowDynamicNal", __S.getUint16(4, this), 28, this);
|
|
204
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
205
|
+
}
|
|
206
|
+
hasAllowDynamicNal(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
207
|
+
initAllowDynamicNal(): ParamBoolean {
|
|
208
|
+
__S.setUint16(4, 28, this);
|
|
209
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
210
|
+
}
|
|
211
|
+
isAllowDynamicNal(): boolean { return __S.getUint16(4, this) === 28; }
|
|
212
|
+
setAllowDynamicNal(value: ParamBoolean): void {
|
|
213
|
+
__S.setUint16(4, 28, this);
|
|
214
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
215
|
+
}
|
|
216
|
+
adoptAllowFees(value: capnp.Orphan<ParamBoolean>): void {
|
|
217
|
+
__S.setUint16(4, 2, this);
|
|
218
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
219
|
+
}
|
|
220
|
+
disownAllowFees(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowFees()); }
|
|
221
|
+
getAllowFees(): ParamBoolean {
|
|
222
|
+
__S.testWhich("allowFees", __S.getUint16(4, this), 2, this);
|
|
223
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
224
|
+
}
|
|
225
|
+
hasAllowFees(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
226
|
+
initAllowFees(): ParamBoolean {
|
|
227
|
+
__S.setUint16(4, 2, this);
|
|
228
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
229
|
+
}
|
|
230
|
+
isAllowFees(): boolean { return __S.getUint16(4, this) === 2; }
|
|
231
|
+
setAllowFees(value: ParamBoolean): void {
|
|
232
|
+
__S.setUint16(4, 2, this);
|
|
233
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
234
|
+
}
|
|
235
|
+
adoptAllowGbb(value: capnp.Orphan<ParamBoolean>): void {
|
|
236
|
+
__S.setUint16(4, 11, this);
|
|
237
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
238
|
+
}
|
|
239
|
+
disownAllowGbb(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowGbb()); }
|
|
240
|
+
getAllowGbb(): ParamBoolean {
|
|
241
|
+
__S.testWhich("allowGbb", __S.getUint16(4, this), 11, this);
|
|
242
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
243
|
+
}
|
|
244
|
+
hasAllowGbb(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
245
|
+
initAllowGbb(): ParamBoolean {
|
|
246
|
+
__S.setUint16(4, 11, this);
|
|
247
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
248
|
+
}
|
|
249
|
+
isAllowGbb(): boolean { return __S.getUint16(4, this) === 11; }
|
|
250
|
+
setAllowGbb(value: ParamBoolean): void {
|
|
251
|
+
__S.setUint16(4, 11, this);
|
|
252
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
253
|
+
}
|
|
254
|
+
adoptAllowHashLocks(value: capnp.Orphan<ParamBoolean>): void {
|
|
255
|
+
__S.setUint16(4, 3, this);
|
|
256
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
257
|
+
}
|
|
258
|
+
disownAllowHashLocks(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowHashLocks()); }
|
|
259
|
+
getAllowHashLocks(): ParamBoolean {
|
|
260
|
+
__S.testWhich("allowHashLocks", __S.getUint16(4, this), 3, this);
|
|
261
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
262
|
+
}
|
|
263
|
+
hasAllowHashLocks(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
264
|
+
initAllowHashLocks(): ParamBoolean {
|
|
265
|
+
__S.setUint16(4, 3, this);
|
|
266
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
267
|
+
}
|
|
268
|
+
isAllowHashLocks(): boolean { return __S.getUint16(4, this) === 3; }
|
|
269
|
+
setAllowHashLocks(value: ParamBoolean): void {
|
|
270
|
+
__S.setUint16(4, 3, this);
|
|
271
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
272
|
+
}
|
|
273
|
+
adoptAllowMicrocoins(value: capnp.Orphan<ParamBoolean>): void {
|
|
274
|
+
__S.setUint16(4, 4, this);
|
|
275
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
276
|
+
}
|
|
277
|
+
disownAllowMicrocoins(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowMicrocoins()); }
|
|
278
|
+
getAllowMicrocoins(): ParamBoolean {
|
|
279
|
+
__S.testWhich("allowMicrocoins", __S.getUint16(4, this), 4, this);
|
|
280
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
281
|
+
}
|
|
282
|
+
hasAllowMicrocoins(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
283
|
+
initAllowMicrocoins(): ParamBoolean {
|
|
284
|
+
__S.setUint16(4, 4, this);
|
|
285
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
286
|
+
}
|
|
287
|
+
isAllowMicrocoins(): boolean { return __S.getUint16(4, this) === 4; }
|
|
288
|
+
setAllowMicrocoins(value: ParamBoolean): void {
|
|
289
|
+
__S.setUint16(4, 4, this);
|
|
290
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
291
|
+
}
|
|
292
|
+
adoptAllowMultisig(value: capnp.Orphan<ParamBoolean>): void {
|
|
293
|
+
__S.setUint16(4, 5, this);
|
|
294
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
295
|
+
}
|
|
296
|
+
disownAllowMultisig(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowMultisig()); }
|
|
297
|
+
getAllowMultisig(): ParamBoolean {
|
|
298
|
+
__S.testWhich("allowMultisig", __S.getUint16(4, this), 5, this);
|
|
299
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
300
|
+
}
|
|
301
|
+
hasAllowMultisig(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
302
|
+
initAllowMultisig(): ParamBoolean {
|
|
303
|
+
__S.setUint16(4, 5, this);
|
|
304
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
305
|
+
}
|
|
306
|
+
isAllowMultisig(): boolean { return __S.getUint16(4, this) === 5; }
|
|
307
|
+
setAllowMultisig(value: ParamBoolean): void {
|
|
308
|
+
__S.setUint16(4, 5, this);
|
|
309
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
310
|
+
}
|
|
311
|
+
adoptAllowNft(value: capnp.Orphan<ParamBoolean>): void {
|
|
312
|
+
__S.setUint16(4, 6, this);
|
|
313
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
314
|
+
}
|
|
315
|
+
disownAllowNft(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowNft()); }
|
|
316
|
+
getAllowNft(): ParamBoolean {
|
|
317
|
+
__S.testWhich("allowNft", __S.getUint16(4, this), 6, this);
|
|
318
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
319
|
+
}
|
|
320
|
+
hasAllowNft(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
321
|
+
initAllowNft(): ParamBoolean {
|
|
322
|
+
__S.setUint16(4, 6, this);
|
|
323
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
324
|
+
}
|
|
325
|
+
isAllowNft(): boolean { return __S.getUint16(4, this) === 6; }
|
|
326
|
+
setAllowNft(value: ParamBoolean): void {
|
|
327
|
+
__S.setUint16(4, 6, this);
|
|
328
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
329
|
+
}
|
|
330
|
+
adoptAllowStackable(value: capnp.Orphan<ParamBoolean>): void {
|
|
331
|
+
__S.setUint16(4, 26, this);
|
|
332
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
333
|
+
}
|
|
334
|
+
disownAllowStackable(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowStackable()); }
|
|
335
|
+
getAllowStackable(): ParamBoolean {
|
|
336
|
+
__S.testWhich("allowStackable", __S.getUint16(4, this), 26, this);
|
|
337
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
338
|
+
}
|
|
339
|
+
hasAllowStackable(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
340
|
+
initAllowStackable(): ParamBoolean {
|
|
341
|
+
__S.setUint16(4, 26, this);
|
|
342
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
343
|
+
}
|
|
344
|
+
isAllowStackable(): boolean { return __S.getUint16(4, this) === 26; }
|
|
345
|
+
setAllowStackable(value: ParamBoolean): void {
|
|
346
|
+
__S.setUint16(4, 26, this);
|
|
347
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
348
|
+
}
|
|
349
|
+
adoptAllowToken(value: capnp.Orphan<ParamBoolean>): void {
|
|
350
|
+
__S.setUint16(4, 9, this);
|
|
351
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
352
|
+
}
|
|
353
|
+
disownAllowToken(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowToken()); }
|
|
354
|
+
getAllowToken(): ParamBoolean {
|
|
355
|
+
__S.testWhich("allowToken", __S.getUint16(4, this), 9, this);
|
|
356
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
357
|
+
}
|
|
358
|
+
hasAllowToken(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
359
|
+
initAllowToken(): ParamBoolean {
|
|
360
|
+
__S.setUint16(4, 9, this);
|
|
361
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
362
|
+
}
|
|
363
|
+
isAllowToken(): boolean { return __S.getUint16(4, this) === 9; }
|
|
364
|
+
setAllowToken(value: ParamBoolean): void {
|
|
365
|
+
__S.setUint16(4, 9, this);
|
|
366
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
367
|
+
}
|
|
368
|
+
adoptAllowTreasury(value: capnp.Orphan<ParamBoolean>): void {
|
|
369
|
+
__S.setUint16(4, 10, this);
|
|
370
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
371
|
+
}
|
|
372
|
+
disownAllowTreasury(): capnp.Orphan<ParamBoolean> { return __S.disown(this.getAllowTreasury()); }
|
|
373
|
+
getAllowTreasury(): ParamBoolean {
|
|
374
|
+
__S.testWhich("allowTreasury", __S.getUint16(4, this), 10, this);
|
|
375
|
+
return __S.getStruct(0, ParamBoolean, this);
|
|
376
|
+
}
|
|
377
|
+
hasAllowTreasury(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
378
|
+
initAllowTreasury(): ParamBoolean {
|
|
379
|
+
__S.setUint16(4, 10, this);
|
|
380
|
+
return __S.initStructAt(0, ParamBoolean, this);
|
|
381
|
+
}
|
|
382
|
+
isAllowTreasury(): boolean { return __S.getUint16(4, this) === 10; }
|
|
383
|
+
setAllowTreasury(value: ParamBoolean): void {
|
|
384
|
+
__S.setUint16(4, 10, this);
|
|
385
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
386
|
+
}
|
|
387
|
+
adoptGbbAmt(value: capnp.Orphan<ParamCountEight>): void {
|
|
388
|
+
__S.setUint16(4, 13, this);
|
|
389
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
390
|
+
}
|
|
391
|
+
disownGbbAmt(): capnp.Orphan<ParamCountEight> { return __S.disown(this.getGbbAmt()); }
|
|
392
|
+
getGbbAmt(): ParamCountEight {
|
|
393
|
+
__S.testWhich("gbbAmt", __S.getUint16(4, this), 13, this);
|
|
394
|
+
return __S.getStruct(0, ParamCountEight, this);
|
|
395
|
+
}
|
|
396
|
+
hasGbbAmt(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
397
|
+
initGbbAmt(): ParamCountEight {
|
|
398
|
+
__S.setUint16(4, 13, this);
|
|
399
|
+
return __S.initStructAt(0, ParamCountEight, this);
|
|
400
|
+
}
|
|
401
|
+
isGbbAmt(): boolean { return __S.getUint16(4, this) === 13; }
|
|
402
|
+
setGbbAmt(value: ParamCountEight): void {
|
|
403
|
+
__S.setUint16(4, 13, this);
|
|
404
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
405
|
+
}
|
|
406
|
+
adoptGeeqNorm(value: capnp.Orphan<ParamCountEight>): void {
|
|
407
|
+
__S.setUint16(4, 14, this);
|
|
408
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
409
|
+
}
|
|
410
|
+
disownGeeqNorm(): capnp.Orphan<ParamCountEight> { return __S.disown(this.getGeeqNorm()); }
|
|
411
|
+
getGeeqNorm(): ParamCountEight {
|
|
412
|
+
__S.testWhich("geeqNorm", __S.getUint16(4, this), 14, this);
|
|
413
|
+
return __S.getStruct(0, ParamCountEight, this);
|
|
414
|
+
}
|
|
415
|
+
hasGeeqNorm(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
416
|
+
initGeeqNorm(): ParamCountEight {
|
|
417
|
+
__S.setUint16(4, 14, this);
|
|
418
|
+
return __S.initStructAt(0, ParamCountEight, this);
|
|
419
|
+
}
|
|
420
|
+
isGeeqNorm(): boolean { return __S.getUint16(4, this) === 14; }
|
|
421
|
+
setGeeqNorm(value: ParamCountEight): void {
|
|
422
|
+
__S.setUint16(4, 14, this);
|
|
423
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
424
|
+
}
|
|
425
|
+
adoptMetadataFixedBytes(value: capnp.Orphan<ParamCountTwo>): void {
|
|
426
|
+
__S.setUint16(4, 16, this);
|
|
427
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
428
|
+
}
|
|
429
|
+
disownMetadataFixedBytes(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getMetadataFixedBytes()); }
|
|
430
|
+
getMetadataFixedBytes(): ParamCountTwo {
|
|
431
|
+
__S.testWhich("metadataFixedBytes", __S.getUint16(4, this), 16, this);
|
|
432
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
433
|
+
}
|
|
434
|
+
hasMetadataFixedBytes(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
435
|
+
initMetadataFixedBytes(): ParamCountTwo {
|
|
436
|
+
__S.setUint16(4, 16, this);
|
|
437
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
438
|
+
}
|
|
439
|
+
isMetadataFixedBytes(): boolean { return __S.getUint16(4, this) === 16; }
|
|
440
|
+
setMetadataFixedBytes(value: ParamCountTwo): void {
|
|
441
|
+
__S.setUint16(4, 16, this);
|
|
442
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
443
|
+
}
|
|
444
|
+
adoptMetadataFixedNum(value: capnp.Orphan<ParamCountTwo>): void {
|
|
445
|
+
__S.setUint16(4, 17, this);
|
|
446
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
447
|
+
}
|
|
448
|
+
disownMetadataFixedNum(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getMetadataFixedNum()); }
|
|
449
|
+
getMetadataFixedNum(): ParamCountTwo {
|
|
450
|
+
__S.testWhich("metadataFixedNum", __S.getUint16(4, this), 17, this);
|
|
451
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
452
|
+
}
|
|
453
|
+
hasMetadataFixedNum(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
454
|
+
initMetadataFixedNum(): ParamCountTwo {
|
|
455
|
+
__S.setUint16(4, 17, this);
|
|
456
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
457
|
+
}
|
|
458
|
+
isMetadataFixedNum(): boolean { return __S.getUint16(4, this) === 17; }
|
|
459
|
+
setMetadataFixedNum(value: ParamCountTwo): void {
|
|
460
|
+
__S.setUint16(4, 17, this);
|
|
461
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
462
|
+
}
|
|
463
|
+
adoptMetadataVarBytes(value: capnp.Orphan<ParamCountTwo>): void {
|
|
464
|
+
__S.setUint16(4, 18, this);
|
|
465
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
466
|
+
}
|
|
467
|
+
disownMetadataVarBytes(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getMetadataVarBytes()); }
|
|
468
|
+
getMetadataVarBytes(): ParamCountTwo {
|
|
469
|
+
__S.testWhich("metadataVarBytes", __S.getUint16(4, this), 18, this);
|
|
470
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
471
|
+
}
|
|
472
|
+
hasMetadataVarBytes(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
473
|
+
initMetadataVarBytes(): ParamCountTwo {
|
|
474
|
+
__S.setUint16(4, 18, this);
|
|
475
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
476
|
+
}
|
|
477
|
+
isMetadataVarBytes(): boolean { return __S.getUint16(4, this) === 18; }
|
|
478
|
+
setMetadataVarBytes(value: ParamCountTwo): void {
|
|
479
|
+
__S.setUint16(4, 18, this);
|
|
480
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
481
|
+
}
|
|
482
|
+
adoptMetadataVarNum(value: capnp.Orphan<ParamCountTwo>): void {
|
|
483
|
+
__S.setUint16(4, 19, this);
|
|
484
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
485
|
+
}
|
|
486
|
+
disownMetadataVarNum(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getMetadataVarNum()); }
|
|
487
|
+
getMetadataVarNum(): ParamCountTwo {
|
|
488
|
+
__S.testWhich("metadataVarNum", __S.getUint16(4, this), 19, this);
|
|
489
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
490
|
+
}
|
|
491
|
+
hasMetadataVarNum(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
492
|
+
initMetadataVarNum(): ParamCountTwo {
|
|
493
|
+
__S.setUint16(4, 19, this);
|
|
494
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
495
|
+
}
|
|
496
|
+
isMetadataVarNum(): boolean { return __S.getUint16(4, this) === 19; }
|
|
497
|
+
setMetadataVarNum(value: ParamCountTwo): void {
|
|
498
|
+
__S.setUint16(4, 19, this);
|
|
499
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
500
|
+
}
|
|
501
|
+
adoptMinTxAmt(value: capnp.Orphan<ParamCountEight>): void {
|
|
502
|
+
__S.setUint16(4, 25, this);
|
|
503
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
504
|
+
}
|
|
505
|
+
disownMinTxAmt(): capnp.Orphan<ParamCountEight> { return __S.disown(this.getMinTxAmt()); }
|
|
506
|
+
getMinTxAmt(): ParamCountEight {
|
|
507
|
+
__S.testWhich("minTxAmt", __S.getUint16(4, this), 25, this);
|
|
508
|
+
return __S.getStruct(0, ParamCountEight, this);
|
|
509
|
+
}
|
|
510
|
+
hasMinTxAmt(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
511
|
+
initMinTxAmt(): ParamCountEight {
|
|
512
|
+
__S.setUint16(4, 25, this);
|
|
513
|
+
return __S.initStructAt(0, ParamCountEight, this);
|
|
514
|
+
}
|
|
515
|
+
isMinTxAmt(): boolean { return __S.getUint16(4, this) === 25; }
|
|
516
|
+
setMinTxAmt(value: ParamCountEight): void {
|
|
517
|
+
__S.setUint16(4, 25, this);
|
|
518
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
519
|
+
}
|
|
520
|
+
adoptNtlMaxNum(value: capnp.Orphan<ParamCountTwo>): void {
|
|
521
|
+
__S.setUint16(4, 15, this);
|
|
522
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
523
|
+
}
|
|
524
|
+
disownNtlMaxNum(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getNtlMaxNum()); }
|
|
525
|
+
getNtlMaxNum(): ParamCountTwo {
|
|
526
|
+
__S.testWhich("ntlMaxNum", __S.getUint16(4, this), 15, this);
|
|
527
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
528
|
+
}
|
|
529
|
+
hasNtlMaxNum(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
530
|
+
initNtlMaxNum(): ParamCountTwo {
|
|
531
|
+
__S.setUint16(4, 15, this);
|
|
532
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
533
|
+
}
|
|
534
|
+
isNtlMaxNum(): boolean { return __S.getUint16(4, this) === 15; }
|
|
535
|
+
setNtlMaxNum(value: ParamCountTwo): void {
|
|
536
|
+
__S.setUint16(4, 15, this);
|
|
537
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
538
|
+
}
|
|
539
|
+
adoptRentInterval(value: capnp.Orphan<ParamCountEight>): void {
|
|
540
|
+
__S.setUint16(4, 20, this);
|
|
541
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
542
|
+
}
|
|
543
|
+
disownRentInterval(): capnp.Orphan<ParamCountEight> { return __S.disown(this.getRentInterval()); }
|
|
544
|
+
getRentInterval(): ParamCountEight {
|
|
545
|
+
__S.testWhich("rentInterval", __S.getUint16(4, this), 20, this);
|
|
546
|
+
return __S.getStruct(0, ParamCountEight, this);
|
|
547
|
+
}
|
|
548
|
+
hasRentInterval(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
549
|
+
initRentInterval(): ParamCountEight {
|
|
550
|
+
__S.setUint16(4, 20, this);
|
|
551
|
+
return __S.initStructAt(0, ParamCountEight, this);
|
|
552
|
+
}
|
|
553
|
+
isRentInterval(): boolean { return __S.getUint16(4, this) === 20; }
|
|
554
|
+
setRentInterval(value: ParamCountEight): void {
|
|
555
|
+
__S.setUint16(4, 20, this);
|
|
556
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
557
|
+
}
|
|
558
|
+
adoptTargetAnchorNode(value: capnp.Orphan<ParamCountTwo>): void {
|
|
559
|
+
__S.setUint16(4, 21, this);
|
|
560
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
561
|
+
}
|
|
562
|
+
disownTargetAnchorNode(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getTargetAnchorNode()); }
|
|
563
|
+
getTargetAnchorNode(): ParamCountTwo {
|
|
564
|
+
__S.testWhich("targetAnchorNode", __S.getUint16(4, this), 21, this);
|
|
565
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
566
|
+
}
|
|
567
|
+
hasTargetAnchorNode(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
568
|
+
initTargetAnchorNode(): ParamCountTwo {
|
|
569
|
+
__S.setUint16(4, 21, this);
|
|
570
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
571
|
+
}
|
|
572
|
+
isTargetAnchorNode(): boolean { return __S.getUint16(4, this) === 21; }
|
|
573
|
+
setTargetAnchorNode(value: ParamCountTwo): void {
|
|
574
|
+
__S.setUint16(4, 21, this);
|
|
575
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
576
|
+
}
|
|
577
|
+
adoptTargetAnonNode(value: capnp.Orphan<ParamCountTwo>): void {
|
|
578
|
+
__S.setUint16(4, 22, this);
|
|
579
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
580
|
+
}
|
|
581
|
+
disownTargetAnonNode(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getTargetAnonNode()); }
|
|
582
|
+
getTargetAnonNode(): ParamCountTwo {
|
|
583
|
+
__S.testWhich("targetAnonNode", __S.getUint16(4, this), 22, this);
|
|
584
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
585
|
+
}
|
|
586
|
+
hasTargetAnonNode(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
587
|
+
initTargetAnonNode(): ParamCountTwo {
|
|
588
|
+
__S.setUint16(4, 22, this);
|
|
589
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
590
|
+
}
|
|
591
|
+
isTargetAnonNode(): boolean { return __S.getUint16(4, this) === 22; }
|
|
592
|
+
setTargetAnonNode(value: ParamCountTwo): void {
|
|
593
|
+
__S.setUint16(4, 22, this);
|
|
594
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
595
|
+
}
|
|
596
|
+
adoptTargetBlockInterval(value: capnp.Orphan<ParamCountEight>): void {
|
|
597
|
+
__S.setUint16(4, 12, this);
|
|
598
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
599
|
+
}
|
|
600
|
+
disownTargetBlockInterval(): capnp.Orphan<ParamCountEight> { return __S.disown(this.getTargetBlockInterval()); }
|
|
601
|
+
getTargetBlockInterval(): ParamCountEight {
|
|
602
|
+
__S.testWhich("targetBlockInterval", __S.getUint16(4, this), 12, this);
|
|
603
|
+
return __S.getStruct(0, ParamCountEight, this);
|
|
604
|
+
}
|
|
605
|
+
hasTargetBlockInterval(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
606
|
+
initTargetBlockInterval(): ParamCountEight {
|
|
607
|
+
__S.setUint16(4, 12, this);
|
|
608
|
+
return __S.initStructAt(0, ParamCountEight, this);
|
|
609
|
+
}
|
|
610
|
+
isTargetBlockInterval(): boolean { return __S.getUint16(4, this) === 12; }
|
|
611
|
+
setTargetBlockInterval(value: ParamCountEight): void {
|
|
612
|
+
__S.setUint16(4, 12, this);
|
|
613
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
614
|
+
}
|
|
615
|
+
adoptTargetCertNode(value: capnp.Orphan<ParamCountTwo>): void {
|
|
616
|
+
__S.setUint16(4, 23, this);
|
|
617
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
618
|
+
}
|
|
619
|
+
disownTargetCertNode(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getTargetCertNode()); }
|
|
620
|
+
getTargetCertNode(): ParamCountTwo {
|
|
621
|
+
__S.testWhich("targetCertNode", __S.getUint16(4, this), 23, this);
|
|
622
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
623
|
+
}
|
|
624
|
+
hasTargetCertNode(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
625
|
+
initTargetCertNode(): ParamCountTwo {
|
|
626
|
+
__S.setUint16(4, 23, this);
|
|
627
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
628
|
+
}
|
|
629
|
+
isTargetCertNode(): boolean { return __S.getUint16(4, this) === 23; }
|
|
630
|
+
setTargetCertNode(value: ParamCountTwo): void {
|
|
631
|
+
__S.setUint16(4, 23, this);
|
|
632
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
633
|
+
}
|
|
634
|
+
adoptTargetGossipNet(value: capnp.Orphan<ParamCountTwo>): void {
|
|
635
|
+
__S.setUint16(4, 24, this);
|
|
636
|
+
__S.adopt(value, __S.getPointer(0, this));
|
|
637
|
+
}
|
|
638
|
+
disownTargetGossipNet(): capnp.Orphan<ParamCountTwo> { return __S.disown(this.getTargetGossipNet()); }
|
|
639
|
+
getTargetGossipNet(): ParamCountTwo {
|
|
640
|
+
__S.testWhich("targetGossipNet", __S.getUint16(4, this), 24, this);
|
|
641
|
+
return __S.getStruct(0, ParamCountTwo, this);
|
|
642
|
+
}
|
|
643
|
+
hasTargetGossipNet(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
|
|
644
|
+
initTargetGossipNet(): ParamCountTwo {
|
|
645
|
+
__S.setUint16(4, 24, this);
|
|
646
|
+
return __S.initStructAt(0, ParamCountTwo, this);
|
|
647
|
+
}
|
|
648
|
+
isTargetGossipNet(): boolean { return __S.getUint16(4, this) === 24; }
|
|
649
|
+
setTargetGossipNet(value: ParamCountTwo): void {
|
|
650
|
+
__S.setUint16(4, 24, this);
|
|
651
|
+
__S.copyFrom(value, __S.getPointer(0, this));
|
|
652
|
+
}
|
|
653
|
+
toString(): string { return "ParamAcctRec_ParamType_" + super.toString(); }
|
|
654
|
+
which(): ParamAcctRec_ParamType_Which { return __S.getUint16(4, this); }
|
|
655
|
+
}
|
|
656
|
+
export class ParamAcctRec extends __S {
|
|
657
|
+
static readonly _capnp = { displayName: "ParamAcctRec", id: "95f6e18b915682ef", size: new __O(8, 2) };
|
|
658
|
+
getParamType(): ParamAcctRec_ParamType { return __S.getAs(ParamAcctRec_ParamType, this); }
|
|
659
|
+
initParamType(): ParamAcctRec_ParamType { return __S.getAs(ParamAcctRec_ParamType, this); }
|
|
660
|
+
getNonce(): number { return __S.getUint32(0, this); }
|
|
661
|
+
setNonce(value: number): void { __S.setUint32(0, value, this); }
|
|
662
|
+
adoptAcctNumVal(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
|
|
663
|
+
disownAcctNumVal(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumVal()); }
|
|
664
|
+
getAcctNumVal(): capnp.Data { return __S.getData(1, this); }
|
|
665
|
+
hasAcctNumVal(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
|
|
666
|
+
initAcctNumVal(length: number): capnp.Data { return __S.initData(1, length, this); }
|
|
667
|
+
setAcctNumVal(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
|
|
668
|
+
toString(): string { return "ParamAcctRec_" + super.toString(); }
|
|
669
|
+
}
|