]> git.codecow.com Git - libnemo.git/commitdiff
Export updated block class.
authorChris Duncan <chris@zoso.dev>
Wed, 6 Aug 2025 17:56:06 +0000 (10:56 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 6 Aug 2025 17:56:06 +0000 (10:56 -0700)
src/lib/block.ts
src/main.ts

index 19dde64500da037dcbd35b7bd2a0dee947a2d34d..218c59518a5b9530bae75294bbee235557392940 100644 (file)
@@ -15,7 +15,7 @@ import { Wallet } from './wallet'
 * class is abstract and cannot be directly instantiated. Every block must be one
 * of three derived classes: SendBlock, ReceiveBlock, ChangeBlock.
 */
-class Block {
+export class Block {
        /**
         * Validates block data.
         *
index 47918a7ab53a8ab65fda26f32b77db856355a931..06dfc6cdb55778136b4802ab5866d7ff3ed4e66f 100644 (file)
@@ -3,7 +3,7 @@
 
 import { Account } from './lib/account'
 import { Blake2b } from './lib/blake2b'
-import { ChangeBlock, ReceiveBlock, SendBlock } from './lib/block'
+import { Block } from './lib/block'
 import { Ledger } from './lib/ledger'
 import { Rolodex } from './lib/rolodex'
 import { Rpc } from './lib/rpc'
@@ -13,7 +13,7 @@ import { Wallet } from './lib/wallet'
 export {
        Account,
        Blake2b,
-       ChangeBlock, ReceiveBlock, SendBlock,
+       Block,
        Ledger,
        Rolodex,
        Rpc,