@tari-project/metamask-signer 0.10.0 → 0.11.0
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/index.d.ts +1 -1
- package/dist/index.js +2 -8
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class MetamaskTariSigner implements TariSigner {
|
|
|
19
19
|
createFreeTestCoins(account_id: number): Promise<AccountData>;
|
|
20
20
|
getAccount(): Promise<AccountData>;
|
|
21
21
|
getSubstate(substate_address: string): Promise<Substate>;
|
|
22
|
-
listSubstates(
|
|
22
|
+
listSubstates(req: ListSubstatesRequest): Promise<ListSubstatesResponse>;
|
|
23
23
|
submitTransaction(req: SubmitTransactionRequest): Promise<SubmitTransactionResponse>;
|
|
24
24
|
getTransactionResult(transactionId: string): Promise<GetTransactionResultResponse>;
|
|
25
25
|
getPublicKey(_branch: string, index: number): Promise<string>;
|
package/dist/index.js
CHANGED
|
@@ -60,14 +60,8 @@ export class MetamaskTariSigner {
|
|
|
60
60
|
const { substate, address: substate_id, version, } = await this.metamaskRequest("getSubstate", { substate_address });
|
|
61
61
|
return { value: substate, address: { substate_id, version } };
|
|
62
62
|
}
|
|
63
|
-
async listSubstates(
|
|
64
|
-
|
|
65
|
-
filter_by_template,
|
|
66
|
-
filter_by_type,
|
|
67
|
-
limit,
|
|
68
|
-
offset,
|
|
69
|
-
}));
|
|
70
|
-
return res;
|
|
63
|
+
async listSubstates(req) {
|
|
64
|
+
return await this.metamaskRequest("listSubstates", req);
|
|
71
65
|
}
|
|
72
66
|
async submitTransaction(req) {
|
|
73
67
|
const params = req.transaction;
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/metamask-signer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [],
|
|
10
|
-
"author": "",
|
|
10
|
+
"author": "The Tari Community",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@metamask/providers": "^18.2.0",
|
|
14
|
-
"@tari-project/typescript-bindings": ">=1.
|
|
15
|
-
"@tari-project/tari-signer": "^0.
|
|
16
|
-
"@tari-project/tarijs-types": "^0.
|
|
14
|
+
"@tari-project/typescript-bindings": ">=1.13.0",
|
|
15
|
+
"@tari-project/tari-signer": "^0.11.0",
|
|
16
|
+
"@tari-project/tarijs-types": "^0.11.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^22.13.1",
|