@xoxno/types 1.0.2 → 1.0.3

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/index.d.ts CHANGED
@@ -175,7 +175,6 @@ export * from './cosmos-db/documents/token/token-data.enum';
175
175
  /**
176
176
  * Cosmos DB Documents - User
177
177
  */
178
- export * from './cosmos-db/documents/user/account-on-network';
179
178
  export * from './cosmos-db/documents/user/user-creator-profile.doc';
180
179
  export * from './cosmos-db/documents/user/user-data.type';
181
180
  export * from './cosmos-db/documents/user/user-deposit';
package/dist/index.js CHANGED
@@ -197,7 +197,6 @@ __exportStar(require("./cosmos-db/documents/token/token-data.enum"), exports);
197
197
  /**
198
198
  * Cosmos DB Documents - User
199
199
  */
200
- __exportStar(require("./cosmos-db/documents/user/account-on-network"), exports);
201
200
  __exportStar(require("./cosmos-db/documents/user/user-creator-profile.doc"), exports);
202
201
  __exportStar(require("./cosmos-db/documents/user/user-data.type"), exports);
203
202
  __exportStar(require("./cosmos-db/documents/user/user-deposit"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,21 +0,0 @@
1
- export declare class MvxAccountDetails {
2
- address: string;
3
- nonce: number;
4
- balance: string;
5
- balanceShort: number;
6
- username: string;
7
- ownerAddress?: string;
8
- isUpgradeable?: boolean;
9
- isReadable?: boolean;
10
- isGuarded?: boolean;
11
- isPayable?: boolean;
12
- isPayableBySmartContract?: boolean;
13
- shard?: number;
14
- usdValue?: number;
15
- code?: string;
16
- codeHash?: string;
17
- rootHash?: string;
18
- developerReward?: string;
19
- codeMetadata?: string;
20
- constructor(init?: Partial<MvxAccountDetails>);
21
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MvxAccountDetails = void 0;
4
- class MvxAccountDetails {
5
- constructor(init) {
6
- this.address = '';
7
- this.nonce = 0;
8
- this.balanceShort = 0;
9
- this.username = '';
10
- delete init?.['code'];
11
- delete init?.['codeHash'];
12
- delete init?.['rootHash'];
13
- delete init?.['developerReward'];
14
- if (init?.['codeMetadata']) {
15
- delete init['codeMetadata'];
16
- // const codeMetadata = AddressUtils.decodeCodeMetadata(
17
- // init['codeMetadata'],
18
- // );
19
- // this.isUpgradeable = codeMetadata.isUpgradeable;
20
- // this.isReadable = codeMetadata.isReadable;
21
- // this.isGuarded = codeMetadata.isGuarded;
22
- // this.isPayable = codeMetadata.isPayable;
23
- // this.isPayableBySmartContract = codeMetadata.isPayableBySmartContract;
24
- }
25
- Object.assign(this, init);
26
- if (this.ownerAddress === '') {
27
- delete this.ownerAddress;
28
- }
29
- // TODO: Add sahrd number
30
- // this.shard = AddressUtils.computeShard(
31
- // AddressUtils.bech32Decode(this.address),
32
- // 3,
33
- // );
34
- }
35
- }
36
- exports.MvxAccountDetails = MvxAccountDetails;