@tari-project/tari-universe-signer 0.5.0 → 0.5.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/dist/signer.d.ts +8 -7
- package/dist/signer.js +4 -4
- package/dist/types.d.ts +0 -4
- package/package.json +4 -4
package/dist/signer.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { SubmitTransactionResponse,
|
|
2
|
-
import { TariUniverseSignerParameters, WindowSize
|
|
3
|
-
import { AccountsGetBalancesResponse, ListAccountNftRequest, ListAccountNftResponse
|
|
1
|
+
import { SubmitTransactionResponse, AccountData, Substate, TemplateDefinition, VaultBalances, ListSubstatesResponse, SubmitTransactionRequest, ListSubstatesRequest, GetTransactionResultResponse, ListAccountNftFromBalancesRequest } from "@tari-project/tarijs-types";
|
|
2
|
+
import { TariUniverseSignerParameters, WindowSize } from "./types";
|
|
3
|
+
import { AccountsGetBalancesResponse, ConfidentialViewVaultBalanceRequest, ListAccountNftRequest, ListAccountNftResponse } from "@tari-project/wallet_jrpc_client";
|
|
4
|
+
import { TariSigner } from "@tari-project/tari-signer";
|
|
4
5
|
export declare class TariUniverseSigner implements TariSigner {
|
|
5
6
|
params: TariUniverseSignerParameters;
|
|
6
7
|
signerName: string;
|
|
@@ -9,15 +10,15 @@ export declare class TariUniverseSigner implements TariSigner {
|
|
|
9
10
|
private sendRequest;
|
|
10
11
|
isConnected(): boolean;
|
|
11
12
|
getPublicKey(): Promise<string>;
|
|
12
|
-
listSubstates(filter_by_template
|
|
13
|
-
getConfidentialVaultBalances(
|
|
13
|
+
listSubstates({ filter_by_template, filter_by_type, limit, offset, }: ListSubstatesRequest): Promise<ListSubstatesResponse>;
|
|
14
|
+
getConfidentialVaultBalances({ vault_id, maximum_expected_value, minimum_expected_value, view_key_id, }: ConfidentialViewVaultBalanceRequest): Promise<VaultBalances>;
|
|
14
15
|
createFreeTestCoins(): Promise<void>;
|
|
15
16
|
requestParentSize(): Promise<WindowSize>;
|
|
16
|
-
getAccount(): Promise<
|
|
17
|
+
getAccount(): Promise<AccountData>;
|
|
17
18
|
getAccountBalances(componentAddress: string): Promise<AccountsGetBalancesResponse>;
|
|
18
19
|
getSubstate(substate_id: string): Promise<Substate>;
|
|
19
20
|
submitTransaction(req: SubmitTransactionRequest): Promise<SubmitTransactionResponse>;
|
|
20
|
-
getTransactionResult(transactionId: string): Promise<
|
|
21
|
+
getTransactionResult(transactionId: string): Promise<GetTransactionResultResponse>;
|
|
21
22
|
getTemplateDefinition(template_address: string): Promise<TemplateDefinition>;
|
|
22
23
|
getNftsList(req: ListAccountNftRequest): Promise<ListAccountNftResponse>;
|
|
23
24
|
getNftsFromAccountBalances(req: ListAccountNftFromBalancesRequest): Promise<ListAccountNftResponse>;
|
package/dist/signer.js
CHANGED
|
@@ -25,16 +25,16 @@ export class TariUniverseSigner {
|
|
|
25
25
|
getPublicKey() {
|
|
26
26
|
return this.sendRequest({ methodName: "getPublicKey", args: [] });
|
|
27
27
|
}
|
|
28
|
-
async listSubstates(filter_by_template, filter_by_type, limit, offset) {
|
|
28
|
+
async listSubstates({ filter_by_template, filter_by_type, limit, offset, }) {
|
|
29
29
|
return this.sendRequest({
|
|
30
30
|
methodName: "listSubstates",
|
|
31
|
-
args: [filter_by_template, filter_by_type, limit, offset],
|
|
31
|
+
args: [{ filter_by_template, filter_by_type, limit, offset }],
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
getConfidentialVaultBalances(
|
|
34
|
+
getConfidentialVaultBalances({ vault_id, maximum_expected_value, minimum_expected_value, view_key_id, }) {
|
|
35
35
|
return this.sendRequest({
|
|
36
36
|
methodName: "getConfidentialVaultBalances",
|
|
37
|
-
args: [
|
|
37
|
+
args: [{ view_key_id, vault_id, minimum_expected_value, maximum_expected_value }],
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
async createFreeTestCoins() {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TariPermissions } from "@tari-project/tari-permissions";
|
|
2
2
|
import { TariUniverseSigner } from "./signer";
|
|
3
|
-
import { BalanceEntry } from "@tari-project/typescript-bindings";
|
|
4
3
|
export type TariUniverseSignerParameters = {
|
|
5
4
|
permissions: TariPermissions;
|
|
6
5
|
optionalPermissions: TariPermissions;
|
|
@@ -29,6 +28,3 @@ export type SignerResponse<T extends SignerMethodNames> = {
|
|
|
29
28
|
result: SignerReturnType<T>;
|
|
30
29
|
resultError?: string;
|
|
31
30
|
};
|
|
32
|
-
export interface ListAccountNftFromBalancesRequest {
|
|
33
|
-
balances: Array<BalanceEntry>;
|
|
34
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/tari-universe-signer",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@tari-project/typescript-bindings": "^1.5.1",
|
|
14
14
|
"@tari-project/wallet_jrpc_client": "^1.5.1",
|
|
15
|
-
"@tari-project/tari-permissions": "^0.5.
|
|
16
|
-
"@tari-project/tari-signer": "^0.5.
|
|
17
|
-
"@tari-project/tarijs-types": "^0.5.
|
|
15
|
+
"@tari-project/tari-permissions": "^0.5.2",
|
|
16
|
+
"@tari-project/tari-signer": "^0.5.2",
|
|
17
|
+
"@tari-project/tarijs-types": "^0.5.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^22.13.1",
|