@geeqdev/geeq-sdk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,49 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ export const _capnpFileId = "a7e8a4684ffc42aa";
10
+ export class ChainStateView extends __S {
11
+ static readonly _capnp = { displayName: "ChainStateView", id: "8b6888e93ad5b866", size: new __O(0, 6) };
12
+ adoptMerkleRootAlb(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
13
+ disownMerkleRootAlb(): capnp.Orphan<capnp.Data> { return __S.disown(this.getMerkleRootAlb()); }
14
+ getMerkleRootAlb(): capnp.Data { return __S.getData(0, this); }
15
+ hasMerkleRootAlb(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
16
+ initMerkleRootAlb(length: number): capnp.Data { return __S.initData(0, length, this); }
17
+ setMerkleRootAlb(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
18
+ adoptMerkleRootVlb(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
19
+ disownMerkleRootVlb(): capnp.Orphan<capnp.Data> { return __S.disown(this.getMerkleRootVlb()); }
20
+ getMerkleRootVlb(): capnp.Data { return __S.getData(1, this); }
21
+ hasMerkleRootVlb(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
22
+ initMerkleRootVlb(length: number): capnp.Data { return __S.initData(1, length, this); }
23
+ setMerkleRootVlb(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
24
+ adoptMerkleRootAll(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
25
+ disownMerkleRootAll(): capnp.Orphan<capnp.Data> { return __S.disown(this.getMerkleRootAll()); }
26
+ getMerkleRootAll(): capnp.Data { return __S.getData(2, this); }
27
+ hasMerkleRootAll(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
28
+ initMerkleRootAll(length: number): capnp.Data { return __S.initData(2, length, this); }
29
+ setMerkleRootAll(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
30
+ adoptMerkleRootVll(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
31
+ disownMerkleRootVll(): capnp.Orphan<capnp.Data> { return __S.disown(this.getMerkleRootVll()); }
32
+ getMerkleRootVll(): capnp.Data { return __S.getData(3, this); }
33
+ hasMerkleRootVll(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
34
+ initMerkleRootVll(length: number): capnp.Data { return __S.initData(3, length, this); }
35
+ setMerkleRootVll(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
36
+ adoptMerkleRootRcs(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(4, this)); }
37
+ disownMerkleRootRcs(): capnp.Orphan<capnp.Data> { return __S.disown(this.getMerkleRootRcs()); }
38
+ getMerkleRootRcs(): capnp.Data { return __S.getData(4, this); }
39
+ hasMerkleRootRcs(): boolean { return !__S.isNull(__S.getPointer(4, this)); }
40
+ initMerkleRootRcs(length: number): capnp.Data { return __S.initData(4, length, this); }
41
+ setMerkleRootRcs(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(4, this)); }
42
+ adoptForkData(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(5, this)); }
43
+ disownForkData(): capnp.Orphan<capnp.Data> { return __S.disown(this.getForkData()); }
44
+ getForkData(): capnp.Data { return __S.getData(5, this); }
45
+ hasForkData(): boolean { return !__S.isNull(__S.getPointer(5, this)); }
46
+ initForkData(length: number): capnp.Data { return __S.initData(5, length, this); }
47
+ setForkData(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(5, this)); }
48
+ toString(): string { return "ChainStateView_" + super.toString(); }
49
+ }
@@ -0,0 +1,193 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ export const _capnpFileId = "efe91e8494755b9a";
10
+ export class TokenAssetSubgroup extends __S {
11
+ static readonly _capnp = { displayName: "TokenAssetSubgroup", id: "f2ccc7e7067b1ddd", size: new __O(8, 1) };
12
+ adoptTokenName(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
13
+ disownTokenName(): capnp.Orphan<capnp.Data> { return __S.disown(this.getTokenName()); }
14
+ getTokenName(): capnp.Data { return __S.getData(0, this); }
15
+ hasTokenName(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
16
+ initTokenName(length: number): capnp.Data { return __S.initData(0, length, this); }
17
+ setTokenName(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
18
+ getAmtToken(): capnp.Uint64 { return __S.getUint64(0, this); }
19
+ setAmtToken(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
20
+ toString(): string { return "TokenAssetSubgroup_" + super.toString(); }
21
+ }
22
+ export class NftAssetSubgroup extends __S {
23
+ static readonly _capnp = { displayName: "NftAssetSubgroup", id: "dc56d34bab978e1e", size: new __O(8, 1) };
24
+ getFlagCounterpartyNft(): boolean { return __S.getBit(0, this); }
25
+ setFlagCounterpartyNft(value: boolean): void { __S.setBit(0, value, this); }
26
+ adoptAcctNumApp(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
27
+ disownAcctNumApp(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumApp()); }
28
+ getAcctNumApp(): capnp.Data { return __S.getData(0, this); }
29
+ hasAcctNumApp(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
30
+ initAcctNumApp(length: number): capnp.Data { return __S.initData(0, length, this); }
31
+ setAcctNumApp(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
32
+ toString(): string { return "NftAssetSubgroup_" + super.toString(); }
33
+ }
34
+ export class CoinAssetRec extends __S {
35
+ static readonly _capnp = { displayName: "CoinAssetRec", id: "ed00ff6fd50cecf4", size: new __O(8, 2) };
36
+ static _TokenAssetSubgroups: capnp.ListCtor<TokenAssetSubgroup>;
37
+ static _NftAssetSubgroups: capnp.ListCtor<NftAssetSubgroup>;
38
+ getNonce(): number { return __S.getUint32(0, this); }
39
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
40
+ adoptTokenAssetSubgroups(value: capnp.Orphan<capnp.List<TokenAssetSubgroup>>): void { __S.adopt(value, __S.getPointer(0, this)); }
41
+ disownTokenAssetSubgroups(): capnp.Orphan<capnp.List<TokenAssetSubgroup>> { return __S.disown(this.getTokenAssetSubgroups()); }
42
+ getTokenAssetSubgroups(): capnp.List<TokenAssetSubgroup> { return __S.getList(0, CoinAssetRec._TokenAssetSubgroups, this); }
43
+ hasTokenAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
44
+ initTokenAssetSubgroups(length: number): capnp.List<TokenAssetSubgroup> { return __S.initList(0, CoinAssetRec._TokenAssetSubgroups, length, this); }
45
+ setTokenAssetSubgroups(value: capnp.List<TokenAssetSubgroup>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
46
+ adoptNftAssetSubgroups(value: capnp.Orphan<capnp.List<NftAssetSubgroup>>): void { __S.adopt(value, __S.getPointer(1, this)); }
47
+ disownNftAssetSubgroups(): capnp.Orphan<capnp.List<NftAssetSubgroup>> { return __S.disown(this.getNftAssetSubgroups()); }
48
+ getNftAssetSubgroups(): capnp.List<NftAssetSubgroup> { return __S.getList(1, CoinAssetRec._NftAssetSubgroups, this); }
49
+ hasNftAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
50
+ initNftAssetSubgroups(length: number): capnp.List<NftAssetSubgroup> { return __S.initList(1, CoinAssetRec._NftAssetSubgroups, length, this); }
51
+ setNftAssetSubgroups(value: capnp.List<NftAssetSubgroup>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
52
+ toString(): string { return "CoinAssetRec_" + super.toString(); }
53
+ }
54
+ export class CoinHlRec extends __S {
55
+ static readonly _capnp = { displayName: "CoinHlRec", id: "a0ae5bd74d8d0d1d", size: new __O(8, 5) };
56
+ static _TokenAssetSubgroups: capnp.ListCtor<TokenAssetSubgroup>;
57
+ static _NftAssetSubgroups: capnp.ListCtor<NftAssetSubgroup>;
58
+ adoptTokenAssetSubgroups(value: capnp.Orphan<capnp.List<TokenAssetSubgroup>>): void { __S.adopt(value, __S.getPointer(0, this)); }
59
+ disownTokenAssetSubgroups(): capnp.Orphan<capnp.List<TokenAssetSubgroup>> { return __S.disown(this.getTokenAssetSubgroups()); }
60
+ getTokenAssetSubgroups(): capnp.List<TokenAssetSubgroup> { return __S.getList(0, CoinHlRec._TokenAssetSubgroups, this); }
61
+ hasTokenAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
62
+ initTokenAssetSubgroups(length: number): capnp.List<TokenAssetSubgroup> { return __S.initList(0, CoinHlRec._TokenAssetSubgroups, length, this); }
63
+ setTokenAssetSubgroups(value: capnp.List<TokenAssetSubgroup>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
64
+ adoptNftAssetSubgroups(value: capnp.Orphan<capnp.List<NftAssetSubgroup>>): void { __S.adopt(value, __S.getPointer(1, this)); }
65
+ disownNftAssetSubgroups(): capnp.Orphan<capnp.List<NftAssetSubgroup>> { return __S.disown(this.getNftAssetSubgroups()); }
66
+ getNftAssetSubgroups(): capnp.List<NftAssetSubgroup> { return __S.getList(1, CoinHlRec._NftAssetSubgroups, this); }
67
+ hasNftAssetSubgroups(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
68
+ initNftAssetSubgroups(length: number): capnp.List<NftAssetSubgroup> { return __S.initList(1, CoinHlRec._NftAssetSubgroups, length, this); }
69
+ setNftAssetSubgroups(value: capnp.List<NftAssetSubgroup>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
70
+ adoptHlDigest(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
71
+ disownHlDigest(): capnp.Orphan<capnp.Data> { return __S.disown(this.getHlDigest()); }
72
+ getHlDigest(): capnp.Data { return __S.getData(2, this); }
73
+ hasHlDigest(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
74
+ initHlDigest(length: number): capnp.Data { return __S.initData(2, length, this); }
75
+ setHlDigest(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
76
+ getBlockNumRfd(): number { return __S.getUint32(0, this); }
77
+ setBlockNumRfd(value: number): void { __S.setUint32(0, value, this); }
78
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
79
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
80
+ getAcctNumRfd(): capnp.Data { return __S.getData(3, this); }
81
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
82
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(3, length, this); }
83
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
84
+ adoptAcctNumRcv(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(4, this)); }
85
+ disownAcctNumRcv(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRcv()); }
86
+ getAcctNumRcv(): capnp.Data { return __S.getData(4, this); }
87
+ hasAcctNumRcv(): boolean { return !__S.isNull(__S.getPointer(4, this)); }
88
+ initAcctNumRcv(length: number): capnp.Data { return __S.initData(4, length, this); }
89
+ setAcctNumRcv(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(4, this)); }
90
+ toString(): string { return "CoinHlRec_" + super.toString(); }
91
+ }
92
+ export class CoinMicroRec extends __S {
93
+ static readonly _capnp = { displayName: "CoinMicroRec", id: "f88cd46faf2df15b", size: new __O(8, 1) };
94
+ getNonce(): number { return __S.getUint32(0, this); }
95
+ setNonce(value: number): void { __S.setUint32(0, value, this); }
96
+ getBlockNumRfd(): number { return __S.getUint32(4, this); }
97
+ setBlockNumRfd(value: number): void { __S.setUint32(4, value, this); }
98
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
99
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
100
+ getAcctNumRfd(): capnp.Data { return __S.getData(0, this); }
101
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
102
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(0, length, this); }
103
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
104
+ toString(): string { return "CoinMicroRec_" + super.toString(); }
105
+ }
106
+ export enum CoinAcctRec_RecType_Which {
107
+ ASSET = 0,
108
+ HL = 1,
109
+ MICRO = 2
110
+ }
111
+ export class CoinAcctRec_RecType extends __S {
112
+ static readonly ASSET = CoinAcctRec_RecType_Which.ASSET;
113
+ static readonly HL = CoinAcctRec_RecType_Which.HL;
114
+ static readonly MICRO = CoinAcctRec_RecType_Which.MICRO;
115
+ static readonly _capnp = { displayName: "recType", id: "e284c8578fa0bf7f", size: new __O(16, 2) };
116
+ adoptAsset(value: capnp.Orphan<CoinAssetRec>): void {
117
+ __S.setUint16(8, 0, this);
118
+ __S.adopt(value, __S.getPointer(0, this));
119
+ }
120
+ disownAsset(): capnp.Orphan<CoinAssetRec> { return __S.disown(this.getAsset()); }
121
+ getAsset(): CoinAssetRec {
122
+ __S.testWhich("asset", __S.getUint16(8, this), 0, this);
123
+ return __S.getStruct(0, CoinAssetRec, this);
124
+ }
125
+ hasAsset(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
126
+ initAsset(): CoinAssetRec {
127
+ __S.setUint16(8, 0, this);
128
+ return __S.initStructAt(0, CoinAssetRec, this);
129
+ }
130
+ isAsset(): boolean { return __S.getUint16(8, this) === 0; }
131
+ setAsset(value: CoinAssetRec): void {
132
+ __S.setUint16(8, 0, this);
133
+ __S.copyFrom(value, __S.getPointer(0, this));
134
+ }
135
+ adoptHl(value: capnp.Orphan<CoinHlRec>): void {
136
+ __S.setUint16(8, 1, this);
137
+ __S.adopt(value, __S.getPointer(0, this));
138
+ }
139
+ disownHl(): capnp.Orphan<CoinHlRec> { return __S.disown(this.getHl()); }
140
+ getHl(): CoinHlRec {
141
+ __S.testWhich("hl", __S.getUint16(8, this), 1, this);
142
+ return __S.getStruct(0, CoinHlRec, this);
143
+ }
144
+ hasHl(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
145
+ initHl(): CoinHlRec {
146
+ __S.setUint16(8, 1, this);
147
+ return __S.initStructAt(0, CoinHlRec, this);
148
+ }
149
+ isHl(): boolean { return __S.getUint16(8, this) === 1; }
150
+ setHl(value: CoinHlRec): void {
151
+ __S.setUint16(8, 1, this);
152
+ __S.copyFrom(value, __S.getPointer(0, this));
153
+ }
154
+ adoptMicro(value: capnp.Orphan<CoinMicroRec>): void {
155
+ __S.setUint16(8, 2, this);
156
+ __S.adopt(value, __S.getPointer(0, this));
157
+ }
158
+ disownMicro(): capnp.Orphan<CoinMicroRec> { return __S.disown(this.getMicro()); }
159
+ getMicro(): CoinMicroRec {
160
+ __S.testWhich("micro", __S.getUint16(8, this), 2, this);
161
+ return __S.getStruct(0, CoinMicroRec, this);
162
+ }
163
+ hasMicro(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
164
+ initMicro(): CoinMicroRec {
165
+ __S.setUint16(8, 2, this);
166
+ return __S.initStructAt(0, CoinMicroRec, this);
167
+ }
168
+ isMicro(): boolean { return __S.getUint16(8, this) === 2; }
169
+ setMicro(value: CoinMicroRec): void {
170
+ __S.setUint16(8, 2, this);
171
+ __S.copyFrom(value, __S.getPointer(0, this));
172
+ }
173
+ toString(): string { return "CoinAcctRec_RecType_" + super.toString(); }
174
+ which(): CoinAcctRec_RecType_Which { return __S.getUint16(8, this); }
175
+ }
176
+ export class CoinAcctRec extends __S {
177
+ static readonly _capnp = { displayName: "CoinAcctRec", id: "ba5ccb364bd263f7", size: new __O(16, 2) };
178
+ getRecType(): CoinAcctRec_RecType { return __S.getAs(CoinAcctRec_RecType, this); }
179
+ initRecType(): CoinAcctRec_RecType { return __S.getAs(CoinAcctRec_RecType, this); }
180
+ getAmtCoin(): capnp.Uint64 { return __S.getUint64(0, this); }
181
+ setAmtCoin(value: capnp.Uint64): void { __S.setUint64(0, value, this); }
182
+ adoptAcctNumVal(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
183
+ disownAcctNumVal(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumVal()); }
184
+ getAcctNumVal(): capnp.Data { return __S.getData(1, this); }
185
+ hasAcctNumVal(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
186
+ initAcctNumVal(length: number): capnp.Data { return __S.initData(1, length, this); }
187
+ setAcctNumVal(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
188
+ toString(): string { return "CoinAcctRec_" + super.toString(); }
189
+ }
190
+ CoinAssetRec._TokenAssetSubgroups = capnp.CompositeList(TokenAssetSubgroup);
191
+ CoinAssetRec._NftAssetSubgroups = capnp.CompositeList(NftAssetSubgroup);
192
+ CoinHlRec._TokenAssetSubgroups = capnp.CompositeList(TokenAssetSubgroup);
193
+ CoinHlRec._NftAssetSubgroups = capnp.CompositeList(NftAssetSubgroup);
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ import { NetActorList, ParamAcctList, ValLayLedger } from "./valLayLedger.capnp";
10
+ export const _capnpFileId = "b8e0c7405f6f776d";
11
+ export class GenesisBlockData extends __S {
12
+ static readonly _capnp = { displayName: "GenesisBlockData", id: "9b1d0e66c1002f9f", size: new __O(8, 4) };
13
+ getChainNum(): number { return __S.getUint32(0, this); }
14
+ setChainNum(value: number): void { __S.setUint32(0, value, this); }
15
+ adoptActiveNetHash(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
16
+ disownActiveNetHash(): capnp.Orphan<capnp.Data> { return __S.disown(this.getActiveNetHash()); }
17
+ getActiveNetHash(): capnp.Data { return __S.getData(0, this); }
18
+ hasActiveNetHash(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
19
+ initActiveNetHash(length: number): capnp.Data { return __S.initData(0, length, this); }
20
+ setActiveNetHash(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
21
+ adoptHash(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
22
+ disownHash(): capnp.Orphan<capnp.Data> { return __S.disown(this.getHash()); }
23
+ getHash(): capnp.Data { return __S.getData(1, this); }
24
+ hasHash(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
25
+ initHash(length: number): capnp.Data { return __S.initData(1, length, this); }
26
+ setHash(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
27
+ adoptValLayLedger(value: capnp.Orphan<ValLayLedger>): void { __S.adopt(value, __S.getPointer(2, this)); }
28
+ disownValLayLedger(): capnp.Orphan<ValLayLedger> { return __S.disown(this.getValLayLedger()); }
29
+ getValLayLedger(): ValLayLedger { return __S.getStruct(2, ValLayLedger, this); }
30
+ hasValLayLedger(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
31
+ initValLayLedger(): ValLayLedger { return __S.initStructAt(2, ValLayLedger, this); }
32
+ setValLayLedger(value: ValLayLedger): void { __S.copyFrom(value, __S.getPointer(2, this)); }
33
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
34
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
35
+ getPubKey(): capnp.Data { return __S.getData(3, this); }
36
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
37
+ initPubKey(length: number): capnp.Data { return __S.initData(3, length, this); }
38
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
39
+ toString(): string { return "GenesisBlockData_" + super.toString(); }
40
+ }
41
+ export class GenesisBlock extends __S {
42
+ static readonly _capnp = { displayName: "GenesisBlock", id: "f2034aa2633546c1", size: new __O(0, 2) };
43
+ adoptData(value: capnp.Orphan<GenesisBlockData>): void { __S.adopt(value, __S.getPointer(0, this)); }
44
+ disownData(): capnp.Orphan<GenesisBlockData> { return __S.disown(this.getData()); }
45
+ getData(): GenesisBlockData { return __S.getStruct(0, GenesisBlockData, this); }
46
+ hasData(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
47
+ initData(): GenesisBlockData { return __S.initStructAt(0, GenesisBlockData, this); }
48
+ setData(value: GenesisBlockData): void { __S.copyFrom(value, __S.getPointer(0, this)); }
49
+ adoptSignature(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
50
+ disownSignature(): capnp.Orphan<capnp.Data> { return __S.disown(this.getSignature()); }
51
+ getSignature(): capnp.Data { return __S.getData(1, this); }
52
+ hasSignature(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
53
+ initSignature(length: number): capnp.Data { return __S.initData(1, length, this); }
54
+ setSignature(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
55
+ toString(): string { return "GenesisBlock_" + super.toString(); }
56
+ }
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ import { ChainStateView } from "./chainStateView.capnp";
10
+ import { NodeContentStmtData, NodeContentStmt } from "./nodeContentStmt.capnp";
11
+ export const _capnpFileId = "95e2769cd87644db";
12
+ export class HubContentStmtData extends __S {
13
+ static readonly _capnp = { displayName: "HubContentStmtData", id: "c77fa7b5b93dbdb3", size: new __O(24, 3) };
14
+ static _NodeContentStmts: capnp.ListCtor<NodeContentStmt>;
15
+ getBlockNum(): number { return __S.getUint32(0, this); }
16
+ setBlockNum(value: number): void { __S.setUint32(0, value, this); }
17
+ getChainNum(): number { return __S.getUint32(4, this); }
18
+ setChainNum(value: number): void { __S.setUint32(4, value, this); }
19
+ getNodeNum(): number { return __S.getUint32(8, this); }
20
+ setNodeNum(value: number): void { __S.setUint32(8, value, this); }
21
+ getTimestamp(): capnp.Int64 { return __S.getInt64(16, this); }
22
+ setTimestamp(value: capnp.Int64): void { __S.setInt64(16, value, this); }
23
+ adoptChainStateView(value: capnp.Orphan<ChainStateView>): void { __S.adopt(value, __S.getPointer(0, this)); }
24
+ disownChainStateView(): capnp.Orphan<ChainStateView> { return __S.disown(this.getChainStateView()); }
25
+ getChainStateView(): ChainStateView { return __S.getStruct(0, ChainStateView, this); }
26
+ hasChainStateView(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
27
+ initChainStateView(): ChainStateView { return __S.initStructAt(0, ChainStateView, this); }
28
+ setChainStateView(value: ChainStateView): void { __S.copyFrom(value, __S.getPointer(0, this)); }
29
+ adoptNodeContentStmts(value: capnp.Orphan<capnp.List<NodeContentStmt>>): void { __S.adopt(value, __S.getPointer(1, this)); }
30
+ disownNodeContentStmts(): capnp.Orphan<capnp.List<NodeContentStmt>> { return __S.disown(this.getNodeContentStmts()); }
31
+ getNodeContentStmts(): capnp.List<NodeContentStmt> { return __S.getList(1, HubContentStmtData._NodeContentStmts, this); }
32
+ hasNodeContentStmts(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
33
+ initNodeContentStmts(length: number): capnp.List<NodeContentStmt> { return __S.initList(1, HubContentStmtData._NodeContentStmts, length, this); }
34
+ setNodeContentStmts(value: capnp.List<NodeContentStmt>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
35
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
36
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
37
+ getPubKey(): capnp.Data { return __S.getData(2, this); }
38
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
39
+ initPubKey(length: number): capnp.Data { return __S.initData(2, length, this); }
40
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
41
+ toString(): string { return "HubContentStmtData_" + super.toString(); }
42
+ }
43
+ export class HubContentStmt extends __S {
44
+ static readonly _capnp = { displayName: "HubContentStmt", id: "c88d710f61a87b23", size: new __O(0, 2) };
45
+ adoptData(value: capnp.Orphan<HubContentStmtData>): void { __S.adopt(value, __S.getPointer(0, this)); }
46
+ disownData(): capnp.Orphan<HubContentStmtData> { return __S.disown(this.getData()); }
47
+ getData(): HubContentStmtData { return __S.getStruct(0, HubContentStmtData, this); }
48
+ hasData(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
49
+ initData(): HubContentStmtData { return __S.initStructAt(0, HubContentStmtData, this); }
50
+ setData(value: HubContentStmtData): void { __S.copyFrom(value, __S.getPointer(0, this)); }
51
+ adoptSignature(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
52
+ disownSignature(): capnp.Orphan<capnp.Data> { return __S.disown(this.getSignature()); }
53
+ getSignature(): capnp.Data { return __S.getData(1, this); }
54
+ hasSignature(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
55
+ initSignature(length: number): capnp.Data { return __S.initData(1, length, this); }
56
+ setSignature(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
57
+ toString(): string { return "HubContentStmt_" + super.toString(); }
58
+ }
59
+ HubContentStmtData._NodeContentStmts = capnp.CompositeList(NodeContentStmt);
@@ -0,0 +1,19 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ export const _capnpFileId = "a2c151668ac14193";
10
+ export class ByteString extends __S {
11
+ static readonly _capnp = { displayName: "ByteString", id: "c8f3678d8245b6ef", size: new __O(0, 1) };
12
+ adoptBytes(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(0, this)); }
13
+ disownBytes(): capnp.Orphan<capnp.Data> { return __S.disown(this.getBytes()); }
14
+ getBytes(): capnp.Data { return __S.getData(0, this); }
15
+ hasBytes(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
16
+ initBytes(length: number): capnp.Data { return __S.initData(0, length, this); }
17
+ setBytes(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(0, this)); }
18
+ toString(): string { return "ByteString_" + super.toString(); }
19
+ }
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ export const _capnpFileId = "80ea766574d713dd";
10
+ export enum NetActorStatus {
11
+ NET_ACTOR_STATUS_CHAIN_ADMIN,
12
+ NET_ACTOR_STATUS_HUB,
13
+ NET_ACTOR_STATUS_LEAVING,
14
+ NET_ACTOR_STATUS_LISTENING,
15
+ NET_ACTOR_STATUS_NODE,
16
+ NET_ACTOR_STATUS_READY,
17
+ NET_ACTOR_STATUS_RELAY,
18
+ NET_ACTOR_STATUS_SUSPENDED
19
+ }
20
+ export enum NetActorType {
21
+ NET_ACTOR_TYPE_ANCHOR_NODE,
22
+ NET_ACTOR_TYPE_ANON_NODE,
23
+ NET_ACTOR_TYPE_CERT_NODE,
24
+ NET_ACTOR_TYPE_CERT_AUTH,
25
+ NET_ACTOR_TYPE_CHAIN_ADMIN,
26
+ NET_ACTOR_TYPE_RELAY,
27
+ NET_ACTOR_TYPE_TREASURY_AGENT
28
+ }
29
+ export class NetActorRec extends __S {
30
+ static readonly _capnp = { displayName: "NetActorRec", id: "f1538e8c7d324cbf", size: new __O(40, 3) };
31
+ getRecStatus(): NetActorStatus { return __S.getUint16(0, this); }
32
+ setRecStatus(value: NetActorStatus): void { __S.setUint16(0, value, this); }
33
+ getNonce(): number { return __S.getUint32(4, this); }
34
+ setNonce(value: number): void { __S.setUint32(4, value, this); }
35
+ getBlockNumLiveness(): number { return __S.getUint32(8, this); }
36
+ setBlockNumLiveness(value: number): void { __S.setUint32(8, value, this); }
37
+ getBlockNumRemove(): number { return __S.getUint32(12, this); }
38
+ setBlockNumRemove(value: number): void { __S.setUint32(12, value, this); }
39
+ getAmtCoin(): capnp.Uint64 { return __S.getUint64(16, this); }
40
+ setAmtCoin(value: capnp.Uint64): void { __S.setUint64(16, value, this); }
41
+ getIpAddr(): string { return __S.getText(0, this); }
42
+ setIpAddr(value: string): void { __S.setText(0, value, this); }
43
+ getPortNum(): number { return __S.getUint16(2, this); }
44
+ setPortNum(value: number): void { __S.setUint16(2, value, this); }
45
+ getNetActorType(): NetActorType { return __S.getUint16(24, this); }
46
+ setNetActorType(value: NetActorType): void { __S.setUint16(24, value, this); }
47
+ getNodeNumSelf(): number { return __S.getUint32(28, this); }
48
+ setNodeNumSelf(value: number): void { __S.setUint32(28, value, this); }
49
+ getNodeNumSponsor(): number { return __S.getUint32(32, this); }
50
+ setNodeNumSponsor(value: number): void { __S.setUint32(32, value, this); }
51
+ adoptAcctNumRfd(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
52
+ disownAcctNumRfd(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumRfd()); }
53
+ getAcctNumRfd(): capnp.Data { return __S.getData(1, this); }
54
+ hasAcctNumRfd(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
55
+ initAcctNumRfd(length: number): capnp.Data { return __S.initData(1, length, this); }
56
+ setAcctNumRfd(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
57
+ adoptAcctNumVal(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
58
+ disownAcctNumVal(): capnp.Orphan<capnp.Data> { return __S.disown(this.getAcctNumVal()); }
59
+ getAcctNumVal(): capnp.Data { return __S.getData(2, this); }
60
+ hasAcctNumVal(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
61
+ initAcctNumVal(length: number): capnp.Data { return __S.initData(2, length, this); }
62
+ setAcctNumVal(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
63
+ toString(): string { return "NetActorRec_" + super.toString(); }
64
+ }
@@ -0,0 +1,62 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ import { ChainStateView } from "./chainStateView.capnp";
10
+ export const _capnpFileId = "aed9e2106d912962";
11
+ export class NodeContentStmtData extends __S {
12
+ static readonly _capnp = { displayName: "NodeContentStmtData", id: "d8e366de453ef3c7", size: new __O(24, 4) };
13
+ getBlockNum(): number { return __S.getUint32(0, this); }
14
+ setBlockNum(value: number): void { __S.setUint32(0, value, this); }
15
+ getChainNum(): number { return __S.getUint32(4, this); }
16
+ setChainNum(value: number): void { __S.setUint32(4, value, this); }
17
+ getNodeNum(): number { return __S.getUint32(8, this); }
18
+ setNodeNum(value: number): void { __S.setUint32(8, value, this); }
19
+ getTimestamp(): capnp.Int64 { return __S.getInt64(16, this); }
20
+ setTimestamp(value: capnp.Int64): void { __S.setInt64(16, value, this); }
21
+ adoptChainStateView(value: capnp.Orphan<ChainStateView>): void { __S.adopt(value, __S.getPointer(0, this)); }
22
+ disownChainStateView(): capnp.Orphan<ChainStateView> { return __S.disown(this.getChainStateView()); }
23
+ getChainStateView(): ChainStateView { return __S.getStruct(0, ChainStateView, this); }
24
+ hasChainStateView(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
25
+ initChainStateView(): ChainStateView { return __S.initStructAt(0, ChainStateView, this); }
26
+ setChainStateView(value: ChainStateView): void { __S.copyFrom(value, __S.getPointer(0, this)); }
27
+ adoptRefMerkleRootNpl(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
28
+ disownRefMerkleRootNpl(): capnp.Orphan<capnp.Data> { return __S.disown(this.getRefMerkleRootNpl()); }
29
+ getRefMerkleRootNpl(): capnp.Data { return __S.getData(1, this); }
30
+ hasRefMerkleRootNpl(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
31
+ initRefMerkleRootNpl(length: number): capnp.Data { return __S.initData(1, length, this); }
32
+ setRefMerkleRootNpl(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
33
+ adoptRefMerkleRootNtl(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(2, this)); }
34
+ disownRefMerkleRootNtl(): capnp.Orphan<capnp.Data> { return __S.disown(this.getRefMerkleRootNtl()); }
35
+ getRefMerkleRootNtl(): capnp.Data { return __S.getData(2, this); }
36
+ hasRefMerkleRootNtl(): boolean { return !__S.isNull(__S.getPointer(2, this)); }
37
+ initRefMerkleRootNtl(length: number): capnp.Data { return __S.initData(2, length, this); }
38
+ setRefMerkleRootNtl(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(2, this)); }
39
+ adoptPubKey(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(3, this)); }
40
+ disownPubKey(): capnp.Orphan<capnp.Data> { return __S.disown(this.getPubKey()); }
41
+ getPubKey(): capnp.Data { return __S.getData(3, this); }
42
+ hasPubKey(): boolean { return !__S.isNull(__S.getPointer(3, this)); }
43
+ initPubKey(length: number): capnp.Data { return __S.initData(3, length, this); }
44
+ setPubKey(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(3, this)); }
45
+ toString(): string { return "NodeContentStmtData_" + super.toString(); }
46
+ }
47
+ export class NodeContentStmt extends __S {
48
+ static readonly _capnp = { displayName: "NodeContentStmt", id: "d48cdd71966ef907", size: new __O(0, 2) };
49
+ adoptData(value: capnp.Orphan<NodeContentStmtData>): void { __S.adopt(value, __S.getPointer(0, this)); }
50
+ disownData(): capnp.Orphan<NodeContentStmtData> { return __S.disown(this.getData()); }
51
+ getData(): NodeContentStmtData { return __S.getStruct(0, NodeContentStmtData, this); }
52
+ hasData(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
53
+ initData(): NodeContentStmtData { return __S.initStructAt(0, NodeContentStmtData, this); }
54
+ setData(value: NodeContentStmtData): void { __S.copyFrom(value, __S.getPointer(0, this)); }
55
+ adoptSignature(value: capnp.Orphan<capnp.Data>): void { __S.adopt(value, __S.getPointer(1, this)); }
56
+ disownSignature(): capnp.Orphan<capnp.Data> { return __S.disown(this.getSignature()); }
57
+ getSignature(): capnp.Data { return __S.getData(1, this); }
58
+ hasSignature(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
59
+ initSignature(length: number): capnp.Data { return __S.initData(1, length, this); }
60
+ setSignature(value: capnp.Data): void { __S.copyFrom(value, __S.getPointer(1, this)); }
61
+ toString(): string { return "NodeContentStmt_" + super.toString(); }
62
+ }
@@ -0,0 +1,28 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ import { MetadataEntry, AttestationSubgroupData, AttestationSubgroup, AppAttestCommitPayload, AppCounterpartyPayload, AppDceCommitPayload, AppNftMintPayload, AppStackablePayload, Payload } from "./payload.capnp";
10
+ export const _capnpFileId = "edbd488d842c468c";
11
+ export class NodePayloadList extends __S {
12
+ static readonly _capnp = { displayName: "NodePayloadList", id: "c6e96ff19730222d", size: new __O(16, 1) };
13
+ static _Payloads: capnp.ListCtor<Payload>;
14
+ getBlockNum(): number { return __S.getUint32(0, this); }
15
+ setBlockNum(value: number): void { __S.setUint32(0, value, this); }
16
+ getChainNum(): number { return __S.getUint32(4, this); }
17
+ setChainNum(value: number): void { __S.setUint32(4, value, this); }
18
+ getNodeNum(): number { return __S.getUint32(8, this); }
19
+ setNodeNum(value: number): void { __S.setUint32(8, value, this); }
20
+ adoptPayloads(value: capnp.Orphan<capnp.List<Payload>>): void { __S.adopt(value, __S.getPointer(0, this)); }
21
+ disownPayloads(): capnp.Orphan<capnp.List<Payload>> { return __S.disown(this.getPayloads()); }
22
+ getPayloads(): capnp.List<Payload> { return __S.getList(0, NodePayloadList._Payloads, this); }
23
+ hasPayloads(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
24
+ initPayloads(length: number): capnp.List<Payload> { return __S.initList(0, NodePayloadList._Payloads, length, this); }
25
+ setPayloads(value: capnp.List<Payload>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
26
+ toString(): string { return "NodePayloadList_" + super.toString(); }
27
+ }
28
+ NodePayloadList._Payloads = capnp.CompositeList(Payload);
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+
3
+ /**
4
+ * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts).
5
+ */
6
+
7
+ import * as capnp from "capnp-ts";
8
+ import { ObjectSize as __O, Struct as __S } from 'capnp-ts';
9
+ import { AppAttestCommitTx, AppCounterpartyTx, AppDceCommitTx, AppNftMintTx, AppStackableTx, UserAppTxData, UserAppTx } from "./userAppTx.capnp";
10
+ import { TokenAssetSubgroupEntry, NftAssetSubgroupEntry, CoinAssetTx, CoinBurnTx, CoinHlTx, CoinMicroTx, CoinPiTx, CoinTx, AcctNumEntry, ProxyCreateDceTx, ProxyCreateFundingTx, ProxyCreateMultisigTx, ProxyCreateNftMintTx, ProxyCreateTokenMintTx, ProxyCreateTx, ProxyAssetTx, ProxyDeleteRecTx, ProxyHlTx, ProxyMintTokenTx, ProxySendTx, ProxyUpdateTx, ProxyAdminTx, MultisigAssetTx, MultisigBurnTx, MultisigHlTx, MultisigTx, NetActorRecCreateTx, NetActorRecUpdateTx, NetActorRecTx, ParamAcctRecTx, AuditHubTx, AuditNodeTx, AuditRelayTx, AuditTx, UserValTxData, MultisigEndSubgroup, MultisigEndSubgroupEntry, UserValTx } from "./userValTx.capnp";
11
+ export const _capnpFileId = "e5dcf80e41d5968e";
12
+ export class NodeTxList extends __S {
13
+ static readonly _capnp = { displayName: "NodeTxList", id: "df48072ff387b230", size: new __O(16, 2) };
14
+ static _UserAppTxs: capnp.ListCtor<UserAppTx>;
15
+ static _UserValTxs: capnp.ListCtor<UserValTx>;
16
+ getBlockNum(): number { return __S.getUint32(0, this); }
17
+ setBlockNum(value: number): void { __S.setUint32(0, value, this); }
18
+ getChainNum(): number { return __S.getUint32(4, this); }
19
+ setChainNum(value: number): void { __S.setUint32(4, value, this); }
20
+ getNodeNum(): number { return __S.getUint32(8, this); }
21
+ setNodeNum(value: number): void { __S.setUint32(8, value, this); }
22
+ adoptUserAppTxs(value: capnp.Orphan<capnp.List<UserAppTx>>): void { __S.adopt(value, __S.getPointer(0, this)); }
23
+ disownUserAppTxs(): capnp.Orphan<capnp.List<UserAppTx>> { return __S.disown(this.getUserAppTxs()); }
24
+ getUserAppTxs(): capnp.List<UserAppTx> { return __S.getList(0, NodeTxList._UserAppTxs, this); }
25
+ hasUserAppTxs(): boolean { return !__S.isNull(__S.getPointer(0, this)); }
26
+ initUserAppTxs(length: number): capnp.List<UserAppTx> { return __S.initList(0, NodeTxList._UserAppTxs, length, this); }
27
+ setUserAppTxs(value: capnp.List<UserAppTx>): void { __S.copyFrom(value, __S.getPointer(0, this)); }
28
+ adoptUserValTxs(value: capnp.Orphan<capnp.List<UserValTx>>): void { __S.adopt(value, __S.getPointer(1, this)); }
29
+ disownUserValTxs(): capnp.Orphan<capnp.List<UserValTx>> { return __S.disown(this.getUserValTxs()); }
30
+ getUserValTxs(): capnp.List<UserValTx> { return __S.getList(1, NodeTxList._UserValTxs, this); }
31
+ hasUserValTxs(): boolean { return !__S.isNull(__S.getPointer(1, this)); }
32
+ initUserValTxs(length: number): capnp.List<UserValTx> { return __S.initList(1, NodeTxList._UserValTxs, length, this); }
33
+ setUserValTxs(value: capnp.List<UserValTx>): void { __S.copyFrom(value, __S.getPointer(1, this)); }
34
+ toString(): string { return "NodeTxList_" + super.toString(); }
35
+ }
36
+ NodeTxList._UserAppTxs = capnp.CompositeList(UserAppTx);
37
+ NodeTxList._UserValTxs = capnp.CompositeList(UserValTx);