@trufnetwork/sdk-js 0.4.5 → 0.4.7-dev.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/dist/cjs/client/browserClient.cjs +5 -4
- package/dist/cjs/client/browserClient.cjs.map +2 -2
- package/dist/cjs/client/client.cjs.map +2 -2
- package/dist/cjs/client/getLastTransactions.cjs.map +1 -1
- package/dist/cjs/client/listStreams.cjs.map +2 -2
- package/dist/cjs/client/nodeClient.cjs +5 -4
- package/dist/cjs/client/nodeClient.cjs.map +2 -2
- package/dist/cjs/contracts-api/action.cjs.map +2 -2
- package/dist/cjs/contracts-api/composedAction.cjs.map +2 -2
- package/dist/cjs/contracts-api/deleteStream.cjs.map +2 -2
- package/dist/cjs/contracts-api/deployStream.cjs +0 -12
- package/dist/cjs/contracts-api/deployStream.cjs.map +3 -3
- package/dist/cjs/contracts-api/primitiveAction.cjs.map +2 -2
- package/dist/cjs/contracts-api/roleManagement.cjs.map +2 -2
- package/dist/cjs/index.browser.cjs +1 -1
- package/dist/cjs/index.browser.cjs.map +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/cjs/index.node.cjs +1 -1
- package/dist/cjs/index.node.cjs.map +2 -2
- package/dist/cjs/internal.cjs +47 -0
- package/dist/cjs/internal.cjs.map +7 -0
- package/dist/esm/client/browserClient.mjs +4 -3
- package/dist/esm/client/browserClient.mjs.map +2 -2
- package/dist/esm/client/client.mjs.map +2 -2
- package/dist/esm/client/getLastTransactions.mjs.map +1 -1
- package/dist/esm/client/listStreams.mjs.map +2 -2
- package/dist/esm/client/nodeClient.mjs +4 -3
- package/dist/esm/client/nodeClient.mjs.map +2 -2
- package/dist/esm/contracts-api/action.mjs.map +2 -2
- package/dist/esm/contracts-api/composedAction.mjs.map +2 -2
- package/dist/esm/contracts-api/deleteStream.mjs.map +2 -2
- package/dist/esm/contracts-api/deployStream.mjs +0 -2
- package/dist/esm/contracts-api/deployStream.mjs.map +2 -2
- package/dist/esm/contracts-api/primitiveAction.mjs.map +2 -2
- package/dist/esm/contracts-api/roleManagement.mjs.map +2 -2
- package/dist/esm/index.browser.mjs +1 -1
- package/dist/esm/index.browser.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.node.mjs +1 -1
- package/dist/esm/index.node.mjs.map +1 -1
- package/dist/esm/internal.mjs +26 -0
- package/dist/esm/internal.mjs.map +7 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/client/browserClient.d.ts +2 -2
- package/dist/types/client/browserClient.d.ts.map +1 -1
- package/dist/types/client/client.d.ts +8 -15
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/client/getLastTransactions.d.ts +1 -1
- package/dist/types/client/getLastTransactions.d.ts.map +1 -1
- package/dist/types/client/listStreams.d.ts +1 -1
- package/dist/types/client/listStreams.d.ts.map +1 -1
- package/dist/types/client/nodeClient.d.ts +2 -2
- package/dist/types/client/nodeClient.d.ts.map +1 -1
- package/dist/types/contracts-api/action.d.ts +14 -19
- package/dist/types/contracts-api/action.d.ts.map +1 -1
- package/dist/types/contracts-api/composedAction.d.ts +2 -4
- package/dist/types/contracts-api/composedAction.d.ts.map +1 -1
- package/dist/types/contracts-api/deleteStream.d.ts +4 -7
- package/dist/types/contracts-api/deleteStream.d.ts.map +1 -1
- package/dist/types/contracts-api/deployStream.d.ts +4 -7
- package/dist/types/contracts-api/deployStream.d.ts.map +1 -1
- package/dist/types/contracts-api/primitiveAction.d.ts +3 -5
- package/dist/types/contracts-api/primitiveAction.d.ts.map +1 -1
- package/dist/types/contracts-api/roleManagement.d.ts +3 -5
- package/dist/types/contracts-api/roleManagement.d.ts.map +1 -1
- package/dist/types/index.browser.d.ts +1 -1
- package/dist/types/index.browser.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.node.d.ts +1 -1
- package/dist/types/index.node.d.ts.map +1 -1
- package/dist/types/internal.d.ts +23 -0
- package/dist/types/internal.d.ts.map +1 -0
- package/package.json +6 -6
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { KwilSigner, NodeKwil, WebKwil } from "@trufnetwork/kwil-js";
|
|
2
|
-
import { ActionBody } from '@trufnetwork/kwil-js/dist/core/action';
|
|
3
|
-
import { NamedParams } from "@trufnetwork/kwil-js/dist/core/action";
|
|
4
|
-
import { GenericResponse } from "@trufnetwork/kwil-js/dist/core/resreq";
|
|
5
|
-
import { TxReceipt } from "@trufnetwork/kwil-js/dist/core/tx";
|
|
1
|
+
import { KwilSigner, NodeKwil, WebKwil, Types } from "@trufnetwork/kwil-js";
|
|
6
2
|
import { Either } from "monads-io";
|
|
7
3
|
import { DateString } from "../types/other";
|
|
8
4
|
import { StreamLocator } from "../types/stream";
|
|
@@ -10,7 +6,6 @@ import { CacheAwareResponse, GetRecordOptions, GetIndexOptions, GetIndexChangeOp
|
|
|
10
6
|
import { EthereumAddress } from "../util/EthereumAddress";
|
|
11
7
|
import { VisibilityEnum } from "../util/visibility";
|
|
12
8
|
import { MetadataKey, MetadataValueTypeForKey, StreamType } from "./contractValues";
|
|
13
|
-
import { ValueType } from "@trufnetwork/kwil-js/dist/utils/types";
|
|
14
9
|
export interface GetRecordInput {
|
|
15
10
|
stream: StreamLocator;
|
|
16
11
|
from?: number;
|
|
@@ -65,15 +60,15 @@ export declare class Action {
|
|
|
65
60
|
/**
|
|
66
61
|
* Executes a method on the stream
|
|
67
62
|
*/
|
|
68
|
-
protected executeWithNamedParams(method: string, inputs: NamedParams[]): Promise<GenericResponse<TxReceipt>>;
|
|
63
|
+
protected executeWithNamedParams(method: string, inputs: Types.NamedParams[]): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
69
64
|
/**
|
|
70
65
|
* Executes a method on the stream
|
|
71
66
|
*/
|
|
72
|
-
protected executeWithActionBody(inputs: ActionBody, synchronous?: boolean): Promise<GenericResponse<TxReceipt>>;
|
|
67
|
+
protected executeWithActionBody(inputs: Types.ActionBody, synchronous?: boolean): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
73
68
|
/**
|
|
74
69
|
* Calls a method on the stream
|
|
75
70
|
*/
|
|
76
|
-
protected call<T>(method: string, inputs: NamedParams): Promise<Either<number, T>>;
|
|
71
|
+
protected call<T>(method: string, inputs: Types.NamedParams): Promise<Either<number, T>>;
|
|
77
72
|
/**
|
|
78
73
|
* @deprecated Use getRecord(stream, options?) to leverage cache support and future-proof parameter handling.
|
|
79
74
|
*/
|
|
@@ -95,7 +90,7 @@ export declare class Action {
|
|
|
95
90
|
*/
|
|
96
91
|
getFirstRecord(input: GetFirstRecordInput): Promise<StreamRecord | null>;
|
|
97
92
|
getFirstRecord(stream: StreamLocator, options?: GetFirstRecordOptions): Promise<CacheAwareResponse<StreamRecord | null>>;
|
|
98
|
-
protected setMetadata<K extends MetadataKey>(stream: StreamLocator, key: K, value: MetadataValueTypeForKey<K>): Promise<GenericResponse<TxReceipt>>;
|
|
93
|
+
protected setMetadata<K extends MetadataKey>(stream: StreamLocator, key: K, value: MetadataValueTypeForKey<K>): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
99
94
|
protected getMetadata<K extends MetadataKey>(stream: StreamLocator, key: K, filteredRef?: string, limit?: number, offset?: number, orderBy?: string): Promise<{
|
|
100
95
|
rowId: string;
|
|
101
96
|
value: MetadataValueTypeForKey<K>;
|
|
@@ -105,7 +100,7 @@ export declare class Action {
|
|
|
105
100
|
/**
|
|
106
101
|
* Sets the read visibility of the stream
|
|
107
102
|
*/
|
|
108
|
-
setReadVisibility(stream: StreamLocator, visibility: VisibilityEnum): Promise<GenericResponse<TxReceipt>>;
|
|
103
|
+
setReadVisibility(stream: StreamLocator, visibility: VisibilityEnum): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
109
104
|
/**
|
|
110
105
|
* Returns the read visibility of the stream
|
|
111
106
|
*/
|
|
@@ -113,7 +108,7 @@ export declare class Action {
|
|
|
113
108
|
/**
|
|
114
109
|
* Sets the compose visibility of the stream
|
|
115
110
|
*/
|
|
116
|
-
setComposeVisibility(stream: StreamLocator, visibility: VisibilityEnum): Promise<GenericResponse<TxReceipt>>;
|
|
111
|
+
setComposeVisibility(stream: StreamLocator, visibility: VisibilityEnum): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
117
112
|
/**
|
|
118
113
|
* Returns the compose visibility of the stream
|
|
119
114
|
*/
|
|
@@ -121,20 +116,20 @@ export declare class Action {
|
|
|
121
116
|
/**
|
|
122
117
|
* Allows a wallet to read the stream
|
|
123
118
|
*/
|
|
124
|
-
allowReadWallet(stream: StreamLocator, wallet: EthereumAddress): Promise<GenericResponse<TxReceipt>>;
|
|
119
|
+
allowReadWallet(stream: StreamLocator, wallet: EthereumAddress): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
125
120
|
/**
|
|
126
121
|
* Disables a wallet from reading the stream
|
|
127
122
|
*/
|
|
128
|
-
disableReadWallet(stream: StreamLocator, wallet: EthereumAddress): Promise<GenericResponse<TxReceipt>>;
|
|
123
|
+
disableReadWallet(stream: StreamLocator, wallet: EthereumAddress): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
129
124
|
/**
|
|
130
125
|
* Allows a stream to use this stream as child
|
|
131
126
|
*/
|
|
132
|
-
allowComposeStream(stream: StreamLocator, wallet: StreamLocator): Promise<GenericResponse<TxReceipt>>;
|
|
127
|
+
allowComposeStream(stream: StreamLocator, wallet: StreamLocator): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
133
128
|
/**
|
|
134
129
|
* Disables a stream from using this stream as child
|
|
135
130
|
*/
|
|
136
|
-
disableComposeStream(stream: StreamLocator, wallet: StreamLocator): Promise<GenericResponse<TxReceipt>>;
|
|
137
|
-
protected disableMetadata(stream: StreamLocator, rowId: string): Promise<GenericResponse<TxReceipt>>;
|
|
131
|
+
disableComposeStream(stream: StreamLocator, wallet: StreamLocator): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
132
|
+
protected disableMetadata(stream: StreamLocator, rowId: string): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
138
133
|
/**
|
|
139
134
|
* Returns the wallets allowed to read the stream
|
|
140
135
|
*/
|
|
@@ -165,7 +160,7 @@ export declare class Action {
|
|
|
165
160
|
* @param procedure
|
|
166
161
|
* @param args
|
|
167
162
|
*/
|
|
168
|
-
customProcedureWithArgs(procedure: string, args: Record<string, ValueType | ValueType[]>): Promise<{
|
|
163
|
+
customProcedureWithArgs(procedure: string, args: Record<string, Types.ValueType | Types.ValueType[]>): Promise<{
|
|
169
164
|
eventTime: number;
|
|
170
165
|
value: string;
|
|
171
166
|
}[]>;
|
|
@@ -192,6 +187,6 @@ export declare class Action {
|
|
|
192
187
|
* @param amount The amount to bridge
|
|
193
188
|
* @returns Promise that resolves to GenericResponse<TxReceipt>
|
|
194
189
|
*/
|
|
195
|
-
bridgeTokens(chain: string, amount: string): Promise<GenericResponse<TxReceipt>>;
|
|
190
|
+
bridgeTokens(chain: string, amount: string): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
196
191
|
}
|
|
197
192
|
//# sourceMappingURL=action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;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aAAa,GACpB,OAAO,CAAC,eAAe,EAAE,CAAC;IAU7B;;OAEG;IACU,wBAAwB,CACnC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,aAAa,EAAE,CAAC;IAgB3B;;;OAGG;IACU,cAAc,CACzB,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,YAAY,EAAE,CAAC;IACb,cAAc,CACzB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC,CAAC;IAsG9C;;;;;OAKG;IACU,kBAAkB,CAC7B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,YAAY,EAAE,CAAC;IAsB1B;;;;;;;;OAQG;IACU,uBAAuB,CAClC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;;;;IAgB3D;;OAEG;IACU,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAU/C;;;;;OAKG;IACU,gBAAgB,CAC3B,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC;IAyBlB;;;;OAIG;IACU,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IAuBtC;;;;;OAKG;IACU,YAAY,CACvB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;CAWnD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { KwilSigner, NodeKwil, WebKwil } from "@trufnetwork/kwil-js";
|
|
2
|
-
import { GenericResponse } from "@trufnetwork/kwil-js/dist/core/resreq";
|
|
3
|
-
import { TxReceipt } from "@trufnetwork/kwil-js/dist/core/tx";
|
|
1
|
+
import { KwilSigner, NodeKwil, WebKwil, Types } from "@trufnetwork/kwil-js";
|
|
4
2
|
import { StreamLocator } from "../types/stream";
|
|
5
3
|
import { EthereumAddress } from "../util/EthereumAddress";
|
|
6
4
|
import { StreamId } from "../util/StreamId";
|
|
@@ -71,7 +69,7 @@ export declare class ComposedAction extends Action {
|
|
|
71
69
|
* @param taxonomy The taxonomy to set
|
|
72
70
|
* @returns A promise that resolves to the transaction receipt
|
|
73
71
|
*/
|
|
74
|
-
setTaxonomy(taxonomy: TaxonomySet): Promise<GenericResponse<TxReceipt>>;
|
|
72
|
+
setTaxonomy(taxonomy: TaxonomySet): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
75
73
|
/**
|
|
76
74
|
* Lists taxonomies by block height range for incremental synchronization.
|
|
77
75
|
* Enables efficient detection of taxonomy changes since a specific block height.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composedAction.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/composedAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"composedAction.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/composedAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAS,OAAO,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,eAAO,MAAM,sBAAsB,oCAAoC,CAAC;AAExE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IA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WAAW,GACpB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAqClD;;;;;;;;;;;;;;;;OAgBG;IACU,sBAAsB,CACjC,MAAM,GAAE,4BAAiC,GACxC,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAuCjC;;;;;;;;;;;;;;;;;OAiBG;IACU,uBAAuB,CAClC,MAAM,EAAE,6BAA6B,GACpC,OAAO,CAAC,mBAAmB,EAAE,CAAC;IA6CjC;;;;OAIG;WACW,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc;CAMzD"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KwilSigner } from "@trufnetwork/kwil-js";
|
|
3
|
-
import { TxReceipt } from "@trufnetwork/kwil-js/dist/core/tx";
|
|
4
|
-
import { GenericResponse } from "@trufnetwork/kwil-js/dist/core/resreq";
|
|
1
|
+
import { KwilSigner, Types } from "@trufnetwork/kwil-js";
|
|
5
2
|
import { StreamLocator } from "../types/stream";
|
|
6
3
|
/**
|
|
7
4
|
* Input parameters for destroying a stream.
|
|
8
5
|
*/
|
|
9
6
|
export interface DestroyStreamInput {
|
|
10
7
|
stream: StreamLocator;
|
|
11
|
-
kwilClient: Kwil<any>;
|
|
8
|
+
kwilClient: Types.Kwil<any>;
|
|
12
9
|
kwilSigner: KwilSigner;
|
|
13
10
|
synchronous?: boolean;
|
|
14
11
|
}
|
|
@@ -16,12 +13,12 @@ export interface DestroyStreamInput {
|
|
|
16
13
|
* Output after deleting a stream.
|
|
17
14
|
*/
|
|
18
15
|
export interface DeleteStreamOutput {
|
|
19
|
-
receipt: TxReceipt;
|
|
16
|
+
receipt: Types.TxReceipt;
|
|
20
17
|
}
|
|
21
18
|
/**
|
|
22
19
|
* Delete a stream from TN.
|
|
23
20
|
* @param input - The input parameters for destroying the stream.
|
|
24
21
|
* @returns The transaction receipt of the destruction.
|
|
25
22
|
*/
|
|
26
|
-
export declare function deleteStream(input: DestroyStreamInput): Promise<GenericResponse<TxReceipt>>;
|
|
23
|
+
export declare function deleteStream(input: DestroyStreamInput): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
27
24
|
//# sourceMappingURL=deleteStream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteStream.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/deleteStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"deleteStream.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/deleteStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAgBjD"}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { StreamType } from "./contractValues";
|
|
2
|
-
import {
|
|
3
|
-
import { Kwil } from "@trufnetwork/kwil-js/dist/client/kwil";
|
|
4
|
-
import { KwilSigner } from "@trufnetwork/kwil-js";
|
|
5
|
-
import { GenericResponse } from "@trufnetwork/kwil-js/dist/core/resreq";
|
|
2
|
+
import { KwilSigner, Types } from "@trufnetwork/kwil-js";
|
|
6
3
|
import { StreamId } from "../util/StreamId";
|
|
7
4
|
export interface DeployStreamInput {
|
|
8
5
|
streamId: StreamId;
|
|
9
6
|
streamType: StreamType;
|
|
10
|
-
kwilClient: Kwil<any>;
|
|
7
|
+
kwilClient: Types.Kwil<any>;
|
|
11
8
|
kwilSigner: KwilSigner;
|
|
12
9
|
synchronous?: boolean;
|
|
13
10
|
}
|
|
14
11
|
export interface DeployStreamOutput {
|
|
15
|
-
receipt: TxReceipt;
|
|
12
|
+
receipt: Types.TxReceipt;
|
|
16
13
|
}
|
|
17
14
|
/**
|
|
18
15
|
* Deploys a stream to TN.
|
|
19
16
|
* @param input - The input parameters for deploying the stream.
|
|
20
17
|
* @returns The transaction hash of the deployment.
|
|
21
18
|
*/
|
|
22
|
-
export declare function deployStream(input: DeployStreamInput): Promise<GenericResponse<TxReceipt>>;
|
|
19
|
+
export declare function deployStream(input: DeployStreamInput): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
23
20
|
//# sourceMappingURL=deployStream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployStream.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/deployStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"deployStream.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/deployStream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,KAAK,EAAE,iBAAiB,GACvB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAoBjD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { KwilSigner, NodeKwil, WebKwil } from "@trufnetwork/kwil-js";
|
|
2
|
-
import { GenericResponse } from "@trufnetwork/kwil-js/dist/core/resreq";
|
|
3
|
-
import { TxReceipt } from "@trufnetwork/kwil-js/dist/core/tx";
|
|
1
|
+
import { KwilSigner, NodeKwil, WebKwil, Types } from "@trufnetwork/kwil-js";
|
|
4
2
|
import { Action } from "./action";
|
|
5
3
|
import { StreamLocator } from "../types/stream";
|
|
6
4
|
export declare class PrimitiveAction extends Action {
|
|
@@ -10,14 +8,14 @@ export declare class PrimitiveAction extends Action {
|
|
|
10
8
|
* @param input of a single record to insert
|
|
11
9
|
* @returns Transaction receipt
|
|
12
10
|
*/
|
|
13
|
-
insertRecord(input: InsertRecordInput): Promise<GenericResponse<TxReceipt>>;
|
|
11
|
+
insertRecord(input: InsertRecordInput): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
14
12
|
/**
|
|
15
13
|
* Inserts records into the stream
|
|
16
14
|
* @param inputs Array of records to insert
|
|
17
15
|
* @param synchronous If true, the transaction will be executed synchronously
|
|
18
16
|
* @returns Transaction receipt
|
|
19
17
|
*/
|
|
20
|
-
insertRecords(inputs: InsertRecordInput[], synchronous?: boolean): Promise<GenericResponse<TxReceipt>>;
|
|
18
|
+
insertRecords(inputs: InsertRecordInput[], synchronous?: boolean): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
21
19
|
/**
|
|
22
20
|
* Creates a PrimitiveStream from a base Stream
|
|
23
21
|
* @param stream The base stream to convert
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitiveAction.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/primitiveAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"primitiveAction.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/primitiveAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAS,OAAO,EAAE,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAO9C,qBAAa,eAAgB,SAAQ,MAAM;gBAEvC,UAAU,EAAE,OAAO,GAAG,QAAQ,EAC9B,UAAU,EAAE,UAAU;IAKxB;;;;OAIG;IACU,YAAY,CACrB,KAAK,EAAE,iBAAiB,GACzB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAmBhD;;;;;OAKG;IACU,aAAa,CACtB,MAAM,EAAE,iBAAiB,EAAE,EAC3B,WAAW,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAmBpD;;;;OAIG;WACW,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe;CAM1D;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { KwilSigner, NodeKwil, WebKwil } from "@trufnetwork/kwil-js";
|
|
2
|
-
import { GenericResponse } from "@trufnetwork/kwil-js/dist/core/resreq";
|
|
3
|
-
import { TxReceipt } from "@trufnetwork/kwil-js/dist/core/tx";
|
|
1
|
+
import { KwilSigner, NodeKwil, WebKwil, Types } from "@trufnetwork/kwil-js";
|
|
4
2
|
import { Action } from "./action";
|
|
5
3
|
import { AreMembersOfInput, GrantRoleInput, RevokeRoleInput, WalletMembership } from "../types/role";
|
|
6
4
|
/**
|
|
@@ -15,12 +13,12 @@ export declare class RoleManagement extends Action {
|
|
|
15
13
|
* Grants a role to the provided wallets.
|
|
16
14
|
* This calls the `grant_roles` action.
|
|
17
15
|
*/
|
|
18
|
-
grantRole(input: GrantRoleInput, synchronous?: boolean): Promise<GenericResponse<TxReceipt>>;
|
|
16
|
+
grantRole(input: GrantRoleInput, synchronous?: boolean): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
19
17
|
/**
|
|
20
18
|
* Revokes a role from the provided wallets.
|
|
21
19
|
* This calls the `revoke_roles` action.
|
|
22
20
|
*/
|
|
23
|
-
revokeRole(input: RevokeRoleInput, synchronous?: boolean): Promise<GenericResponse<TxReceipt>>;
|
|
21
|
+
revokeRole(input: RevokeRoleInput, synchronous?: boolean): Promise<Types.GenericResponse<Types.TxReceipt>>;
|
|
24
22
|
/**
|
|
25
23
|
* Checks if the provided wallets are members of a role.
|
|
26
24
|
* This calls the `are_members_of` VIEW action.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roleManagement.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/roleManagement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAS,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"roleManagement.d.ts","sourceRoot":"","sources":["../../../src/contracts-api/roleManagement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAS,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAOrG;;;GAGG;AACH,qBAAa,cAAe,SAAQ,MAAM;gBAC5B,UAAU,EAAE,OAAO,GAAG,QAAQ,EAAE,UAAU,EAAE,UAAU;IAIlE,OAAO,CAAC,MAAM,CAAC,cAAc;IAM7B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAI/B;;;OAGG;IACU,SAAS,CACpB,KAAK,EAAE,cAAc,EACrB,WAAW,UAAQ,GAClB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAsBlD;;;OAGG;IACU,UAAU,CACrB,KAAK,EAAE,eAAe,EACtB,WAAW,UAAQ,GAClB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAsBlD;;;;;OAKG;IACU,YAAY,CACvB,KAAK,EAAE,iBAAiB,GACvB,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAiB9B;;;OAGG;IACU,eAAe,CAC1B,KAAK,EAAE,OAAO,eAAe,EAAE,oBAAoB,GAClD,OAAO,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,CAAC;IAmBhD;;OAEG;WACW,UAAU,CACtB,UAAU,EAAE,OAAO,GAAG,QAAQ,EAC9B,UAAU,EAAE,UAAU,GACrB,cAAc;CAGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../../src/index.browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../../src/index.browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,cAAc,YAAY,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/index.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/index.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal module to manage exports and break circular dependencies
|
|
3
|
+
* This centralizes all exports to prevent circular import issues
|
|
4
|
+
*/
|
|
5
|
+
export { BaseTNClient } from "./client/client";
|
|
6
|
+
export type { TNClientOptions, SignerInfo, ListStreamsInput, GetLastTransactionsInput } from "./client/client";
|
|
7
|
+
export { Action } from "./contracts-api/action";
|
|
8
|
+
export { PrimitiveAction } from "./contracts-api/primitiveAction";
|
|
9
|
+
export { ComposedAction } from "./contracts-api/composedAction";
|
|
10
|
+
export { RoleManagement } from "./contracts-api/roleManagement";
|
|
11
|
+
export { deployStream } from "./contracts-api/deployStream";
|
|
12
|
+
export { deleteStream } from "./contracts-api/deleteStream";
|
|
13
|
+
export { StreamId } from "./util/StreamId";
|
|
14
|
+
export { EthereumAddress } from "./util/EthereumAddress";
|
|
15
|
+
export { visibility } from "./util/visibility";
|
|
16
|
+
export { StreamType } from "./contracts-api/contractValues";
|
|
17
|
+
export type { StreamLocator } from "./types/stream";
|
|
18
|
+
export type { StreamRecord, ListMetadataByHeightParams, MetadataQueryResult, GetRecordInput, GetFirstRecordInput } from "./contracts-api/action";
|
|
19
|
+
export type { InsertRecordInput } from "./contracts-api/primitiveAction";
|
|
20
|
+
export type { TaxonomySet, TaxonomyItem, ListTaxonomiesByHeightParams, GetTaxonomiesForStreamsParams, TaxonomyQueryResult } from "./contracts-api/composedAction";
|
|
21
|
+
export type { GrantRoleInput, RevokeRoleInput, AreMembersOfInput, WalletMembership } from "./types/role";
|
|
22
|
+
export type { VisibilityEnum } from "./util/visibility";
|
|
23
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG/G,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAG5D,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,YAAY,EACV,YAAY,EACZ,0BAA0B,EAC1B,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAGhC,YAAY,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGzE,YAAY,EACV,WAAW,EACX,YAAY,EACZ,4BAA4B,EAC5B,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,gCAAgC,CAAC;AAGxC,YAAY,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trufnetwork/sdk-js",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7-dev.1",
|
|
4
4
|
"description": "TRUF.NETWORK SDK for JavaScript/TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"test:integration": "vitest tests/integration/ --run"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@trufnetwork/kwil-js": "
|
|
54
|
+
"@trufnetwork/kwil-js": "0.9.8-dev.1",
|
|
55
55
|
"crypto-hash": "^3.1.0",
|
|
56
56
|
"ethers": "^6.13.5",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"monads-io": "^4.0.2",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"pg": "^8.14.1",
|
|
60
|
+
"uuid": "^11.1.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/lodash": "4.17.12",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@typescript-eslint/eslint-plugin": "8.11.0",
|
|
67
67
|
"@typescript-eslint/parser": "8.11.0",
|
|
68
68
|
"disposablestack": "1.1.6",
|
|
69
|
+
"dotenv": "^16.4.5",
|
|
69
70
|
"esbuild": "0.24.0",
|
|
70
71
|
"esbuild-plugin-file-path-extensions": "^2.1.3",
|
|
71
72
|
"esbuild-plugin-import-assertions": "1.0.1",
|
|
@@ -83,7 +84,6 @@
|
|
|
83
84
|
"tsx": "^4.19.1",
|
|
84
85
|
"typescript": "^5.6.3",
|
|
85
86
|
"vite-plugin-plain-text": "1.4.2",
|
|
86
|
-
"vitest": "^2.1.3"
|
|
87
|
-
"dotenv": "^16.4.5"
|
|
87
|
+
"vitest": "^2.1.3"
|
|
88
88
|
}
|
|
89
89
|
}
|