chia-agent 16.0.2 → 16.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +5 -5
- package/api/chia/consensus/cost_calculator.d.ts +1 -1
- package/api/chia/protocols/farmer_protocol.d.ts +3 -2
- package/api/chia/protocols/pool_protocol.d.ts +1 -1
- package/api/chia/types/coin_spend.d.ts +0 -1
- package/api/chia/types/mempool_item.d.ts +9 -4
- package/api/chia/types/unfinished_header_block.d.ts +1 -1
- package/api/chia/wallet/util/wallet_types.d.ts +1 -0
- package/api/chia/wallet/util/wallet_types.js +1 -0
- package/api/chia/wallet/wallet_spend_bundle.d.ts +1 -1
- package/api/chia_rs/chia-consensus/{gen/owned_conditions.d.ts → owned_conditions.d.ts} +6 -4
- package/api/pool-reference/pool/record.d.ts +1 -1
- package/api/rpc/farmer/index.d.ts +1 -1
- package/api/rpc/full_node/index.d.ts +7 -6
- package/api/rpc/wallet/index.d.ts +1 -1
- package/api/types.d.ts +1 -1
- package/api/ws/farmer/index.d.ts +1 -1
- package/api/ws/full_node/index.d.ts +4 -4
- package/package.json +3 -2
- package/api/chia/consensus/block_record.d.ts +0 -1
- package/api/chia/consensus/block_record.js +0 -2
- package/api/chia/types/blockchain_format/proof_of_space.d.ts +0 -1
- package/api/chia/types/blockchain_format/proof_of_space.js +0 -2
- package/api/chia/types/blockchain_format/slots.d.ts +0 -1
- package/api/chia/types/blockchain_format/slots.js +0 -2
- package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +0 -1
- package/api/chia/types/blockchain_format/sub_epoch_summary.js +0 -2
- package/api/chia/types/end_of_slot_bundle.d.ts +0 -1
- package/api/chia/types/end_of_slot_bundle.js +0 -2
- package/api/chia/types/full_block.d.ts +0 -1
- package/api/chia/types/full_block.js +0 -2
- package/api/chia/types/spend_bundle.d.ts +0 -1
- package/api/chia/types/spend_bundle.js +0 -2
- package/api/chia/types/spend_bundle_condition.d.ts +0 -1
- package/api/chia/types/spend_bundle_condition.js +0 -2
- package/api/chia/types/unfinished_block.d.ts +0 -1
- package/api/chia/types/unfinished_block.js +0 -2
- /package/api/chia/{server → protocols}/outbound_message.d.ts +0 -0
- /package/api/chia/{server → protocols}/outbound_message.js +0 -0
- /package/api/chia_rs/chia-consensus/{gen/owned_conditions.js → owned_conditions.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [16.1.1]
|
|
4
|
+
### Fixed
|
|
5
|
+
- Fixed incorrect response type for [`get_auto_farming`](./src/api/rpc/full_node/README.md#get_auto_farmingagent)
|
|
6
|
+
- corrected from `{new_peak_height: uint64; success: bool}` to `{auto_farm_enabled: bool; success: bool}`
|
|
7
|
+
|
|
8
|
+
## [16.1.0]
|
|
9
|
+
### Added
|
|
10
|
+
- [Farmer Protocol](./src/api/chia/protocols/farmer_protocol.ts)
|
|
11
|
+
- `sp_source_data` to `NewSignagePoint`
|
|
12
|
+
- `include_signature_source_data` to `DeclareProofOfSpace`
|
|
13
|
+
- `rc_block_unfinished` to `RequestSignedValues`
|
|
14
|
+
|
|
15
|
+
### Internal Changes
|
|
16
|
+
- Migrated multiple protocol/types to `chia_rs` sources:
|
|
17
|
+
- `ProofOfSpace`, `PoolTarget`, `Foliage`, `FoliageTransactionBlock`
|
|
18
|
+
- `RewardChainBlockUnfinished`, `ChallengeChainSubSlot`, `RewardChainSubSlot`
|
|
19
|
+
- `EndOfSubSlotBundle`, `SpendBundle`, `CoinSpend`
|
|
20
|
+
- All are now imported from `./src/api/chia_rs/chia-protocol/*`
|
|
21
|
+
- Moved `NodeType` to [`./src/api/chia/protocols/outbound_message.ts`](./src/api/chia/protocols/outbound_message.ts)
|
|
22
|
+
- Moved `owned_conditions.ts` from `./src/api/chia_rs/chia-consensus/gen/` to `./src/api/chia_rs/chia-consensus/`
|
|
23
|
+
- Removed legacy python-derived type definitions in favor of `chia_rs`:
|
|
24
|
+
- `./src/api/chia/consensus/block_record.ts`
|
|
25
|
+
- `./src/api/chia/types/blockchain_format/proof_of_space.ts`
|
|
26
|
+
- `./src/api/chia/types/blockchain_format/slots.ts`
|
|
27
|
+
- `./src/api/chia/types/blockchain_format/sub_epoch_summary.ts`
|
|
28
|
+
- `./src/api/chia/types/end_of_slot_bundle.ts`
|
|
29
|
+
- `./src/api/chia/types/full_block.ts`
|
|
30
|
+
- `./src/api/chia/types/spend_bundle.ts`
|
|
31
|
+
- `./src/api/chia/types/spend_bundle_condition.ts`
|
|
32
|
+
- `./src/api/chia/types/unfinished_block.ts`
|
|
33
|
+
|
|
3
34
|
## [16.0.2]
|
|
4
35
|
### Fixed
|
|
5
36
|
- Fixed logging issues where it crashes upon stringifying an object with circular references
|
|
@@ -1890,6 +1921,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
1890
1921
|
Initial release.
|
|
1891
1922
|
|
|
1892
1923
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
1924
|
+
[16.1.1]: https://github.com/Chia-Mine/chia-agent/compare/v16.1.0...v16.1.1
|
|
1925
|
+
[16.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v16.0.2...v16.1.0
|
|
1893
1926
|
[16.0.2]: https://github.com/Chia-Mine/chia-agent/compare/v16.0.1...v16.0.2
|
|
1894
1927
|
[16.0.1]: https://github.com/Chia-Mine/chia-agent/compare/v16.0.0...v16.0.1
|
|
1895
1928
|
[16.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v15.0.0...v16.0.0
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://badge.fury.io/js/chia-agent) [](https://opensource.org/licenses/MIT)
|
|
3
3
|
|
|
4
4
|
chia rpc/websocket client library for NodeJS.
|
|
5
|
-
Supports all RPC/Websocket API available at `2.5.
|
|
5
|
+
Supports all RPC/Websocket API available at `2.5.5` of [`chia-blockchain`](https://github.com/Chia-Network/chia-blockchain/).
|
|
6
6
|
\(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
|
|
7
7
|
|
|
8
8
|
you can develop your own nodejs script with `chia-agent` to:
|
|
@@ -22,12 +22,12 @@ yarn add chia-agent
|
|
|
22
22
|
|
|
23
23
|
## Compatibility
|
|
24
24
|
This code is compatible with:
|
|
25
|
-
- [`
|
|
26
|
-
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/
|
|
25
|
+
- [`c7aafcfb46ef1413b05cdd6486308e99ee4767df`](https://github.com/Chia-Network/chia-blockchain/tree/c7aafcfb46ef1413b05cdd6486308e99ee4767df) of [chia-blockchain 2.5.5](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/c7aafcfb46ef1413b05cdd6486308e99ee4767df...main)
|
|
27
|
+
- [`061bd6e192ceb90e3bb81ceff1fc69d674626eb7`](https://github.com/Chia-Network/chia_rs/tree/061bd6e192ceb90e3bb81ceff1fc69d674626eb7) of [chia_rs 0.27.0](https://github.com/Chia-Network/chia_rs)
|
|
28
|
+
- [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/061bd6e192ceb90e3bb81ceff1fc69d674626eb7...main)
|
|
27
29
|
- [`ef49150171cc243b09c0e5d5cb27f2249ffa3793`](https://github.com/Chia-Network/pool-reference/tree/ef49150171cc243b09c0e5d5cb27f2249ffa3793) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
30
|
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/ef49150171cc243b09c0e5d5cb27f2249ffa3793...main)
|
|
29
|
-
- [`86553838300185b24849b226a714600f724c02d2`](https://github.com/Chia-Network/chia_rs/tree/86553838300185b24849b226a714600f724c02d2) of [chia_rs 0.21.1](https://github.com/Chia-Network/chia_rs)
|
|
30
|
-
- [Diff to the main branch of chia_rs](https://github.com/Chia-Network/chia_rs/compare/86553838300185b24849b226a714600f724c02d2...main)
|
|
31
31
|
|
|
32
32
|
## API
|
|
33
33
|
There are 2 kinds of APIs in chia.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpendBundleConditions } from "
|
|
1
|
+
import { SpendBundleConditions } from "../../chia_rs/chia-consensus/owned_conditions";
|
|
2
2
|
import { Optional } from "../types/_python_types_";
|
|
3
3
|
import { uint16 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
4
|
export type NPCResult = {
|
|
@@ -2,10 +2,10 @@ import { bool, Optional } from "../types/_python_types_";
|
|
|
2
2
|
import { G2Element } from "../../chia_rs/chia-bls/lib";
|
|
3
3
|
import { uint32, uint64, uint8 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
4
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
5
|
-
import { ProofOfSpace } from "
|
|
5
|
+
import { ProofOfSpace } from "../../chia_rs/chia-protocol/proof_of_space";
|
|
6
6
|
import { PoolTarget } from "../../chia_rs/chia-protocol/pool_target";
|
|
7
7
|
import { ClassgroupElement } from "../types/blockchain_format/classgroup";
|
|
8
|
-
import { ChallengeChainSubSlot, RewardChainSubSlot } from "
|
|
8
|
+
import { ChallengeChainSubSlot, RewardChainSubSlot } from "../../chia_rs/chia-protocol/slots";
|
|
9
9
|
import { FoliageBlockData, FoliageTransactionBlock } from "../../chia_rs/chia-protocol/foliage";
|
|
10
10
|
import { RewardChainBlockUnfinished } from "../../chia_rs/chia-protocol/reward_chain_block";
|
|
11
11
|
export type SPSubSlotSourceData = {
|
|
@@ -28,6 +28,7 @@ export type NewSignagePoint = {
|
|
|
28
28
|
sub_slot_iters: uint64;
|
|
29
29
|
signage_point_index: uint8;
|
|
30
30
|
peak_height: uint32;
|
|
31
|
+
last_tx_height: uint32;
|
|
31
32
|
sp_source_data: Optional<SignagePointSourceData>;
|
|
32
33
|
};
|
|
33
34
|
export type DeclareProofOfSpace = {
|
|
@@ -2,7 +2,7 @@ import { bool, Optional, str } from "../types/_python_types_";
|
|
|
2
2
|
import { G1Element, G2Element } from "../../chia_rs/chia-bls/lib";
|
|
3
3
|
import { uint16, uint32, uint64, uint8 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
4
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
5
|
-
import { ProofOfSpace } from "
|
|
5
|
+
import { ProofOfSpace } from "../../chia_rs/chia-protocol/proof_of_space";
|
|
6
6
|
export declare const PoolErrorCode: {
|
|
7
7
|
REVERTED_SIGNAGE_POINT: number;
|
|
8
8
|
TOO_LATE: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ConditionWithArgs } from "./condition_with_args";
|
|
2
2
|
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
3
|
-
export { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
4
3
|
export type CoinSpendWithConditions = {
|
|
5
4
|
coin_spend: CoinSpend;
|
|
6
5
|
conditions: ConditionWithArgs[];
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { SpendBundle } from "./spend_bundle";
|
|
2
1
|
import { Coin } from "./blockchain_format/coin";
|
|
3
2
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
4
3
|
import { NPCResult } from "../consensus/cost_calculator";
|
|
5
4
|
import { bool, Optional } from "./_python_types_";
|
|
6
5
|
import { uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
7
|
-
import { CoinSpend } from "
|
|
8
|
-
import {
|
|
6
|
+
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
7
|
+
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
8
|
+
import { SpendBundleConditions } from "../../chia_rs/chia-consensus/owned_conditions";
|
|
9
|
+
export type UnspentLineageInfo = {
|
|
10
|
+
coin_id: bytes32;
|
|
11
|
+
parent_id: bytes32;
|
|
12
|
+
parent_parent_id: bytes32;
|
|
13
|
+
};
|
|
9
14
|
export type BundleCoinSpend = {
|
|
10
15
|
coin_spend: CoinSpend;
|
|
11
16
|
eligible_for_dedup: bool;
|
|
12
17
|
eligible_for_fast_forward: bool;
|
|
13
18
|
additions: Coin[];
|
|
14
19
|
cost: Optional<uint64>;
|
|
15
|
-
|
|
20
|
+
latest_singleton_lineage: Optional<UnspentLineageInfo>;
|
|
16
21
|
};
|
|
17
22
|
export type MempoolItem = {
|
|
18
23
|
spend_bundle: SpendBundle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EndOfSubSlotBundle } from "
|
|
1
|
+
import { EndOfSubSlotBundle } from "../../chia_rs/chia-protocol/end_of_sub_slot_bundle";
|
|
2
2
|
import { VDFProof } from "./blockchain_format/vdf";
|
|
3
3
|
import { bytes, Optional } from "./_python_types_";
|
|
4
4
|
import { Foliage, FoliageTransactionBlock } from "../../chia_rs/chia-protocol/foliage";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SpendBundle } from "
|
|
1
|
+
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
2
2
|
export type WalletSpendBundle = SpendBundle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bool, bytes, Optional } from "
|
|
2
|
-
import { uint128, uint32, uint64 } from "
|
|
3
|
-
import { bytes32 } from "
|
|
4
|
-
import { PublicKey } from "
|
|
1
|
+
import { bool, bytes, Optional } from "../../chia/types/_python_types_";
|
|
2
|
+
import { uint128, uint32, uint64 } from "../wheel/python/sized_ints";
|
|
3
|
+
import { bytes32 } from "../wheel/python/sized_bytes";
|
|
4
|
+
import { PublicKey } from "../chia-bls/public_key";
|
|
5
5
|
export type SpendConditions = {
|
|
6
6
|
coin_id: bytes32;
|
|
7
7
|
parent_id: bytes32;
|
|
@@ -22,6 +22,8 @@ export type SpendConditions = {
|
|
|
22
22
|
agg_sig_parent_amount: Array<[PublicKey, bytes]>;
|
|
23
23
|
agg_sig_parent_puzzle: Array<[PublicKey, bytes]>;
|
|
24
24
|
flags: uint32;
|
|
25
|
+
execution_cost: uint64;
|
|
26
|
+
condition_cost: uint64;
|
|
25
27
|
};
|
|
26
28
|
export type SpendBundleConditions = {
|
|
27
29
|
spends: SpendConditions[];
|
|
@@ -2,7 +2,7 @@ import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
|
2
2
|
import { bool, str } from "../../chia/types/_python_types_";
|
|
3
3
|
import { G1Element } from "../../chia_rs/chia-bls/lib";
|
|
4
4
|
import { uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
5
|
-
import { CoinSpend } from "../../chia/
|
|
5
|
+
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
6
6
|
import { PoolState } from "../../chia/pools/pool_wallet_info";
|
|
7
7
|
export type FarmerRecord = {
|
|
8
8
|
launcher_id: bytes32;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProofOfSpace } from "../../chia/
|
|
1
|
+
import { ProofOfSpace } from "../../chia_rs/chia-protocol/proof_of_space";
|
|
2
2
|
import { bool, Optional, str } from "../../chia/types/_python_types_";
|
|
3
3
|
import { int, uint32, uint64, uint8 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
4
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { FullBlock } from "../../chia/
|
|
2
|
-
import { BlockRecord } from "../../chia/
|
|
1
|
+
import { FullBlock } from "../../chia_rs/chia-protocol/fullblock";
|
|
2
|
+
import { BlockRecord } from "../../chia_rs/chia-protocol/block_record";
|
|
3
3
|
import { bool, float, Optional, str } from "../../chia/types/_python_types_";
|
|
4
4
|
import { int, uint128, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
|
|
5
5
|
import { UnfinishedHeaderBlock } from "../../chia/types/unfinished_header_block";
|
|
6
6
|
import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
|
|
7
|
-
import { SpendBundle } from "../../chia/
|
|
7
|
+
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
8
8
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
9
9
|
import { MempoolItemInJsonDict } from "../../chia/types/mempool_item";
|
|
10
10
|
import { TRPCAgent } from "../../../rpc";
|
|
11
|
-
import { EndOfSubSlotBundle } from "../../chia/
|
|
11
|
+
import { EndOfSubSlotBundle } from "../../chia_rs/chia-protocol/end_of_sub_slot_bundle";
|
|
12
12
|
import { SignagePoint } from "../../chia/full_node/signage_point";
|
|
13
|
-
import { CoinSpend
|
|
13
|
+
import { CoinSpend } from "../../chia_rs/chia-protocol/coin_spend";
|
|
14
|
+
import { CoinSpendWithConditions } from "../../chia/types/coin_spend";
|
|
14
15
|
import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
15
16
|
import { GetMessageType, ResType } from "../../types";
|
|
16
17
|
import { TDaemon } from "../../../daemon/index";
|
|
@@ -387,7 +388,7 @@ export declare function set_auto_farming<T extends TRPCAgent | TDaemon>(agent: T
|
|
|
387
388
|
export declare const get_auto_farming_command = "get_auto_farming";
|
|
388
389
|
export type get_auto_farming_command = typeof get_auto_farming_command;
|
|
389
390
|
export type TGetAutoFarmingResponse = {
|
|
390
|
-
|
|
391
|
+
auto_farm_enabled: bool;
|
|
391
392
|
success: bool;
|
|
392
393
|
};
|
|
393
394
|
export type WsGetAutoFarmingMessage = GetMessageType<chia_full_node_service, get_auto_farming_command, TGetAutoFarmingResponse>;
|
|
@@ -4,7 +4,7 @@ import { bool, bytes, False, None, Optional, str, True } from "../../chia/types/
|
|
|
4
4
|
import { int, uint16, uint32, uint64, uint8 } from "../../chia_rs/wheel/python/sized_ints";
|
|
5
5
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
6
6
|
import { TransactionRecord, TransactionRecordConvenience, TransactionRecordConvenienceWithMetadata } from "../../chia/wallet/transaction_record";
|
|
7
|
-
import { SpendBundle } from "../../chia/
|
|
7
|
+
import { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
8
8
|
import { TRPCAgent } from "../../../rpc";
|
|
9
9
|
import { PoolWalletInfo } from "../../chia/pools/pool_wallet_info";
|
|
10
10
|
import { TradeRecordConvenience } from "../../chia/wallet/trade_record";
|
package/api/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeType } from "./chia/
|
|
1
|
+
import { NodeType } from "./chia/protocols/outbound_message";
|
|
2
2
|
import { float, str } from "./chia/types/_python_types_";
|
|
3
3
|
import { int, uint16 } from "./chia_rs/wheel/python/sized_ints";
|
|
4
4
|
import { bytes32 } from "./chia_rs/wheel/python/sized_bytes";
|
package/api/ws/farmer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProofOfSpace } from "../../chia/
|
|
1
|
+
import { ProofOfSpace } from "../../chia_rs/chia-protocol/proof_of_space";
|
|
2
2
|
import { DeclareProofOfSpace, NewSignagePoint } from "../../chia/protocols/farmer_protocol";
|
|
3
3
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
4
4
|
import { bool, float, Optional, str } from "../../chia/types/_python_types_";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BlockRecord } from "../../chia/
|
|
1
|
+
import { BlockRecord } from "../../chia_rs/chia-protocol/block_record";
|
|
2
2
|
import { bool, float, None, str } from "../../chia/types/_python_types_";
|
|
3
3
|
import { int, uint128, uint32, uint64, uint8 } from "../../chia_rs/wheel/python/sized_ints";
|
|
4
4
|
import { TDaemon } from "../../../daemon/index";
|
|
5
5
|
import { GetMessageType, TConnectionGeneral } from "../../types";
|
|
6
6
|
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
|
|
7
7
|
import { NewSignagePoint } from "../../chia/protocols/farmer_protocol";
|
|
8
|
-
import {
|
|
9
|
-
import { UnfinishedBlock } from "../../chia/
|
|
8
|
+
import { AddBlockResult } from "../../chia/consensus/blockchain";
|
|
9
|
+
import { UnfinishedBlock } from "../../chia_rs/chia-protocol/unfinished_block";
|
|
10
10
|
export declare const chia_full_node_service = "chia_full_node";
|
|
11
11
|
export type chia_full_node_service = typeof chia_full_node_service;
|
|
12
12
|
export type TConnectionFullNode = ({
|
|
@@ -64,7 +64,7 @@ export type TBlockBroadCast = Record<string, never> | {
|
|
|
64
64
|
timestamp?: uint64;
|
|
65
65
|
transaction_generator_size_bytes?: int;
|
|
66
66
|
transaction_generator_ref_list: uint32[];
|
|
67
|
-
receive_block_result?:
|
|
67
|
+
receive_block_result?: AddBlockResult;
|
|
68
68
|
};
|
|
69
69
|
export type WsBlockMessage = GetMessageType<chia_full_node_service, block_command, TBlockBroadCast>;
|
|
70
70
|
export declare function on_block(daemon: TDaemon, callback: (e: WsBlockMessage) => unknown): Promise<() => void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chia-agent",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.1.1",
|
|
4
4
|
"author": "ChiaMineJP <admin@chiamine.jp>",
|
|
5
5
|
"description": "chia rpc/websocket client library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,5 +34,6 @@
|
|
|
34
34
|
"@chiamine/json-bigint": "^1.0.3",
|
|
35
35
|
"ws": "^8.18.2",
|
|
36
36
|
"yaml": "^2.8.0"
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c"
|
|
38
39
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { BlockRecord } from "../../chia_rs/chia-protocol/block_record";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ProofOfSpace } from "../../../chia_rs/chia-protocol/proof_of_space";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ChallengeChainSubSlot, InfusedChallengeChainSubSlot, RewardChainSubSlot, SubSlotProofs, } from "../../../chia_rs/chia-protocol/slots";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { SubEpochSummary } from "../../../chia_rs/chia-protocol/sub_epoch_summary";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { EndOfSubSlotBundle } from "../../chia_rs/chia-protocol/end_of_sub_slot_bundle";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { FullBlock } from "../../chia_rs/chia-protocol/fullblock";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { SpendBundle } from "../../chia_rs/chia-protocol/spend_bundle";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SpendBundleConditions } from "../../chia_rs/chia-consensus/gen/owned_conditions";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { UnfinishedBlock } from "../../chia_rs/chia-protocol/unfinished_block";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|