@geeqdev/geeq-sdk 0.0.1 → 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.
Files changed (122) hide show
  1. package/.idea/geeq_sdk.iml +12 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/.nvmrc +1 -0
  5. package/CONTRIBUTING.md +20 -0
  6. package/example/.env.example +4 -0
  7. package/example/README.md +304 -0
  8. package/example/USAGE.md +74 -0
  9. package/example/index.html +12 -0
  10. package/example/package-lock.json +1557 -0
  11. package/example/package.json +25 -0
  12. package/example/scripts/browser-check.mjs +1421 -0
  13. package/example/scripts/match-derivation.mjs +65 -0
  14. package/example/src/App.vue +138 -0
  15. package/example/src/components/AuthorityPanel.vue +277 -0
  16. package/example/src/components/ChainPanel.vue +267 -0
  17. package/example/src/components/ChainState.vue +59 -0
  18. package/example/src/components/CopyButton.vue +25 -0
  19. package/example/src/components/CreateAssetPanel.vue +313 -0
  20. package/example/src/components/DigitalAssetsPanel.vue +68 -0
  21. package/example/src/components/EvidencePanel.vue +396 -0
  22. package/example/src/components/ExplorerPanel.vue +119 -0
  23. package/example/src/components/KeypairPanel.vue +182 -0
  24. package/example/src/components/PhrasePanel.vue +105 -0
  25. package/example/src/components/SocketWarning.vue +18 -0
  26. package/example/src/components/StepGate.vue +24 -0
  27. package/example/src/components/TransferPanel.vue +416 -0
  28. package/example/src/components/TxDeadline.vue +19 -0
  29. package/example/src/components/TxFee.vue +31 -0
  30. package/example/src/components/TxStatus.vue +105 -0
  31. package/example/src/composables/useSocketConnection.ts +80 -0
  32. package/example/src/env.d.ts +12 -0
  33. package/example/src/main.ts +5 -0
  34. package/example/src/pennies.ts +7 -0
  35. package/example/src/style.css +149 -0
  36. package/example/tsconfig.json +19 -0
  37. package/example/vite.config.ts +26 -0
  38. package/jest.config.js +18 -0
  39. package/package.json +1 -5
  40. package/scripts/copy-wasm.mjs +21 -0
  41. package/scripts/smoke.mjs +382 -0
  42. package/src/address/record-type.ts +77 -0
  43. package/src/address/wallet-address.ts +105 -0
  44. package/src/amount.ts +143 -0
  45. package/src/assert.ts +30 -0
  46. package/src/capnp/README.md +15 -0
  47. package/src/capnp/adminNetTx.capnp.ts +66 -0
  48. package/src/capnp/appLayBlock.capnp.ts +26 -0
  49. package/src/capnp/appLayLedger.capnp.ts +35 -0
  50. package/src/capnp/appLayRec.capnp.ts +159 -0
  51. package/src/capnp/chainStateView.capnp.ts +49 -0
  52. package/src/capnp/coinAcctRec.capnp.ts +193 -0
  53. package/src/capnp/genesisBlock.capnp.ts +56 -0
  54. package/src/capnp/hubContentStmt.capnp.ts +59 -0
  55. package/src/capnp/misc.capnp.ts +19 -0
  56. package/src/capnp/netActorRec.capnp.ts +64 -0
  57. package/src/capnp/nodeContentStmt.capnp.ts +62 -0
  58. package/src/capnp/nodePayloadList.capnp.ts +28 -0
  59. package/src/capnp/nodeTxList.capnp.ts +37 -0
  60. package/src/capnp/paramAcctRec.capnp.ts +669 -0
  61. package/src/capnp/payload.capnp.ts +261 -0
  62. package/src/capnp/proxyAcctRec.capnp.ts +259 -0
  63. package/src/capnp/relayContentStmt.capnp.ts +85 -0
  64. package/src/capnp/sysAcctRec.capnp.ts +47 -0
  65. package/src/capnp/userAppTx.capnp.ts +269 -0
  66. package/src/capnp/userValTx.capnp.ts +1999 -0
  67. package/src/capnp/valLayBlock.capnp.ts +93 -0
  68. package/src/capnp/valLayLedger.capnp.ts +80 -0
  69. package/src/chain/geeq-chain.ts +1094 -0
  70. package/src/chain/geeq-node.ts +105 -0
  71. package/src/chain/nonce-guard.ts +73 -0
  72. package/src/chain/select.ts +149 -0
  73. package/src/crypto/account-id.ts +83 -0
  74. package/src/crypto/keypair.ts +221 -0
  75. package/src/crypto/mnemonic.ts +69 -0
  76. package/src/encoding/base64.ts +58 -0
  77. package/src/encoding/hex.ts +42 -0
  78. package/src/errors.ts +122 -0
  79. package/src/index.ts +195 -0
  80. package/src/ledger/coin-accounts.ts +73 -0
  81. package/src/ledger/decode.ts +147 -0
  82. package/src/ledger/geeq-ledger.ts +184 -0
  83. package/src/ledger/net-actors.ts +129 -0
  84. package/src/ledger/nft-records.ts +49 -0
  85. package/src/ledger/params.ts +82 -0
  86. package/src/ledger/proxy-accounts.ts +51 -0
  87. package/src/net/discovery.ts +231 -0
  88. package/src/net/explorer.ts +123 -0
  89. package/src/net/read-ledger.ts +58 -0
  90. package/src/net/routes.ts +79 -0
  91. package/src/net/transport.ts +221 -0
  92. package/src/net/websocket.ts +94 -0
  93. package/src/runtime/bindings.ts +38 -0
  94. package/src/runtime/init.ts +49 -0
  95. package/src/runtime/wasm-loader.browser.ts +22 -0
  96. package/src/runtime/wasm-loader.node.ts +16 -0
  97. package/src/socket/geeq-socket.ts +827 -0
  98. package/src/socket/tracked-tx.ts +319 -0
  99. package/src/socket/tx-status.ts +131 -0
  100. package/src/tx/attestation.ts +222 -0
  101. package/src/tx/content.ts +82 -0
  102. package/src/tx/encode.ts +107 -0
  103. package/src/tx/expiry.ts +11 -0
  104. package/src/tx/fee.ts +31 -0
  105. package/src/tx/metadata.ts +100 -0
  106. package/src/tx/nft.ts +108 -0
  107. package/src/tx/proxy.ts +156 -0
  108. package/src/tx/transfer.ts +162 -0
  109. package/src/types.ts +503 -0
  110. package/src/wasm/README.md +22 -0
  111. package/src/wasm/browser/geeq_core.d.ts +1224 -0
  112. package/src/wasm/browser/geeq_core.js +6014 -0
  113. package/src/wasm/browser/geeq_core_bg.wasm +0 -0
  114. package/src/wasm/browser/geeq_core_bg.wasm.d.ts +447 -0
  115. package/src/wasm/nodejs/geeq_core.d.ts +753 -0
  116. package/src/wasm/nodejs/geeq_core.js +6016 -0
  117. package/src/wasm/nodejs/geeq_core_bg.wasm +0 -0
  118. package/src/wasm/nodejs/geeq_core_bg.wasm.d.ts +447 -0
  119. package/src/wasm/nodejs/package.json +3 -0
  120. package/tsconfig.build.json +8 -0
  121. package/tsconfig.json +20 -0
  122. package/tsup.config.ts +60 -0
