@getpara/core-sdk 0.1.0 → 0.2.0

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.
@@ -108,8 +108,6 @@ export function getParaConnectBaseUrl({ env }, useLocalIp) {
108
108
  }
109
109
  return `https://${domain}`;
110
110
  }
111
- export const EXTERNAL_WALLET_CHANGE_EVENT = 'paraExternalWalletChange';
112
- export const CURRENT_WALLET_IDS_CHANGE_EVENT = 'paraCurrentWalletIdsChange';
113
111
  export function toAssetInfoArray(data) {
114
112
  const result = [];
115
113
  Object.keys(data).forEach(walletType => {
@@ -0,0 +1,14 @@
1
+ const EVENT_PREFIX = 'para';
2
+ export var ParaEvent;
3
+ (function (ParaEvent) {
4
+ ParaEvent["LOGIN_EVENT"] = "paraLogin";
5
+ ParaEvent["ACCOUNT_CREATION_EVENT"] = "paraAccountCreation";
6
+ ParaEvent["ACCOUNT_SETUP_EVENT"] = "paraAccountSetup";
7
+ ParaEvent["LOGOUT_EVENT"] = "paraLogout";
8
+ ParaEvent["SIGN_MESSAGE_EVENT"] = "paraSignMessage";
9
+ ParaEvent["SIGN_TRANSACTION_EVENT"] = "paraSignTransaction";
10
+ ParaEvent["EXTERNAL_WALLET_CHANGE_EVENT"] = "paraExternalWalletChange";
11
+ ParaEvent["WALLETS_CHANGE_EVENT"] = "paraWalletsChange";
12
+ ParaEvent["WALLET_CREATED"] = "paraWalletCreated";
13
+ ParaEvent["PREGEN_WALLET_CLAIMED"] = "paraPregenWalletClaimed";
14
+ })(ParaEvent || (ParaEvent = {}));
@@ -2,3 +2,4 @@ export * from './walletTypes.js';
2
2
  export * from './params.js';
3
3
  export * from './theme.js';
4
4
  export * from './popupTypes.js';
5
+ export * from './events.js';