@cartridge/controller 0.10.0 → 0.10.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/.turbo/turbo-build$colon$deps.log +16 -16
- package/.turbo/turbo-build.log +12 -12
- package/dist/controller.d.ts +2 -2
- package/dist/index.js +211 -188
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/{provider-Bsw_spHR.js → provider-DSw1EyU9.js} +45 -44
- package/dist/provider-DSw1EyU9.js.map +1 -0
- package/dist/session.js +24 -24
- package/dist/session.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types.d.ts +20 -1
- package/dist/wallets/argent/index.d.ts +4 -0
- package/dist/wallets/braavos/index.d.ts +4 -0
- package/dist/wallets/types.d.ts +1 -0
- package/package.json +3 -3
- package/src/controller.ts +5 -7
- package/src/types.ts +23 -1
- package/src/wallets/argent/index.ts +36 -0
- package/src/wallets/braavos/index.ts +36 -0
- package/src/wallets/types.ts +1 -0
- package/dist/provider-Bsw_spHR.js.map +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.10.
|
|
2
|
+
> @cartridge/controller@0.10.1 build:deps /home/runner/work/controller/controller/packages/controller
|
|
3
3
|
> pnpm build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @cartridge/controller@0.10.
|
|
6
|
+
> @cartridge/controller@0.10.1 build /home/runner/work/controller/controller/packages/controller
|
|
7
7
|
> pnpm build:browser && pnpm build:node
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @cartridge/controller@0.10.
|
|
10
|
+
> @cartridge/controller@0.10.1 build:browser /home/runner/work/controller/controller/packages/controller
|
|
11
11
|
> vite build
|
|
12
12
|
|
|
13
13
|
[36mvite v6.3.4 [32mbuilding for production...[36m[39m
|
|
14
14
|
transforming...
|
|
15
15
|
[32m✓[39m 233 modules transformed.
|
|
16
16
|
rendering chunks...
|
|
17
|
-
[vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.3.
|
|
17
|
+
[vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.3.4/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
|
|
18
18
|
|
|
19
19
|
[vite:dts] Start generate declaration files...
|
|
20
20
|
computing gzip size...
|
|
21
|
-
[2mdist/[22m[36msession.js [39m[1m[2m 11.
|
|
22
|
-
[2mdist/[22m[36mprovider-
|
|
23
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
24
|
-
[vite:dts] Declaration files built in
|
|
21
|
+
[2mdist/[22m[36msession.js [39m[1m[2m 11.26 kB[22m[1m[22m[2m │ gzip: 3.51 kB[22m[2m │ map: 62.10 kB[22m
|
|
22
|
+
[2mdist/[22m[36mprovider-DSw1EyU9.js [39m[1m[2m 13.59 kB[22m[1m[22m[2m │ gzip: 5.54 kB[22m[2m │ map: 33.38 kB[22m
|
|
23
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m135.28 kB[22m[1m[22m[2m │ gzip: 34.32 kB[22m[2m │ map: 437.66 kB[22m
|
|
24
|
+
[vite:dts] Declaration files built in 4402ms.
|
|
25
25
|
|
|
26
|
-
[32m✓ built in 6.
|
|
26
|
+
[32m✓ built in 6.17s[39m
|
|
27
27
|
|
|
28
|
-
> @cartridge/controller@0.10.
|
|
28
|
+
> @cartridge/controller@0.10.1 build:node /home/runner/work/controller/controller/packages/controller
|
|
29
29
|
> tsup --config tsup.node.config.ts
|
|
30
30
|
|
|
31
31
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -36,16 +36,16 @@ computing gzip size...
|
|
|
36
36
|
[34mCLI[39m Cleaning output folder
|
|
37
37
|
[34mESM[39m Build start
|
|
38
38
|
[34mCJS[39m Build start
|
|
39
|
-
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
40
39
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
|
|
41
40
|
Entry module "dist/node/index.cjs" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
42
|
-
|
|
43
|
-
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.32 KB[39m
|
|
44
|
-
[32mESM[39m ⚡️ Build success in 361ms
|
|
41
|
+
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
45
42
|
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.94 KB[39m
|
|
46
43
|
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m50.53 KB[39m
|
|
47
|
-
[32mCJS[39m ⚡️ Build success in
|
|
44
|
+
[32mCJS[39m ⚡️ Build success in 385ms
|
|
45
|
+
[32mESM[39m [1mdist/node/index.js [22m[32m21.18 KB[39m
|
|
46
|
+
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.32 KB[39m
|
|
47
|
+
[32mESM[39m ⚡️ Build success in 386ms
|
|
48
48
|
[34mDTS[39m Build start
|
|
49
|
-
[32mDTS[39m ⚡️ Build success in
|
|
49
|
+
[32mDTS[39m ⚡️ Build success in 4020ms
|
|
50
50
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.87 KB[39m
|
|
51
51
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.87 KB[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.10.
|
|
2
|
+
> @cartridge/controller@0.10.1 build /home/runner/work/controller/controller/packages/controller
|
|
3
3
|
> pnpm build:browser && pnpm build:node
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @cartridge/controller@0.10.
|
|
6
|
+
> @cartridge/controller@0.10.1 build:browser /home/runner/work/controller/controller/packages/controller
|
|
7
7
|
> vite build
|
|
8
8
|
|
|
9
9
|
[36mvite v6.3.4 [32mbuilding for production...[36m[39m
|
|
10
10
|
transforming...
|
|
11
11
|
[32m✓[39m 233 modules transformed.
|
|
12
12
|
rendering chunks...
|
|
13
|
-
[vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.3.
|
|
13
|
+
[vite-plugin-top-level-await] Non-existing module "../../../node_modules/.pnpm/@cartridge+controller-wasm@0.3.4/node_modules/@cartridge/controller-wasm/pkg-session/session_wasm_bg.wasm" imported by "session.js", ignoring.
|
|
14
14
|
|
|
15
15
|
[vite:dts] Start generate declaration files...
|
|
16
16
|
computing gzip size...
|
|
17
|
-
[2mdist/[22m[36msession.js [39m[1m[2m 11.
|
|
18
|
-
[2mdist/[22m[36mprovider-
|
|
19
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
20
|
-
[vite:dts] Declaration files built in
|
|
17
|
+
[2mdist/[22m[36msession.js [39m[1m[2m 11.26 kB[22m[1m[22m[2m │ gzip: 3.51 kB[22m[2m │ map: 62.10 kB[22m
|
|
18
|
+
[2mdist/[22m[36mprovider-DSw1EyU9.js [39m[1m[2m 13.59 kB[22m[1m[22m[2m │ gzip: 5.54 kB[22m[2m │ map: 33.38 kB[22m
|
|
19
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m135.28 kB[22m[1m[22m[2m │ gzip: 34.32 kB[22m[2m │ map: 437.66 kB[22m
|
|
20
|
+
[vite:dts] Declaration files built in 4332ms.
|
|
21
21
|
|
|
22
|
-
[32m✓ built in 6.
|
|
22
|
+
[32m✓ built in 6.28s[39m
|
|
23
23
|
|
|
24
|
-
> @cartridge/controller@0.10.
|
|
24
|
+
> @cartridge/controller@0.10.1 build:node /home/runner/work/controller/controller/packages/controller
|
|
25
25
|
> tsup --config tsup.node.config.ts
|
|
26
26
|
|
|
27
27
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -37,11 +37,11 @@ Entry module "dist/node/index.cjs" is using named and default exports together.
|
|
|
37
37
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
38
38
|
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.94 KB[39m
|
|
39
39
|
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m50.53 KB[39m
|
|
40
|
-
[32mCJS[39m ⚡️ Build success in
|
|
40
|
+
[32mCJS[39m ⚡️ Build success in 287ms
|
|
41
41
|
[32mESM[39m [1mdist/node/index.js [22m[32m21.18 KB[39m
|
|
42
42
|
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.32 KB[39m
|
|
43
|
-
[32mESM[39m ⚡️ Build success in
|
|
43
|
+
[32mESM[39m ⚡️ Build success in 288ms
|
|
44
44
|
[34mDTS[39m Build start
|
|
45
|
-
[32mDTS[39m ⚡️ Build success in
|
|
45
|
+
[32mDTS[39m ⚡️ Build success in 4277ms
|
|
46
46
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.87 KB[39m
|
|
47
47
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.87 KB[39m
|
package/dist/controller.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Policy } from '@cartridge/presets';
|
|
|
2
2
|
import { AddStarknetChainParameters } from '@starknet-io/types-js';
|
|
3
3
|
import { WalletAccount } from 'starknet';
|
|
4
4
|
import { default as BaseProvider } from './provider';
|
|
5
|
-
import { ControllerOptions, ProfileContextTypeVariant } from './types';
|
|
5
|
+
import { ControllerOptions, ProfileContextTypeVariant, StarterPack } from './types';
|
|
6
6
|
export default class ControllerProvider extends BaseProvider {
|
|
7
7
|
private keychain?;
|
|
8
8
|
private options;
|
|
@@ -25,7 +25,7 @@ export default class ControllerProvider extends BaseProvider {
|
|
|
25
25
|
rpcUrl(): string;
|
|
26
26
|
username(): Promise<string> | undefined;
|
|
27
27
|
openPurchaseCredits(): void;
|
|
28
|
-
openStarterPack(
|
|
28
|
+
openStarterPack(options: string | StarterPack): Promise<void>;
|
|
29
29
|
openExecute(calls: any, chainId?: string): Promise<{
|
|
30
30
|
status: boolean;
|
|
31
31
|
transactionHash: string;
|