@sentio/sdk 2.14.1-rc.1 → 2.14.1-rc.2

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.
@@ -1,13 +1,14 @@
1
1
  import { HexString, TxnBuilderTypes } from 'aptos-sdk';
2
- import { isFrameworkAccount } from '../move/index.js';
2
+ // import { isFrameworkAccount } from '../move/index.js'
3
3
  export function isValidAptosAddress(value) {
4
4
  return TxnBuilderTypes.AccountAddress.isValid(value);
5
5
  }
6
6
  export function validateAndNormalizeAddress(address) {
7
7
  const hex = TxnBuilderTypes.AccountAddress.fromHex(address).toHexString();
8
- if (isFrameworkAccount(address)) {
9
- return HexString.ensure(hex).toShortString();
10
- }
11
- return hex.toString();
8
+ // if (isFrameworkAccount(address)) {
9
+ // return HexString.ensure(hex).toShortString()
10
+ // }
11
+ // return hex.toString()
12
+ return HexString.ensure(hex).toShortString();
12
13
  }
13
14
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/aptos/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAErD,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,OAAe;IACzD,MAAM,GAAG,GAAG,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;IACzE,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAE;QAC/B,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAA;KAC7C;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAA;AACvB,CAAC","sourcesContent":["import { HexString, TxnBuilderTypes } from 'aptos-sdk'\nimport { isFrameworkAccount } from '../move/index.js'\n\nexport function isValidAptosAddress(value: string): boolean {\n return TxnBuilderTypes.AccountAddress.isValid(value)\n}\n\nexport function validateAndNormalizeAddress(address: string): string {\n const hex = TxnBuilderTypes.AccountAddress.fromHex(address).toHexString()\n if (isFrameworkAccount(address)) {\n return HexString.ensure(hex).toShortString()\n }\n return hex.toString()\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/aptos/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,wDAAwD;AAExD,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,OAAe;IACzD,MAAM,GAAG,GAAG,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;IACzE,qCAAqC;IACrC,iDAAiD;IACjD,IAAI;IACJ,wBAAwB;IACxB,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,aAAa,EAAE,CAAA;AAC9C,CAAC","sourcesContent":["import { HexString, TxnBuilderTypes } from 'aptos-sdk'\n// import { isFrameworkAccount } from '../move/index.js'\n\nexport function isValidAptosAddress(value: string): boolean {\n return TxnBuilderTypes.AccountAddress.isValid(value)\n}\n\nexport function validateAndNormalizeAddress(address: string): string {\n const hex = TxnBuilderTypes.AccountAddress.fromHex(address).toHexString()\n // if (isFrameworkAccount(address)) {\n // return HexString.ensure(hex).toShortString()\n // }\n // return hex.toString()\n return HexString.ensure(hex).toShortString()\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/sdk",
3
- "version": "2.14.1-rc.1",
3
+ "version": "2.14.1-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -68,8 +68,8 @@
68
68
  "typechain": "^8.0.0",
69
69
  "typedoc": "^0.24.1",
70
70
  "yaml": "^2.2.1",
71
- "@sentio/protos": "^2.14.1-rc.1",
72
- "@sentio/runtime": "^2.14.1-rc.1"
71
+ "@sentio/protos": "^2.14.1-rc.2",
72
+ "@sentio/runtime": "^2.14.1-rc.2"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "tsup": "npm:@sentio/tsup@^6.7.0"
@@ -1,5 +1,5 @@
1
1
  import { HexString, TxnBuilderTypes } from 'aptos-sdk'
2
- import { isFrameworkAccount } from '../move/index.js'
2
+ // import { isFrameworkAccount } from '../move/index.js'
3
3
 
4
4
  export function isValidAptosAddress(value: string): boolean {
5
5
  return TxnBuilderTypes.AccountAddress.isValid(value)
@@ -7,8 +7,9 @@ export function isValidAptosAddress(value: string): boolean {
7
7
 
8
8
  export function validateAndNormalizeAddress(address: string): string {
9
9
  const hex = TxnBuilderTypes.AccountAddress.fromHex(address).toHexString()
10
- if (isFrameworkAccount(address)) {
11
- return HexString.ensure(hex).toShortString()
12
- }
13
- return hex.toString()
10
+ // if (isFrameworkAccount(address)) {
11
+ // return HexString.ensure(hex).toShortString()
12
+ // }
13
+ // return hex.toString()
14
+ return HexString.ensure(hex).toShortString()
14
15
  }