@neuraiproject/neurai-assets 1.2.0 → 1.2.2

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/index.d.ts CHANGED
@@ -5,11 +5,52 @@ export interface NeuraiAssetsConfig {
5
5
  toAddress?: string | null;
6
6
  }
7
7
 
8
+ export type OperationType =
9
+ | 'ISSUE_ROOT'
10
+ | 'ISSUE_SUB'
11
+ | 'ISSUE_DEPIN'
12
+ | 'ISSUE_UNIQUE'
13
+ | 'ISSUE_QUALIFIER'
14
+ | 'ISSUE_SUB_QUALIFIER'
15
+ | 'ISSUE_RESTRICTED'
16
+ | 'REISSUE'
17
+ | 'REISSUE_RESTRICTED'
18
+ | 'TAG_ADDRESSES'
19
+ | 'UNTAG_ADDRESSES'
20
+ | 'FREEZE_ADDRESSES'
21
+ | 'UNFREEZE_ADDRESSES'
22
+ | 'FREEZE_ASSET'
23
+ | 'UNFREEZE_ASSET';
24
+
25
+ export type BuildStrategy = 'rpc-node' | 'local-builder';
26
+
27
+ export interface BuildInput {
28
+ txid: string;
29
+ vout: number;
30
+ address: string;
31
+ satoshis: number;
32
+ assetName?: string;
33
+ }
34
+
35
+ export interface LocalRawBuild {
36
+ operationType: OperationType;
37
+ params: Record<string, unknown>;
38
+ }
39
+
8
40
  export interface NeuraiAssetsBuildResult {
9
41
  rawTx: string;
10
- fee?: number;
11
- inputs?: unknown[];
12
- outputs?: unknown[];
42
+ fee: number;
43
+ burnAmount: number;
44
+ network: string;
45
+ buildStrategy: BuildStrategy;
46
+ burnAddress: string | null;
47
+ changeAddress: string | null;
48
+ changeAmount: number | null;
49
+ operationType?: OperationType;
50
+ localRawBuild?: LocalRawBuild;
51
+ inputs: BuildInput[];
52
+ outputs: Array<Record<string, unknown>>;
53
+ utxos?: unknown[];
13
54
  assetData?: Record<string, unknown>;
14
55
  [key: string]: unknown;
15
56
  }
@@ -113,4 +154,12 @@ declare const validators: Record<string, unknown>;
113
154
  declare const utils: Record<string, unknown>;
114
155
 
115
156
  export default NeuraiAssets;
116
- export { AssetQueries, NeuraiAssets, builders, constants, errors, utils, validators };
157
+ export {
158
+ AssetQueries,
159
+ NeuraiAssets,
160
+ builders,
161
+ constants,
162
+ errors,
163
+ utils,
164
+ validators
165
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuraiproject/neurai-assets",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Non-custodial Neurai asset management library for JavaScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -53,6 +53,7 @@
53
53
  "access": "public"
54
54
  },
55
55
  "devDependencies": {
56
+ "@neuraiproject/neurai-create-transaction": "^0.1.1",
56
57
  "@rollup/plugin-commonjs": "^28.0.8",
57
58
  "@rollup/plugin-node-resolve": "^16.0.3",
58
59
  "chai": "^4.3.10",