@dynamic-labs/multi-wallet 0.14.31 → 0.14.32

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/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+
2
+ ### [0.14.32](https://github.com/dynamic-labs/DynamicAuth/compare/v0.14.31...v0.14.32) (2023-02-01)
3
+
4
+
5
+ ### Features
6
+
7
+ * **useWalletItemActions:** add openWallet method to sign directly ([e87d104](https://github.com/dynamic-labs/DynamicAuth/commit/e87d1040d884a65a1952deadec68f8b669d41d3e))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * api test ([a18613e](https://github.com/dynamic-labs/DynamicAuth/commit/a18613ea26296836821c720cc9d050565bf06d44))
13
+ * **normalizeAddress:** remove the 0x from address beginning ([a8713ee](https://github.com/dynamic-labs/DynamicAuth/commit/a8713eede3ba033d60d28c0691a6a09174f48718))
14
+ * test apps ([b6d0455](https://github.com/dynamic-labs/DynamicAuth/commit/b6d0455d2e4c6e40f7c404afac528f75b11387cf))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "0.14.31",
3
+ "version": "0.14.32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/dynamic-labs/DynamicAuth/main/packages/multi-wallet#readme",
34
34
  "author": "Dynamic Labs, Inc.",
35
- "license": "Apache-2.0",
35
+ "license": "MIT",
36
36
  "main": "./src/index.js",
37
37
  "types": "./src/index.d.ts"
38
38
  }
@@ -0,0 +1 @@
1
+ export { isSameAddress } from './isSameAddress';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSameAddress = void 0;
4
+ var isSameAddress_1 = require("./isSameAddress");
5
+ Object.defineProperty(exports, "isSameAddress", { enumerable: true, get: function () { return isSameAddress_1.isSameAddress; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/multi-wallet/src/utils/isSameAddress/index.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSameAddress = void 0;
4
+ const utils_1 = require("./utils");
5
+ const isSameAddress = (left, right, chain) => (0, utils_1.normalizeAddress)(left, chain) === (0, utils_1.normalizeAddress)(right, chain);
6
+ exports.isSameAddress = isSameAddress;
7
+ //# sourceMappingURL=isSameAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSameAddress.js","sourceRoot":"","sources":["../../../../../../packages/multi-wallet/src/utils/isSameAddress/isSameAddress.ts"],"names":[],"mappings":";;;AAAA,mCAA2C;AAEpC,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,KAAa,EAAE,EAAE,CAC1E,IAAA,wBAAgB,EAAC,IAAI,EAAE,KAAK,CAAC,KAAK,IAAA,wBAAgB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AADtD,QAAA,aAAa,iBACyC"}
@@ -0,0 +1 @@
1
+ export * from './normalizeAddress';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./normalizeAddress"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/multi-wallet/src/utils/isSameAddress/utils/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC"}
@@ -0,0 +1 @@
1
+ export { normalizeAddress } from './normalizeAddress';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeAddress = void 0;
4
+ var normalizeAddress_1 = require("./normalizeAddress");
5
+ Object.defineProperty(exports, "normalizeAddress", { enumerable: true, get: function () { return normalizeAddress_1.normalizeAddress; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/multi-wallet/src/utils/isSameAddress/utils/normalizeAddress/index.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeAddress = void 0;
4
- const shouldLowercaseAddress_1 = require("./shouldLowercaseAddress");
4
+ const shouldLowercaseAddress_1 = require("../../../shouldLowercaseAddress");
5
5
  const normalizeAddress = (rawAddress, chain) => {
6
+ if (rawAddress.startsWith('0x')) {
7
+ rawAddress = rawAddress.slice(2);
8
+ }
6
9
  const address = (0, shouldLowercaseAddress_1.shouldLowercaseAddress)(chain)
7
10
  ? rawAddress.toLowerCase()
8
11
  : rawAddress;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeAddress.js","sourceRoot":"","sources":["../../../../../../../../packages/multi-wallet/src/utils/isSameAddress/utils/normalizeAddress/normalizeAddress.ts"],"names":[],"mappings":";;;AAAA,4EAAyE;AAElE,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAE,KAAa,EAAE,EAAE;IACpE,IAAI,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC/B,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAClC;IAED,MAAM,OAAO,GAAG,IAAA,+CAAsB,EAAC,KAAK,CAAC;QAC3C,CAAC,CAAC,UAAU,CAAC,WAAW,EAAE;QAC1B,CAAC,CAAC,UAAU,CAAC;IAEf,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAVW,QAAA,gBAAgB,oBAU3B"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSameAddress = void 0;
4
- const normalizeAddress_1 = require("./normalizeAddress");
5
- const isSameAddress = (left, right, chain) => (0, normalizeAddress_1.normalizeAddress)(left, chain) === (0, normalizeAddress_1.normalizeAddress)(right, chain);
6
- exports.isSameAddress = isSameAddress;
7
- //# sourceMappingURL=isSameAddress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSameAddress.js","sourceRoot":"","sources":["../../../../../packages/multi-wallet/src/utils/isSameAddress.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAE/C,MAAM,aAAa,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,KAAa,EAAE,EAAE,CAC1E,IAAA,mCAAgB,EAAC,IAAI,EAAE,KAAK,CAAC,KAAK,IAAA,mCAAgB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AADtD,QAAA,aAAa,iBACyC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalizeAddress.js","sourceRoot":"","sources":["../../../../../packages/multi-wallet/src/utils/normalizeAddress.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAE3D,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAE,KAAa,EAAE,EAAE;IACpE,MAAM,OAAO,GAAG,IAAA,+CAAsB,EAAC,KAAK,CAAC;QAC3C,CAAC,CAAC,UAAU,CAAC,WAAW,EAAE;QAC1B,CAAC,CAAC,UAAU,CAAC;IACf,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AALW,QAAA,gBAAgB,oBAK3B"}