@cartridge/controller 0.10.2 → 0.10.4
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 +17 -18
- package/.turbo/turbo-build.log +16 -17
- package/dist/index.js +17 -8
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +3 -3
- package/dist/node/index.js.map +1 -1
- package/dist/{provider-D-5qL7QC.js → provider-PftcmETC.js} +68 -68
- package/dist/provider-PftcmETC.js.map +1 -0
- package/dist/session/index.d.ts +1 -0
- package/dist/session/provider.d.ts +4 -2
- package/dist/session.js +120 -255
- package/dist/session.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +3 -3
- package/src/session/index.ts +1 -0
- package/src/session/provider.ts +64 -15
- package/src/types.ts +3 -3
- package/src/utils.ts +1 -1
- package/src/wallets/bridge.ts +6 -6
- package/tsconfig.json +10 -1
- package/vite.config.js +5 -3
- package/dist/provider-D-5qL7QC.js.map +0 -1
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.10.
|
|
2
|
+
> @cartridge/controller@0.10.4 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.4 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.4 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
|
-
[32m✓[39m
|
|
15
|
+
[32m✓[39m 230 modules transformed.
|
|
16
16
|
rendering chunks...
|
|
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
17
|
|
|
19
18
|
[vite:dts] Start generate declaration files...
|
|
20
19
|
computing gzip size...
|
|
21
|
-
[2mdist/[22m[36msession.js [39m[1m[2m
|
|
22
|
-
[2mdist/[22m[36mprovider-
|
|
23
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m135.
|
|
24
|
-
[vite:dts] Declaration files built in
|
|
20
|
+
[2mdist/[22m[36msession.js [39m[1m[2m 7.19 kB[22m[1m[22m[2m │ gzip: 2.35 kB[22m[2m │ map: 17.48 kB[22m
|
|
21
|
+
[2mdist/[22m[36mprovider-PftcmETC.js [39m[1m[2m 13.61 kB[22m[1m[22m[2m │ gzip: 5.56 kB[22m[2m │ map: 33.44 kB[22m
|
|
22
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m135.40 kB[22m[1m[22m[2m │ gzip: 34.36 kB[22m[2m │ map: 437.94 kB[22m
|
|
23
|
+
[vite:dts] Declaration files built in 4438ms.
|
|
25
24
|
|
|
26
|
-
[32m✓ built in 6.
|
|
25
|
+
[32m✓ built in 6.13s[39m
|
|
27
26
|
|
|
28
|
-
> @cartridge/controller@0.10.
|
|
27
|
+
> @cartridge/controller@0.10.4 build:node /home/runner/work/controller/controller/packages/controller
|
|
29
28
|
> tsup --config tsup.node.config.ts
|
|
30
29
|
|
|
31
30
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -39,13 +38,13 @@ computing gzip size...
|
|
|
39
38
|
"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
|
-
[32mESM[39m [1mdist/node/index.js [22m[32m21.
|
|
43
|
-
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.
|
|
44
|
-
[32mESM[39m ⚡️ Build success in
|
|
45
|
-
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.
|
|
46
|
-
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m50.
|
|
47
|
-
[32mCJS[39m ⚡️ Build success in
|
|
41
|
+
[32mESM[39m [1mdist/node/index.js [22m[32m21.20 KB[39m
|
|
42
|
+
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.38 KB[39m
|
|
43
|
+
[32mESM[39m ⚡️ Build success in 397ms
|
|
44
|
+
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.97 KB[39m
|
|
45
|
+
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m50.59 KB[39m
|
|
46
|
+
[32mCJS[39m ⚡️ Build success in 397ms
|
|
48
47
|
[34mDTS[39m Build start
|
|
49
|
-
[32mDTS[39m ⚡️ Build success in
|
|
48
|
+
[32mDTS[39m ⚡️ Build success in 3902ms
|
|
50
49
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.87 KB[39m
|
|
51
50
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.87 KB[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
> @cartridge/controller@0.10.
|
|
2
|
+
> @cartridge/controller@0.10.4 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.4 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
|
-
[32m✓[39m
|
|
11
|
+
[32m✓[39m 230 modules transformed.
|
|
12
12
|
rendering chunks...
|
|
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
13
|
|
|
15
14
|
[vite:dts] Start generate declaration files...
|
|
16
15
|
computing gzip size...
|
|
17
|
-
[2mdist/[22m[36msession.js [39m[1m[2m
|
|
18
|
-
[2mdist/[22m[36mprovider-
|
|
19
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m135.
|
|
20
|
-
[vite:dts] Declaration files built in
|
|
16
|
+
[2mdist/[22m[36msession.js [39m[1m[2m 7.19 kB[22m[1m[22m[2m │ gzip: 2.35 kB[22m[2m │ map: 17.48 kB[22m
|
|
17
|
+
[2mdist/[22m[36mprovider-PftcmETC.js [39m[1m[2m 13.61 kB[22m[1m[22m[2m │ gzip: 5.56 kB[22m[2m │ map: 33.44 kB[22m
|
|
18
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m135.40 kB[22m[1m[22m[2m │ gzip: 34.36 kB[22m[2m │ map: 437.94 kB[22m
|
|
19
|
+
[vite:dts] Declaration files built in 4130ms.
|
|
21
20
|
|
|
22
|
-
[32m✓ built in 6.
|
|
21
|
+
[32m✓ built in 6.05s[39m
|
|
23
22
|
|
|
24
|
-
> @cartridge/controller@0.10.
|
|
23
|
+
> @cartridge/controller@0.10.4 build:node /home/runner/work/controller/controller/packages/controller
|
|
25
24
|
> tsup --config tsup.node.config.ts
|
|
26
25
|
|
|
27
26
|
[34mCLI[39m Building entry: src/node/index.ts
|
|
@@ -35,13 +34,13 @@ computing gzip size...
|
|
|
35
34
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.cjs".
|
|
36
35
|
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.
|
|
37
36
|
"constants", "getChecksumAddress" and "shortString" are imported from external module "starknet" but never used in "dist/node/index.js".
|
|
38
|
-
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.
|
|
39
|
-
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m50.
|
|
40
|
-
[32mCJS[39m ⚡️ Build success in
|
|
41
|
-
[32mESM[39m [1mdist/node/index.js [22m[32m21.
|
|
42
|
-
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.
|
|
43
|
-
[32mESM[39m ⚡️ Build success in
|
|
37
|
+
[32mCJS[39m [1mdist/node/index.cjs [22m[32m21.97 KB[39m
|
|
38
|
+
[32mCJS[39m [1mdist/node/index.cjs.map [22m[32m50.59 KB[39m
|
|
39
|
+
[32mCJS[39m ⚡️ Build success in 319ms
|
|
40
|
+
[32mESM[39m [1mdist/node/index.js [22m[32m21.20 KB[39m
|
|
41
|
+
[32mESM[39m [1mdist/node/index.js.map [22m[32m50.38 KB[39m
|
|
42
|
+
[32mESM[39m ⚡️ Build success in 320ms
|
|
44
43
|
[34mDTS[39m Build start
|
|
45
|
-
[32mDTS[39m ⚡️ Build success in
|
|
44
|
+
[32mDTS[39m ⚡️ Build success in 3991ms
|
|
46
45
|
[32mDTS[39m [1mdist/node/index.d.ts [22m[32m5.87 KB[39m
|
|
47
46
|
[32mDTS[39m [1mdist/node/index.d.cts [22m[32m5.87 KB[39m
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletAccount as Nt, constants as V, num as rt, shortString as Oe } from "starknet";
|
|
2
|
-
import { R as Q, t as Rt, K as Tt, B as Ut, N as v, p as zt, v as Dt, A as Ot } from "./provider-
|
|
3
|
-
import { F as qn, S as Gn, h as Xn, n as Jn, a as Zn, b as es } from "./provider-
|
|
2
|
+
import { R as Q, t as Rt, K as Tt, B as Ut, N as v, p as zt, v as Dt, A as Ot } from "./provider-PftcmETC.js";
|
|
3
|
+
import { F as qn, S as Gn, h as Xn, n as Jn, a as Zn, b as es } from "./provider-PftcmETC.js";
|
|
4
4
|
class Le extends Nt {
|
|
5
5
|
keychain;
|
|
6
6
|
modal;
|
|
@@ -3114,17 +3114,17 @@ class Tn {
|
|
|
3114
3114
|
if (this.walletAdapters = /* @__PURE__ */ new Map(), typeof window > "u")
|
|
3115
3115
|
return;
|
|
3116
3116
|
const e = new Vr();
|
|
3117
|
-
|
|
3117
|
+
this.walletAdapters.set("metamask", e);
|
|
3118
3118
|
const r = new Pn();
|
|
3119
|
-
|
|
3119
|
+
this.walletAdapters.set("phantom", r);
|
|
3120
3120
|
const n = new jr();
|
|
3121
|
-
|
|
3121
|
+
this.walletAdapters.set("argent", n);
|
|
3122
3122
|
const s = new Rn();
|
|
3123
|
-
|
|
3123
|
+
this.walletAdapters.set("braavos", s);
|
|
3124
3124
|
const o = new Nn();
|
|
3125
|
-
|
|
3125
|
+
this.walletAdapters.set("rabby", o);
|
|
3126
3126
|
const a = new Kr();
|
|
3127
|
-
|
|
3127
|
+
this.walletAdapters.set("base", a), window.wallet_bridge = this;
|
|
3128
3128
|
}
|
|
3129
3129
|
getIFrameMethods() {
|
|
3130
3130
|
return {
|
|
@@ -4156,6 +4156,15 @@ var zn = [
|
|
|
4156
4156
|
sort_order: 1,
|
|
4157
4157
|
total_supply: null,
|
|
4158
4158
|
logo_url: "https://assets.underware.gg/pistols/fame.svg"
|
|
4159
|
+
},
|
|
4160
|
+
{
|
|
4161
|
+
name: "Survivor",
|
|
4162
|
+
symbol: "SURVIVOR",
|
|
4163
|
+
decimals: 18,
|
|
4164
|
+
l2_token_address: "0x42dd777885ad2c116be96d4d634abc90a26a790ffb5871e037dd5ae7d2ec86b",
|
|
4165
|
+
sort_order: 1,
|
|
4166
|
+
total_supply: null,
|
|
4167
|
+
logo_url: "https://lootsurvivor.io/images/survivor_token.png"
|
|
4159
4168
|
}
|
|
4160
4169
|
], Pt = {
|
|
4161
4170
|
theme: {
|