@reown/appkit-react-native 0.0.0-feat-multi-social-20250703185818 → 0.0.0-feat-multi-social-20250710154055
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/commonjs/AppKit.js +50 -16
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/AppKitContext.js +2 -1
- package/lib/commonjs/AppKitContext.js.map +1 -1
- package/lib/commonjs/client.js +15 -24
- package/lib/commonjs/client.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +4 -2
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/modal/w3m-router/index.js +0 -9
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-tokens/index.js +11 -4
- package/lib/commonjs/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js +5 -2
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +4 -3
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +0 -3
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/index.js +1 -1
- package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +22 -23
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-view/index.js +11 -6
- package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +10 -11
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/connectors-list.js +47 -32
- package/lib/commonjs/views/w3m-connect-view/components/connectors-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +12 -21
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +20 -15
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-network-switch-view/index.js +13 -19
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js +1 -1
- package/lib/commonjs/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-select-token-view/utils.js +4 -1
- package/lib/commonjs/views/w3m-swap-select-token-view/utils.js.map +1 -1
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js +7 -20
- package/lib/commonjs/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js +3 -8
- package/lib/commonjs/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-details.js +2 -2
- package/lib/commonjs/views/w3m-wallet-send-preview-view/components/preview-send-details.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +3 -3
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/module/AppKit.js +50 -16
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/AppKitContext.js +2 -1
- package/lib/module/AppKitContext.js.map +1 -1
- package/lib/module/client.js +17 -26
- package/lib/module/client.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +4 -2
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/modal/w3m-router/index.js +0 -9
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-account-tokens/index.js +12 -5
- package/lib/module/partials/w3m-account-tokens/index.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js +5 -2
- package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +5 -4
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +0 -3
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/partials/w3m-send-input-token/index.js +1 -1
- package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +22 -23
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-account-view/index.js +12 -7
- package/lib/module/views/w3m-account-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +11 -12
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/connectors-list.js +47 -32
- package/lib/module/views/w3m-connect-view/components/connectors-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +13 -22
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +22 -16
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-network-switch-view/index.js +14 -19
- package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-transaction-view/index.js +2 -2
- package/lib/module/views/w3m-onramp-transaction-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-select-token-view/utils.js +4 -1
- package/lib/module/views/w3m-swap-select-token-view/utils.js.map +1 -1
- package/lib/module/views/w3m-unsupported-chain-view/index.js +8 -21
- package/lib/module/views/w3m-unsupported-chain-view/index.js.map +1 -1
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js +3 -8
- package/lib/module/views/w3m-upgrade-email-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-details.js +2 -2
- package/lib/module/views/w3m-wallet-send-preview-view/components/preview-send-details.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/index.js +4 -4
- package/lib/module/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +4 -1
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/AppKitContext.d.ts +1 -0
- package/lib/typescript/AppKitContext.d.ts.map +1 -1
- package/lib/typescript/client.d.ts +1 -6
- package/lib/typescript/client.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKitEvents.d.ts +1 -1
- package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-tokens/index.d.ts +2 -1
- package/lib/typescript/partials/w3m-account-tokens/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts +2 -2
- package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-default-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/connectors-list.d.ts +1 -7
- package/lib/typescript/views/w3m-connect-view/components/connectors-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-network-switch-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-select-token-view/utils.d.ts +1 -1
- package/lib/typescript/views/w3m-swap-select-token-view/utils.d.ts.map +1 -1
- package/lib/typescript/views/w3m-unsupported-chain-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-upgrade-email-wallet-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts +3 -3
- package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/AppKit.ts +78 -39
- package/src/AppKitContext.tsx +2 -1
- package/src/client.ts +12 -41
- package/src/connectors/WalletConnectConnector.ts +5 -3
- package/src/modal/w3m-router/index.tsx +0 -9
- package/src/partials/w3m-account-tokens/index.tsx +26 -18
- package/src/partials/w3m-account-wallet-features/index.tsx +5 -3
- package/src/partials/w3m-connecting-qrcode/index.tsx +3 -4
- package/src/partials/w3m-header/index.tsx +0 -3
- package/src/partials/w3m-send-input-token/index.tsx +2 -2
- package/src/views/w3m-account-default-view/index.tsx +20 -23
- package/src/views/w3m-account-view/index.tsx +11 -8
- package/src/views/w3m-all-wallets-view/index.tsx +7 -7
- package/src/views/w3m-connect-view/components/connectors-list.tsx +40 -38
- package/src/views/w3m-connect-view/index.tsx +9 -18
- package/src/views/w3m-connecting-external-view/index.tsx +16 -16
- package/src/views/w3m-network-switch-view/index.tsx +12 -24
- package/src/views/w3m-onramp-transaction-view/index.tsx +2 -2
- package/src/views/w3m-swap-select-token-view/utils.ts +6 -2
- package/src/views/w3m-unsupported-chain-view/index.tsx +8 -30
- package/src/views/w3m-upgrade-email-wallet-view/index.tsx +3 -7
- package/src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx +4 -4
- package/src/views/w3m-wallet-send-preview-view/index.tsx +3 -3
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +1 -1
- package/lib/commonjs/views/w3m-update-email-primary-otp-view/index.js +0 -56
- package/lib/commonjs/views/w3m-update-email-primary-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-secondary-otp-view/index.js +0 -62
- package/lib/commonjs/views/w3m-update-email-secondary-otp-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-wallet-view/index.js +0 -104
- package/lib/commonjs/views/w3m-update-email-wallet-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-update-email-wallet-view/styles.js +0 -30
- package/lib/commonjs/views/w3m-update-email-wallet-view/styles.js.map +0 -1
- package/lib/module/views/w3m-update-email-primary-otp-view/index.js +0 -50
- package/lib/module/views/w3m-update-email-primary-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-secondary-otp-view/index.js +0 -56
- package/lib/module/views/w3m-update-email-secondary-otp-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-wallet-view/index.js +0 -97
- package/lib/module/views/w3m-update-email-wallet-view/index.js.map +0 -1
- package/lib/module/views/w3m-update-email-wallet-view/styles.js +0 -24
- package/lib/module/views/w3m-update-email-wallet-view/styles.js.map +0 -1
- package/lib/typescript/views/w3m-update-email-primary-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-primary-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-secondary-otp-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-secondary-otp-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-wallet-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-update-email-wallet-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-update-email-wallet-view/styles.d.ts +0 -23
- package/lib/typescript/views/w3m-update-email-wallet-view/styles.d.ts.map +0 -1
- package/src/views/w3m-update-email-primary-otp-view/index.tsx +0 -55
- package/src/views/w3m-update-email-secondary-otp-view/index.tsx +0 -56
- package/src/views/w3m-update-email-wallet-view/index.tsx +0 -96
- package/src/views/w3m-update-email-wallet-view/styles.ts +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppKit.d.ts","sourceRoot":"","sources":["../../src/AppKit.ts"],"names":[],"mappings":"A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,OAAO,CAAC,yBAAyB;IAuBjC,OAAO,CAAC,qBAAqB;YASf,YAAY;IAY1B,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,aAAa;IAuCrB,OAAO,CAAC,wBAAwB;YAyClB,eAAe;YAwCf,mBAAmB;YASnB,iBAAiB;IAuB/B,OAAO,CAAC,kBAAkB;YAcZ,eAAe;IAM7B,OAAO,CAAC,gBAAgB,CAMtB;YAEY,gBAAgB;CAwB/B;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAEzD"}
|
|
@@ -16,6 +16,7 @@ export declare const useAppKit: () => {
|
|
|
16
16
|
close: () => void;
|
|
17
17
|
switchNetwork: (network: import("@reown/appkit-common-react-native").AppKitNetwork) => Promise<void>;
|
|
18
18
|
getProvider: <T extends import("@reown/appkit-common-react-native").Provider>(namespace?: string | undefined) => T | null;
|
|
19
|
+
switchAccountType: (namespace: import("@reown/appkit-common-react-native").ChainNamespace, type: import("@reown/appkit-common-react-native").AccountType, network: import("@reown/appkit-common-react-native").AppKitNetwork) => Promise<void>;
|
|
19
20
|
};
|
|
20
21
|
export {};
|
|
21
22
|
//# sourceMappingURL=AppKitContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppKitContext.d.ts","sourceRoot":"","sources":["../../src/AppKitContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,kCAAqD,CAAC;AAEhF,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAExD,CAAC;AAGF,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"AppKitContext.d.ts","sourceRoot":"","sources":["../../src/AppKitContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,kCAAqD,CAAC;AAEhF,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAExD,CAAC;AAGF,eAAO,MAAM,SAAS;;;;;;;;CAmBrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './config/animations';
|
|
2
2
|
import type { AccountControllerState, ConnectionControllerClient, ModalControllerState, NetworkControllerClient, NetworkControllerState, OptionsControllerState, EventsControllerState, PublicStateControllerState, ThemeControllerState, ConnectedWalletInfo, Features, EventName } from '@reown/appkit-core-react-native';
|
|
3
3
|
import { type SIWEControllerClient } from '@reown/appkit-siwe-react-native';
|
|
4
|
-
import { AccountController, BlockchainApiController, ConnectionController,
|
|
4
|
+
import { AccountController, BlockchainApiController, ConnectionController, NetworkController } from '@reown/appkit-core-react-native';
|
|
5
5
|
import { type ThemeMode, type ThemeVariables } from '@reown/appkit-common-react-native';
|
|
6
6
|
export interface LibraryOptions {
|
|
7
7
|
projectId: OptionsControllerState['projectId'];
|
|
@@ -67,9 +67,6 @@ export declare class AppKitScaffold {
|
|
|
67
67
|
protected setRequestedCaipNetworks: (typeof NetworkController)['setRequestedCaipNetworks'];
|
|
68
68
|
protected getApprovedCaipNetworksData: (typeof NetworkController)['getApprovedCaipNetworksData'];
|
|
69
69
|
protected resetNetwork: (typeof NetworkController)['resetNetwork'];
|
|
70
|
-
protected setConnectors: (typeof ConnectorController)['setConnectors'];
|
|
71
|
-
protected addConnector: (typeof ConnectorController)['addConnector'];
|
|
72
|
-
protected getConnectors: (typeof ConnectorController)['getConnectors'];
|
|
73
70
|
protected resetWcConnection: (typeof ConnectionController)['resetWcConnection'];
|
|
74
71
|
protected fetchIdentity: (typeof BlockchainApiController)['fetchIdentity'];
|
|
75
72
|
protected setAddressExplorerUrl: (typeof AccountController)['setAddressExplorerUrl'];
|
|
@@ -81,9 +78,7 @@ export declare class AppKitScaffold {
|
|
|
81
78
|
longMessage: string;
|
|
82
79
|
}): void;
|
|
83
80
|
private initControllers;
|
|
84
|
-
private setConnectorExcludedWallets;
|
|
85
81
|
private initRecentWallets;
|
|
86
|
-
private initConnectedConnector;
|
|
87
82
|
private initSocial;
|
|
88
83
|
private initAsyncValues;
|
|
89
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACV,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EACL,iBAAiB,EAC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BAAiB,CAAC,CAAC,yBAAyB,CAAC,CAGpF;IAEJ,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE;YA8B3E,eAAe;YAiEf,iBAAiB;YAkBjB,UAAU;YAKV,eAAe;CAI9B"}
|
|
@@ -6,7 +6,7 @@ export declare class WalletConnectConnector extends WalletConnector {
|
|
|
6
6
|
private readonly config;
|
|
7
7
|
constructor(config: WalletConnectConnectorConfig);
|
|
8
8
|
init(ops: ConnectorInitOptions): Promise<void>;
|
|
9
|
-
|
|
9
|
+
restoreSession(): Promise<boolean>;
|
|
10
10
|
private getUniversalProvider;
|
|
11
11
|
connect(opts: ConnectOptions): Promise<Namespaces>;
|
|
12
12
|
getProvider(): Provider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletConnectConnector.d.ts","sourceRoot":"","sources":["../../../src/connectors/WalletConnectConnector.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAG3C,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;gBAE1C,MAAM,EAAE,4BAA4B;IAKjC,IAAI,CAAC,GAAG,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"WalletConnectConnector.d.ts","sourceRoot":"","sources":["../../../src/connectors/WalletConnectConnector.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAG3C,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;gBAE1C,MAAM,EAAE,4BAA4B;IAKjC,IAAI,CAAC,GAAG,EAAE,oBAAoB;IAa9B,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;YAkCnC,oBAAoB;IAkBnB,OAAO,CAAC,IAAI,EAAE,cAAc;IA6GlC,WAAW,IAAI,QAAQ;IAQvB,aAAa,IAAI,UAAU;IAI3B,aAAa,IAAI,oBAAoB,GAAG,SAAS;IAIjD,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAUpD,aAAa,IAAI,UAAU,GAAG,SAAS;IAIvC,UAAU,CAAC,SAAS,EAAE,cAAc,GAAG,aAAa,GAAG,SAAS;CAe1E"}
|
|
@@ -246,7 +246,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
246
246
|
readonly type: "track";
|
|
247
247
|
readonly event: "SET_PREFERRED_ACCOUNT_TYPE";
|
|
248
248
|
readonly properties: {
|
|
249
|
-
readonly accountType: import("@reown/appkit-
|
|
249
|
+
readonly accountType: import("@reown/appkit-common-react-native").AccountType;
|
|
250
250
|
readonly network: string;
|
|
251
251
|
};
|
|
252
252
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-router/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-router/index.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,YAAY,4CA2E3B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
2
|
interface Props {
|
|
3
3
|
style?: StyleProp<ViewStyle>;
|
|
4
|
+
isLoading?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare function AccountTokens({ style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function AccountTokens({ style, isLoading }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-tokens/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-tokens/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAiBtB,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,2CAqExD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface AccountWalletFeaturesProps {
|
|
2
|
-
|
|
2
|
+
isBalanceLoading: boolean;
|
|
3
3
|
}
|
|
4
|
-
export declare function AccountWalletFeatures(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function AccountWalletFeatures({ isBalanceLoading }: AccountWalletFeaturesProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-wallet-features/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,0BAA0B;IACzC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-account-wallet-features/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,2CA4HrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/index.tsx"],"names":[],"mappings":"AAcA,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/index.tsx"],"names":[],"mappings":"AAcA,wBAAgB,gBAAgB,4CA4D/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDA8GrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,kBAAkB,4CA4RjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,WAAW,4CAkE1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-all-wallets-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-all-wallets-view/index.tsx"],"names":[],"mappings":"AAeA,wBAAgB,cAAc,4CA2F7B"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface Props {
|
|
3
|
-
itemStyle: StyleProp<ViewStyle>;
|
|
4
|
-
isWalletConnectEnabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function ConnectorList({ itemStyle, isWalletConnectEnabled }: Props): (import("react/jsx-runtime").JSX.Element | null)[];
|
|
7
|
-
export {};
|
|
1
|
+
export declare function ConnectorList(): null;
|
|
8
2
|
//# sourceMappingURL=connectors-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/connectors-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connectors-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/connectors-list.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,aAAa,SA4B5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,WAAW,4CAgG1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,4CA4GrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-network-switch-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-network-switch-view/index.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,iBAAiB,4CA0GhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SwapTokenWithBalance } from '@reown/appkit-core-react-native';
|
|
2
|
-
export declare function filterTokens(tokens
|
|
2
|
+
export declare function filterTokens(tokens?: SwapTokenWithBalance[], searchValue?: string): SwapTokenWithBalance[];
|
|
3
3
|
export declare function createSections(isSourceToken: boolean, searchValue: string): {
|
|
4
4
|
title: string;
|
|
5
5
|
data: SwapTokenWithBalance[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-select-token-view/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAE5F,wBAAgB,YAAY,CAAC,MAAM,EAAE,oBAAoB,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-select-token-view/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAE5F,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,0BAcjF;AAED,wBAAgB,cAAc,CAAC,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM;;;IAkBzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-unsupported-chain-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-unsupported-chain-view/index.tsx"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,4CAiEnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-upgrade-email-wallet-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-upgrade-email-wallet-view/index.tsx"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB,4CAuBrC"}
|
package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppKitNetwork } from '@reown/appkit-common-react-native';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
export interface PreviewSendDetailsProps {
|
|
4
4
|
address?: string;
|
|
5
5
|
name?: string;
|
|
6
|
-
|
|
6
|
+
activeNetwork?: AppKitNetwork;
|
|
7
7
|
networkFee?: number;
|
|
8
8
|
style?: StyleProp<ViewStyle>;
|
|
9
9
|
}
|
|
10
|
-
export declare function PreviewSendDetails({ address, name,
|
|
10
|
+
export declare function PreviewSendDetails({ address, name, activeNetwork, networkFee, style }: PreviewSendDetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=preview-send-details.d.ts.map
|
package/lib/typescript/views/w3m-wallet-send-preview-view/components/preview-send-details.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-send-details.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"preview-send-details.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-wallet-send-preview-view/components/preview-send-details.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAUvE,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,IAAI,EACJ,aAAa,EACb,UAAU,EACV,KAAK,EACN,EAAE,uBAAuB,2CAmDzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-react-native",
|
|
3
|
-
"version": "0.0.0-feat-multi-social-
|
|
3
|
+
"version": "0.0.0-feat-multi-social-20250710154055",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@reown/appkit-common-react-native": "0.0.0-feat-multi-social-
|
|
41
|
-
"@reown/appkit-core-react-native": "0.0.0-feat-multi-social-
|
|
42
|
-
"@reown/appkit-siwe-react-native": "0.0.0-feat-multi-social-
|
|
43
|
-
"@reown/appkit-ui-react-native": "0.0.0-feat-multi-social-
|
|
40
|
+
"@reown/appkit-common-react-native": "0.0.0-feat-multi-social-20250710154055",
|
|
41
|
+
"@reown/appkit-core-react-native": "0.0.0-feat-multi-social-20250710154055",
|
|
42
|
+
"@reown/appkit-siwe-react-native": "0.0.0-feat-multi-social-20250710154055",
|
|
43
|
+
"@reown/appkit-ui-react-native": "0.0.0-feat-multi-social-20250710154055",
|
|
44
44
|
"@walletconnect/universal-provider": "2.20.2",
|
|
45
45
|
"valtio": "^1.13.2"
|
|
46
46
|
},
|
package/src/AppKit.ts
CHANGED
|
@@ -13,25 +13,27 @@ import {
|
|
|
13
13
|
ConnectionController
|
|
14
14
|
} from '@reown/appkit-core-react-native';
|
|
15
15
|
|
|
16
|
-
import
|
|
17
|
-
WalletConnector,
|
|
18
|
-
BlockchainAdapter,
|
|
19
|
-
ProposalNamespaces,
|
|
20
|
-
New_ConnectorType,
|
|
21
|
-
Namespaces,
|
|
22
|
-
Metadata,
|
|
23
|
-
CaipNetworkId,
|
|
24
|
-
AppKitNetwork,
|
|
25
|
-
Provider,
|
|
26
|
-
ThemeVariables,
|
|
27
|
-
ThemeMode,
|
|
28
|
-
WalletInfo,
|
|
29
|
-
Network,
|
|
30
|
-
ChainNamespace,
|
|
31
|
-
Storage,
|
|
32
|
-
AppKitConnectOptions,
|
|
33
|
-
AppKitSIWEClient,
|
|
34
|
-
ConnectionProperties
|
|
16
|
+
import {
|
|
17
|
+
type WalletConnector,
|
|
18
|
+
type BlockchainAdapter,
|
|
19
|
+
type ProposalNamespaces,
|
|
20
|
+
type New_ConnectorType,
|
|
21
|
+
type Namespaces,
|
|
22
|
+
type Metadata,
|
|
23
|
+
type CaipNetworkId,
|
|
24
|
+
type AppKitNetwork,
|
|
25
|
+
type Provider,
|
|
26
|
+
type ThemeVariables,
|
|
27
|
+
type ThemeMode,
|
|
28
|
+
type WalletInfo,
|
|
29
|
+
type Network,
|
|
30
|
+
type ChainNamespace,
|
|
31
|
+
type Storage,
|
|
32
|
+
type AppKitConnectOptions,
|
|
33
|
+
type AppKitSIWEClient,
|
|
34
|
+
type ConnectionProperties,
|
|
35
|
+
type AccountType,
|
|
36
|
+
ConstantsUtil
|
|
35
37
|
} from '@reown/appkit-common-react-native';
|
|
36
38
|
|
|
37
39
|
import { WalletConnectConnector } from './connectors/WalletConnectConnector';
|
|
@@ -268,6 +270,28 @@ export class AppKit {
|
|
|
268
270
|
ModalController.close();
|
|
269
271
|
}
|
|
270
272
|
|
|
273
|
+
async switchAccountType(namespace: ChainNamespace, type: AccountType, network: AppKitNetwork) {
|
|
274
|
+
const adapter = this.getAdapterByNamespace(namespace);
|
|
275
|
+
if (!adapter) throw new Error('No active adapter');
|
|
276
|
+
|
|
277
|
+
ConnectionsController.setAccountType(namespace, type);
|
|
278
|
+
|
|
279
|
+
// Get balances from API
|
|
280
|
+
ConnectionsController.fetchBalance();
|
|
281
|
+
|
|
282
|
+
// Sync balances from adapter
|
|
283
|
+
this.syncBalances(adapter, network);
|
|
284
|
+
|
|
285
|
+
EventsController.sendEvent({
|
|
286
|
+
type: 'track',
|
|
287
|
+
event: 'SET_PREFERRED_ACCOUNT_TYPE',
|
|
288
|
+
properties: {
|
|
289
|
+
accountType: type,
|
|
290
|
+
network: network?.caipNetworkId || ''
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
|
|
271
295
|
private async createConnector(type: New_ConnectorType): Promise<WalletConnector> {
|
|
272
296
|
// Check if an extra connector was provided by the developer
|
|
273
297
|
const CustomConnector = this.extraConnectors.find(
|
|
@@ -384,25 +408,27 @@ export class AppKit {
|
|
|
384
408
|
adapters.forEach(async adapter => {
|
|
385
409
|
const namespace = adapter.getSupportedNamespace();
|
|
386
410
|
const connection = ConnectionsController.state.connections.get(namespace);
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
ConnectionsController.updateAccounts(namespace, accounts);
|
|
411
|
+
const network = this.networks.find(
|
|
412
|
+
n => n.id?.toString() === connection?.caipNetwork?.split(':')[1]
|
|
413
|
+
);
|
|
391
414
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
415
|
+
this.syncBalances(adapter, network);
|
|
416
|
+
});
|
|
417
|
+
}
|
|
395
418
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
419
|
+
private syncBalances(adapter: BlockchainAdapter, network?: AppKitNetwork) {
|
|
420
|
+
if (adapter && network) {
|
|
421
|
+
const accounts = adapter.getAccounts();
|
|
422
|
+
if (accounts && accounts.length > 0) {
|
|
423
|
+
const addresses = accounts.filter(a => a.split(':')[1] === network?.id?.toString());
|
|
399
424
|
|
|
400
|
-
|
|
425
|
+
if (addresses.length > 0) {
|
|
426
|
+
addresses.forEach(address => {
|
|
401
427
|
adapter.getBalance({ address, network, tokens: this.config.tokens });
|
|
402
|
-
}
|
|
428
|
+
});
|
|
403
429
|
}
|
|
404
430
|
}
|
|
405
|
-
}
|
|
431
|
+
}
|
|
406
432
|
}
|
|
407
433
|
|
|
408
434
|
private setConnection(
|
|
@@ -457,17 +483,14 @@ export class AppKit {
|
|
|
457
483
|
});
|
|
458
484
|
|
|
459
485
|
adapter.on('chainChanged', ({ chainId }) => {
|
|
486
|
+
//eslint-disable-next-line no-console
|
|
487
|
+
console.log('chainChanged', chainId);
|
|
460
488
|
const namespace = adapter.getSupportedNamespace();
|
|
461
489
|
const chain = `${namespace}:${chainId}` as CaipNetworkId;
|
|
462
490
|
ConnectionsController.setActiveNetwork(namespace, chain);
|
|
463
491
|
|
|
464
492
|
const network = this.networks.find(n => n.id?.toString() === chainId);
|
|
465
|
-
|
|
466
|
-
adapter.getBalance({
|
|
467
|
-
network,
|
|
468
|
-
tokens: this.config.tokens
|
|
469
|
-
});
|
|
470
|
-
}
|
|
493
|
+
this.syncBalances(adapter, network);
|
|
471
494
|
|
|
472
495
|
if (namespace === 'eip155') {
|
|
473
496
|
this.handleSiweChange({ isNetworkChange: true });
|
|
@@ -481,6 +504,8 @@ export class AppKit {
|
|
|
481
504
|
|
|
482
505
|
//TODO: Add types to this events
|
|
483
506
|
adapter.on('balanceChanged', ({ address, balance }) => {
|
|
507
|
+
//eslint-disable-next-line no-console
|
|
508
|
+
console.log('balanceChanged', address, balance);
|
|
484
509
|
const namespace = adapter.getSupportedNamespace();
|
|
485
510
|
ConnectionsController.updateBalance(namespace, address, balance);
|
|
486
511
|
});
|
|
@@ -492,7 +517,7 @@ export class AppKit {
|
|
|
492
517
|
OptionsController.setProjectId(options.projectId);
|
|
493
518
|
OptionsController.setMetadata(options.metadata);
|
|
494
519
|
OptionsController.setIncludeWalletIds(options.includeWalletIds);
|
|
495
|
-
|
|
520
|
+
this.setExcludedWallets(options);
|
|
496
521
|
OptionsController.setFeaturedWalletIds(options.featuredWalletIds);
|
|
497
522
|
OptionsController.setTokens(options.tokens);
|
|
498
523
|
OptionsController.setCustomWallets(options.customWallets);
|
|
@@ -558,6 +583,20 @@ export class AppKit {
|
|
|
558
583
|
}
|
|
559
584
|
}
|
|
560
585
|
|
|
586
|
+
private setExcludedWallets(options: AppKitConfig) {
|
|
587
|
+
// Exclude Coinbase if the connector is not implemented
|
|
588
|
+
const excludedWallets = options.excludeWalletIds || [];
|
|
589
|
+
|
|
590
|
+
//TODO: check this when coinbase connector is implemented
|
|
591
|
+
const excludeCoinbase = true;
|
|
592
|
+
|
|
593
|
+
if (excludeCoinbase) {
|
|
594
|
+
excludedWallets.push(ConstantsUtil.COINBASE_EXPLORER_ID);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
OptionsController.setExcludeWalletIds(excludedWallets);
|
|
598
|
+
}
|
|
599
|
+
|
|
561
600
|
private async initAsyncValues(options: AppKitConfig) {
|
|
562
601
|
await this.initActiveNamespace();
|
|
563
602
|
await this.initRecentWallets(options);
|
package/src/AppKitContext.tsx
CHANGED
|
@@ -33,6 +33,7 @@ export const useAppKit = () => {
|
|
|
33
33
|
open: context.appKit.open.bind(context.appKit),
|
|
34
34
|
close: context.appKit.close.bind(context.appKit),
|
|
35
35
|
switchNetwork: context.appKit.switchNetwork.bind(context.appKit),
|
|
36
|
-
getProvider: context.appKit.getProvider.bind(context.appKit)
|
|
36
|
+
getProvider: context.appKit.getProvider.bind(context.appKit),
|
|
37
|
+
switchAccountType: context.appKit.switchAccountType.bind(context.appKit)
|
|
37
38
|
};
|
|
38
39
|
};
|
package/src/client.ts
CHANGED
|
@@ -10,7 +10,6 @@ import type {
|
|
|
10
10
|
EventsControllerState,
|
|
11
11
|
PublicStateControllerState,
|
|
12
12
|
ThemeControllerState,
|
|
13
|
-
Connector,
|
|
14
13
|
ConnectedWalletInfo,
|
|
15
14
|
Features,
|
|
16
15
|
EventName
|
|
@@ -20,7 +19,6 @@ import {
|
|
|
20
19
|
AccountController,
|
|
21
20
|
BlockchainApiController,
|
|
22
21
|
ConnectionController,
|
|
23
|
-
ConnectorController,
|
|
24
22
|
EnsController,
|
|
25
23
|
EventsController,
|
|
26
24
|
ModalController,
|
|
@@ -32,12 +30,7 @@ import {
|
|
|
32
30
|
ThemeController,
|
|
33
31
|
TransactionsController
|
|
34
32
|
} from '@reown/appkit-core-react-native';
|
|
35
|
-
import {
|
|
36
|
-
ConstantsUtil,
|
|
37
|
-
ErrorUtil,
|
|
38
|
-
type ThemeMode,
|
|
39
|
-
type ThemeVariables
|
|
40
|
-
} from '@reown/appkit-common-react-native';
|
|
33
|
+
import { ErrorUtil, type ThemeMode, type ThemeVariables } from '@reown/appkit-common-react-native';
|
|
41
34
|
import { Appearance } from 'react-native';
|
|
42
35
|
|
|
43
36
|
// -- Types ---------------------------------------------------------------------
|
|
@@ -205,20 +198,6 @@ export class AppKitScaffold {
|
|
|
205
198
|
NetworkController.resetNetwork();
|
|
206
199
|
};
|
|
207
200
|
|
|
208
|
-
protected setConnectors: (typeof ConnectorController)['setConnectors'] = (
|
|
209
|
-
connectors: Connector[]
|
|
210
|
-
) => {
|
|
211
|
-
ConnectorController.setConnectors(connectors);
|
|
212
|
-
this.setConnectorExcludedWallets(connectors);
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
protected addConnector: (typeof ConnectorController)['addConnector'] = (connector: Connector) => {
|
|
216
|
-
ConnectorController.addConnector(connector);
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
protected getConnectors: (typeof ConnectorController)['getConnectors'] = () =>
|
|
220
|
-
ConnectorController.getConnectors();
|
|
221
|
-
|
|
222
201
|
protected resetWcConnection: (typeof ConnectionController)['resetWcConnection'] = () => {
|
|
223
202
|
ConnectionController.resetWcConnection();
|
|
224
203
|
TransactionsController.resetTransactions();
|
|
@@ -326,20 +305,20 @@ export class AppKitScaffold {
|
|
|
326
305
|
}
|
|
327
306
|
}
|
|
328
307
|
|
|
329
|
-
private async setConnectorExcludedWallets(connectors: Connector[]) {
|
|
330
|
-
|
|
308
|
+
// private async setConnectorExcludedWallets(connectors: Connector[]) {
|
|
309
|
+
// const excludedWallets = OptionsController.state.excludeWalletIds || [];
|
|
331
310
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
311
|
+
// // Exclude Coinbase if the connector is not implemented
|
|
312
|
+
// const excludeCoinbase =
|
|
313
|
+
// connectors.findIndex(connector => connector.id === ConstantsUtil.COINBASE_CONNECTOR_ID) ===
|
|
314
|
+
// -1;
|
|
336
315
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
316
|
+
// if (excludeCoinbase) {
|
|
317
|
+
// excludedWallets.push(ConstantsUtil.COINBASE_EXPLORER_ID);
|
|
318
|
+
// }
|
|
340
319
|
|
|
341
|
-
|
|
342
|
-
}
|
|
320
|
+
// OptionsController.setExcludeWalletIds(excludedWallets);
|
|
321
|
+
// }
|
|
343
322
|
|
|
344
323
|
private async initRecentWallets(options: ScaffoldOptions) {
|
|
345
324
|
const wallets = await StorageUtil.getRecentWallets();
|
|
@@ -359,20 +338,12 @@ export class AppKitScaffold {
|
|
|
359
338
|
ConnectionController.setRecentWallets(filteredWallets);
|
|
360
339
|
}
|
|
361
340
|
|
|
362
|
-
private async initConnectedConnector() {
|
|
363
|
-
const connectedConnector = await StorageUtil.getConnectedConnector();
|
|
364
|
-
if (connectedConnector) {
|
|
365
|
-
ConnectorController.setConnectedConnector(connectedConnector, false);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
341
|
private async initSocial() {
|
|
370
342
|
const connectedSocialProvider = await StorageUtil.getConnectedSocialProvider();
|
|
371
343
|
ConnectionController.setConnectedSocialProvider(connectedSocialProvider);
|
|
372
344
|
}
|
|
373
345
|
|
|
374
346
|
private async initAsyncValues(options: ScaffoldOptions) {
|
|
375
|
-
await this.initConnectedConnector();
|
|
376
347
|
await this.initRecentWallets(options);
|
|
377
348
|
await this.initSocial();
|
|
378
349
|
}
|
|
@@ -40,7 +40,7 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
40
40
|
await this.restoreSession();
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
override async restoreSession(): Promise<boolean> {
|
|
44
44
|
const provider = this.getProvider() as IUniversalProvider;
|
|
45
45
|
if (!provider) {
|
|
46
46
|
return false;
|
|
@@ -55,7 +55,8 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
55
55
|
...provider.session.sessionProperties,
|
|
56
56
|
smartAccounts: provider.session.sessionProperties['smartAccounts']
|
|
57
57
|
? JSON.parse(provider.session.sessionProperties['smartAccounts'])
|
|
58
|
-
: []
|
|
58
|
+
: [],
|
|
59
|
+
sessionTopic: provider.session.topic
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -188,7 +189,8 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
188
189
|
...session.sessionProperties,
|
|
189
190
|
smartAccounts: session.sessionProperties['smartAccounts']
|
|
190
191
|
? JSON.parse(session.sessionProperties['smartAccounts'])
|
|
191
|
-
: []
|
|
192
|
+
: [],
|
|
193
|
+
sessionTopic: session.topic
|
|
192
194
|
};
|
|
193
195
|
}
|
|
194
196
|
|
|
@@ -24,9 +24,6 @@ import { SwapPreviewView } from '../../views/w3m-swap-preview-view';
|
|
|
24
24
|
import { SwapSelectTokenView } from '../../views/w3m-swap-select-token-view';
|
|
25
25
|
import { TransactionsView } from '../../views/w3m-transactions-view';
|
|
26
26
|
import { UnsupportedChainView } from '../../views/w3m-unsupported-chain-view';
|
|
27
|
-
import { UpdateEmailWalletView } from '../../views/w3m-update-email-wallet-view';
|
|
28
|
-
import { UpdateEmailPrimaryOtpView } from '../../views/w3m-update-email-primary-otp-view';
|
|
29
|
-
import { UpdateEmailSecondaryOtpView } from '../../views/w3m-update-email-secondary-otp-view';
|
|
30
27
|
import { UpgradeEmailWalletView } from '../../views/w3m-upgrade-email-wallet-view';
|
|
31
28
|
import { WalletCompatibleNetworks } from '../../views/w3m-wallet-compatible-networks-view';
|
|
32
29
|
import { WalletReceiveView } from '../../views/w3m-wallet-receive-view';
|
|
@@ -90,12 +87,6 @@ export function AppKitRouter() {
|
|
|
90
87
|
return TransactionsView;
|
|
91
88
|
case 'UnsupportedChain':
|
|
92
89
|
return UnsupportedChainView;
|
|
93
|
-
case 'UpdateEmailPrimaryOtp':
|
|
94
|
-
return UpdateEmailPrimaryOtpView;
|
|
95
|
-
case 'UpdateEmailSecondaryOtp':
|
|
96
|
-
return UpdateEmailSecondaryOtpView;
|
|
97
|
-
case 'UpdateEmailWallet':
|
|
98
|
-
return UpdateEmailWalletView;
|
|
99
90
|
case 'UpgradeEmailWallet':
|
|
100
91
|
return UpgradeEmailWalletView;
|
|
101
92
|
case 'WalletCompatibleNetworks':
|