decentraland-dapps 17.4.1 → 17.5.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/components/AddressField/utils.js +9 -1
- package/dist/components/AddressField/utils.js.map +1 -1
- package/dist/containers/BuyManaWithFiatModal/BuyManaWithFiatModal.container.d.ts +1 -1
- package/dist/containers/ChainProvider/ChainProvider.container.d.ts +1 -1
- package/dist/containers/LoginModal/LoginModal.container.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,9 +11,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.resolveName = void 0;
|
|
13
13
|
const ethers_1 = require("ethers");
|
|
14
|
+
const schemas_1 = require("@dcl/schemas");
|
|
14
15
|
const utils_1 = require("ethers/lib/utils");
|
|
15
16
|
const eth_1 = require("../../lib/eth");
|
|
16
|
-
const
|
|
17
|
+
const utils_2 = require("../../modules/analytics/utils");
|
|
17
18
|
function getResolverContract(contractAddress, provider) {
|
|
18
19
|
return new ethers_1.ethers.Contract(contractAddress, [
|
|
19
20
|
'function addr(bytes32 node) public view virtual override returns (address payable)'
|
|
@@ -34,6 +35,13 @@ function resolveName(name) {
|
|
|
34
35
|
const resolverContract = getResolverContract(resolverAddress, provider);
|
|
35
36
|
const resolvedAddress = yield resolverContract.addr(nodehash);
|
|
36
37
|
if (resolvedAddress !== ethers_1.ethers.constants.AddressZero) {
|
|
38
|
+
const analytics = (0, utils_2.getAnalytics)();
|
|
39
|
+
if (analytics) {
|
|
40
|
+
analytics.track('Resolve Address from Name', {
|
|
41
|
+
name,
|
|
42
|
+
address: resolvedAddress
|
|
43
|
+
});
|
|
44
|
+
}
|
|
37
45
|
return resolvedAddress;
|
|
38
46
|
}
|
|
39
47
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/AddressField/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+B;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/AddressField/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAA+B;AAC/B,0CAAsC;AAEtC,4CAA2C;AAC3C,uCAAoD;AACpD,yDAA4D;AAE5D,SAAS,mBAAmB,CAAC,eAAuB,EAAE,QAAkB;IACtE,OAAO,IAAI,eAAM,CAAC,QAAQ,CACxB,eAAe,EACf;QACE,oFAAoF;KACrF,EACD,QAAQ,CACT,CAAA;AACH,CAAC;AAED,SAAsB,WAAW,CAAC,IAAY;;QAC5C,MAAM,QAAQ,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAA;QAC/B,MAAM,iBAAiB,GAAG,MAAM,IAAA,0BAAoB,GAAE,CAAA;QACtD,IAAI,CAAC,iBAAiB,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAA;SACnE;QAED,MAAM,QAAQ,GAAG,IAAI,eAAM,CAAC,SAAS,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAA;QACrE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAA;QAE/C,IAAI,eAAe,GACjB,OAAO,KAAK,iBAAO,CAAC,gBAAgB;YAClC,CAAC,CAAC,4CAA4C;YAC9C,CAAC,CAAC,4CAA4C,CAAA;QAElD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAA;QACvE,MAAM,eAAe,GAAW,MAAM,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACrE,IAAI,eAAe,KAAK,eAAM,CAAC,SAAS,CAAC,WAAW,EAAE;YACpD,MAAM,SAAS,GAAG,IAAA,oBAAY,GAAE,CAAA;YAChC,IAAI,SAAS,EAAE;gBACb,SAAS,CAAC,KAAK,CAAC,2BAA2B,EAAE;oBAC3C,IAAI;oBACJ,OAAO,EAAE,eAAe;iBACzB,CAAC,CAAA;aACH;YAED,OAAO,eAAe,CAAA;SACvB;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;CAAA;AA9BD,kCA8BC"}
|
|
@@ -7,7 +7,7 @@ declare const _default: import("react-redux").ConnectedComponent<typeof BuyManaW
|
|
|
7
7
|
networks?: (import("decentraland-ui/dist/components/BuyManaWithFiatModal/BuyManaWithFiatModal").BuyManaWithFiatModalNetworkProps & import("decentraland-ui/dist/components/BuyManaWithFiatModal/Network").BuyWithFiatNetworkProps)[] | undefined;
|
|
8
8
|
hasTranslations?: boolean | undefined;
|
|
9
9
|
onContinue: (network: Network, gateway: NetworkGatewayType) => void;
|
|
10
|
-
}, "metadata" | "
|
|
10
|
+
}, "metadata" | "name" | "open" | "networks" | "className" | "loading" | "message" | "i18n" | "onClose" | "hasTranslations" | "hasError" | "onInfo" | "onContinue" | keyof import("react").ClassAttributes<BuyManaWithFiatModal>> & Partial<Pick<import("react").ClassAttributes<BuyManaWithFiatModal> & import("./BuyManaWithFiatModal.types").DefaultProps & Omit<import("decentraland-ui/dist/components/BuyManaWithFiatModal/BuyManaWithFiatModal").BuyManaWithFiatModalProps, "networks"> & Partial<Pick<import("decentraland-ui/dist/components/BuyManaWithFiatModal/BuyManaWithFiatModal").BuyManaWithFiatModalProps, "networks">> & Omit<import("../../providers/ModalProvider/ModalProvider.types").ModalProps, "metadata"> & {
|
|
11
11
|
metadata: import("./BuyManaWithFiatModal.types").Metadata;
|
|
12
12
|
networks?: (import("decentraland-ui/dist/components/BuyManaWithFiatModal/BuyManaWithFiatModal").BuyManaWithFiatModalNetworkProps & import("decentraland-ui/dist/components/BuyManaWithFiatModal/Network").BuyWithFiatNetworkProps)[] | undefined;
|
|
13
13
|
hasTranslations?: boolean | undefined;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import ChainProvider from './ChainProvider';
|
|
3
3
|
declare const _default: import("react-redux").ConnectedComponent<typeof ChainProvider, import("react-redux").Omit<import("react").ClassAttributes<ChainProvider> & import("./ChainProvider.types").ChainData & {
|
|
4
4
|
children: (data: import("./ChainProvider.types").ChainData) => import("react").ReactNode;
|
|
5
|
-
}, "chainId" | "
|
|
5
|
+
}, "chainId" | "network" | "chainName" | "appChainId" | "appChainName" | "appNetwork" | "isConnected" | "isSupported" | "isPartiallySupported" | "isUnsupported">>;
|
|
6
6
|
export default _default;
|
|
@@ -9,5 +9,5 @@ declare const _default: import("react-redux").ConnectedComponent<typeof LoginMod
|
|
|
9
9
|
metadata?: import("./LoginModal.types").Metadata | undefined;
|
|
10
10
|
hasTranslations?: boolean | undefined;
|
|
11
11
|
onConnect: (providerType: import("@dcl/schemas").ProviderType) => any;
|
|
12
|
-
}, "isLoading">> & Partial<Pick<import("./LoginModal.types").DefaultProps, never>>, "className" | "loading" | "message" | "i18n" | "onClose" | "
|
|
12
|
+
}, "isLoading">> & Partial<Pick<import("./LoginModal.types").DefaultProps, never>>, "open" | "className" | "loading" | "message" | "i18n" | "onClose" | "hasError"> & LoginModalProps>;
|
|
13
13
|
export default _default;
|