@cartridge/controller 0.1.72 → 0.1.73
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/lib/signer.d.ts +2 -1
- package/lib/signer.js +6 -3
- package/lib/signer.js.map +1 -1
- package/lib/types.d.ts +2 -1
- package/package.json +2 -2
package/lib/signer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Abi, InvocationsSignerDetails, SignerInterface, Signature, typedData, Call, DeclareSignerDetails } from "starknet";
|
|
1
|
+
import { Abi, InvocationsSignerDetails, SignerInterface, Signature, typedData, Call, DeclareSignerDetails, DeployAccountSignerDetails } from "starknet";
|
|
2
2
|
import { Keychain } from "./types";
|
|
3
3
|
import { AsyncMethodReturns } from "@cartridge/penpal";
|
|
4
4
|
export declare class Signer implements SignerInterface {
|
|
@@ -37,4 +37,5 @@ export declare class Signer implements SignerInterface {
|
|
|
37
37
|
*/
|
|
38
38
|
signTransaction(calls: Call[], transactionsDetail: InvocationsSignerDetails, abis?: Abi[]): Promise<Signature>;
|
|
39
39
|
signDeclareTransaction(details: DeclareSignerDetails): Promise<Signature>;
|
|
40
|
+
signDeployAccountTransaction(transaction: DeployAccountSignerDetails): Promise<Signature>;
|
|
40
41
|
}
|
package/lib/signer.js
CHANGED
|
@@ -69,13 +69,16 @@ class Signer {
|
|
|
69
69
|
return this.keychain.signTransaction(calls, transactionsDetail, abis);
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
signDeclareTransaction(
|
|
73
|
-
// contractClass: ContractClass, // Should be used once class hash is present in ContractClass
|
|
74
|
-
details) {
|
|
72
|
+
signDeclareTransaction(details) {
|
|
75
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
74
|
return this.keychain.signDeclareTransaction(details);
|
|
77
75
|
});
|
|
78
76
|
}
|
|
77
|
+
signDeployAccountTransaction(transaction) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
return this.keychain.signDeployAccountTransaction(transaction);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
79
82
|
}
|
|
80
83
|
exports.Signer = Signer;
|
|
81
84
|
//# sourceMappingURL=signer.js.map
|
package/lib/signer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signer.js","sourceRoot":"","sources":["../src/signer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"signer.js","sourceRoot":"","sources":["../src/signer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAUA,gEAA8B;AAK9B,MAAa,MAAM;IAIf,YAAY,QAAsC,EAAE,OAEnD;QAJO,QAAG,GAAW,sBAAsB,CAAC;QAKzC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,EAAE;YACd,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;SAC1B;IACL,CAAC;IAED;;;;OAIG;IACI,SAAS;QACZ,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACU,WAAW,CAAC,SAA8B,EAAE,OAAe;;YACpE,MAAM,CAAC,IAAI,CACP,GAAG,IAAI,CAAC,GAAG,SAAS,sBAAE,CAAC,SAAS,CAAC;gBAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC;aAC7C,CAAC,EAAE,EACJ,QAAQ,EACR,sBAAsB,CACzB,CAAC;YAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACzD,CAAC;KAAA;IAED;;;;;;;;;;;OAWG;IACU,eAAe,CACxB,KAAa,EACb,kBAA4C,EAC5C,IAAY;;YAEZ,MAAM,CAAC,IAAI,CACP,GAAG,IAAI,CAAC,GAAG,SAAS,sBAAE,CAAC,SAAS,CAAC;gBAC7B,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;aAC/B,CAAC,EAAE,EACJ,QAAQ,EACR,sBAAsB,CACzB,CAAC;YAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;QAC1E,CAAC;KAAA;IAEY,sBAAsB,CAAC,OAA6B;;YAC7D,OAAO,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;KAAA;IAEY,4BAA4B,CAAC,WAAuC;;YAC7E,OAAO,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC,WAAW,CAAC,CAAC;QACnE,CAAC;KAAA;CACJ;AAjFD,wBAiFC"}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Abi, Call, InvocationsDetails, typedData, InvokeFunctionResponse, Signature, InvocationsSignerDetails, EstimateFeeDetails, EstimateFee, DeclareSignerDetails, DeclareContractPayload } from "starknet";
|
|
2
|
+
import { Abi, Call, InvocationsDetails, typedData, InvokeFunctionResponse, Signature, InvocationsSignerDetails, EstimateFeeDetails, EstimateFee, DeclareSignerDetails, DeclareContractPayload, DeployAccountSignerDetails } from "starknet";
|
|
3
3
|
import { BigNumberish } from "starknet/dist/utils/number";
|
|
4
4
|
export declare type Assertion = PublicKeyCredential & {
|
|
5
5
|
response: AuthenticatorAssertionResponse;
|
|
@@ -50,4 +50,5 @@ export interface Keychain {
|
|
|
50
50
|
signMessage(typedData: typedData.TypedData, account: string): Promise<Signature>;
|
|
51
51
|
signTransaction(transactions: Call[], transactionsDetail: InvocationsSignerDetails, abis?: Abi[]): Promise<Signature>;
|
|
52
52
|
signDeclareTransaction(details: DeclareSignerDetails): Promise<Signature>;
|
|
53
|
+
signDeployAccountTransaction(transaction: DeployAccountSignerDetails): Promise<Signature>;
|
|
53
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cartridge/controller",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "Cartridge Controller",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"base64url": "^3.0.1",
|
|
27
27
|
"fast-deep-equal": "^3.1.3",
|
|
28
28
|
"query-string": "^7.1.1",
|
|
29
|
-
"starknet": "
|
|
29
|
+
"starknet": "^4.9.0"
|
|
30
30
|
}
|
|
31
31
|
}
|