@rango-dev/signer-starknet 0.0.0-experimental-214d73c7-20260922

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/CHANGELOG.md ADDED
@@ -0,0 +1,152 @@
1
+ # [0.44.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.43.0...signer-starknet@0.44.0) (2026-09-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ship dist and changelog when publishing with npm ([0a8bd5d](https://github.com/rango-exchange/rango-client/commit/0a8bd5d779bd652b6ca7195cda4ce465ba196f0e))
7
+ # [0.43.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.42.0...signer-starknet@0.43.0) (2026-08-18)
8
+
9
+
10
+
11
+ # [0.42.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.41.1...signer-starknet@0.42.0) (2026-05-31)
12
+
13
+
14
+
15
+ ## [0.41.1](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.41.0...signer-starknet@0.41.1) (2026-05-02)
16
+
17
+
18
+
19
+ # [0.41.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.40.0...signer-starknet@0.41.0) (2026-04-29)
20
+
21
+
22
+
23
+ # [0.40.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.39.0...signer-starknet@0.40.0) (2025-08-19)
24
+
25
+
26
+
27
+ # [0.39.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.38.0...signer-starknet@0.39.0) (2025-08-05)
28
+
29
+
30
+
31
+ # [0.38.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.37.0...signer-starknet@0.38.0) (2025-07-22)
32
+
33
+
34
+ ### Reverts
35
+
36
+ * Revert "chore(release): publish" ([064ce15](https://github.com/rango-exchange/rango-client/commit/064ce157a2f819856f647f83aeb1c0410542e8d7))
37
+
38
+
39
+
40
+ # [0.36.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.35.0...signer-starknet@0.36.0) (2025-06-09)
41
+
42
+
43
+
44
+ # [0.35.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.34.0...signer-starknet@0.35.0) (2025-04-30)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * rename pbt to ptb for sui ([3d6d89f](https://github.com/rango-exchange/rango-client/commit/3d6d89f2265766607a15d61e0df92643fb33072b))
50
+
51
+
52
+ ### Features
53
+
54
+ * update sui to consider recent api changes ([d764b25](https://github.com/rango-exchange/rango-client/commit/d764b2501df9bb295f63cdbc0b05acd4a3abb4b9))
55
+
56
+
57
+
58
+ # [0.34.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.33.0...signer-starknet@0.34.0) (2025-03-11)
59
+
60
+
61
+
62
+ # [0.33.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.32.0...signer-starknet@0.33.0) (2025-02-23)
63
+
64
+
65
+
66
+ # [0.32.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.31.0...signer-starknet@0.32.0) (2024-11-12)
67
+
68
+
69
+
70
+ # [0.31.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.30.0...signer-starknet@0.31.0) (2024-10-12)
71
+
72
+
73
+ ### Bug Fixes
74
+
75
+ * bump sdk and fix type issues ([d442208](https://github.com/rango-exchange/rango-client/commit/d4422083bf5dd27d5f509ce1db7f9560d05428c8))
76
+
77
+
78
+
79
+ # [0.30.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.29.0...signer-starknet@0.30.0) (2024-09-10)
80
+
81
+
82
+
83
+ # [0.29.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.28.0...signer-starknet@0.29.0) (2024-08-11)
84
+
85
+
86
+
87
+ # [0.28.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.27.0...signer-starknet@0.28.0) (2024-07-09)
88
+
89
+
90
+
91
+ # [0.27.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.26.0...signer-starknet@0.27.0) (2024-02-20)
92
+
93
+
94
+
95
+ # [0.26.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.25.0...signer-starknet@0.26.0) (2024-01-22)
96
+
97
+
98
+
99
+ # [0.25.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.23.0...signer-starknet@0.25.0) (2023-12-24)
100
+
101
+
102
+ ### Bug Fixes
103
+
104
+ * fix HMR for widget and playground ([8524820](https://github.com/rango-exchange/rango-client/commit/8524820f10cf0b8921f3db0c4f620ff98daa4103))
105
+
106
+
107
+
108
+ # [0.14.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.13.0...signer-starknet@0.14.0) (2023-08-03)
109
+
110
+
111
+
112
+ # [0.13.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.12.0...signer-starknet@0.13.0) (2023-08-01)
113
+
114
+
115
+
116
+ # [0.9.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.8.0...signer-starknet@0.9.0) (2023-07-31)
117
+
118
+
119
+
120
+ # [0.7.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.6.0...signer-starknet@0.7.0) (2023-07-11)
121
+
122
+
123
+
124
+ # [0.6.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.5.0...signer-starknet@0.6.0) (2023-07-11)
125
+
126
+
127
+
128
+ # [0.5.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.4.0...signer-starknet@0.5.0) (2023-05-31)
129
+
130
+
131
+
132
+ # [0.4.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.3.0...signer-starknet@0.4.0) (2023-05-31)
133
+
134
+
135
+
136
+ # [0.3.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.2.0...signer-starknet@0.3.0) (2023-05-30)
137
+
138
+
139
+
140
+ # [0.2.0](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.1.14...signer-starknet@0.2.0) (2023-05-30)
141
+
142
+
143
+
144
+ ## [0.1.13](https://github.com/rango-exchange/rango-client/compare/signer-starknet@0.1.12...signer-starknet@0.1.13) (2023-05-15)
145
+
146
+
147
+ ### Bug Fixes
148
+
149
+ * update rango-types and fix notification bugs ([993f185](https://github.com/rango-exchange/rango-client/commit/993f185e0b8c5e5e15a2c65ba2d85d1f9c8daa90))
150
+
151
+
152
+
@@ -0,0 +1,2 @@
1
+ export { DefaultStarknetSigner } from './signer.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ var o=Object.defineProperty;var a=(n,r)=>o(n,"name",{value:r,configurable:!0});import{SignerError as i,SignerErrorCode as s}from"rango-types";var t=class{static{a(this,"DefaultStarknetSigner")}provider;constructor(r){this.provider=r}async signMessage(){throw i.UnimplementedError("signMessage")}async signAndSendTx(r){try{await this.provider.enable();let{transaction_hash:e}=await this.provider.account.execute(r.calls);return{hash:e}}catch(e){throw new i(s.SEND_TX_ERROR,void 0,e)}}};export{t as DefaultStarknetSigner};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/signer.ts"],
4
+ "sourcesContent": ["import type { GenericSigner } from 'rango-types';\nimport type { StarknetTransaction } from 'rango-types/mainApi';\n\nimport { SignerError, SignerErrorCode } from 'rango-types';\n\n/*\n * TODO - replace with real type\n * tslint:disable-next-line: no-any\n */\ntype StarknetExternalProvider = any;\n\nexport class DefaultStarknetSigner\n implements GenericSigner<StarknetTransaction>\n{\n private provider: StarknetExternalProvider;\n\n constructor(provider: StarknetExternalProvider) {\n this.provider = provider;\n }\n\n async signMessage(): Promise<string> {\n throw SignerError.UnimplementedError('signMessage');\n }\n\n async signAndSendTx(tx: StarknetTransaction): Promise<{ hash: string }> {\n try {\n await this.provider.enable();\n const { transaction_hash } = await this.provider.account.execute(\n tx.calls\n );\n return { hash: transaction_hash };\n } catch (error) {\n throw new SignerError(SignerErrorCode.SEND_TX_ERROR, undefined, error);\n }\n }\n}\n"],
5
+ "mappings": "+EAGA,OAAS,eAAAA,EAAa,mBAAAC,MAAuB,cAQtC,IAAMC,EAAN,KAEP,CAbA,MAaA,CAAAC,EAAA,8BACU,SAER,YAAYC,EAAoC,CAC9C,KAAK,SAAWA,CAClB,CAEA,MAAM,aAA+B,CACnC,MAAMC,EAAY,mBAAmB,aAAa,CACpD,CAEA,MAAM,cAAcC,EAAoD,CACtE,GAAI,CACF,MAAM,KAAK,SAAS,OAAO,EAC3B,GAAM,CAAE,iBAAAC,CAAiB,EAAI,MAAM,KAAK,SAAS,QAAQ,QACvDD,EAAG,KACL,EACA,MAAO,CAAE,KAAMC,CAAiB,CAClC,OAASC,EAAO,CACd,MAAM,IAAIH,EAAYI,EAAgB,cAAe,OAAWD,CAAK,CACvE,CACF,CACF",
6
+ "names": ["SignerError", "SignerErrorCode", "DefaultStarknetSigner", "__name", "provider", "SignerError", "tx", "transaction_hash", "error", "SignerErrorCode"]
7
+ }
@@ -0,0 +1,13 @@
1
+ import type { GenericSigner } from 'rango-types';
2
+ import type { StarknetTransaction } from 'rango-types/mainApi';
3
+ type StarknetExternalProvider = any;
4
+ export declare class DefaultStarknetSigner implements GenericSigner<StarknetTransaction> {
5
+ private provider;
6
+ constructor(provider: StarknetExternalProvider);
7
+ signMessage(): Promise<string>;
8
+ signAndSendTx(tx: StarknetTransaction): Promise<{
9
+ hash: string;
10
+ }>;
11
+ }
12
+ export {};
13
+ //# sourceMappingURL=signer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAQ/D,KAAK,wBAAwB,GAAG,GAAG,CAAC;AAEpC,qBAAa,qBACX,YAAW,aAAa,CAAC,mBAAmB,CAAC;IAE7C,OAAO,CAAC,QAAQ,CAA2B;gBAE/B,QAAQ,EAAE,wBAAwB;IAIxC,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAI9B,aAAa,CAAC,EAAE,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAWxE"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@rango-dev/signer-starknet",
3
+ "version": "0.0.0-experimental-214d73c7-20260922",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "source": "./src/index.ts",
7
+ "main": "./dist/index.js",
8
+ "exports": {
9
+ ".": "./dist/index.js"
10
+ },
11
+ "typings": "dist/index.d.ts",
12
+ "files": [
13
+ "dist",
14
+ "src",
15
+ "CHANGELOG.md"
16
+ ],
17
+ "scripts": {
18
+ "build": "yarn run rangutopia library build",
19
+ "ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
20
+ "clean": "rimraf dist",
21
+ "format": "prettier --write '{.,src}/**/*.{ts,tsx}'",
22
+ "lint": "eslint \"**/*.{ts,tsx}\""
23
+ },
24
+ "dependencies": {
25
+ "rango-types": "0.0.0-experimental-009f8a4d-20260921"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ }
30
+ }
package/readme.md ADDED
@@ -0,0 +1,3 @@
1
+ # @rango-dev/signer-starknet
2
+
3
+ Signer for Starknet Transacations generated by Rango API
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { DefaultStarknetSigner } from './signer.js';
package/src/signer.ts ADDED
@@ -0,0 +1,36 @@
1
+ import type { GenericSigner } from 'rango-types';
2
+ import type { StarknetTransaction } from 'rango-types/mainApi';
3
+
4
+ import { SignerError, SignerErrorCode } from 'rango-types';
5
+
6
+ /*
7
+ * TODO - replace with real type
8
+ * tslint:disable-next-line: no-any
9
+ */
10
+ type StarknetExternalProvider = any;
11
+
12
+ export class DefaultStarknetSigner
13
+ implements GenericSigner<StarknetTransaction>
14
+ {
15
+ private provider: StarknetExternalProvider;
16
+
17
+ constructor(provider: StarknetExternalProvider) {
18
+ this.provider = provider;
19
+ }
20
+
21
+ async signMessage(): Promise<string> {
22
+ throw SignerError.UnimplementedError('signMessage');
23
+ }
24
+
25
+ async signAndSendTx(tx: StarknetTransaction): Promise<{ hash: string }> {
26
+ try {
27
+ await this.provider.enable();
28
+ const { transaction_hash } = await this.provider.account.execute(
29
+ tx.calls
30
+ );
31
+ return { hash: transaction_hash };
32
+ } catch (error) {
33
+ throw new SignerError(SignerErrorCode.SEND_TX_ERROR, undefined, error);
34
+ }
35
+ }
36
+ }