@@ -0,0 +1,1999 @@
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 { NetActorStatus, NetActorType } from './netActorRec.capnp';
9
+ import { DceRecStatus } from './proxyAcctRec.capnp';
10
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
11
+ import { TokenAssetSubgroup, NftAssetSubgroup } from "./coinAcctRec.capnp";
12
+ import { HubContentStmtData, HubContentStmt } from "./hubContentStmt.capnp";
13
+ import { NodeContentStmtData, NodeContentStmt } from "./nodeContentStmt.capnp";
14
+ import { RelayContentStmtData, RelayContentStmt } from "./relayContentStmt.capnp";
15
+ export const _capnpFileId = "bc63e89e9ec5f899";
16
+ export class TokenAssetSubgroupEntry extends __S {
17
+ static readonly _capnp = { displayName: "TokenAssetSubgroupEntry", id: "9d91bc3d6f78ea7e", size: new __O(8, 1) };
18
+ getPosition(): number { return __S.getUint32(0, this); }
19
+ setPosition(value: number): void { __S.setUint32(0, value, this); }
20
+ adoptItem(value: capnp.Orphan<TokenAssetSubgroup>): void { __S.adopt(value, __S.getPointer(0, this)); }
21
+ disownItem(): capnp.Orphan<TokenAssetSubgroup> { return __S.disown(this.getItem()); }
22
+ getItem(): TokenAssetSubgroup { return __S.getStruct(0, TokenAssetSubgroup, this); }
23
+ hasItem(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
24
+ initItem(): TokenAssetSubgroup { return __S.initStructAt(0, TokenAssetSubgroup, this); }
25
+ setItem(value: TokenAssetSubgroup): void { __S.copyFrom(value, __S.getPointer(0, this)); }
26
+ toString(): string { return "TokenAssetSubgroupEntry_" + super.toString(); }
27
+ }
28
+ export class NftAssetSubgroupEntry extends __S {
29
+ static readonly _capnp = { displayName: "NftAssetSubgroupEntry", id: "8402226dbc8c7857", size: new __O(8, 1) };
30
+ getPosition(): number { return __S.getUint32(0, this); }
31
+ setPosition(value: number): void { __S.setUint32(0, value, this); }
32
+ adoptItem(value: capnp.Orphan<NftAssetSubgroup>): void { __S.adopt(value, __S.getPointer(0, this)); }
33
+ disownItem(): capnp.Orphan<NftAssetSubgroup> { return __S.disown(this.getItem()); }
34
+ getItem(): NftAssetSubgroup { return __S.getStruct(0, NftAssetSubgroup, this); }
35
+ hasItem(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
36
+ initItem(): NftAssetSubgroup { return __S.initStructAt(0, NftAssetSubgroup, this); }
37
+ setItem(value: NftAssetSubgroup): void { __S.copyFrom(value, __S.getPointer(0, this)); }
38
+ toString(): string { return "NftAssetSubgroupEntry_" + super.toString(); }
39
+ }
40
+ export enum CoinAssetTx_AmtCoin_Which {
41
+ SOME = 0,
42
+ NONE = 1
43
+ }
44
+ export class CoinAssetTx_AmtCoin extends __S {
45
+ static readonly SOME = CoinAssetTx_AmtCoin_Which.SOME;
46
+ static readonly NONE = CoinAssetTx_AmtCoin_Which.NONE;
47
+ static readonly _capnp = { displayName: "amtCoin", id: "c8fc567a6493a1b6", size: new __O(16, 4) };
48
+ getSome(): capnp.Uint64 {
49
+ __S.testWhich("some", __S.getUint16(4, this), 0, this);
50
+ return __S.getUint64(8, this);
51
+ }
52
+ isSome(): boolean { return __S.getUint16(4, this) === 0; }
53
+ setSome(value: capnp.Uint64): void {
54
+ __S.setUint16(4, 0, this);
55
+ __S.setUint64(8, value, this);
56
+ }
57
+ isNone(): boolean { return __S.getUint16(4, this) === 1; }
58
+ setNone(): void { __S.setUint16(4, 1, this); }
59
+ toString(): string { return "CoinAssetTx_AmtCoin_" + super.toString(); }
60
+ which(): CoinAssetTx_AmtCoin_Which { return __S.getUint16(4, this); }
61
+ }
62
+ export class CoinAssetTx extends __S {
63
+ static readonly _capnp = { displayName: "CoinAssetTx", id: "eed83b251db4f8d7", size: new __O(16, 4) };
64
+ static _TokenAssetSubgroups: capnp.ListCtor<TokenAssetSubgroupEntry>;
65
+ static _NftAssetSubgroups: capnp.ListCtor<NftAssetSubgroupEntry>;
66
+ getNonce(): number { return __S.getUint32(0, this); }
67
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
68
+ getAmtCoin(): CoinAssetTx_AmtCoin { return __S.getAs(CoinAssetTx_AmtCoin, this); }
69
+ initAmtCoin(): CoinAssetTx_AmtCoin { return __S.getAs(CoinAssetTx_AmtCoin, this); }
70
+ adoptTokenAssetSubgroups(value: capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(0, this)); }
71
+ disownTokenAssetSubgroups(): capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>> { return __S.disown(this.getTokenAssetSubgroups()); }
72
+ getTokenAssetSubgroups(): capnp.List<TokenAssetSubgroupEntry> { return __S.getList(0, CoinAssetTx._TokenAssetSubgroups, this); }
73
+ hasTokenAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
74
+ initTokenAssetSubgroups(length: number): capnp.List<TokenAssetSubgroupEntry> { return __S.initList(0, CoinAssetTx._TokenAssetSubgroups, length, this); }
75
+ setTokenAssetSubgroups(value: capnp.List<TokenAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
76
+ adoptNftAssetSubgroups(value: capnp.Orphan<capnp.List<NftAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(1, this)); }
77
+ disownNftAssetSubgroups(): capnp.Orphan<capnp.List<NftAssetSubgroupEntry>> { return __S.disown(this.getNftAssetSubgroups()); }
78
+ getNftAssetSubgroups(): capnp.List<NftAssetSubgroupEntry> { return __S.getList(1, CoinAssetTx._NftAssetSubgroups, this); }
79
+ hasNftAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
80
+ initNftAssetSubgroups(length: number): capnp.List<NftAssetSubgroupEntry> { return __S.initList(1, CoinAssetTx._NftAssetSubgroups, length, this); }
81
+ setNftAssetSubgroups(value: capnp.List<NftAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
82
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
83
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
84
+ getAcctNumRcv(): capnp.Data { return __S.getData(2, this); }
85
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
86
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(2, length, this); }
87
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
88
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
89
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
90
+ getPubKey(): capnp.Data { return __S.getData(3, this); }
91
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
92
+ initPubKey(length: number): capnp.Data { return __S.initData(3, length, this); }
93
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
94
+ toString(): string { return "CoinAssetTx_" + super.toString(); }
95
+ }
96
+ export enum CoinBurnTx_AmtCoin_Which {
97
+ SOME = 0,
98
+ NONE = 1
99
+ }
100
+ export class CoinBurnTx_AmtCoin extends __S {
101
+ static readonly SOME = CoinBurnTx_AmtCoin_Which.SOME;
102
+ static readonly NONE = CoinBurnTx_AmtCoin_Which.NONE;
103
+ static readonly _capnp = { displayName: "amtCoin", id: "858b7a8f2b073861", size: new __O(16, 3) };
104
+ getSome(): capnp.Uint64 {
105
+ __S.testWhich("some", __S.getUint16(4, this), 0, this);
106
+ return __S.getUint64(8, this);
107
+ }
108
+ isSome(): boolean { return __S.getUint16(4, this) === 0; }
109
+ setSome(value: capnp.Uint64): void {
110
+ __S.setUint16(4, 0, this);
111
+ __S.setUint64(8, value, this);
112
+ }
113
+ isNone(): boolean { return __S.getUint16(4, this) === 1; }
114
+ setNone(): void { __S.setUint16(4, 1, this); }
115
+ toString(): string { return "CoinBurnTx_AmtCoin_" + super.toString(); }
116
+ which(): CoinBurnTx_AmtCoin_Which { return __S.getUint16(4, this); }
117
+ }
118
+ export class CoinBurnTx extends __S {
119
+ static readonly _capnp = { displayName: "CoinBurnTx", id: "c9dc8daf34dc6a48", size: new __O(16, 3) };
120
+ static _TokenAssetSubgroups: capnp.ListCtor<TokenAssetSubgroupEntry>;
121
+ static _NftAssetSubgroups: capnp.ListCtor<NftAssetSubgroupEntry>;
122
+ getNonce(): number { return __S.getUint32(0, this); }
123
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
124
+ getAmtCoin(): CoinBurnTx_AmtCoin { return __S.getAs(CoinBurnTx_AmtCoin, this); }
125
+ initAmtCoin(): CoinBurnTx_AmtCoin { return __S.getAs(CoinBurnTx_AmtCoin, this); }
126
+ adoptTokenAssetSubgroups(value: capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(0, this)); }
127
+ disownTokenAssetSubgroups(): capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>> { return __S.disown(this.getTokenAssetSubgroups()); }
128
+ getTokenAssetSubgroups(): capnp.List<TokenAssetSubgroupEntry> { return __S.getList(0, CoinBurnTx._TokenAssetSubgroups, this); }
129
+ hasTokenAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
130
+ initTokenAssetSubgroups(length: number): capnp.List<TokenAssetSubgroupEntry> { return __S.initList(0, CoinBurnTx._TokenAssetSubgroups, length, this); }
131
+ setTokenAssetSubgroups(value: capnp.List<TokenAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
132
+ adoptNftAssetSubgroups(value: capnp.Orphan<capnp.List<NftAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(1, this)); }
133
+ disownNftAssetSubgroups(): capnp.Orphan<capnp.List<NftAssetSubgroupEntry>> { return __S.disown(this.getNftAssetSubgroups()); }
134
+ getNftAssetSubgroups(): capnp.List<NftAssetSubgroupEntry> { return __S.getList(1, CoinBurnTx._NftAssetSubgroups, this); }
135
+ hasNftAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
136
+ initNftAssetSubgroups(length: number): capnp.List<NftAssetSubgroupEntry> { return __S.initList(1, CoinBurnTx._NftAssetSubgroups, length, this); }
137
+ setNftAssetSubgroups(value: capnp.List<NftAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
138
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
139
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
140
+ getPubKey(): capnp.Data { return __S.getData(2, this); }
141
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
142
+ initPubKey(length: number): capnp.Data { return __S.initData(2, length, this); }
143
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
144
+ toString(): string { return "CoinBurnTx_" + super.toString(); }
145
+ }
146
+ export enum CoinHlTx_AmtCoin_Which {
147
+ SOME = 0,
148
+ NONE = 1
149
+ }
150
+ export class CoinHlTx_AmtCoin extends __S {
151
+ static readonly SOME = CoinHlTx_AmtCoin_Which.SOME;
152
+ static readonly NONE = CoinHlTx_AmtCoin_Which.NONE;
153
+ static readonly _capnp = { displayName: "amtCoin", id: "e345377f1711cca5", size: new __O(24, 7) };
154
+ getSome(): capnp.Uint64 {
155
+ __S.testWhich("some", __S.getUint16(16, this), 0, this);
156
+ return __S.getUint64(8, this);
157
+ }
158
+ isSome(): boolean { return __S.getUint16(16, this) === 0; }
159
+ setSome(value: capnp.Uint64): void {
160
+ __S.setUint16(16, 0, this);
161
+ __S.setUint64(8, value, this);
162
+ }
163
+ isNone(): boolean { return __S.getUint16(16, this) === 1; }
164
+ setNone(): void { __S.setUint16(16, 1, this); }
165
+ toString(): string { return "CoinHlTx_AmtCoin_" + super.toString(); }
166
+ which(): CoinHlTx_AmtCoin_Which { return __S.getUint16(16, this); }
167
+ }
168
+ export class CoinHlTx extends __S {
169
+ static readonly _capnp = { displayName: "CoinHlTx", id: "df3b75893ec01b2e", size: new __O(24, 7) };
170
+ static _TokenAssetSubgroups: capnp.ListCtor<TokenAssetSubgroupEntry>;
171
+ static _NftAssetSubgroups: capnp.ListCtor<NftAssetSubgroupEntry>;
172
+ getNonce(): number { return __S.getUint32(0, this); }
173
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
174
+ getAmtCoin(): CoinHlTx_AmtCoin { return __S.getAs(CoinHlTx_AmtCoin, this); }
175
+ initAmtCoin(): CoinHlTx_AmtCoin { return __S.getAs(CoinHlTx_AmtCoin, this); }
176
+ adoptTokenAssetSubgroups(value: capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(0, this)); }
177
+ disownTokenAssetSubgroups(): capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>> { return __S.disown(this.getTokenAssetSubgroups()); }
178
+ getTokenAssetSubgroups(): capnp.List<TokenAssetSubgroupEntry> { return __S.getList(0, CoinHlTx._TokenAssetSubgroups, this); }
179
+ hasTokenAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
180
+ initTokenAssetSubgroups(length: number): capnp.List<TokenAssetSubgroupEntry> { return __S.initList(0, CoinHlTx._TokenAssetSubgroups, length, this); }
181
+ setTokenAssetSubgroups(value: capnp.List<TokenAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
182
+ adoptNftAssetSubgroups(value: capnp.Orphan<capnp.List<NftAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(1, this)); }
183
+ disownNftAssetSubgroups(): capnp.Orphan<capnp.List<NftAssetSubgroupEntry>> { return __S.disown(this.getNftAssetSubgroups()); }
184
+ getNftAssetSubgroups(): capnp.List<NftAssetSubgroupEntry> { return __S.getList(1, CoinHlTx._NftAssetSubgroups, this); }
185
+ hasNftAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
186
+ initNftAssetSubgroups(length: number): capnp.List<NftAssetSubgroupEntry> { return __S.initList(1, CoinHlTx._NftAssetSubgroups, length, this); }
187
+ setNftAssetSubgroups(value: capnp.List<NftAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
188
+ adoptHlDigest(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
189
+ disownHlDigest(): capnp.Orphan<capnp.Data> { return __S.disown(this.getHlDigest()); }
190
+ getHlDigest(): capnp.Data { return __S.getData(2, this); }
191
+ hasHlDigest(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
192
+ initHlDigest(length: number): capnp.Data { return __S.initData(2, length, this); }
193
+ setHlDigest(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
194
+ getBlockNumRfd(): number { return __S.getUint32(4, this); }
195
+ setBlockNumRfd(value: number): void { __S.setUint32(4, value, this); }
196
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
197
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
198
+ getAcctNumRfd(): capnp.Data { return __S.getData(3, this); }
199
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
200
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(3, length, this); }
201
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
202
+ adoptAcctNumHlTar(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(4, this)); }
203
+ disownAcctNumHlTar(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumHlTar()); }
204
+ getAcctNumHlTar(): capnp.Data { return __S.getData(4, this); }
205
+ hasAcctNumHlTar(): boolean { return !__S.isNull(__S.getPointer(4, this)); }
206
+ initAcctNumHlTar(length: number): capnp.Data { return __S.initData(4, length, this); }
207
+ setAcctNumHlTar(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(4, this)); }
208
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(5, this)); }
209
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
210
+ getAcctNumRcv(): capnp.Data { return __S.getData(5, this); }
211
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(5, this)); }
212
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(5, length, this); }
213
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(5, this)); }
214
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(6, this)); }
215
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
216
+ getPubKey(): capnp.Data { return __S.getData(6, this); }
217
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(6, this)); }
218
+ initPubKey(length: number): capnp.Data { return __S.initData(6, length, this); }
219
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(6, this)); }
220
+ toString(): string { return "CoinHlTx_" + super.toString(); }
221
+ }
222
+ export class CoinMicroTx extends __S {
223
+ static readonly _capnp = { displayName: "CoinMicroTx", id: "876c1af780fb99c2", size: new __O(8, 3) };
224
+ getNonce(): number { return __S.getUint32(0, this); }
225
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
226
+ getBlockNumRfd(): number { return __S.getUint32(4, this); }
227
+ setBlockNumRfd(value: number): void { __S.setUint32(4, value, this); }
228
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
229
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
230
+ getAcctNumRfd(): capnp.Data { return __S.getData(0, this); }
231
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
232
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(0, length, this); }
233
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
234
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
235
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
236
+ getAcctNumRcv(): capnp.Data { return __S.getData(1, this); }
237
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
238
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(1, length, this); }
239
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
240
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
241
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
242
+ getPubKey(): capnp.Data { return __S.getData(2, this); }
243
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
244
+ initPubKey(length: number): capnp.Data { return __S.initData(2, length, this); }
245
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
246
+ toString(): string { return "CoinMicroTx_" + super.toString(); }
247
+ }
248
+ export class CoinPiTx extends __S {
249
+ static readonly _capnp = { displayName: "CoinPiTx", id: "b391c77a3ee33c32", size: new __O(0, 3) };
250
+ adoptHlPreImage(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
251
+ disownHlPreImage(): capnp.Orphan<capnp.Data> { return __S.disown(this.getHlPreImage()); }
252
+ getHlPreImage(): capnp.Data { return __S.getData(0, this); }
253
+ hasHlPreImage(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
254
+ initHlPreImage(length: number): capnp.Data { return __S.initData(0, length, this); }
255
+ setHlPreImage(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
256
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
257
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
258
+ getAcctNumRcv(): capnp.Data { return __S.getData(1, this); }
259
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
260
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(1, length, this); }
261
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
262
+ adoptAcctNumVal(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
263
+ disownAcctNumVal(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumVal()); }
264
+ getAcctNumVal(): capnp.Data { return __S.getData(2, this); }
265
+ hasAcctNumVal(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
266
+ initAcctNumVal(length: number): capnp.Data { return __S.initData(2, length, this); }
267
+ setAcctNumVal(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
268
+ toString(): string { return "CoinPiTx_" + super.toString(); }
269
+ }
270
+ export enum CoinTx_TxType_Which {
271
+ ASSET = 0,
272
+ BURN = 1,
273
+ HL = 2,
274
+ MICRO = 3,
275
+ PI = 4
276
+ }
277
+ export class CoinTx_TxType extends __S {
278
+ static readonly ASSET = CoinTx_TxType_Which.ASSET;
279
+ static readonly BURN = CoinTx_TxType_Which.BURN;
280
+ static readonly HL = CoinTx_TxType_Which.HL;
281
+ static readonly MICRO = CoinTx_TxType_Which.MICRO;
282
+ static readonly PI = CoinTx_TxType_Which.PI;
283
+ static readonly _capnp = { displayName: "txType", id: "c2370419be668e08", size: new __O(8, 1) };
284
+ adoptAsset(value: capnp.Orphan<CoinAssetTx>): void {
285
+ __S.setUint16(0, 0, this);
286
+ __S.adopt(value, __S.getPointer(0, this));
287
+ }
288
+ disownAsset(): capnp.Orphan<CoinAssetTx> { return __S.disown(this.getAsset()); }
289
+ getAsset(): CoinAssetTx {
290
+ __S.testWhich("asset", __S.getUint16(0, this), 0, this);
291
+ return __S.getStruct(0, CoinAssetTx, this);
292
+ }
293
+ hasAsset(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
294
+ initAsset(): CoinAssetTx {
295
+ __S.setUint16(0, 0, this);
296
+ return __S.initStructAt(0, CoinAssetTx, this);
297
+ }
298
+ isAsset(): boolean { return __S.getUint16(0, this) === 0; }
299
+ setAsset(value: CoinAssetTx): void {
300
+ __S.setUint16(0, 0, this);
301
+ __S.copyFrom(value, __S.getPointer(0, this));
302
+ }
303
+ adoptBurn(value: capnp.Orphan<CoinBurnTx>): void {
304
+ __S.setUint16(0, 1, this);
305
+ __S.adopt(value, __S.getPointer(0, this));
306
+ }
307
+ disownBurn(): capnp.Orphan<CoinBurnTx> { return __S.disown(this.getBurn()); }
308
+ getBurn(): CoinBurnTx {
309
+ __S.testWhich("burn", __S.getUint16(0, this), 1, this);
310
+ return __S.getStruct(0, CoinBurnTx, this);
311
+ }
312
+ hasBurn(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
313
+ initBurn(): CoinBurnTx {
314
+ __S.setUint16(0, 1, this);
315
+ return __S.initStructAt(0, CoinBurnTx, this);
316
+ }
317
+ isBurn(): boolean { return __S.getUint16(0, this) === 1; }
318
+ setBurn(value: CoinBurnTx): void {
319
+ __S.setUint16(0, 1, this);
320
+ __S.copyFrom(value, __S.getPointer(0, this));
321
+ }
322
+ adoptHl(value: capnp.Orphan<CoinHlTx>): void {
323
+ __S.setUint16(0, 2, this);
324
+ __S.adopt(value, __S.getPointer(0, this));
325
+ }
326
+ disownHl(): capnp.Orphan<CoinHlTx> { return __S.disown(this.getHl()); }
327
+ getHl(): CoinHlTx {
328
+ __S.testWhich("hl", __S.getUint16(0, this), 2, this);
329
+ return __S.getStruct(0, CoinHlTx, this);
330
+ }
331
+ hasHl(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
332
+ initHl(): CoinHlTx {
333
+ __S.setUint16(0, 2, this);
334
+ return __S.initStructAt(0, CoinHlTx, this);
335
+ }
336
+ isHl(): boolean { return __S.getUint16(0, this) === 2; }
337
+ setHl(value: CoinHlTx): void {
338
+ __S.setUint16(0, 2, this);
339
+ __S.copyFrom(value, __S.getPointer(0, this));
340
+ }
341
+ adoptMicro(value: capnp.Orphan<CoinMicroTx>): void {
342
+ __S.setUint16(0, 3, this);
343
+ __S.adopt(value, __S.getPointer(0, this));
344
+ }
345
+ disownMicro(): capnp.Orphan<CoinMicroTx> { return __S.disown(this.getMicro()); }
346
+ getMicro(): CoinMicroTx {
347
+ __S.testWhich("micro", __S.getUint16(0, this), 3, this);
348
+ return __S.getStruct(0, CoinMicroTx, this);
349
+ }
350
+ hasMicro(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
351
+ initMicro(): CoinMicroTx {
352
+ __S.setUint16(0, 3, this);
353
+ return __S.initStructAt(0, CoinMicroTx, this);
354
+ }
355
+ isMicro(): boolean { return __S.getUint16(0, this) === 3; }
356
+ setMicro(value: CoinMicroTx): void {
357
+ __S.setUint16(0, 3, this);
358
+ __S.copyFrom(value, __S.getPointer(0, this));
359
+ }
360
+ adoptPi(value: capnp.Orphan<CoinPiTx>): void {
361
+ __S.setUint16(0, 4, this);
362
+ __S.adopt(value, __S.getPointer(0, this));
363
+ }
364
+ disownPi(): capnp.Orphan<CoinPiTx> { return __S.disown(this.getPi()); }
365
+ getPi(): CoinPiTx {
366
+ __S.testWhich("pi", __S.getUint16(0, this), 4, this);
367
+ return __S.getStruct(0, CoinPiTx, this);
368
+ }
369
+ hasPi(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
370
+ initPi(): CoinPiTx {
371
+ __S.setUint16(0, 4, this);
372
+ return __S.initStructAt(0, CoinPiTx, this);
373
+ }
374
+ isPi(): boolean { return __S.getUint16(0, this) === 4; }
375
+ setPi(value: CoinPiTx): void {
376
+ __S.setUint16(0, 4, this);
377
+ __S.copyFrom(value, __S.getPointer(0, this));
378
+ }
379
+ toString(): string { return "CoinTx_TxType_" + super.toString(); }
380
+ which(): CoinTx_TxType_Which { return __S.getUint16(0, this); }
381
+ }
382
+ export class CoinTx extends __S {
383
+ static readonly _capnp = { displayName: "CoinTx", id: "9ce419b50c3b8bc4", size: new __O(8, 1) };
384
+ getTxType(): CoinTx_TxType { return __S.getAs(CoinTx_TxType, this); }
385
+ initTxType(): CoinTx_TxType { return __S.getAs(CoinTx_TxType, this); }
386
+ toString(): string { return "CoinTx_" + super.toString(); }
387
+ }
388
+ export class AcctNumEntry extends __S {
389
+ static readonly _capnp = { displayName: "AcctNumEntry", id: "d44ddbf2ec12869b", size: new __O(8, 1) };
390
+ getPosition(): number { return __S.getUint16(0, this); }
391
+ setPosition(value: number): void { __S.setUint16(0, value, this); }
392
+ adoptItem(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
393
+ disownItem(): capnp.Orphan<capnp.Data> { return __S.disown(this.getItem()); }
394
+ getItem(): capnp.Data { return __S.getData(0, this); }
395
+ hasItem(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
396
+ initItem(length: number): capnp.Data { return __S.initData(0, length, this); }
397
+ setItem(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
398
+ toString(): string { return "AcctNumEntry_" + super.toString(); }
399
+ }
400
+ export class ProxyCreateDceTx extends __S {
401
+ static readonly _capnp = { displayName: "ProxyCreateDceTx", id: "f9b4142d6749b273", size: new __O(0, 2) };
402
+ static _AcctNumMultiUsers: capnp.ListCtor<AcctNumEntry>;
403
+ adoptAcctNumAdminUser(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
404
+ disownAcctNumAdminUser(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumAdminUser()); }
405
+ getAcctNumAdminUser(): capnp.Data { return __S.getData(0, this); }
406
+ hasAcctNumAdminUser(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
407
+ initAcctNumAdminUser(length: number): capnp.Data { return __S.initData(0, length, this); }
408
+ setAcctNumAdminUser(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
409
+ adoptAcctNumMultiUsers(value: capnp.Orphan<capnp.List<AcctNumEntry>>): void { __S.adopt(value, __S.getPointer(1, this)); }
410
+ disownAcctNumMultiUsers(): capnp.Orphan<capnp.List<AcctNumEntry>> { return __S.disown(this.getAcctNumMultiUsers()); }
411
+ getAcctNumMultiUsers(): capnp.List<AcctNumEntry> { return __S.getList(1, ProxyCreateDceTx._AcctNumMultiUsers, this); }
412
+ hasAcctNumMultiUsers(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
413
+ initAcctNumMultiUsers(length: number): capnp.List<AcctNumEntry> { return __S.initList(1, ProxyCreateDceTx._AcctNumMultiUsers, length, this); }
414
+ setAcctNumMultiUsers(value: capnp.List<AcctNumEntry>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
415
+ toString(): string { return "ProxyCreateDceTx_" + super.toString(); }
416
+ }
417
+ export class ProxyCreateFundingTx extends __S {
418
+ static readonly _capnp = { displayName: "ProxyCreateFundingTx", id: "cb0fa8df1de0f87d", size: new __O(0, 2) };
419
+ static _AcctNumMultiUsers: capnp.ListCtor<AcctNumEntry>;
420
+ adoptAcctNumAdminUser(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
421
+ disownAcctNumAdminUser(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumAdminUser()); }
422
+ getAcctNumAdminUser(): capnp.Data { return __S.getData(0, this); }
423
+ hasAcctNumAdminUser(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
424
+ initAcctNumAdminUser(length: number): capnp.Data { return __S.initData(0, length, this); }
425
+ setAcctNumAdminUser(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
426
+ adoptAcctNumMultiUsers(value: capnp.Orphan<capnp.List<AcctNumEntry>>): void { __S.adopt(value, __S.getPointer(1, this)); }
427
+ disownAcctNumMultiUsers(): capnp.Orphan<capnp.List<AcctNumEntry>> { return __S.disown(this.getAcctNumMultiUsers()); }
428
+ getAcctNumMultiUsers(): capnp.List<AcctNumEntry> { return __S.getList(1, ProxyCreateFundingTx._AcctNumMultiUsers, this); }
429
+ hasAcctNumMultiUsers(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
430
+ initAcctNumMultiUsers(length: number): capnp.List<AcctNumEntry> { return __S.initList(1, ProxyCreateFundingTx._AcctNumMultiUsers, length, this); }
431
+ setAcctNumMultiUsers(value: capnp.List<AcctNumEntry>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
432
+ toString(): string { return "ProxyCreateFundingTx_" + super.toString(); }
433
+ }
434
+ export class ProxyCreateMultisigTx extends __S {
435
+ static readonly _capnp = { displayName: "ProxyCreateMultisigTx", id: "ffcb92410ccb0c7e", size: new __O(8, 1) };
436
+ static _AcctNumMultiUsers: capnp.ListCtor<AcctNumEntry>;
437
+ adoptAcctNumMultiUsers(value: capnp.Orphan<capnp.List<AcctNumEntry>>): void { __S.adopt(value, __S.getPointer(0, this)); }
438
+ disownAcctNumMultiUsers(): capnp.Orphan<capnp.List<AcctNumEntry>> { return __S.disown(this.getAcctNumMultiUsers()); }
439
+ getAcctNumMultiUsers(): capnp.List<AcctNumEntry> { return __S.getList(0, ProxyCreateMultisigTx._AcctNumMultiUsers, this); }
440
+ hasAcctNumMultiUsers(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
441
+ initAcctNumMultiUsers(length: number): capnp.List<AcctNumEntry> { return __S.initList(0, ProxyCreateMultisigTx._AcctNumMultiUsers, length, this); }
442
+ setAcctNumMultiUsers(value: capnp.List<AcctNumEntry>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
443
+ getSigThreshold(): number { return __S.getUint16(0, this); }
444
+ setSigThreshold(value: number): void { __S.setUint16(0, value, this); }
445
+ toString(): string { return "ProxyCreateMultisigTx_" + super.toString(); }
446
+ }
447
+ export class ProxyCreateNftMintTx extends __S {
448
+ static readonly _capnp = { displayName: "ProxyCreateNftMintTx", id: "bfc046025d39f551", size: new __O(0, 1) };
449
+ adoptAcctNumAdminUser(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
450
+ disownAcctNumAdminUser(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumAdminUser()); }
451
+ getAcctNumAdminUser(): capnp.Data { return __S.getData(0, this); }
452
+ hasAcctNumAdminUser(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
453
+ initAcctNumAdminUser(length: number): capnp.Data { return __S.initData(0, length, this); }
454
+ setAcctNumAdminUser(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
455
+ toString(): string { return "ProxyCreateNftMintTx_" + super.toString(); }
456
+ }
457
+ export class ProxyCreateTokenMintTx extends __S {
458
+ static readonly _capnp = { displayName: "ProxyCreateTokenMintTx", id: "be7d7d622a61537b", size: new __O(16, 2) };
459
+ adoptTokenAssetSubgroup(value: capnp.Orphan<TokenAssetSubgroup>): void { __S.adopt(value, __S.getPointer(0, this)); }
460
+ disownTokenAssetSubgroup(): capnp.Orphan<TokenAssetSubgroup> { return __S.disown(this.getTokenAssetSubgroup()); }
461
+ getTokenAssetSubgroup(): TokenAssetSubgroup { return __S.getStruct(0, TokenAssetSubgroup, this); }
462
+ hasTokenAssetSubgroup(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
463
+ initTokenAssetSubgroup(): TokenAssetSubgroup { return __S.initStructAt(0, TokenAssetSubgroup, this); }
464
+ setTokenAssetSubgroup(value: TokenAssetSubgroup): void { __S.copyFrom(value, __S.getPointer(0, this)); }
465
+ getAmtTokenMax(): capnp.Uint64 { return __S.getUint64(0, this); }
466
+ setAmtTokenMax(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
467
+ getAmtTokenAuth(): capnp.Uint64 { return __S.getUint64(8, this); }
468
+ setAmtTokenAuth(value: capnp.Uint64): void { __S.setUint64(8, value, this); }
469
+ adoptAcctNumAdminUser(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
470
+ disownAcctNumAdminUser(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumAdminUser()); }
471
+ getAcctNumAdminUser(): capnp.Data { return __S.getData(1, this); }
472
+ hasAcctNumAdminUser(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
473
+ initAcctNumAdminUser(length: number): capnp.Data { return __S.initData(1, length, this); }
474
+ setAcctNumAdminUser(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
475
+ toString(): string { return "ProxyCreateTokenMintTx_" + super.toString(); }
476
+ }
477
+ export enum ProxyCreateTx_TxType_Which {
478
+ DCE = 4,
479
+ FUNDING = 2,
480
+ MULTISIG = 0,
481
+ NFT_MINT = 1,
482
+ TOKEN_MINT = 3
483
+ }
484
+ export class ProxyCreateTx_TxType extends __S {
485
+ static readonly DCE = ProxyCreateTx_TxType_Which.DCE;
486
+ static readonly FUNDING = ProxyCreateTx_TxType_Which.FUNDING;
487
+ static readonly MULTISIG = ProxyCreateTx_TxType_Which.MULTISIG;
488
+ static readonly NFT_MINT = ProxyCreateTx_TxType_Which.NFT_MINT;
489
+ static readonly TOKEN_MINT = ProxyCreateTx_TxType_Which.TOKEN_MINT;
490
+ static readonly _capnp = { displayName: "txType", id: "9b8638e7a77b1730", size: new __O(16, 3) };
491
+ adoptDce(value: capnp.Orphan<ProxyCreateDceTx>): void {
492
+ __S.setUint16(4, 4, this);
493
+ __S.adopt(value, __S.getPointer(0, this));
494
+ }
495
+ disownDce(): capnp.Orphan<ProxyCreateDceTx> { return __S.disown(this.getDce()); }
496
+ getDce(): ProxyCreateDceTx {
497
+ __S.testWhich("dce", __S.getUint16(4, this), 4, this);
498
+ return __S.getStruct(0, ProxyCreateDceTx, this);
499
+ }
500
+ hasDce(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
501
+ initDce(): ProxyCreateDceTx {
502
+ __S.setUint16(4, 4, this);
503
+ return __S.initStructAt(0, ProxyCreateDceTx, this);
504
+ }
505
+ isDce(): boolean { return __S.getUint16(4, this) === 4; }
506
+ setDce(value: ProxyCreateDceTx): void {
507
+ __S.setUint16(4, 4, this);
508
+ __S.copyFrom(value, __S.getPointer(0, this));
509
+ }
510
+ adoptFunding(value: capnp.Orphan<ProxyCreateFundingTx>): void {
511
+ __S.setUint16(4, 2, this);
512
+ __S.adopt(value, __S.getPointer(0, this));
513
+ }
514
+ disownFunding(): capnp.Orphan<ProxyCreateFundingTx> { return __S.disown(this.getFunding()); }
515
+ getFunding(): ProxyCreateFundingTx {
516
+ __S.testWhich("funding", __S.getUint16(4, this), 2, this);
517
+ return __S.getStruct(0, ProxyCreateFundingTx, this);
518
+ }
519
+ hasFunding(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
520
+ initFunding(): ProxyCreateFundingTx {
521
+ __S.setUint16(4, 2, this);
522
+ return __S.initStructAt(0, ProxyCreateFundingTx, this);
523
+ }
524
+ isFunding(): boolean { return __S.getUint16(4, this) === 2; }
525
+ setFunding(value: ProxyCreateFundingTx): void {
526
+ __S.setUint16(4, 2, this);
527
+ __S.copyFrom(value, __S.getPointer(0, this));
528
+ }
529
+ adoptMultisig(value: capnp.Orphan<ProxyCreateMultisigTx>): void {
530
+ __S.setUint16(4, 0, this);
531
+ __S.adopt(value, __S.getPointer(0, this));
532
+ }
533
+ disownMultisig(): capnp.Orphan<ProxyCreateMultisigTx> { return __S.disown(this.getMultisig()); }
534
+ getMultisig(): ProxyCreateMultisigTx {
535
+ __S.testWhich("multisig", __S.getUint16(4, this), 0, this);
536
+ return __S.getStruct(0, ProxyCreateMultisigTx, this);
537
+ }
538
+ hasMultisig(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
539
+ initMultisig(): ProxyCreateMultisigTx {
540
+ __S.setUint16(4, 0, this);
541
+ return __S.initStructAt(0, ProxyCreateMultisigTx, this);
542
+ }
543
+ isMultisig(): boolean { return __S.getUint16(4, this) === 0; }
544
+ setMultisig(value: ProxyCreateMultisigTx): void {
545
+ __S.setUint16(4, 0, this);
546
+ __S.copyFrom(value, __S.getPointer(0, this));
547
+ }
548
+ adoptNftMint(value: capnp.Orphan<ProxyCreateNftMintTx>): void {
549
+ __S.setUint16(4, 1, this);
550
+ __S.adopt(value, __S.getPointer(0, this));
551
+ }
552
+ disownNftMint(): capnp.Orphan<ProxyCreateNftMintTx> { return __S.disown(this.getNftMint()); }
553
+ getNftMint(): ProxyCreateNftMintTx {
554
+ __S.testWhich("nftMint", __S.getUint16(4, this), 1, this);
555
+ return __S.getStruct(0, ProxyCreateNftMintTx, this);
556
+ }
557
+ hasNftMint(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
558
+ initNftMint(): ProxyCreateNftMintTx {
559
+ __S.setUint16(4, 1, this);
560
+ return __S.initStructAt(0, ProxyCreateNftMintTx, this);
561
+ }
562
+ isNftMint(): boolean { return __S.getUint16(4, this) === 1; }
563
+ setNftMint(value: ProxyCreateNftMintTx): void {
564
+ __S.setUint16(4, 1, this);
565
+ __S.copyFrom(value, __S.getPointer(0, this));
566
+ }
567
+ adoptTokenMint(value: capnp.Orphan<ProxyCreateTokenMintTx>): void {
568
+ __S.setUint16(4, 3, this);
569
+ __S.adopt(value, __S.getPointer(0, this));
570
+ }
571
+ disownTokenMint(): capnp.Orphan<ProxyCreateTokenMintTx> { return __S.disown(this.getTokenMint()); }
572
+ getTokenMint(): ProxyCreateTokenMintTx {
573
+ __S.testWhich("tokenMint", __S.getUint16(4, this), 3, this);
574
+ return __S.getStruct(0, ProxyCreateTokenMintTx, this);
575
+ }
576
+ hasTokenMint(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
577
+ initTokenMint(): ProxyCreateTokenMintTx {
578
+ __S.setUint16(4, 3, this);
579
+ return __S.initStructAt(0, ProxyCreateTokenMintTx, this);
580
+ }
581
+ isTokenMint(): boolean { return __S.getUint16(4, this) === 3; }
582
+ setTokenMint(value: ProxyCreateTokenMintTx): void {
583
+ __S.setUint16(4, 3, this);
584
+ __S.copyFrom(value, __S.getPointer(0, this));
585
+ }
586
+ toString(): string { return "ProxyCreateTx_TxType_" + super.toString(); }
587
+ which(): ProxyCreateTx_TxType_Which { return __S.getUint16(4, this); }
588
+ }
589
+ export class ProxyCreateTx extends __S {
590
+ static readonly _capnp = { displayName: "ProxyCreateTx", id: "97311dbc140cf063", size: new __O(16, 3) };
591
+ getTxType(): ProxyCreateTx_TxType { return __S.getAs(ProxyCreateTx_TxType, this); }
592
+ initTxType(): ProxyCreateTx_TxType { return __S.getAs(ProxyCreateTx_TxType, this); }
593
+ getNonce(): number { return __S.getUint32(0, this); }
594
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
595
+ getAmtCoin(): capnp.Uint64 { return __S.getUint64(8, this); }
596
+ setAmtCoin(value: capnp.Uint64): void { __S.setUint64(8, value, this); }
597
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
598
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
599
+ getAcctNumRcv(): capnp.Data { return __S.getData(1, this); }
600
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
601
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(1, length, this); }
602
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
603
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
604
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
605
+ getPubKey(): capnp.Data { return __S.getData(2, this); }
606
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
607
+ initPubKey(length: number): capnp.Data { return __S.initData(2, length, this); }
608
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
609
+ toString(): string { return "ProxyCreateTx_" + super.toString(); }
610
+ }
611
+ export enum ProxyAssetTx_TokenAssetSubgroup_Which {
612
+ SOME = 0,
613
+ NONE = 1
614
+ }
615
+ export class ProxyAssetTx_TokenAssetSubgroup extends __S {
616
+ static readonly SOME = ProxyAssetTx_TokenAssetSubgroup_Which.SOME;
617
+ static readonly NONE = ProxyAssetTx_TokenAssetSubgroup_Which.NONE;
618
+ static readonly _capnp = { displayName: "tokenAssetSubgroup", id: "bd7638deaa4a6ea2", size: new __O(16, 2) };
619
+ adoptSome(value: capnp.Orphan<TokenAssetSubgroup>): void {
620
+ __S.setUint16(8, 0, this);
621
+ __S.adopt(value, __S.getPointer(0, this));
622
+ }
623
+ disownSome(): capnp.Orphan<TokenAssetSubgroup> { return __S.disown(this.getSome()); }
624
+ getSome(): TokenAssetSubgroup {
625
+ __S.testWhich("some", __S.getUint16(8, this), 0, this);
626
+ return __S.getStruct(0, TokenAssetSubgroup, this);
627
+ }
628
+ hasSome(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
629
+ initSome(): TokenAssetSubgroup {
630
+ __S.setUint16(8, 0, this);
631
+ return __S.initStructAt(0, TokenAssetSubgroup, this);
632
+ }
633
+ isSome(): boolean { return __S.getUint16(8, this) === 0; }
634
+ setSome(value: TokenAssetSubgroup): void {
635
+ __S.setUint16(8, 0, this);
636
+ __S.copyFrom(value, __S.getPointer(0, this));
637
+ }
638
+ isNone(): boolean { return __S.getUint16(8, this) === 1; }
639
+ setNone(): void { __S.setUint16(8, 1, this); }
640
+ toString(): string { return "ProxyAssetTx_TokenAssetSubgroup_" + super.toString(); }
641
+ which(): ProxyAssetTx_TokenAssetSubgroup_Which { return __S.getUint16(8, this); }
642
+ }
643
+ export class ProxyAssetTx extends __S {
644
+ static readonly _capnp = { displayName: "ProxyAssetTx", id: "94caf17f7c6bd85e", size: new __O(16, 2) };
645
+ getAmtCoin(): capnp.Uint64 { return __S.getUint64(0, this); }
646
+ setAmtCoin(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
647
+ getTokenAssetSubgroup(): ProxyAssetTx_TokenAssetSubgroup { return __S.getAs(ProxyAssetTx_TokenAssetSubgroup, this); }
648
+ initTokenAssetSubgroup(): ProxyAssetTx_TokenAssetSubgroup { return __S.getAs(ProxyAssetTx_TokenAssetSubgroup, this); }
649
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
650
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
651
+ getAcctNumRcv(): capnp.Data { return __S.getData(1, this); }
652
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
653
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(1, length, this); }
654
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
655
+ toString(): string { return "ProxyAssetTx_" + super.toString(); }
656
+ }
657
+ export class ProxyDeleteRecTx extends __S {
658
+ static readonly _capnp = { displayName: "ProxyDeleteRecTx", id: "c886745dc0126b8b", size: new __O(0, 1) };
659
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
660
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
661
+ getAcctNumRcv(): capnp.Data { return __S.getData(0, this); }
662
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
663
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(0, length, this); }
664
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
665
+ toString(): string { return "ProxyDeleteRecTx_" + super.toString(); }
666
+ }
667
+ export enum ProxyHlTx_TokenAssetSubgroup_Which {
668
+ SOME = 0,
669
+ NONE = 1
670
+ }
671
+ export class ProxyHlTx_TokenAssetSubgroup extends __S {
672
+ static readonly SOME = ProxyHlTx_TokenAssetSubgroup_Which.SOME;
673
+ static readonly NONE = ProxyHlTx_TokenAssetSubgroup_Which.NONE;
674
+ static readonly _capnp = { displayName: "tokenAssetSubgroup", id: "bb72ace3c976e426", size: new __O(16, 5) };
675
+ adoptSome(value: capnp.Orphan<TokenAssetSubgroup>): void {
676
+ __S.setUint16(12, 0, this);
677
+ __S.adopt(value, __S.getPointer(0, this));
678
+ }
679
+ disownSome(): capnp.Orphan<TokenAssetSubgroup> { return __S.disown(this.getSome()); }
680
+ getSome(): TokenAssetSubgroup {
681
+ __S.testWhich("some", __S.getUint16(12, this), 0, this);
682
+ return __S.getStruct(0, TokenAssetSubgroup, this);
683
+ }
684
+ hasSome(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
685
+ initSome(): TokenAssetSubgroup {
686
+ __S.setUint16(12, 0, this);
687
+ return __S.initStructAt(0, TokenAssetSubgroup, this);
688
+ }
689
+ isSome(): boolean { return __S.getUint16(12, this) === 0; }
690
+ setSome(value: TokenAssetSubgroup): void {
691
+ __S.setUint16(12, 0, this);
692
+ __S.copyFrom(value, __S.getPointer(0, this));
693
+ }
694
+ isNone(): boolean { return __S.getUint16(12, this) === 1; }
695
+ setNone(): void { __S.setUint16(12, 1, this); }
696
+ toString(): string { return "ProxyHlTx_TokenAssetSubgroup_" + super.toString(); }
697
+ which(): ProxyHlTx_TokenAssetSubgroup_Which { return __S.getUint16(12, this); }
698
+ }
699
+ export class ProxyHlTx extends __S {
700
+ static readonly _capnp = { displayName: "ProxyHlTx", id: "c7aaed11fc0189a3", size: new __O(16, 5) };
701
+ getAmtCoin(): capnp.Uint64 { return __S.getUint64(0, this); }
702
+ setAmtCoin(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
703
+ getTokenAssetSubgroup(): ProxyHlTx_TokenAssetSubgroup { return __S.getAs(ProxyHlTx_TokenAssetSubgroup, this); }
704
+ initTokenAssetSubgroup(): ProxyHlTx_TokenAssetSubgroup { return __S.getAs(ProxyHlTx_TokenAssetSubgroup, this); }
705
+ adoptHlDigest(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
706
+ disownHlDigest(): capnp.Orphan<capnp.Data> { return __S.disown(this.getHlDigest()); }
707
+ getHlDigest(): capnp.Data { return __S.getData(1, this); }
708
+ hasHlDigest(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
709
+ initHlDigest(length: number): capnp.Data { return __S.initData(1, length, this); }
710
+ setHlDigest(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
711
+ getBlockNumRfd(): number { return __S.getUint32(8, this); }
712
+ setBlockNumRfd(value: number): void { __S.setUint32(8, value, this); }
713
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
714
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
715
+ getAcctNumRfd(): capnp.Data { return __S.getData(2, this); }
716
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
717
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(2, length, this); }
718
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
719
+ adoptAcctNumHlTar(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
720
+ disownAcctNumHlTar(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumHlTar()); }
721
+ getAcctNumHlTar(): capnp.Data { return __S.getData(3, this); }
722
+ hasAcctNumHlTar(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
723
+ initAcctNumHlTar(length: number): capnp.Data { return __S.initData(3, length, this); }
724
+ setAcctNumHlTar(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
725
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(4, this)); }
726
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
727
+ getAcctNumRcv(): capnp.Data { return __S.getData(4, this); }
728
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(4, this)); }
729
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(4, length, this); }
730
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(4, this)); }
731
+ toString(): string { return "ProxyHlTx_" + super.toString(); }
732
+ }
733
+ export class ProxyMintTokenTx extends __S {
734
+ static readonly _capnp = { displayName: "ProxyMintTokenTx", id: "c0252769cede4864", size: new __O(0, 0) };
735
+ toString(): string { return "ProxyMintTokenTx_" + super.toString(); }
736
+ }
737
+ export class ProxySendTx extends __S {
738
+ static readonly _capnp = { displayName: "ProxySendTx", id: "83101ef9b24e95d6", size: new __O(8, 0) };
739
+ getAmtCoin(): capnp.Uint64 { return __S.getUint64(0, this); }
740
+ setAmtCoin(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
741
+ toString(): string { return "ProxySendTx_" + super.toString(); }
742
+ }
743
+ export class ProxyUpdateTx extends __S {
744
+ static readonly _capnp = { displayName: "ProxyUpdateTx", id: "a07638490f94a33f", size: new __O(8, 1) };
745
+ static _AcctNumMultiUsers: capnp.ListCtor<AcctNumEntry>;
746
+ getRecStatus(): DceRecStatus { return __S.getUint16(0, this); }
747
+ setRecStatus(value: DceRecStatus): void { __S.setUint16(0, value, this); }
748
+ adoptAcctNumMultiUsers(value: capnp.Orphan<capnp.List<AcctNumEntry>>): void { __S.adopt(value, __S.getPointer(0, this)); }
749
+ disownAcctNumMultiUsers(): capnp.Orphan<capnp.List<AcctNumEntry>> { return __S.disown(this.getAcctNumMultiUsers()); }
750
+ getAcctNumMultiUsers(): capnp.List<AcctNumEntry> { return __S.getList(0, ProxyUpdateTx._AcctNumMultiUsers, this); }
751
+ hasAcctNumMultiUsers(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
752
+ initAcctNumMultiUsers(length: number): capnp.List<AcctNumEntry> { return __S.initList(0, ProxyUpdateTx._AcctNumMultiUsers, length, this); }
753
+ setAcctNumMultiUsers(value: capnp.List<AcctNumEntry>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
754
+ toString(): string { return "ProxyUpdateTx_" + super.toString(); }
755
+ }
756
+ export enum ProxyAdminTx_TxType_Which {
757
+ ASSET = 0,
758
+ DELETE_REC = 1,
759
+ HL = 2,
760
+ MINT_TOKEN = 3,
761
+ SEND = 4,
762
+ UPDATE = 5
763
+ }
764
+ export class ProxyAdminTx_TxType extends __S {
765
+ static readonly ASSET = ProxyAdminTx_TxType_Which.ASSET;
766
+ static readonly DELETE_REC = ProxyAdminTx_TxType_Which.DELETE_REC;
767
+ static readonly HL = ProxyAdminTx_TxType_Which.HL;
768
+ static readonly MINT_TOKEN = ProxyAdminTx_TxType_Which.MINT_TOKEN;
769
+ static readonly SEND = ProxyAdminTx_TxType_Which.SEND;
770
+ static readonly UPDATE = ProxyAdminTx_TxType_Which.UPDATE;
771
+ static readonly _capnp = { displayName: "txType", id: "e2309c07aa45ee09", size: new __O(8, 3) };
772
+ adoptAsset(value: capnp.Orphan<ProxyAssetTx>): void {
773
+ __S.setUint16(4, 0, this);
774
+ __S.adopt(value, __S.getPointer(0, this));
775
+ }
776
+ disownAsset(): capnp.Orphan<ProxyAssetTx> { return __S.disown(this.getAsset()); }
777
+ getAsset(): ProxyAssetTx {
778
+ __S.testWhich("asset", __S.getUint16(4, this), 0, this);
779
+ return __S.getStruct(0, ProxyAssetTx, this);
780
+ }
781
+ hasAsset(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
782
+ initAsset(): ProxyAssetTx {
783
+ __S.setUint16(4, 0, this);
784
+ return __S.initStructAt(0, ProxyAssetTx, this);
785
+ }
786
+ isAsset(): boolean { return __S.getUint16(4, this) === 0; }
787
+ setAsset(value: ProxyAssetTx): void {
788
+ __S.setUint16(4, 0, this);
789
+ __S.copyFrom(value, __S.getPointer(0, this));
790
+ }
791
+ adoptDeleteRec(value: capnp.Orphan<ProxyDeleteRecTx>): void {
792
+ __S.setUint16(4, 1, this);
793
+ __S.adopt(value, __S.getPointer(0, this));
794
+ }
795
+ disownDeleteRec(): capnp.Orphan<ProxyDeleteRecTx> { return __S.disown(this.getDeleteRec()); }
796
+ getDeleteRec(): ProxyDeleteRecTx {
797
+ __S.testWhich("deleteRec", __S.getUint16(4, this), 1, this);
798
+ return __S.getStruct(0, ProxyDeleteRecTx, this);
799
+ }
800
+ hasDeleteRec(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
801
+ initDeleteRec(): ProxyDeleteRecTx {
802
+ __S.setUint16(4, 1, this);
803
+ return __S.initStructAt(0, ProxyDeleteRecTx, this);
804
+ }
805
+ isDeleteRec(): boolean { return __S.getUint16(4, this) === 1; }
806
+ setDeleteRec(value: ProxyDeleteRecTx): void {
807
+ __S.setUint16(4, 1, this);
808
+ __S.copyFrom(value, __S.getPointer(0, this));
809
+ }
810
+ adoptHl(value: capnp.Orphan<ProxyHlTx>): void {
811
+ __S.setUint16(4, 2, this);
812
+ __S.adopt(value, __S.getPointer(0, this));
813
+ }
814
+ disownHl(): capnp.Orphan<ProxyHlTx> { return __S.disown(this.getHl()); }
815
+ getHl(): ProxyHlTx {
816
+ __S.testWhich("hl", __S.getUint16(4, this), 2, this);
817
+ return __S.getStruct(0, ProxyHlTx, this);
818
+ }
819
+ hasHl(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
820
+ initHl(): ProxyHlTx {
821
+ __S.setUint16(4, 2, this);
822
+ return __S.initStructAt(0, ProxyHlTx, this);
823
+ }
824
+ isHl(): boolean { return __S.getUint16(4, this) === 2; }
825
+ setHl(value: ProxyHlTx): void {
826
+ __S.setUint16(4, 2, this);
827
+ __S.copyFrom(value, __S.getPointer(0, this));
828
+ }
829
+ adoptMintToken(value: capnp.Orphan<ProxyMintTokenTx>): void {
830
+ __S.setUint16(4, 3, this);
831
+ __S.adopt(value, __S.getPointer(0, this));
832
+ }
833
+ disownMintToken(): capnp.Orphan<ProxyMintTokenTx> { return __S.disown(this.getMintToken()); }
834
+ getMintToken(): ProxyMintTokenTx {
835
+ __S.testWhich("mintToken", __S.getUint16(4, this), 3, this);
836
+ return __S.getStruct(0, ProxyMintTokenTx, this);
837
+ }
838
+ hasMintToken(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
839
+ initMintToken(): ProxyMintTokenTx {
840
+ __S.setUint16(4, 3, this);
841
+ return __S.initStructAt(0, ProxyMintTokenTx, this);
842
+ }
843
+ isMintToken(): boolean { return __S.getUint16(4, this) === 3; }
844
+ setMintToken(value: ProxyMintTokenTx): void {
845
+ __S.setUint16(4, 3, this);
846
+ __S.copyFrom(value, __S.getPointer(0, this));
847
+ }
848
+ adoptSend(value: capnp.Orphan<ProxySendTx>): void {
849
+ __S.setUint16(4, 4, this);
850
+ __S.adopt(value, __S.getPointer(0, this));
851
+ }
852
+ disownSend(): capnp.Orphan<ProxySendTx> { return __S.disown(this.getSend()); }
853
+ getSend(): ProxySendTx {
854
+ __S.testWhich("send", __S.getUint16(4, this), 4, this);
855
+ return __S.getStruct(0, ProxySendTx, this);
856
+ }
857
+ hasSend(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
858
+ initSend(): ProxySendTx {
859
+ __S.setUint16(4, 4, this);
860
+ return __S.initStructAt(0, ProxySendTx, this);
861
+ }
862
+ isSend(): boolean { return __S.getUint16(4, this) === 4; }
863
+ setSend(value: ProxySendTx): void {
864
+ __S.setUint16(4, 4, this);
865
+ __S.copyFrom(value, __S.getPointer(0, this));
866
+ }
867
+ adoptUpdate(value: capnp.Orphan<ProxyUpdateTx>): void {
868
+ __S.setUint16(4, 5, this);
869
+ __S.adopt(value, __S.getPointer(0, this));
870
+ }
871
+ disownUpdate(): capnp.Orphan<ProxyUpdateTx> { return __S.disown(this.getUpdate()); }
872
+ getUpdate(): ProxyUpdateTx {
873
+ __S.testWhich("update", __S.getUint16(4, this), 5, this);
874
+ return __S.getStruct(0, ProxyUpdateTx, this);
875
+ }
876
+ hasUpdate(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
877
+ initUpdate(): ProxyUpdateTx {
878
+ __S.setUint16(4, 5, this);
879
+ return __S.initStructAt(0, ProxyUpdateTx, this);
880
+ }
881
+ isUpdate(): boolean { return __S.getUint16(4, this) === 5; }
882
+ setUpdate(value: ProxyUpdateTx): void {
883
+ __S.setUint16(4, 5, this);
884
+ __S.copyFrom(value, __S.getPointer(0, this));
885
+ }
886
+ toString(): string { return "ProxyAdminTx_TxType_" + super.toString(); }
887
+ which(): ProxyAdminTx_TxType_Which { return __S.getUint16(4, this); }
888
+ }
889
+ export class ProxyAdminTx extends __S {
890
+ static readonly _capnp = { displayName: "ProxyAdminTx", id: "932b45a6e7f66f9f", size: new __O(8, 3) };
891
+ getTxType(): ProxyAdminTx_TxType { return __S.getAs(ProxyAdminTx_TxType, this); }
892
+ initTxType(): ProxyAdminTx_TxType { return __S.getAs(ProxyAdminTx_TxType, this); }
893
+ getNonce(): number { return __S.getUint32(0, this); }
894
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
895
+ adoptAcctNumVal(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
896
+ disownAcctNumVal(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumVal()); }
897
+ getAcctNumVal(): capnp.Data { return __S.getData(1, this); }
898
+ hasAcctNumVal(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
899
+ initAcctNumVal(length: number): capnp.Data { return __S.initData(1, length, this); }
900
+ setAcctNumVal(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
901
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
902
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
903
+ getPubKey(): capnp.Data { return __S.getData(2, this); }
904
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
905
+ initPubKey(length: number): capnp.Data { return __S.initData(2, length, this); }
906
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
907
+ toString(): string { return "ProxyAdminTx_" + super.toString(); }
908
+ }
909
+ export class MultisigAssetTx extends __S {
910
+ static readonly _capnp = { displayName: "MultisigAssetTx", id: "c6a73bf48b71e3d4", size: new __O(0, 1) };
911
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
912
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
913
+ getAcctNumRcv(): capnp.Data { return __S.getData(0, this); }
914
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
915
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(0, length, this); }
916
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
917
+ toString(): string { return "MultisigAssetTx_" + super.toString(); }
918
+ }
919
+ export class MultisigBurnTx extends __S {
920
+ static readonly _capnp = { displayName: "MultisigBurnTx", id: "c0de84c8cfae6798", size: new __O(0, 0) };
921
+ toString(): string { return "MultisigBurnTx_" + super.toString(); }
922
+ }
923
+ export class MultisigHlTx extends __S {
924
+ static readonly _capnp = { displayName: "MultisigHlTx", id: "f61a9d41591ef4ba", size: new __O(8, 4) };
925
+ adoptHlDigest(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
926
+ disownHlDigest(): capnp.Orphan<capnp.Data> { return __S.disown(this.getHlDigest()); }
927
+ getHlDigest(): capnp.Data { return __S.getData(0, this); }
928
+ hasHlDigest(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
929
+ initHlDigest(length: number): capnp.Data { return __S.initData(0, length, this); }
930
+ setHlDigest(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
931
+ getBlockNumRfd(): number { return __S.getUint32(0, this); }
932
+ setBlockNumRfd(value: number): void { __S.setUint32(0, value, this); }
933
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
934
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
935
+ getAcctNumRfd(): capnp.Data { return __S.getData(1, this); }
936
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
937
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(1, length, this); }
938
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
939
+ adoptAcctNumHlTar(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
940
+ disownAcctNumHlTar(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumHlTar()); }
941
+ getAcctNumHlTar(): capnp.Data { return __S.getData(2, this); }
942
+ hasAcctNumHlTar(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
943
+ initAcctNumHlTar(length: number): capnp.Data { return __S.initData(2, length, this); }
944
+ setAcctNumHlTar(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
945
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
946
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
947
+ getAcctNumRcv(): capnp.Data { return __S.getData(3, this); }
948
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
949
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(3, length, this); }
950
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
951
+ toString(): string { return "MultisigHlTx_" + super.toString(); }
952
+ }
953
+ export enum MultisigTx_TxType_Which {
954
+ ASSET = 0,
955
+ BURN = 1,
956
+ HL = 2
957
+ }
958
+ export class MultisigTx_TxType extends __S {
959
+ static readonly ASSET = MultisigTx_TxType_Which.ASSET;
960
+ static readonly BURN = MultisigTx_TxType_Which.BURN;
961
+ static readonly HL = MultisigTx_TxType_Which.HL;
962
+ static readonly _capnp = { displayName: "txType", id: "f1c1c13b42e7a9b0", size: new __O(24, 4) };
963
+ adoptAsset(value: capnp.Orphan<MultisigAssetTx>): void {
964
+ __S.setUint16(8, 0, this);
965
+ __S.adopt(value, __S.getPointer(1, this));
966
+ }
967
+ disownAsset(): capnp.Orphan<MultisigAssetTx> { return __S.disown(this.getAsset()); }
968
+ getAsset(): MultisigAssetTx {
969
+ __S.testWhich("asset", __S.getUint16(8, this), 0, this);
970
+ return __S.getStruct(1, MultisigAssetTx, this);
971
+ }
972
+ hasAsset(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
973
+ initAsset(): MultisigAssetTx {
974
+ __S.setUint16(8, 0, this);
975
+ return __S.initStructAt(1, MultisigAssetTx, this);
976
+ }
977
+ isAsset(): boolean { return __S.getUint16(8, this) === 0; }
978
+ setAsset(value: MultisigAssetTx): void {
979
+ __S.setUint16(8, 0, this);
980
+ __S.copyFrom(value, __S.getPointer(1, this));
981
+ }
982
+ adoptBurn(value: capnp.Orphan<MultisigBurnTx>): void {
983
+ __S.setUint16(8, 1, this);
984
+ __S.adopt(value, __S.getPointer(1, this));
985
+ }
986
+ disownBurn(): capnp.Orphan<MultisigBurnTx> { return __S.disown(this.getBurn()); }
987
+ getBurn(): MultisigBurnTx {
988
+ __S.testWhich("burn", __S.getUint16(8, this), 1, this);
989
+ return __S.getStruct(1, MultisigBurnTx, this);
990
+ }
991
+ hasBurn(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
992
+ initBurn(): MultisigBurnTx {
993
+ __S.setUint16(8, 1, this);
994
+ return __S.initStructAt(1, MultisigBurnTx, this);
995
+ }
996
+ isBurn(): boolean { return __S.getUint16(8, this) === 1; }
997
+ setBurn(value: MultisigBurnTx): void {
998
+ __S.setUint16(8, 1, this);
999
+ __S.copyFrom(value, __S.getPointer(1, this));
1000
+ }
1001
+ adoptHl(value: capnp.Orphan<MultisigHlTx>): void {
1002
+ __S.setUint16(8, 2, this);
1003
+ __S.adopt(value, __S.getPointer(1, this));
1004
+ }
1005
+ disownHl(): capnp.Orphan<MultisigHlTx> { return __S.disown(this.getHl()); }
1006
+ getHl(): MultisigHlTx {
1007
+ __S.testWhich("hl", __S.getUint16(8, this), 2, this);
1008
+ return __S.getStruct(1, MultisigHlTx, this);
1009
+ }
1010
+ hasHl(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1011
+ initHl(): MultisigHlTx {
1012
+ __S.setUint16(8, 2, this);
1013
+ return __S.initStructAt(1, MultisigHlTx, this);
1014
+ }
1015
+ isHl(): boolean { return __S.getUint16(8, this) === 2; }
1016
+ setHl(value: MultisigHlTx): void {
1017
+ __S.setUint16(8, 2, this);
1018
+ __S.copyFrom(value, __S.getPointer(1, this));
1019
+ }
1020
+ toString(): string { return "MultisigTx_TxType_" + super.toString(); }
1021
+ which(): MultisigTx_TxType_Which { return __S.getUint16(8, this); }
1022
+ }
1023
+ export enum MultisigTx_AmtCoin_Which {
1024
+ SOME = 0,
1025
+ NONE = 1
1026
+ }
1027
+ export class MultisigTx_AmtCoin extends __S {
1028
+ static readonly SOME = MultisigTx_AmtCoin_Which.SOME;
1029
+ static readonly NONE = MultisigTx_AmtCoin_Which.NONE;
1030
+ static readonly _capnp = { displayName: "amtCoin", id: "d6894b8a44c48dce", size: new __O(24, 4) };
1031
+ getSome(): capnp.Uint64 {
1032
+ __S.testWhich("some", __S.getUint16(10, this), 0, this);
1033
+ return __S.getUint64(16, this);
1034
+ }
1035
+ isSome(): boolean { return __S.getUint16(10, this) === 0; }
1036
+ setSome(value: capnp.Uint64): void {
1037
+ __S.setUint16(10, 0, this);
1038
+ __S.setUint64(16, value, this);
1039
+ }
1040
+ isNone(): boolean { return __S.getUint16(10, this) === 1; }
1041
+ setNone(): void { __S.setUint16(10, 1, this); }
1042
+ toString(): string { return "MultisigTx_AmtCoin_" + super.toString(); }
1043
+ which(): MultisigTx_AmtCoin_Which { return __S.getUint16(10, this); }
1044
+ }
1045
+ export class MultisigTx extends __S {
1046
+ static readonly _capnp = { displayName: "MultisigTx", id: "ebb6c38a332bfc78", size: new __O(24, 4) };
1047
+ static _TokenAssetSubgroups: capnp.ListCtor<TokenAssetSubgroupEntry>;
1048
+ static _NftAssetSubgroups: capnp.ListCtor<NftAssetSubgroupEntry>;
1049
+ getTxType(): MultisigTx_TxType { return __S.getAs(MultisigTx_TxType, this); }
1050
+ initTxType(): MultisigTx_TxType { return __S.getAs(MultisigTx_TxType, this); }
1051
+ getNonce(): number { return __S.getUint32(0, this); }
1052
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
1053
+ getAmtCoin(): MultisigTx_AmtCoin { return __S.getAs(MultisigTx_AmtCoin, this); }
1054
+ initAmtCoin(): MultisigTx_AmtCoin { return __S.getAs(MultisigTx_AmtCoin, this); }
1055
+ getBlockNumInclusion(): number { return __S.getUint32(4, this); }
1056
+ setBlockNumInclusion(value: number): void { __S.setUint32(4, value, this); }
1057
+ adoptTokenAssetSubgroups(value: capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(3, this)); }
1058
+ disownTokenAssetSubgroups(): capnp.Orphan<capnp.List<TokenAssetSubgroupEntry>> { return __S.disown(this.getTokenAssetSubgroups()); }
1059
+ getTokenAssetSubgroups(): capnp.List<TokenAssetSubgroupEntry> { return __S.getList(3, MultisigTx._TokenAssetSubgroups, this); }
1060
+ hasTokenAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
1061
+ initTokenAssetSubgroups(length: number): capnp.List<TokenAssetSubgroupEntry> { return __S.initList(3, MultisigTx._TokenAssetSubgroups, length, this); }
1062
+ setTokenAssetSubgroups(value: capnp.List<TokenAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(3, this)); }
1063
+ adoptNftAssetSubgroups(value: capnp.Orphan<capnp.List<NftAssetSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(0, this)); }
1064
+ disownNftAssetSubgroups(): capnp.Orphan<capnp.List<NftAssetSubgroupEntry>> { return __S.disown(this.getNftAssetSubgroups()); }
1065
+ getNftAssetSubgroups(): capnp.List<NftAssetSubgroupEntry> { return __S.getList(0, MultisigTx._NftAssetSubgroups, this); }
1066
+ hasNftAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1067
+ initNftAssetSubgroups(length: number): capnp.List<NftAssetSubgroupEntry> { return __S.initList(0, MultisigTx._NftAssetSubgroups, length, this); }
1068
+ setNftAssetSubgroups(value: capnp.List<NftAssetSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1069
+ adoptAcctNumVal(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
1070
+ disownAcctNumVal(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumVal()); }
1071
+ getAcctNumVal(): capnp.Data { return __S.getData(2, this); }
1072
+ hasAcctNumVal(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
1073
+ initAcctNumVal(length: number): capnp.Data { return __S.initData(2, length, this); }
1074
+ setAcctNumVal(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
1075
+ toString(): string { return "MultisigTx_" + super.toString(); }
1076
+ }
1077
+ export class NetActorRecCreateTx extends __S {
1078
+ static readonly _capnp = { displayName: "NetActorRecCreateTx", id: "d09e41db4cf5d1e5", size: new __O(8, 0) };
1079
+ getNetActorType(): NetActorType { return __S.getUint16(0, this); }
1080
+ setNetActorType(value: NetActorType): void { __S.setUint16(0, value, this); }
1081
+ toString(): string { return "NetActorRecCreateTx_" + super.toString(); }
1082
+ }
1083
+ export enum NetActorRecUpdateTx_RecStatus_Which {
1084
+ SOME = 0,
1085
+ NONE = 1
1086
+ }
1087
+ export class NetActorRecUpdateTx_RecStatus extends __S {
1088
+ static readonly SOME = NetActorRecUpdateTx_RecStatus_Which.SOME;
1089
+ static readonly NONE = NetActorRecUpdateTx_RecStatus_Which.NONE;
1090
+ static readonly _capnp = { displayName: "recStatus", id: "f4f3095ba0dc1e11", size: new __O(16, 2) };
1091
+ getSome(): NetActorStatus {
1092
+ __S.testWhich("some", __S.getUint16(2, this), 0, this);
1093
+ return __S.getUint16(0, this);
1094
+ }
1095
+ isSome(): boolean { return __S.getUint16(2, this) === 0; }
1096
+ setSome(value: NetActorStatus): void {
1097
+ __S.setUint16(2, 0, this);
1098
+ __S.setUint16(0, value, this);
1099
+ }
1100
+ isNone(): boolean { return __S.getUint16(2, this) === 1; }
1101
+ setNone(): void { __S.setUint16(2, 1, this); }
1102
+ toString(): string { return "NetActorRecUpdateTx_RecStatus_" + super.toString(); }
1103
+ which(): NetActorRecUpdateTx_RecStatus_Which { return __S.getUint16(2, this); }
1104
+ }
1105
+ export enum NetActorRecUpdateTx_IpAddr_Which {
1106
+ SOME = 0,
1107
+ NONE = 1
1108
+ }
1109
+ export class NetActorRecUpdateTx_IpAddr extends __S {
1110
+ static readonly SOME = NetActorRecUpdateTx_IpAddr_Which.SOME;
1111
+ static readonly NONE = NetActorRecUpdateTx_IpAddr_Which.NONE;
1112
+ static readonly _capnp = { displayName: "ipAddr", id: "b0e8e9dd7fa14e94", size: new __O(16, 2) };
1113
+ getSome(): string {
1114
+ __S.testWhich("some", __S.getUint16(4, this), 0, this);
1115
+ return __S.getText(0, this);
1116
+ }
1117
+ isSome(): boolean { return __S.getUint16(4, this) === 0; }
1118
+ setSome(value: string): void {
1119
+ __S.setUint16(4, 0, this);
1120
+ __S.setText(0, value, this);
1121
+ }
1122
+ isNone(): boolean { return __S.getUint16(4, this) === 1; }
1123
+ setNone(): void { __S.setUint16(4, 1, this); }
1124
+ toString(): string { return "NetActorRecUpdateTx_IpAddr_" + super.toString(); }
1125
+ which(): NetActorRecUpdateTx_IpAddr_Which { return __S.getUint16(4, this); }
1126
+ }
1127
+ export enum NetActorRecUpdateTx_PortNum_Which {
1128
+ SOME = 0,
1129
+ NONE = 1
1130
+ }
1131
+ export class NetActorRecUpdateTx_PortNum extends __S {
1132
+ static readonly SOME = NetActorRecUpdateTx_PortNum_Which.SOME;
1133
+ static readonly NONE = NetActorRecUpdateTx_PortNum_Which.NONE;
1134
+ static readonly _capnp = { displayName: "portNum", id: "9a27319d5922b337", size: new __O(16, 2) };
1135
+ getSome(): number {
1136
+ __S.testWhich("some", __S.getUint16(8, this), 0, this);
1137
+ return __S.getUint16(6, this);
1138
+ }
1139
+ isSome(): boolean { return __S.getUint16(8, this) === 0; }
1140
+ setSome(value: number): void {
1141
+ __S.setUint16(8, 0, this);
1142
+ __S.setUint16(6, value, this);
1143
+ }
1144
+ isNone(): boolean { return __S.getUint16(8, this) === 1; }
1145
+ setNone(): void { __S.setUint16(8, 1, this); }
1146
+ toString(): string { return "NetActorRecUpdateTx_PortNum_" + super.toString(); }
1147
+ which(): NetActorRecUpdateTx_PortNum_Which { return __S.getUint16(8, this); }
1148
+ }
1149
+ export enum NetActorRecUpdateTx_AcctNumRfd_Which {
1150
+ SOME = 0,
1151
+ NONE = 1
1152
+ }
1153
+ export class NetActorRecUpdateTx_AcctNumRfd extends __S {
1154
+ static readonly SOME = NetActorRecUpdateTx_AcctNumRfd_Which.SOME;
1155
+ static readonly NONE = NetActorRecUpdateTx_AcctNumRfd_Which.NONE;
1156
+ static readonly _capnp = { displayName: "acctNumRfd", id: "acd21c4384ee380b", size: new __O(16, 2) };
1157
+ adoptSome(value: capnp.Orphan<capnp.Data>): void {
1158
+ __S.setUint16(10, 0, this);
1159
+ __S.adopt(value, __S.getPointer(1, this));
1160
+ }
1161
+ disownSome(): capnp.Orphan<capnp.Data> { return __S.disown(this.getSome()); }
1162
+ getSome(): capnp.Data {
1163
+ __S.testWhich("some", __S.getUint16(10, this), 0, this);
1164
+ return __S.getData(1, this);
1165
+ }
1166
+ hasSome(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1167
+ initSome(length: number): capnp.Data {
1168
+ __S.setUint16(10, 0, this);
1169
+ return __S.initData(1, length, this);
1170
+ }
1171
+ isSome(): boolean { return __S.getUint16(10, this) === 0; }
1172
+ setSome(value: capnp.Data): void {
1173
+ __S.setUint16(10, 0, this);
1174
+ __S.copyFrom(value, __S.getPointer(1, this));
1175
+ }
1176
+ isNone(): boolean { return __S.getUint16(10, this) === 1; }
1177
+ setNone(): void { __S.setUint16(10, 1, this); }
1178
+ toString(): string { return "NetActorRecUpdateTx_AcctNumRfd_" + super.toString(); }
1179
+ which(): NetActorRecUpdateTx_AcctNumRfd_Which { return __S.getUint16(10, this); }
1180
+ }
1181
+ export class NetActorRecUpdateTx extends __S {
1182
+ static readonly _capnp = { displayName: "NetActorRecUpdateTx", id: "ad976b003e4f49c9", size: new __O(16, 2) };
1183
+ getRecStatus(): NetActorRecUpdateTx_RecStatus { return __S.getAs(NetActorRecUpdateTx_RecStatus, this); }
1184
+ initRecStatus(): NetActorRecUpdateTx_RecStatus { return __S.getAs(NetActorRecUpdateTx_RecStatus, this); }
1185
+ getIpAddr(): NetActorRecUpdateTx_IpAddr { return __S.getAs(NetActorRecUpdateTx_IpAddr, this); }
1186
+ initIpAddr(): NetActorRecUpdateTx_IpAddr { return __S.getAs(NetActorRecUpdateTx_IpAddr, this); }
1187
+ getPortNum(): NetActorRecUpdateTx_PortNum { return __S.getAs(NetActorRecUpdateTx_PortNum, this); }
1188
+ initPortNum(): NetActorRecUpdateTx_PortNum { return __S.getAs(NetActorRecUpdateTx_PortNum, this); }
1189
+ getAcctNumRfd(): NetActorRecUpdateTx_AcctNumRfd { return __S.getAs(NetActorRecUpdateTx_AcctNumRfd, this); }
1190
+ initAcctNumRfd(): NetActorRecUpdateTx_AcctNumRfd { return __S.getAs(NetActorRecUpdateTx_AcctNumRfd, this); }
1191
+ toString(): string { return "NetActorRecUpdateTx_" + super.toString(); }
1192
+ }
1193
+ export enum NetActorRecTx_TxType_Which {
1194
+ CREATE = 0,
1195
+ UPDATE = 1
1196
+ }
1197
+ export class NetActorRecTx_TxType extends __S {
1198
+ static readonly CREATE = NetActorRecTx_TxType_Which.CREATE;
1199
+ static readonly UPDATE = NetActorRecTx_TxType_Which.UPDATE;
1200
+ static readonly _capnp = { displayName: "txType", id: "a46aaef729ceb359", size: new __O(8, 3) };
1201
+ adoptCreate(value: capnp.Orphan<NetActorRecCreateTx>): void {
1202
+ __S.setUint16(4, 0, this);
1203
+ __S.adopt(value, __S.getPointer(1, this));
1204
+ }
1205
+ disownCreate(): capnp.Orphan<NetActorRecCreateTx> { return __S.disown(this.getCreate()); }
1206
+ getCreate(): NetActorRecCreateTx {
1207
+ __S.testWhich("create", __S.getUint16(4, this), 0, this);
1208
+ return __S.getStruct(1, NetActorRecCreateTx, this);
1209
+ }
1210
+ hasCreate(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1211
+ initCreate(): NetActorRecCreateTx {
1212
+ __S.setUint16(4, 0, this);
1213
+ return __S.initStructAt(1, NetActorRecCreateTx, this);
1214
+ }
1215
+ isCreate(): boolean { return __S.getUint16(4, this) === 0; }
1216
+ setCreate(value: NetActorRecCreateTx): void {
1217
+ __S.setUint16(4, 0, this);
1218
+ __S.copyFrom(value, __S.getPointer(1, this));
1219
+ }
1220
+ adoptUpdate(value: capnp.Orphan<NetActorRecUpdateTx>): void {
1221
+ __S.setUint16(4, 1, this);
1222
+ __S.adopt(value, __S.getPointer(1, this));
1223
+ }
1224
+ disownUpdate(): capnp.Orphan<NetActorRecUpdateTx> { return __S.disown(this.getUpdate()); }
1225
+ getUpdate(): NetActorRecUpdateTx {
1226
+ __S.testWhich("update", __S.getUint16(4, this), 1, this);
1227
+ return __S.getStruct(1, NetActorRecUpdateTx, this);
1228
+ }
1229
+ hasUpdate(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1230
+ initUpdate(): NetActorRecUpdateTx {
1231
+ __S.setUint16(4, 1, this);
1232
+ return __S.initStructAt(1, NetActorRecUpdateTx, this);
1233
+ }
1234
+ isUpdate(): boolean { return __S.getUint16(4, this) === 1; }
1235
+ setUpdate(value: NetActorRecUpdateTx): void {
1236
+ __S.setUint16(4, 1, this);
1237
+ __S.copyFrom(value, __S.getPointer(1, this));
1238
+ }
1239
+ toString(): string { return "NetActorRecTx_TxType_" + super.toString(); }
1240
+ which(): NetActorRecTx_TxType_Which { return __S.getUint16(4, this); }
1241
+ }
1242
+ export class NetActorRecTx extends __S {
1243
+ static readonly _capnp = { displayName: "NetActorRecTx", id: "c0c5135f271ad32c", size: new __O(8, 3) };
1244
+ getTxType(): NetActorRecTx_TxType { return __S.getAs(NetActorRecTx_TxType, this); }
1245
+ initTxType(): NetActorRecTx_TxType { return __S.getAs(NetActorRecTx_TxType, this); }
1246
+ getNonce(): number { return __S.getUint32(0, this); }
1247
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
1248
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
1249
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
1250
+ getAcctNumRcv(): capnp.Data { return __S.getData(0, this); }
1251
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1252
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(0, length, this); }
1253
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1254
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
1255
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
1256
+ getPubKey(): capnp.Data { return __S.getData(2, this); }
1257
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
1258
+ initPubKey(length: number): capnp.Data { return __S.initData(2, length, this); }
1259
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
1260
+ toString(): string { return "NetActorRecTx_" + super.toString(); }
1261
+ }
1262
+ export enum ParamAcctRecTx_ParamType_Which {
1263
+ ALLOW_ATTEST = 0,
1264
+ ALLOW_FUNDING_PROXIES = 1,
1265
+ ALLOW_COINS = 2,
1266
+ ALLOW_COUNTERPARTY = 3,
1267
+ ALLOW_DCE = 4,
1268
+ ALLOW_DYNAMIC_NAL = 5,
1269
+ ALLOW_FEES = 6,
1270
+ ALLOW_GBB = 7,
1271
+ ALLOW_HASH_LOCKS = 8,
1272
+ ALLOW_MICROCOINS = 9,
1273
+ ALLOW_MULTISIG = 10,
1274
+ ALLOW_NFT = 11,
1275
+ ALLOW_STACKABLE = 12,
1276
+ ALLOW_TOKEN = 13,
1277
+ ALLOW_TREASURY = 14,
1278
+ GBB_AMT = 15,
1279
+ GEEQ_NORM = 16,
1280
+ METADATA_FIXED_BYTES = 17,
1281
+ METADATA_FIXED_NUM = 18,
1282
+ METADATA_VAR_BYTES = 19,
1283
+ METADATA_VAR_NUM = 20,
1284
+ MIN_TX_AMT = 21,
1285
+ NTL_MAX_NUM = 22,
1286
+ RENT_INTERVAL = 23,
1287
+ TARGET_ANCHOR_NODE = 24,
1288
+ TARGET_ANON_NODE = 25,
1289
+ TARGET_BLOCK_INTERVAL = 26,
1290
+ TARGET_CERT_NODE = 27,
1291
+ TARGET_GOSSIP_NET = 28
1292
+ }
1293
+ export class ParamAcctRecTx_ParamType extends __S {
1294
+ static readonly ALLOW_ATTEST = ParamAcctRecTx_ParamType_Which.ALLOW_ATTEST;
1295
+ static readonly ALLOW_FUNDING_PROXIES = ParamAcctRecTx_ParamType_Which.ALLOW_FUNDING_PROXIES;
1296
+ static readonly ALLOW_COINS = ParamAcctRecTx_ParamType_Which.ALLOW_COINS;
1297
+ static readonly ALLOW_COUNTERPARTY = ParamAcctRecTx_ParamType_Which.ALLOW_COUNTERPARTY;
1298
+ static readonly ALLOW_DCE = ParamAcctRecTx_ParamType_Which.ALLOW_DCE;
1299
+ static readonly ALLOW_DYNAMIC_NAL = ParamAcctRecTx_ParamType_Which.ALLOW_DYNAMIC_NAL;
1300
+ static readonly ALLOW_FEES = ParamAcctRecTx_ParamType_Which.ALLOW_FEES;
1301
+ static readonly ALLOW_GBB = ParamAcctRecTx_ParamType_Which.ALLOW_GBB;
1302
+ static readonly ALLOW_HASH_LOCKS = ParamAcctRecTx_ParamType_Which.ALLOW_HASH_LOCKS;
1303
+ static readonly ALLOW_MICROCOINS = ParamAcctRecTx_ParamType_Which.ALLOW_MICROCOINS;
1304
+ static readonly ALLOW_MULTISIG = ParamAcctRecTx_ParamType_Which.ALLOW_MULTISIG;
1305
+ static readonly ALLOW_NFT = ParamAcctRecTx_ParamType_Which.ALLOW_NFT;
1306
+ static readonly ALLOW_STACKABLE = ParamAcctRecTx_ParamType_Which.ALLOW_STACKABLE;
1307
+ static readonly ALLOW_TOKEN = ParamAcctRecTx_ParamType_Which.ALLOW_TOKEN;
1308
+ static readonly ALLOW_TREASURY = ParamAcctRecTx_ParamType_Which.ALLOW_TREASURY;
1309
+ static readonly GBB_AMT = ParamAcctRecTx_ParamType_Which.GBB_AMT;
1310
+ static readonly GEEQ_NORM = ParamAcctRecTx_ParamType_Which.GEEQ_NORM;
1311
+ static readonly METADATA_FIXED_BYTES = ParamAcctRecTx_ParamType_Which.METADATA_FIXED_BYTES;
1312
+ static readonly METADATA_FIXED_NUM = ParamAcctRecTx_ParamType_Which.METADATA_FIXED_NUM;
1313
+ static readonly METADATA_VAR_BYTES = ParamAcctRecTx_ParamType_Which.METADATA_VAR_BYTES;
1314
+ static readonly METADATA_VAR_NUM = ParamAcctRecTx_ParamType_Which.METADATA_VAR_NUM;
1315
+ static readonly MIN_TX_AMT = ParamAcctRecTx_ParamType_Which.MIN_TX_AMT;
1316
+ static readonly NTL_MAX_NUM = ParamAcctRecTx_ParamType_Which.NTL_MAX_NUM;
1317
+ static readonly RENT_INTERVAL = ParamAcctRecTx_ParamType_Which.RENT_INTERVAL;
1318
+ static readonly TARGET_ANCHOR_NODE = ParamAcctRecTx_ParamType_Which.TARGET_ANCHOR_NODE;
1319
+ static readonly TARGET_ANON_NODE = ParamAcctRecTx_ParamType_Which.TARGET_ANON_NODE;
1320
+ static readonly TARGET_BLOCK_INTERVAL = ParamAcctRecTx_ParamType_Which.TARGET_BLOCK_INTERVAL;
1321
+ static readonly TARGET_CERT_NODE = ParamAcctRecTx_ParamType_Which.TARGET_CERT_NODE;
1322
+ static readonly TARGET_GOSSIP_NET = ParamAcctRecTx_ParamType_Which.TARGET_GOSSIP_NET;
1323
+ static readonly _capnp = { displayName: "paramType", id: "ed97b59c2e688c24", size: new __O(16, 2) };
1324
+ getAllowAttest(): boolean {
1325
+ __S.testWhich("allowAttest", __S.getUint16(6, this), 0, this);
1326
+ return __S.getBit(32, this);
1327
+ }
1328
+ isAllowAttest(): boolean { return __S.getUint16(6, this) === 0; }
1329
+ setAllowAttest(value: boolean): void {
1330
+ __S.setUint16(6, 0, this);
1331
+ __S.setBit(32, value, this);
1332
+ }
1333
+ getAllowFundingProxies(): boolean {
1334
+ __S.testWhich("allowFundingProxies", __S.getUint16(6, this), 1, this);
1335
+ return __S.getBit(32, this);
1336
+ }
1337
+ isAllowFundingProxies(): boolean { return __S.getUint16(6, this) === 1; }
1338
+ setAllowFundingProxies(value: boolean): void {
1339
+ __S.setUint16(6, 1, this);
1340
+ __S.setBit(32, value, this);
1341
+ }
1342
+ getAllowCoins(): boolean {
1343
+ __S.testWhich("allowCoins", __S.getUint16(6, this), 2, this);
1344
+ return __S.getBit(32, this);
1345
+ }
1346
+ isAllowCoins(): boolean { return __S.getUint16(6, this) === 2; }
1347
+ setAllowCoins(value: boolean): void {
1348
+ __S.setUint16(6, 2, this);
1349
+ __S.setBit(32, value, this);
1350
+ }
1351
+ getAllowCounterparty(): boolean {
1352
+ __S.testWhich("allowCounterparty", __S.getUint16(6, this), 3, this);
1353
+ return __S.getBit(32, this);
1354
+ }
1355
+ isAllowCounterparty(): boolean { return __S.getUint16(6, this) === 3; }
1356
+ setAllowCounterparty(value: boolean): void {
1357
+ __S.setUint16(6, 3, this);
1358
+ __S.setBit(32, value, this);
1359
+ }
1360
+ getAllowDce(): boolean {
1361
+ __S.testWhich("allowDce", __S.getUint16(6, this), 4, this);
1362
+ return __S.getBit(32, this);
1363
+ }
1364
+ isAllowDce(): boolean { return __S.getUint16(6, this) === 4; }
1365
+ setAllowDce(value: boolean): void {
1366
+ __S.setUint16(6, 4, this);
1367
+ __S.setBit(32, value, this);
1368
+ }
1369
+ getAllowDynamicNal(): boolean {
1370
+ __S.testWhich("allowDynamicNal", __S.getUint16(6, this), 5, this);
1371
+ return __S.getBit(32, this);
1372
+ }
1373
+ isAllowDynamicNal(): boolean { return __S.getUint16(6, this) === 5; }
1374
+ setAllowDynamicNal(value: boolean): void {
1375
+ __S.setUint16(6, 5, this);
1376
+ __S.setBit(32, value, this);
1377
+ }
1378
+ getAllowFees(): boolean {
1379
+ __S.testWhich("allowFees", __S.getUint16(6, this), 6, this);
1380
+ return __S.getBit(32, this);
1381
+ }
1382
+ isAllowFees(): boolean { return __S.getUint16(6, this) === 6; }
1383
+ setAllowFees(value: boolean): void {
1384
+ __S.setUint16(6, 6, this);
1385
+ __S.setBit(32, value, this);
1386
+ }
1387
+ getAllowGbb(): boolean {
1388
+ __S.testWhich("allowGbb", __S.getUint16(6, this), 7, this);
1389
+ return __S.getBit(32, this);
1390
+ }
1391
+ isAllowGbb(): boolean { return __S.getUint16(6, this) === 7; }
1392
+ setAllowGbb(value: boolean): void {
1393
+ __S.setUint16(6, 7, this);
1394
+ __S.setBit(32, value, this);
1395
+ }
1396
+ getAllowHashLocks(): boolean {
1397
+ __S.testWhich("allowHashLocks", __S.getUint16(6, this), 8, this);
1398
+ return __S.getBit(32, this);
1399
+ }
1400
+ isAllowHashLocks(): boolean { return __S.getUint16(6, this) === 8; }
1401
+ setAllowHashLocks(value: boolean): void {
1402
+ __S.setUint16(6, 8, this);
1403
+ __S.setBit(32, value, this);
1404
+ }
1405
+ getAllowMicrocoins(): boolean {
1406
+ __S.testWhich("allowMicrocoins", __S.getUint16(6, this), 9, this);
1407
+ return __S.getBit(32, this);
1408
+ }
1409
+ isAllowMicrocoins(): boolean { return __S.getUint16(6, this) === 9; }
1410
+ setAllowMicrocoins(value: boolean): void {
1411
+ __S.setUint16(6, 9, this);
1412
+ __S.setBit(32, value, this);
1413
+ }
1414
+ getAllowMultisig(): boolean {
1415
+ __S.testWhich("allowMultisig", __S.getUint16(6, this), 10, this);
1416
+ return __S.getBit(32, this);
1417
+ }
1418
+ isAllowMultisig(): boolean { return __S.getUint16(6, this) === 10; }
1419
+ setAllowMultisig(value: boolean): void {
1420
+ __S.setUint16(6, 10, this);
1421
+ __S.setBit(32, value, this);
1422
+ }
1423
+ getAllowNft(): boolean {
1424
+ __S.testWhich("allowNft", __S.getUint16(6, this), 11, this);
1425
+ return __S.getBit(32, this);
1426
+ }
1427
+ isAllowNft(): boolean { return __S.getUint16(6, this) === 11; }
1428
+ setAllowNft(value: boolean): void {
1429
+ __S.setUint16(6, 11, this);
1430
+ __S.setBit(32, value, this);
1431
+ }
1432
+ getAllowStackable(): boolean {
1433
+ __S.testWhich("allowStackable", __S.getUint16(6, this), 12, this);
1434
+ return __S.getBit(32, this);
1435
+ }
1436
+ isAllowStackable(): boolean { return __S.getUint16(6, this) === 12; }
1437
+ setAllowStackable(value: boolean): void {
1438
+ __S.setUint16(6, 12, this);
1439
+ __S.setBit(32, value, this);
1440
+ }
1441
+ getAllowToken(): boolean {
1442
+ __S.testWhich("allowToken", __S.getUint16(6, this), 13, this);
1443
+ return __S.getBit(32, this);
1444
+ }
1445
+ isAllowToken(): boolean { return __S.getUint16(6, this) === 13; }
1446
+ setAllowToken(value: boolean): void {
1447
+ __S.setUint16(6, 13, this);
1448
+ __S.setBit(32, value, this);
1449
+ }
1450
+ getAllowTreasury(): boolean {
1451
+ __S.testWhich("allowTreasury", __S.getUint16(6, this), 14, this);
1452
+ return __S.getBit(32, this);
1453
+ }
1454
+ isAllowTreasury(): boolean { return __S.getUint16(6, this) === 14; }
1455
+ setAllowTreasury(value: boolean): void {
1456
+ __S.setUint16(6, 14, this);
1457
+ __S.setBit(32, value, this);
1458
+ }
1459
+ getGbbAmt(): capnp.Uint64 {
1460
+ __S.testWhich("gbbAmt", __S.getUint16(6, this), 15, this);
1461
+ return __S.getUint64(8, this);
1462
+ }
1463
+ isGbbAmt(): boolean { return __S.getUint16(6, this) === 15; }
1464
+ setGbbAmt(value: capnp.Uint64): void {
1465
+ __S.setUint16(6, 15, this);
1466
+ __S.setUint64(8, value, this);
1467
+ }
1468
+ getGeeqNorm(): capnp.Uint64 {
1469
+ __S.testWhich("geeqNorm", __S.getUint16(6, this), 16, this);
1470
+ return __S.getUint64(8, this);
1471
+ }
1472
+ isGeeqNorm(): boolean { return __S.getUint16(6, this) === 16; }
1473
+ setGeeqNorm(value: capnp.Uint64): void {
1474
+ __S.setUint16(6, 16, this);
1475
+ __S.setUint64(8, value, this);
1476
+ }
1477
+ getMetadataFixedBytes(): number {
1478
+ __S.testWhich("metadataFixedBytes", __S.getUint16(6, this), 17, this);
1479
+ return __S.getUint16(8, this);
1480
+ }
1481
+ isMetadataFixedBytes(): boolean { return __S.getUint16(6, this) === 17; }
1482
+ setMetadataFixedBytes(value: number): void {
1483
+ __S.setUint16(6, 17, this);
1484
+ __S.setUint16(8, value, this);
1485
+ }
1486
+ getMetadataFixedNum(): number {
1487
+ __S.testWhich("metadataFixedNum", __S.getUint16(6, this), 18, this);
1488
+ return __S.getUint16(8, this);
1489
+ }
1490
+ isMetadataFixedNum(): boolean { return __S.getUint16(6, this) === 18; }
1491
+ setMetadataFixedNum(value: number): void {
1492
+ __S.setUint16(6, 18, this);
1493
+ __S.setUint16(8, value, this);
1494
+ }
1495
+ getMetadataVarBytes(): number {
1496
+ __S.testWhich("metadataVarBytes", __S.getUint16(6, this), 19, this);
1497
+ return __S.getUint16(8, this);
1498
+ }
1499
+ isMetadataVarBytes(): boolean { return __S.getUint16(6, this) === 19; }
1500
+ setMetadataVarBytes(value: number): void {
1501
+ __S.setUint16(6, 19, this);
1502
+ __S.setUint16(8, value, this);
1503
+ }
1504
+ getMetadataVarNum(): number {
1505
+ __S.testWhich("metadataVarNum", __S.getUint16(6, this), 20, this);
1506
+ return __S.getUint16(8, this);
1507
+ }
1508
+ isMetadataVarNum(): boolean { return __S.getUint16(6, this) === 20; }
1509
+ setMetadataVarNum(value: number): void {
1510
+ __S.setUint16(6, 20, this);
1511
+ __S.setUint16(8, value, this);
1512
+ }
1513
+ getMinTxAmt(): capnp.Uint64 {
1514
+ __S.testWhich("minTxAmt", __S.getUint16(6, this), 21, this);
1515
+ return __S.getUint64(8, this);
1516
+ }
1517
+ isMinTxAmt(): boolean { return __S.getUint16(6, this) === 21; }
1518
+ setMinTxAmt(value: capnp.Uint64): void {
1519
+ __S.setUint16(6, 21, this);
1520
+ __S.setUint64(8, value, this);
1521
+ }
1522
+ getNtlMaxNum(): number {
1523
+ __S.testWhich("ntlMaxNum", __S.getUint16(6, this), 22, this);
1524
+ return __S.getUint16(8, this);
1525
+ }
1526
+ isNtlMaxNum(): boolean { return __S.getUint16(6, this) === 22; }
1527
+ setNtlMaxNum(value: number): void {
1528
+ __S.setUint16(6, 22, this);
1529
+ __S.setUint16(8, value, this);
1530
+ }
1531
+ getRentInterval(): capnp.Uint64 {
1532
+ __S.testWhich("rentInterval", __S.getUint16(6, this), 23, this);
1533
+ return __S.getUint64(8, this);
1534
+ }
1535
+ isRentInterval(): boolean { return __S.getUint16(6, this) === 23; }
1536
+ setRentInterval(value: capnp.Uint64): void {
1537
+ __S.setUint16(6, 23, this);
1538
+ __S.setUint64(8, value, this);
1539
+ }
1540
+ getTargetAnchorNode(): number {
1541
+ __S.testWhich("targetAnchorNode", __S.getUint16(6, this), 24, this);
1542
+ return __S.getUint16(8, this);
1543
+ }
1544
+ isTargetAnchorNode(): boolean { return __S.getUint16(6, this) === 24; }
1545
+ setTargetAnchorNode(value: number): void {
1546
+ __S.setUint16(6, 24, this);
1547
+ __S.setUint16(8, value, this);
1548
+ }
1549
+ getTargetAnonNode(): number {
1550
+ __S.testWhich("targetAnonNode", __S.getUint16(6, this), 25, this);
1551
+ return __S.getUint16(8, this);
1552
+ }
1553
+ isTargetAnonNode(): boolean { return __S.getUint16(6, this) === 25; }
1554
+ setTargetAnonNode(value: number): void {
1555
+ __S.setUint16(6, 25, this);
1556
+ __S.setUint16(8, value, this);
1557
+ }
1558
+ getTargetBlockInterval(): capnp.Uint64 {
1559
+ __S.testWhich("targetBlockInterval", __S.getUint16(6, this), 26, this);
1560
+ return __S.getUint64(8, this);
1561
+ }
1562
+ isTargetBlockInterval(): boolean { return __S.getUint16(6, this) === 26; }
1563
+ setTargetBlockInterval(value: capnp.Uint64): void {
1564
+ __S.setUint16(6, 26, this);
1565
+ __S.setUint64(8, value, this);
1566
+ }
1567
+ getTargetCertNode(): number {
1568
+ __S.testWhich("targetCertNode", __S.getUint16(6, this), 27, this);
1569
+ return __S.getUint16(8, this);
1570
+ }
1571
+ isTargetCertNode(): boolean { return __S.getUint16(6, this) === 27; }
1572
+ setTargetCertNode(value: number): void {
1573
+ __S.setUint16(6, 27, this);
1574
+ __S.setUint16(8, value, this);
1575
+ }
1576
+ getTargetGossipNet(): number {
1577
+ __S.testWhich("targetGossipNet", __S.getUint16(6, this), 28, this);
1578
+ return __S.getUint16(8, this);
1579
+ }
1580
+ isTargetGossipNet(): boolean { return __S.getUint16(6, this) === 28; }
1581
+ setTargetGossipNet(value: number): void {
1582
+ __S.setUint16(6, 28, this);
1583
+ __S.setUint16(8, value, this);
1584
+ }
1585
+ toString(): string { return "ParamAcctRecTx_ParamType_" + super.toString(); }
1586
+ which(): ParamAcctRecTx_ParamType_Which { return __S.getUint16(6, this); }
1587
+ }
1588
+ export class ParamAcctRecTx extends __S {
1589
+ static readonly _capnp = { displayName: "ParamAcctRecTx", id: "b78b9a6573605402", size: new __O(16, 2) };
1590
+ getParamType(): ParamAcctRecTx_ParamType { return __S.getAs(ParamAcctRecTx_ParamType, this); }
1591
+ initParamType(): ParamAcctRecTx_ParamType { return __S.getAs(ParamAcctRecTx_ParamType, this); }
1592
+ getNonce(): number { return __S.getUint32(0, this); }
1593
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
1594
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
1595
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
1596
+ getAcctNumRcv(): capnp.Data { return __S.getData(0, this); }
1597
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1598
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(0, length, this); }
1599
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1600
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
1601
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
1602
+ getPubKey(): capnp.Data { return __S.getData(1, this); }
1603
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1604
+ initPubKey(length: number): capnp.Data { return __S.initData(1, length, this); }
1605
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
1606
+ toString(): string { return "ParamAcctRecTx_" + super.toString(); }
1607
+ }
1608
+ export class AuditHubTx extends __S {
1609
+ static readonly _capnp = { displayName: "AuditHubTx", id: "ee4e6f8ba301507d", size: new __O(0, 2) };
1610
+ adoptHubContentStmtFirst(value: capnp.Orphan<HubContentStmt>): void { __S.adopt(value, __S.getPointer(0, this)); }
1611
+ disownHubContentStmtFirst(): capnp.Orphan<HubContentStmt> { return __S.disown(this.getHubContentStmtFirst()); }
1612
+ getHubContentStmtFirst(): HubContentStmt { return __S.getStruct(0, HubContentStmt, this); }
1613
+ hasHubContentStmtFirst(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1614
+ initHubContentStmtFirst(): HubContentStmt { return __S.initStructAt(0, HubContentStmt, this); }
1615
+ setHubContentStmtFirst(value: HubContentStmt): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1616
+ adoptHubContentStmtSecond(value: capnp.Orphan<HubContentStmt>): void { __S.adopt(value, __S.getPointer(1, this)); }
1617
+ disownHubContentStmtSecond(): capnp.Orphan<HubContentStmt> { return __S.disown(this.getHubContentStmtSecond()); }
1618
+ getHubContentStmtSecond(): HubContentStmt { return __S.getStruct(1, HubContentStmt, this); }
1619
+ hasHubContentStmtSecond(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1620
+ initHubContentStmtSecond(): HubContentStmt { return __S.initStructAt(1, HubContentStmt, this); }
1621
+ setHubContentStmtSecond(value: HubContentStmt): void { __S.copyFrom(value, __S.getPointer(1, this)); }
1622
+ toString(): string { return "AuditHubTx_" + super.toString(); }
1623
+ }
1624
+ export class AuditNodeTx extends __S {
1625
+ static readonly _capnp = { displayName: "AuditNodeTx", id: "c86f93926c6f1952", size: new __O(0, 2) };
1626
+ adoptNodeContentStmtFirst(value: capnp.Orphan<NodeContentStmt>): void { __S.adopt(value, __S.getPointer(0, this)); }
1627
+ disownNodeContentStmtFirst(): capnp.Orphan<NodeContentStmt> { return __S.disown(this.getNodeContentStmtFirst()); }
1628
+ getNodeContentStmtFirst(): NodeContentStmt { return __S.getStruct(0, NodeContentStmt, this); }
1629
+ hasNodeContentStmtFirst(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1630
+ initNodeContentStmtFirst(): NodeContentStmt { return __S.initStructAt(0, NodeContentStmt, this); }
1631
+ setNodeContentStmtFirst(value: NodeContentStmt): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1632
+ adoptNodeContentStmtSecond(value: capnp.Orphan<NodeContentStmt>): void { __S.adopt(value, __S.getPointer(1, this)); }
1633
+ disownNodeContentStmtSecond(): capnp.Orphan<NodeContentStmt> { return __S.disown(this.getNodeContentStmtSecond()); }
1634
+ getNodeContentStmtSecond(): NodeContentStmt { return __S.getStruct(1, NodeContentStmt, this); }
1635
+ hasNodeContentStmtSecond(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1636
+ initNodeContentStmtSecond(): NodeContentStmt { return __S.initStructAt(1, NodeContentStmt, this); }
1637
+ setNodeContentStmtSecond(value: NodeContentStmt): void { __S.copyFrom(value, __S.getPointer(1, this)); }
1638
+ toString(): string { return "AuditNodeTx_" + super.toString(); }
1639
+ }
1640
+ export class AuditRelayTx extends __S {
1641
+ static readonly _capnp = { displayName: "AuditRelayTx", id: "bf562ef971e04d24", size: new __O(0, 2) };
1642
+ adoptRelayContentStmtFirst(value: capnp.Orphan<RelayContentStmt>): void { __S.adopt(value, __S.getPointer(0, this)); }
1643
+ disownRelayContentStmtFirst(): capnp.Orphan<RelayContentStmt> { return __S.disown(this.getRelayContentStmtFirst()); }
1644
+ getRelayContentStmtFirst(): RelayContentStmt { return __S.getStruct(0, RelayContentStmt, this); }
1645
+ hasRelayContentStmtFirst(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1646
+ initRelayContentStmtFirst(): RelayContentStmt { return __S.initStructAt(0, RelayContentStmt, this); }
1647
+ setRelayContentStmtFirst(value: RelayContentStmt): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1648
+ adoptRelayContentStmtSecond(value: capnp.Orphan<RelayContentStmt>): void { __S.adopt(value, __S.getPointer(1, this)); }
1649
+ disownRelayContentStmtSecond(): capnp.Orphan<RelayContentStmt> { return __S.disown(this.getRelayContentStmtSecond()); }
1650
+ getRelayContentStmtSecond(): RelayContentStmt { return __S.getStruct(1, RelayContentStmt, this); }
1651
+ hasRelayContentStmtSecond(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1652
+ initRelayContentStmtSecond(): RelayContentStmt { return __S.initStructAt(1, RelayContentStmt, this); }
1653
+ setRelayContentStmtSecond(value: RelayContentStmt): void { __S.copyFrom(value, __S.getPointer(1, this)); }
1654
+ toString(): string { return "AuditRelayTx_" + super.toString(); }
1655
+ }
1656
+ export enum AuditTx_TxType_Which {
1657
+ HUB = 0,
1658
+ NODE = 1,
1659
+ RELAY = 2
1660
+ }
1661
+ export class AuditTx_TxType extends __S {
1662
+ static readonly HUB = AuditTx_TxType_Which.HUB;
1663
+ static readonly NODE = AuditTx_TxType_Which.NODE;
1664
+ static readonly RELAY = AuditTx_TxType_Which.RELAY;
1665
+ static readonly _capnp = { displayName: "txType", id: "95cffd5b7bad35aa", size: new __O(16, 2) };
1666
+ adoptHub(value: capnp.Orphan<AuditHubTx>): void {
1667
+ __S.setUint16(8, 0, this);
1668
+ __S.adopt(value, __S.getPointer(0, this));
1669
+ }
1670
+ disownHub(): capnp.Orphan<AuditHubTx> { return __S.disown(this.getHub()); }
1671
+ getHub(): AuditHubTx {
1672
+ __S.testWhich("hub", __S.getUint16(8, this), 0, this);
1673
+ return __S.getStruct(0, AuditHubTx, this);
1674
+ }
1675
+ hasHub(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1676
+ initHub(): AuditHubTx {
1677
+ __S.setUint16(8, 0, this);
1678
+ return __S.initStructAt(0, AuditHubTx, this);
1679
+ }
1680
+ isHub(): boolean { return __S.getUint16(8, this) === 0; }
1681
+ setHub(value: AuditHubTx): void {
1682
+ __S.setUint16(8, 0, this);
1683
+ __S.copyFrom(value, __S.getPointer(0, this));
1684
+ }
1685
+ adoptNode(value: capnp.Orphan<AuditNodeTx>): void {
1686
+ __S.setUint16(8, 1, this);
1687
+ __S.adopt(value, __S.getPointer(0, this));
1688
+ }
1689
+ disownNode(): capnp.Orphan<AuditNodeTx> { return __S.disown(this.getNode()); }
1690
+ getNode(): AuditNodeTx {
1691
+ __S.testWhich("node", __S.getUint16(8, this), 1, this);
1692
+ return __S.getStruct(0, AuditNodeTx, this);
1693
+ }
1694
+ hasNode(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1695
+ initNode(): AuditNodeTx {
1696
+ __S.setUint16(8, 1, this);
1697
+ return __S.initStructAt(0, AuditNodeTx, this);
1698
+ }
1699
+ isNode(): boolean { return __S.getUint16(8, this) === 1; }
1700
+ setNode(value: AuditNodeTx): void {
1701
+ __S.setUint16(8, 1, this);
1702
+ __S.copyFrom(value, __S.getPointer(0, this));
1703
+ }
1704
+ adoptRelay(value: capnp.Orphan<AuditRelayTx>): void {
1705
+ __S.setUint16(8, 2, this);
1706
+ __S.adopt(value, __S.getPointer(0, this));
1707
+ }
1708
+ disownRelay(): capnp.Orphan<AuditRelayTx> { return __S.disown(this.getRelay()); }
1709
+ getRelay(): AuditRelayTx {
1710
+ __S.testWhich("relay", __S.getUint16(8, this), 2, this);
1711
+ return __S.getStruct(0, AuditRelayTx, this);
1712
+ }
1713
+ hasRelay(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1714
+ initRelay(): AuditRelayTx {
1715
+ __S.setUint16(8, 2, this);
1716
+ return __S.initStructAt(0, AuditRelayTx, this);
1717
+ }
1718
+ isRelay(): boolean { return __S.getUint16(8, this) === 2; }
1719
+ setRelay(value: AuditRelayTx): void {
1720
+ __S.setUint16(8, 2, this);
1721
+ __S.copyFrom(value, __S.getPointer(0, this));
1722
+ }
1723
+ toString(): string { return "AuditTx_TxType_" + super.toString(); }
1724
+ which(): AuditTx_TxType_Which { return __S.getUint16(8, this); }
1725
+ }
1726
+ export class AuditTx extends __S {
1727
+ static readonly _capnp = { displayName: "AuditTx", id: "e9cc52cf4815771c", size: new __O(16, 2) };
1728
+ getTxType(): AuditTx_TxType { return __S.getAs(AuditTx_TxType, this); }
1729
+ initTxType(): AuditTx_TxType { return __S.getAs(AuditTx_TxType, this); }
1730
+ getNonce(): number { return __S.getUint32(0, this); }
1731
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
1732
+ getNodeNumAudited(): number { return __S.getUint32(4, this); }
1733
+ setNodeNumAudited(value: number): void { __S.setUint32(4, value, this); }
1734
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
1735
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
1736
+ getPubKey(): capnp.Data { return __S.getData(1, this); }
1737
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1738
+ initPubKey(length: number): capnp.Data { return __S.initData(1, length, this); }
1739
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
1740
+ toString(): string { return "AuditTx_" + super.toString(); }
1741
+ }
1742
+ export enum UserValTxData_Tx_Which {
1743
+ COIN = 0,
1744
+ PROXY_CREATE = 1,
1745
+ PROXY_ADMIN = 2,
1746
+ MULTISIG = 3,
1747
+ NET_ACTOR_REC = 4,
1748
+ PARAM_ACCT_REC = 5,
1749
+ AUDIT = 6
1750
+ }
1751
+ export class UserValTxData_Tx extends __S {
1752
+ static readonly COIN = UserValTxData_Tx_Which.COIN;
1753
+ static readonly PROXY_CREATE = UserValTxData_Tx_Which.PROXY_CREATE;
1754
+ static readonly PROXY_ADMIN = UserValTxData_Tx_Which.PROXY_ADMIN;
1755
+ static readonly MULTISIG = UserValTxData_Tx_Which.MULTISIG;
1756
+ static readonly NET_ACTOR_REC = UserValTxData_Tx_Which.NET_ACTOR_REC;
1757
+ static readonly PARAM_ACCT_REC = UserValTxData_Tx_Which.PARAM_ACCT_REC;
1758
+ static readonly AUDIT = UserValTxData_Tx_Which.AUDIT;
1759
+ static readonly _capnp = { displayName: "tx", id: "8fc1761e104d4888", size: new __O(16, 1) };
1760
+ adoptCoin(value: capnp.Orphan<CoinTx>): void {
1761
+ __S.setUint16(12, 0, this);
1762
+ __S.adopt(value, __S.getPointer(0, this));
1763
+ }
1764
+ disownCoin(): capnp.Orphan<CoinTx> { return __S.disown(this.getCoin()); }
1765
+ getCoin(): CoinTx {
1766
+ __S.testWhich("coin", __S.getUint16(12, this), 0, this);
1767
+ return __S.getStruct(0, CoinTx, this);
1768
+ }
1769
+ hasCoin(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1770
+ initCoin(): CoinTx {
1771
+ __S.setUint16(12, 0, this);
1772
+ return __S.initStructAt(0, CoinTx, this);
1773
+ }
1774
+ isCoin(): boolean { return __S.getUint16(12, this) === 0; }
1775
+ setCoin(value: CoinTx): void {
1776
+ __S.setUint16(12, 0, this);
1777
+ __S.copyFrom(value, __S.getPointer(0, this));
1778
+ }
1779
+ adoptProxyCreate(value: capnp.Orphan<ProxyCreateTx>): void {
1780
+ __S.setUint16(12, 1, this);
1781
+ __S.adopt(value, __S.getPointer(0, this));
1782
+ }
1783
+ disownProxyCreate(): capnp.Orphan<ProxyCreateTx> { return __S.disown(this.getProxyCreate()); }
1784
+ getProxyCreate(): ProxyCreateTx {
1785
+ __S.testWhich("proxyCreate", __S.getUint16(12, this), 1, this);
1786
+ return __S.getStruct(0, ProxyCreateTx, this);
1787
+ }
1788
+ hasProxyCreate(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1789
+ initProxyCreate(): ProxyCreateTx {
1790
+ __S.setUint16(12, 1, this);
1791
+ return __S.initStructAt(0, ProxyCreateTx, this);
1792
+ }
1793
+ isProxyCreate(): boolean { return __S.getUint16(12, this) === 1; }
1794
+ setProxyCreate(value: ProxyCreateTx): void {
1795
+ __S.setUint16(12, 1, this);
1796
+ __S.copyFrom(value, __S.getPointer(0, this));
1797
+ }
1798
+ adoptProxyAdmin(value: capnp.Orphan<ProxyAdminTx>): void {
1799
+ __S.setUint16(12, 2, this);
1800
+ __S.adopt(value, __S.getPointer(0, this));
1801
+ }
1802
+ disownProxyAdmin(): capnp.Orphan<ProxyAdminTx> { return __S.disown(this.getProxyAdmin()); }
1803
+ getProxyAdmin(): ProxyAdminTx {
1804
+ __S.testWhich("proxyAdmin", __S.getUint16(12, this), 2, this);
1805
+ return __S.getStruct(0, ProxyAdminTx, this);
1806
+ }
1807
+ hasProxyAdmin(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1808
+ initProxyAdmin(): ProxyAdminTx {
1809
+ __S.setUint16(12, 2, this);
1810
+ return __S.initStructAt(0, ProxyAdminTx, this);
1811
+ }
1812
+ isProxyAdmin(): boolean { return __S.getUint16(12, this) === 2; }
1813
+ setProxyAdmin(value: ProxyAdminTx): void {
1814
+ __S.setUint16(12, 2, this);
1815
+ __S.copyFrom(value, __S.getPointer(0, this));
1816
+ }
1817
+ adoptMultisig(value: capnp.Orphan<MultisigTx>): void {
1818
+ __S.setUint16(12, 3, this);
1819
+ __S.adopt(value, __S.getPointer(0, this));
1820
+ }
1821
+ disownMultisig(): capnp.Orphan<MultisigTx> { return __S.disown(this.getMultisig()); }
1822
+ getMultisig(): MultisigTx {
1823
+ __S.testWhich("multisig", __S.getUint16(12, this), 3, this);
1824
+ return __S.getStruct(0, MultisigTx, this);
1825
+ }
1826
+ hasMultisig(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1827
+ initMultisig(): MultisigTx {
1828
+ __S.setUint16(12, 3, this);
1829
+ return __S.initStructAt(0, MultisigTx, this);
1830
+ }
1831
+ isMultisig(): boolean { return __S.getUint16(12, this) === 3; }
1832
+ setMultisig(value: MultisigTx): void {
1833
+ __S.setUint16(12, 3, this);
1834
+ __S.copyFrom(value, __S.getPointer(0, this));
1835
+ }
1836
+ adoptNetActorRec(value: capnp.Orphan<NetActorRecTx>): void {
1837
+ __S.setUint16(12, 4, this);
1838
+ __S.adopt(value, __S.getPointer(0, this));
1839
+ }
1840
+ disownNetActorRec(): capnp.Orphan<NetActorRecTx> { return __S.disown(this.getNetActorRec()); }
1841
+ getNetActorRec(): NetActorRecTx {
1842
+ __S.testWhich("netActorRec", __S.getUint16(12, this), 4, this);
1843
+ return __S.getStruct(0, NetActorRecTx, this);
1844
+ }
1845
+ hasNetActorRec(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1846
+ initNetActorRec(): NetActorRecTx {
1847
+ __S.setUint16(12, 4, this);
1848
+ return __S.initStructAt(0, NetActorRecTx, this);
1849
+ }
1850
+ isNetActorRec(): boolean { return __S.getUint16(12, this) === 4; }
1851
+ setNetActorRec(value: NetActorRecTx): void {
1852
+ __S.setUint16(12, 4, this);
1853
+ __S.copyFrom(value, __S.getPointer(0, this));
1854
+ }
1855
+ adoptParamAcctRec(value: capnp.Orphan<ParamAcctRecTx>): void {
1856
+ __S.setUint16(12, 5, this);
1857
+ __S.adopt(value, __S.getPointer(0, this));
1858
+ }
1859
+ disownParamAcctRec(): capnp.Orphan<ParamAcctRecTx> { return __S.disown(this.getParamAcctRec()); }
1860
+ getParamAcctRec(): ParamAcctRecTx {
1861
+ __S.testWhich("paramAcctRec", __S.getUint16(12, this), 5, this);
1862
+ return __S.getStruct(0, ParamAcctRecTx, this);
1863
+ }
1864
+ hasParamAcctRec(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1865
+ initParamAcctRec(): ParamAcctRecTx {
1866
+ __S.setUint16(12, 5, this);
1867
+ return __S.initStructAt(0, ParamAcctRecTx, this);
1868
+ }
1869
+ isParamAcctRec(): boolean { return __S.getUint16(12, this) === 5; }
1870
+ setParamAcctRec(value: ParamAcctRecTx): void {
1871
+ __S.setUint16(12, 5, this);
1872
+ __S.copyFrom(value, __S.getPointer(0, this));
1873
+ }
1874
+ adoptAudit(value: capnp.Orphan<AuditTx>): void {
1875
+ __S.setUint16(12, 6, this);
1876
+ __S.adopt(value, __S.getPointer(0, this));
1877
+ }
1878
+ disownAudit(): capnp.Orphan<AuditTx> { return __S.disown(this.getAudit()); }
1879
+ getAudit(): AuditTx {
1880
+ __S.testWhich("audit", __S.getUint16(12, this), 6, this);
1881
+ return __S.getStruct(0, AuditTx, this);
1882
+ }
1883
+ hasAudit(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1884
+ initAudit(): AuditTx {
1885
+ __S.setUint16(12, 6, this);
1886
+ return __S.initStructAt(0, AuditTx, this);
1887
+ }
1888
+ isAudit(): boolean { return __S.getUint16(12, this) === 6; }
1889
+ setAudit(value: AuditTx): void {
1890
+ __S.setUint16(12, 6, this);
1891
+ __S.copyFrom(value, __S.getPointer(0, this));
1892
+ }
1893
+ toString(): string { return "UserValTxData_Tx_" + super.toString(); }
1894
+ which(): UserValTxData_Tx_Which { return __S.getUint16(12, this); }
1895
+ }
1896
+ export class UserValTxData extends __S {
1897
+ static readonly _capnp = { displayName: "UserValTxData", id: "a50418a6266b68c9", size: new __O(16, 1) };
1898
+ getBlockNum(): number { return __S.getUint32(0, this); }
1899
+ setBlockNum(value: number): void { __S.setUint32(0, value, this); }
1900
+ getChainNum(): number { return __S.getUint32(4, this); }
1901
+ setChainNum(value: number): void { __S.setUint32(4, value, this); }
1902
+ getNodeNum(): number { return __S.getUint32(8, this); }
1903
+ setNodeNum(value: number): void { __S.setUint32(8, value, this); }
1904
+ getTx(): UserValTxData_Tx { return __S.getAs(UserValTxData_Tx, this); }
1905
+ initTx(): UserValTxData_Tx { return __S.getAs(UserValTxData_Tx, this); }
1906
+ toString(): string { return "UserValTxData_" + super.toString(); }
1907
+ }
1908
+ export class MultisigEndSubgroup extends __S {
1909
+ static readonly _capnp = { displayName: "MultisigEndSubgroup", id: "802604f0df7f56db", size: new __O(0, 2) };
1910
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
1911
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
1912
+ getPubKey(): capnp.Data { return __S.getData(0, this); }
1913
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1914
+ initPubKey(length: number): capnp.Data { return __S.initData(0, length, this); }
1915
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1916
+ adoptSignature(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
1917
+ disownSignature(): capnp.Orphan<capnp.Data> { return __S.disown(this.getSignature()); }
1918
+ getSignature(): capnp.Data { return __S.getData(1, this); }
1919
+ hasSignature(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1920
+ initSignature(length: number): capnp.Data { return __S.initData(1, length, this); }
1921
+ setSignature(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
1922
+ toString(): string { return "MultisigEndSubgroup_" + super.toString(); }
1923
+ }
1924
+ export class MultisigEndSubgroupEntry extends __S {
1925
+ static readonly _capnp = { displayName: "MultisigEndSubgroupEntry", id: "fbe2c254c97419d2", size: new __O(8, 1) };
1926
+ getPosition(): number { return __S.getUint16(0, this); }
1927
+ setPosition(value: number): void { __S.setUint16(0, value, this); }
1928
+ adoptItem(value: capnp.Orphan<MultisigEndSubgroup>): void { __S.adopt(value, __S.getPointer(0, this)); }
1929
+ disownItem(): capnp.Orphan<MultisigEndSubgroup> { return __S.disown(this.getItem()); }
1930
+ getItem(): MultisigEndSubgroup { return __S.getStruct(0, MultisigEndSubgroup, this); }
1931
+ hasItem(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1932
+ initItem(): MultisigEndSubgroup { return __S.initStructAt(0, MultisigEndSubgroup, this); }
1933
+ setItem(value: MultisigEndSubgroup): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1934
+ toString(): string { return "MultisigEndSubgroupEntry_" + super.toString(); }
1935
+ }
1936
+ export enum UserValTx_Signature_Which {
1937
+ SOME = 0,
1938
+ NONE = 1
1939
+ }
1940
+ export class UserValTx_Signature extends __S {
1941
+ static readonly SOME = UserValTx_Signature_Which.SOME;
1942
+ static readonly NONE = UserValTx_Signature_Which.NONE;
1943
+ static readonly _capnp = { displayName: "signature", id: "ee088482c13cd971", size: new __O(8, 3) };
1944
+ adoptSome(value: capnp.Orphan<capnp.Data>): void {
1945
+ __S.setUint16(0, 0, this);
1946
+ __S.adopt(value, __S.getPointer(1, this));
1947
+ }
1948
+ disownSome(): capnp.Orphan<capnp.Data> { return __S.disown(this.getSome()); }
1949
+ getSome(): capnp.Data {
1950
+ __S.testWhich("some", __S.getUint16(0, this), 0, this);
1951
+ return __S.getData(1, this);
1952
+ }
1953
+ hasSome(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
1954
+ initSome(length: number): capnp.Data {
1955
+ __S.setUint16(0, 0, this);
1956
+ return __S.initData(1, length, this);
1957
+ }
1958
+ isSome(): boolean { return __S.getUint16(0, this) === 0; }
1959
+ setSome(value: capnp.Data): void {
1960
+ __S.setUint16(0, 0, this);
1961
+ __S.copyFrom(value, __S.getPointer(1, this));
1962
+ }
1963
+ isNone(): boolean { return __S.getUint16(0, this) === 1; }
1964
+ setNone(): void { __S.setUint16(0, 1, this); }
1965
+ toString(): string { return "UserValTx_Signature_" + super.toString(); }
1966
+ which(): UserValTx_Signature_Which { return __S.getUint16(0, this); }
1967
+ }
1968
+ export class UserValTx extends __S {
1969
+ static readonly _capnp = { displayName: "UserValTx", id: "b383e92d8fb8ccac", size: new __O(8, 3) };
1970
+ static _Endorsements: capnp.ListCtor<MultisigEndSubgroupEntry>;
1971
+ adoptData(value: capnp.Orphan<UserValTxData>): void { __S.adopt(value, __S.getPointer(0, this)); }
1972
+ disownData(): capnp.Orphan<UserValTxData> { return __S.disown(this.getData()); }
1973
+ getData(): UserValTxData { return __S.getStruct(0, UserValTxData, this); }
1974
+ hasData(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
1975
+ initData(): UserValTxData { return __S.initStructAt(0, UserValTxData, this); }
1976
+ setData(value: UserValTxData): void { __S.copyFrom(value, __S.getPointer(0, this)); }
1977
+ getSignature(): UserValTx_Signature { return __S.getAs(UserValTx_Signature, this); }
1978
+ initSignature(): UserValTx_Signature { return __S.getAs(UserValTx_Signature, this); }
1979
+ adoptEndorsements(value: capnp.Orphan<capnp.List<MultisigEndSubgroupEntry>>): void { __S.adopt(value, __S.getPointer(2, this)); }
1980
+ disownEndorsements(): capnp.Orphan<capnp.List<MultisigEndSubgroupEntry>> { return __S.disown(this.getEndorsements()); }
1981
+ getEndorsements(): capnp.List<MultisigEndSubgroupEntry> { return __S.getList(2, UserValTx._Endorsements, this); }
1982
+ hasEndorsements(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
1983
+ initEndorsements(length: number): capnp.List<MultisigEndSubgroupEntry> { return __S.initList(2, UserValTx._Endorsements, length, this); }
1984
+ setEndorsements(value: capnp.List<MultisigEndSubgroupEntry>): void { __S.copyFrom(value, __S.getPointer(2, this)); }
1985
+ toString(): string { return "UserValTx_" + super.toString(); }
1986
+ }
1987
+ CoinAssetTx._TokenAssetSubgroups = capnp.CompositeList(TokenAssetSubgroupEntry);
1988
+ CoinAssetTx._NftAssetSubgroups = capnp.CompositeList(NftAssetSubgroupEntry);
1989
+ CoinBurnTx._TokenAssetSubgroups = capnp.CompositeList(TokenAssetSubgroupEntry);
1990
+ CoinBurnTx._NftAssetSubgroups = capnp.CompositeList(NftAssetSubgroupEntry);
1991
+ CoinHlTx._TokenAssetSubgroups = capnp.CompositeList(TokenAssetSubgroupEntry);
1992
+ CoinHlTx._NftAssetSubgroups = capnp.CompositeList(NftAssetSubgroupEntry);
1993
+ ProxyCreateDceTx._AcctNumMultiUsers = capnp.CompositeList(AcctNumEntry);
1994
+ ProxyCreateFundingTx._AcctNumMultiUsers = capnp.CompositeList(AcctNumEntry);
1995
+ ProxyCreateMultisigTx._AcctNumMultiUsers = capnp.CompositeList(AcctNumEntry);
1996
+ ProxyUpdateTx._AcctNumMultiUsers = capnp.CompositeList(AcctNumEntry);
1997
+ MultisigTx._TokenAssetSubgroups = capnp.CompositeList(TokenAssetSubgroupEntry);
1998
+ MultisigTx._NftAssetSubgroups = capnp.CompositeList(NftAssetSubgroupEntry);
1999
+ UserValTx._Endorsements = capnp.CompositeList(MultisigEndSubgroupEntry);