@sonarwatch/portfolio-plugins 0.12.165 → 0.12.167
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/utils/name-service/services/allDomains.js +1 -1
- package/src/utils/name-service/services/allDomains.js.map +1 -1
- package/src/utils/name-service/services/aptos.js +1 -1
- package/src/utils/name-service/services/aptos.js.map +1 -1
- package/src/utils/name-service/services/bonfida.js +1 -1
- package/src/utils/name-service/services/bonfida.js.map +1 -1
- package/src/utils/name-service/services/sui.js +4 -2
- package/src/utils/name-service/services/sui.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.167](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.166...plugins-0.12.167) (2024-09-19)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.166](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.165...plugins-0.12.166) (2024-09-17)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.12.165](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.164...plugins-0.12.165) (2024-09-13)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.12.
|
3
|
+
"version": "0.12.167",
|
4
4
|
"type": "commonjs",
|
5
5
|
"types": "./src/index.d.ts",
|
6
6
|
"peerDependencies": {
|
7
|
-
"@sonarwatch/portfolio-core": "^0.
|
7
|
+
"@sonarwatch/portfolio-core": "^0.13.0"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
10
|
"@solanafm/explorer-kit-idls": "^1.1.3",
|
@@ -17,7 +17,7 @@ function getOwner(name) {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
18
18
|
const client = (0, clients_1.getClientSolana)();
|
19
19
|
const parser = new tldparser_1.TldParser(client);
|
20
|
-
const owner = yield parser.getOwnerFromDomainTld(name);
|
20
|
+
const owner = yield parser.getOwnerFromDomainTld(name.toLowerCase());
|
21
21
|
if (owner)
|
22
22
|
return owner.toString();
|
23
23
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"allDomains.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/allDomains.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAmE;AACnE,gDAA6C;AAC7C,2CAAgD;AAGhD,SAAe,QAAQ,CAAC,IAAY;;QAClC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,MAAM,GAAG,IAAI,qBAAS,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"allDomains.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/allDomains.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAmE;AACnE,gDAA6C;AAC7C,2CAAgD;AAGhD,SAAe,QAAQ,CAAC,IAAY;;QAClC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,MAAM,GAAG,IAAI,qBAAS,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACrE,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAED,SAAe,QAAQ,CAAC,OAAe;;QACrC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QAEjC,MAAM,MAAM,GAAG,IAAI,qBAAS,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,0BAA0B,GAAG,MAAM,MAAM;aAC5C,uBAAuB,CAAC,OAAO,CAAC;aAChC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC1B,IAAI,CAAC,0BAA0B;YAAE,OAAO,EAAE,CAAC;QAC3C,OAAO,0BAA0B,CAAC,GAAG,CACnC,CAAC,uBAAuB,EAAE,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAC5D,CAAC;IACJ,CAAC;CAAA;AAEY,QAAA,WAAW,GAAgB;IACtC,EAAE,EAAE,YAAY;IAChB,OAAO,EAAE,sCAAqB;IAC9B,QAAQ;IACR,QAAQ;CACT,CAAC"}
|
@@ -14,7 +14,7 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
14
14
|
const clients_1 = require("../../clients");
|
15
15
|
function getOwner(name) {
|
16
16
|
return __awaiter(this, void 0, void 0, function* () {
|
17
|
-
const res = yield (0, clients_1.getClientAptos)().getName({ name });
|
17
|
+
const res = yield (0, clients_1.getClientAptos)().getName({ name: name.toLowerCase() });
|
18
18
|
if (!(res === null || res === void 0 ? void 0 : res.owner_address))
|
19
19
|
return null;
|
20
20
|
return res.owner_address;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aptos.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/aptos.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA8D;AAE9D,2CAA+C;AAE/C,SAAe,QAAQ,CAAC,IAAY;;QAClC,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAc,GAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"aptos.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/aptos.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA8D;AAE9D,2CAA+C;AAE/C,SAAe,QAAQ,CAAC,IAAY;;QAClC,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAc,GAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,aAAa,CAAA;YAAE,OAAO,IAAI,CAAC;QAErC,OAAO,GAAG,CAAC,aAAa,CAAC;IAC3B,CAAC;CAAA;AAED,SAAe,QAAQ,CAAC,OAAe;;QACrC,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAc,GAAE,CAAC,eAAe,CAAC;YACjD,cAAc,EAAE,OAAO;SACxB,CAAC,CAAC;QAEH,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAChC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACvE,CAAC;CAAA;AAEY,QAAA,WAAW,GAAgB;IACtC,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,iCAAgB;IACzB,QAAQ;IACR,QAAQ;CACT,CAAC"}
|
@@ -17,7 +17,7 @@ const clients_1 = require("../../clients");
|
|
17
17
|
function getOwner(name) {
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
19
19
|
const client = (0, clients_1.getClientSolana)();
|
20
|
-
const domainName = name.slice(0, -4);
|
20
|
+
const domainName = name.slice(0, -4).toLowerCase();
|
21
21
|
const { pubkey } = (0, spl_name_service_1.getDomainKeySync)(domainName);
|
22
22
|
const { registry, nftOwner } = yield spl_name_service_1.NameRegistryState.retrieve(client, pubkey).catch(() => ({ registry: null, nftOwner: null }));
|
23
23
|
if (nftOwner)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bonfida.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/bonfida.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,gEAImC;AACnC,+DAAgE;AAChE,2CAAgD;AAGhD,SAAe,QAAQ,CAAC,IAAY;;QAClC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"bonfida.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/bonfida.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAC5C,gEAImC;AACnC,+DAAgE;AAChE,2CAAgD;AAGhD,SAAe,QAAQ,CAAC,IAAY;;QAClC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACnD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,mCAAgB,EAAC,UAAU,CAAC,CAAC;QAChD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,oCAAiB,CAAC,QAAQ,CAC7D,MAAM,EACN,MAAM,CACP,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QACpD,IAAI,QAAQ;YAAE,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;QACzC,IAAI,QAAQ;YAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAED,SAAe,QAAQ,CAAC,OAAe;;QACrC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,KAAK,GAAG,IAAI,mBAAS,CAAC,OAAO,CAAC,CAAC;QAErC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,oCAAiB,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;YACtE,OAAO,EAAE,IAAI;SACd,CAAC,CAAC,CAAC;QACJ,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QACxB,OAAO,CAAC,GAAG,OAAO,MAAM,CAAC,CAAC;IAC5B,CAAC;CAAA;AAEY,QAAA,WAAW,GAAgB;IACtC,EAAE,EAAE,SAAS;IACb,OAAO,EAAE,mCAAkB;IAC3B,QAAQ;IACR,QAAQ;CACT,CAAC"}
|
@@ -14,12 +14,14 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
14
14
|
const clients_1 = require("../../clients");
|
15
15
|
function getOwner(name) {
|
16
16
|
return __awaiter(this, void 0, void 0, function* () {
|
17
|
-
return (0, clients_1.getClientSui)().resolveNameServiceAddress({ name });
|
17
|
+
return (0, clients_1.getClientSui)().resolveNameServiceAddress({ name: name.toLowerCase() });
|
18
18
|
});
|
19
19
|
}
|
20
20
|
function getNames(address) {
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
|
-
return (0, clients_1.getClientSui)()
|
22
|
+
return (0, clients_1.getClientSui)()
|
23
|
+
.resolveNameServiceNames({ address })
|
24
|
+
.then((res) => res.data);
|
23
25
|
});
|
24
26
|
}
|
25
27
|
exports.nameService = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/sui.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAE5D,2CAA6C;AAE7C,SAAe,QAAQ,CAAC,IAAY;;QAClC,OAAO,IAAA,sBAAY,GAAE,CAAC,yBAAyB,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/sui.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAE5D,2CAA6C;AAE7C,SAAe,QAAQ,CAAC,IAAY;;QAClC,OAAO,IAAA,sBAAY,GAAE,CAAC,yBAAyB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;CAAA;AAED,SAAe,QAAQ,CAAC,OAAe;;QACrC,OAAO,IAAA,sBAAY,GAAE;aAClB,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC;aACpC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CAAA;AAEY,QAAA,WAAW,GAAgB;IACtC,EAAE,EAAE,KAAK;IACT,OAAO,EAAE,+BAAc;IACvB,QAAQ;IACR,QAAQ;CACT,CAAC"}
|