@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.
- package/dist/cjs/ParaCore.js +245 -156
- package/dist/cjs/definitions.js +1 -3
- package/dist/cjs/types/events.js +17 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/esm/ParaCore.js +247 -158
- package/dist/esm/definitions.js +0 -2
- package/dist/esm/types/events.js +14 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/types/ParaCore.d.ts +218 -157
- package/dist/types/definitions.d.ts +0 -2
- package/dist/types/types/events.d.ts +47 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/params.d.ts +34 -0
- package/package.json +3 -3
package/dist/cjs/definitions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getOnRampAssets = exports.getOnRampNetworks = exports.toAssetInfoArray = exports.
|
|
3
|
+
exports.getOnRampAssets = exports.getOnRampNetworks = exports.toAssetInfoArray = exports.getParaConnectBaseUrl = exports.getParaConnectDomain = exports.getPortalBaseURL = exports.getPortalDomain = exports.WalletSchemeTypeMap = exports.OnRampMethod = exports.EnabledFlow = exports.Environment = exports.is2FAEnabled = exports.OnRampPurchaseStatus = exports.OnRampProvider = exports.OnRampAsset = exports.Network = void 0;
|
|
4
4
|
const buffer_1 = require("buffer");
|
|
5
5
|
if (typeof global !== 'undefined') {
|
|
6
6
|
global.Buffer = global.Buffer || buffer_1.Buffer;
|
|
@@ -118,8 +118,6 @@ function getParaConnectBaseUrl({ env }, useLocalIp) {
|
|
|
118
118
|
return `https://${domain}`;
|
|
119
119
|
}
|
|
120
120
|
exports.getParaConnectBaseUrl = getParaConnectBaseUrl;
|
|
121
|
-
exports.EXTERNAL_WALLET_CHANGE_EVENT = 'paraExternalWalletChange';
|
|
122
|
-
exports.CURRENT_WALLET_IDS_CHANGE_EVENT = 'paraCurrentWalletIdsChange';
|
|
123
121
|
function toAssetInfoArray(data) {
|
|
124
122
|
const result = [];
|
|
125
123
|
Object.keys(data).forEach(walletType => {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ParaEvent = void 0;
|
|
4
|
+
const EVENT_PREFIX = 'para';
|
|
5
|
+
var ParaEvent;
|
|
6
|
+
(function (ParaEvent) {
|
|
7
|
+
ParaEvent["LOGIN_EVENT"] = "paraLogin";
|
|
8
|
+
ParaEvent["ACCOUNT_CREATION_EVENT"] = "paraAccountCreation";
|
|
9
|
+
ParaEvent["ACCOUNT_SETUP_EVENT"] = "paraAccountSetup";
|
|
10
|
+
ParaEvent["LOGOUT_EVENT"] = "paraLogout";
|
|
11
|
+
ParaEvent["SIGN_MESSAGE_EVENT"] = "paraSignMessage";
|
|
12
|
+
ParaEvent["SIGN_TRANSACTION_EVENT"] = "paraSignTransaction";
|
|
13
|
+
ParaEvent["EXTERNAL_WALLET_CHANGE_EVENT"] = "paraExternalWalletChange";
|
|
14
|
+
ParaEvent["WALLETS_CHANGE_EVENT"] = "paraWalletsChange";
|
|
15
|
+
ParaEvent["WALLET_CREATED"] = "paraWalletCreated";
|
|
16
|
+
ParaEvent["PREGEN_WALLET_CLAIMED"] = "paraPregenWalletClaimed";
|
|
17
|
+
})(ParaEvent || (exports.ParaEvent = ParaEvent = {}));
|
package/dist/cjs/types/index.js
CHANGED