@augustdigital/sdk 4.7.2 → 4.7.3-alpha
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/abis/TokenizedVaultV2WithDepositWithPermit.d.ts +78 -0
- package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js +1878 -0
- package/lib/abis/TokenizedVaultV2WithDepositWithPermit.js.map +1 -0
- package/lib/adapters/evm/getters.js +2 -2
- package/lib/adapters/evm/getters.js.map +1 -1
- package/lib/core/constants.vaults.d.ts +1 -1
- package/lib/core/constants.vaults.js +8 -0
- package/lib/core/constants.vaults.js.map +1 -1
- package/lib/core/fetcher.d.ts +1 -0
- package/lib/core/fetcher.js +18 -3
- package/lib/core/fetcher.js.map +1 -1
- package/lib/core/helpers.web3.d.ts +2 -2
- package/lib/core/helpers.web3.js +36 -20
- package/lib/core/helpers.web3.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/modules/vaults/getters.js +15 -14
- package/lib/modules/vaults/getters.js.map +1 -1
- package/lib/modules/vaults/utils.js +8 -8
- package/lib/modules/vaults/utils.js.map +1 -1
- package/lib/modules/vaults/write.actions.js +2 -2
- package/lib/modules/vaults/write.actions.js.map +1 -1
- package/lib/services/subgraph/vaults.js +59 -23
- package/lib/services/subgraph/vaults.js.map +1 -1
- package/lib/types/subgraph.d.ts +2 -0
- package/lib/verify.d.ts +2 -0
- package/lib/verify.js +33 -0
- package/lib/verify.js.map +1 -0
- package/package.json +12 -12
package/lib/types/subgraph.d.ts
CHANGED
package/lib/verify.d.ts
ADDED
package/lib/verify.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.verifyInfuraKey = verifyInfuraKey;
|
|
13
|
+
exports.verifyAugustKey = verifyAugustKey;
|
|
14
|
+
const utils_1 = require("@augustdigital/utils");
|
|
15
|
+
function verifyInfuraKey(key) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
if (key.length !== 32)
|
|
18
|
+
return false;
|
|
19
|
+
const regex = /[a-z0-9]+/i;
|
|
20
|
+
if (!regex.test(key))
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function verifyAugustKey(key) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const verify = yield (0, utils_1.fetchAugustWithKey)(key, utils_1.WEBSERVER_ENDPOINTS.auth.verify);
|
|
28
|
+
if (verify.status === 200)
|
|
29
|
+
return true;
|
|
30
|
+
return false;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=verify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../src.ts/verify.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,0CAKC;AAED,0CAIC;AAbD,gDAA+E;AAE/E,SAAsB,eAAe,CAAC,GAAW;;QAC/C,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE;YAAE,OAAO,KAAK,CAAC;QACpC,MAAM,KAAK,GAAG,YAAY,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAED,SAAsB,eAAe,CAAC,GAAW;;QAC/C,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAkB,EAAC,GAAG,EAAE,2BAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9E,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG;YAAE,OAAO,IAAI,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augustdigital/sdk",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.3-alpha",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augustdigital",
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
"author": "August Digital",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"description": "JS SDK powering the August Digital ecosystem.",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"test": "pnpm build && cross-env node dist/test",
|
|
18
|
+
"test:jest": "jest",
|
|
19
|
+
"test:jest:watch": "jest --watch",
|
|
20
|
+
"test:jest:coverage": "jest --coverage",
|
|
21
|
+
"clean": "rm -rf ./lib",
|
|
22
|
+
"format": "pnpm prettier '**/*.{json,yaml,ts,md}' --write",
|
|
23
|
+
"lint-sdk": "lint-staged"
|
|
24
|
+
},
|
|
15
25
|
"lint-staged": {
|
|
16
26
|
"*.{json,md,html,js,jsx,ts,tsx}": [
|
|
17
27
|
"pnpm format"
|
|
@@ -47,15 +57,5 @@
|
|
|
47
57
|
"viem": {
|
|
48
58
|
"optional": true
|
|
49
59
|
}
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
"build": "tsc",
|
|
53
|
-
"test": "pnpm build && cross-env node dist/test",
|
|
54
|
-
"test:jest": "jest",
|
|
55
|
-
"test:jest:watch": "jest --watch",
|
|
56
|
-
"test:jest:coverage": "jest --coverage",
|
|
57
|
-
"clean": "rm -rf ./lib",
|
|
58
|
-
"format": "pnpm prettier '**/*.{json,yaml,ts,md}' --write",
|
|
59
|
-
"lint-sdk": "lint-staged"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|