Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
"dependencies": {
"@argent/x-ui": "^1.109.0",
"@cartridge/controller": "^0.12.1",
"@starknet-io/get-starknet": "^4.0.8",
"@starknet-io/get-starknet-core": "^4.0.8",
"@starknet-io/get-starknet": "4.0.8",
"@starknet-io/get-starknet-core": "4.0.8",
"@starknet-io/types-js": "0.8.4",
"@trpc/client": "^10.38.1",
"@trpc/server": "^10.38.1",
Expand Down Expand Up @@ -154,7 +154,7 @@
"prettier": "^3.0.3",
"prettier-plugin-import-sort": "^0.0.7",
"semantic-release": "^24.0.0",
"starknet": "^8.5.2",
"starknet": "9.1.1",
"svelte": "^4.0.0",
"svelte-check": "^3.5.1",
"svelte-eslint-parser": "^0.41.1",
Expand All @@ -169,7 +169,7 @@
"zod": "^3.20.6"
},
"peerDependencies": {
"starknet": "^8.0.0"
"starknet": ">=9.0.0"
},
"gitHead": "b16688a8638cc138938e74e1a39d004760165d75"
}
104 changes: 100 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/connectors/argent/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
constants,
WalletAccount,
type AccountInterface,
type PaymasterInterface,
type ProviderInterface,
type ProviderOptions,
} from "starknet"
import {
ConnectorNotConnectedError,
Expand Down Expand Up @@ -130,7 +130,8 @@ export class ArgentMobileBaseConnector extends Connector {
}

async account(
provider: ProviderOptions | ProviderInterface,
provider: ProviderInterface,
_paymasterProvider?: PaymasterInterface,
): Promise<AccountInterface> {
if (!this._wallet) {
throw new ConnectorNotConnectedError()
Expand Down
2 changes: 2 additions & 0 deletions src/connectors/argent/argentMobile/modal/argentModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ class ArgentModal {
props: {
layout: modalLayout,
dappName: modalWallet?.dappName,
discoveryWallets: [],
installedWallets: [],
showBackButton: false,
selectedWallet: modalWallet,
callback: async (wallet: ModalWallet | null) => {
Expand Down
5 changes: 3 additions & 2 deletions src/connectors/braavosMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type {
} from "@starknet-io/types-js"
import {
AccountInterface,
type PaymasterInterface,
ProviderInterface,
type ProviderOptions,
} from "starknet"
import {
Connector,
Expand Down Expand Up @@ -73,7 +73,8 @@ export class BraavosMobileBaseConnector extends Connector {
}

async account(
_: ProviderOptions | ProviderInterface,
_: ProviderInterface,
_paymasterProvider?: PaymasterInterface,
): Promise<AccountInterface> {
throw new Error("not implemented")
}
Expand Down
5 changes: 3 additions & 2 deletions src/connectors/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import EventEmitter from "eventemitter3"
import {
AccountInterface,
ProviderInterface,
type ProviderOptions,
type PaymasterInterface,
} from "starknet"
import type {
RequestFnCall,
Expand Down Expand Up @@ -60,7 +60,8 @@ export abstract class Connector extends EventEmitter<ConnectorEvents> {
abstract disconnect(): Promise<void>
/** Get current account silently. Return null if the account is not authorized */
abstract account(
provider: ProviderOptions | ProviderInterface,
provider: ProviderInterface,
paymasterProvider?: PaymasterInterface,
): Promise<AccountInterface>
/** Get current chain id. */
abstract chainId(): Promise<bigint>
Expand Down
9 changes: 7 additions & 2 deletions src/connectors/controller/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import type { ProviderOptions, ProviderInterface, AccountInterface } from "starknet"
import type {
AccountInterface,
PaymasterInterface,
ProviderInterface,
} from "starknet"

import type {
RequestFnCall,
Expand Down Expand Up @@ -89,7 +93,8 @@ export class ControllerConnector extends Connector {
}

async account(
_provider: ProviderOptions | ProviderInterface,
_provider: ProviderInterface,
_paymasterProvider?: PaymasterInterface,
): Promise<AccountInterface> {
if (!this.controller) {
throw new ConnectorNotConnectedError()
Expand Down
5 changes: 3 additions & 2 deletions src/connectors/injected/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
import {
WalletAccount,
type AccountInterface,
type PaymasterInterface,
type ProviderInterface,
type ProviderOptions,
} from "starknet"
import {
ConnectorNotConnectedError,
Expand Down Expand Up @@ -159,7 +159,8 @@ export class InjectedConnector extends Connector {
}

async account(
provider: ProviderOptions | ProviderInterface,
provider: ProviderInterface,
_paymasterProvider?: PaymasterInterface,
): Promise<AccountInterface> {
this.ensureWallet()
const locked = await this.isLocked()
Expand Down
5 changes: 3 additions & 2 deletions src/connectors/keplrMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import type {
} from "@starknet-io/types-js"
import type {
AccountInterface,
PaymasterInterface,
ProviderInterface,
ProviderOptions,
} from "starknet"
import {
Connector,
Expand Down Expand Up @@ -67,7 +67,8 @@ export class KeplrMobileBaseConnector extends Connector {
}

async account(
_: ProviderOptions | ProviderInterface,
_: ProviderInterface,
_paymasterProvider?: PaymasterInterface,
): Promise<AccountInterface> {
throw new Error("not implemented")
}
Expand Down
Loading