@bitgo-beta/abstract-cosmos 1.0.1-beta.13 → 1.0.1-beta.131

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/dist/src/cosmosCoin.d.ts +83 -5
  3. package/dist/src/cosmosCoin.d.ts.map +1 -1
  4. package/dist/src/cosmosCoin.js +371 -106
  5. package/dist/src/lib/ContractCallBuilder.d.ts +13 -0
  6. package/dist/src/lib/ContractCallBuilder.d.ts.map +1 -0
  7. package/dist/src/lib/ContractCallBuilder.js +28 -0
  8. package/dist/src/lib/StakingActivateBuilder.d.ts +13 -0
  9. package/dist/src/lib/StakingActivateBuilder.d.ts.map +1 -0
  10. package/dist/src/lib/StakingActivateBuilder.js +28 -0
  11. package/dist/src/lib/StakingDeactivateBuilder.d.ts +13 -0
  12. package/dist/src/lib/StakingDeactivateBuilder.d.ts.map +1 -0
  13. package/dist/src/lib/StakingDeactivateBuilder.js +28 -0
  14. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts +13 -0
  15. package/dist/src/lib/StakingWithdrawRewardsBuilder.d.ts.map +1 -0
  16. package/dist/src/lib/StakingWithdrawRewardsBuilder.js +28 -0
  17. package/dist/src/lib/constants.d.ts +2 -0
  18. package/dist/src/lib/constants.d.ts.map +1 -1
  19. package/dist/src/lib/constants.js +4 -2
  20. package/dist/src/lib/iface.d.ts +40 -4
  21. package/dist/src/lib/iface.d.ts.map +1 -1
  22. package/dist/src/lib/iface.js +18 -1
  23. package/dist/src/lib/index.d.ts +6 -1
  24. package/dist/src/lib/index.d.ts.map +1 -1
  25. package/dist/src/lib/index.js +13 -3
  26. package/dist/src/lib/transaction.d.ts +13 -1
  27. package/dist/src/lib/transaction.d.ts.map +1 -1
  28. package/dist/src/lib/transaction.js +130 -67
  29. package/dist/src/lib/transactionBuilder.d.ts +31 -5
  30. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  31. package/dist/src/lib/transactionBuilder.js +100 -4
  32. package/dist/src/lib/transferBuilder.d.ts +13 -0
  33. package/dist/src/lib/transferBuilder.d.ts.map +1 -0
  34. package/dist/src/lib/transferBuilder.js +28 -0
  35. package/dist/src/lib/utils.d.ts +151 -11
  36. package/dist/src/lib/utils.d.ts.map +1 -1
  37. package/dist/src/lib/utils.js +330 -19
  38. package/dist/tsconfig.tsbuildinfo +1 -10808
  39. package/package.json +10 -8
package/CHANGELOG.md CHANGED
@@ -3,6 +3,154 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.7.0) (2023-10-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
11
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
12
+
13
+ ### Features
14
+
15
+ - **abstract-cosmos:** add support for different pubkey types ([e257093](https://github.com/BitGo/BitGoJS/commit/e257093605a4bfe22fbe0b0f9933bfef1a3975c6))
16
+ - **sdk-coin-atom:** add sendMany support for cosmos chains ([ee609ec](https://github.com/BitGo/BitGoJS/commit/ee609ec5de3d3159c78ba59ecf7f43c79f6f5870))
17
+
18
+ ## [1.6.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.11) (2023-09-25)
19
+
20
+ ### Bug Fixes
21
+
22
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
23
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
24
+
25
+ ## [1.6.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.10) (2023-09-09)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
30
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
31
+
32
+ ## [1.6.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.9) (2023-09-09)
33
+
34
+ ### Bug Fixes
35
+
36
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
37
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
38
+
39
+ ## [1.6.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.8) (2023-09-07)
40
+
41
+ ### Bug Fixes
42
+
43
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
44
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
45
+
46
+ ## [1.6.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.7) (2023-09-05)
47
+
48
+ ### Bug Fixes
49
+
50
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
51
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
52
+
53
+ ## [1.6.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.6) (2023-09-01)
54
+
55
+ ### Bug Fixes
56
+
57
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
58
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
59
+
60
+ ## [1.6.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.5) (2023-08-29)
61
+
62
+ ### Bug Fixes
63
+
64
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
65
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
66
+
67
+ ## [1.6.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.4) (2023-08-25)
68
+
69
+ ### Bug Fixes
70
+
71
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
72
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
73
+
74
+ ## [1.6.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.3) (2023-08-24)
75
+
76
+ ### Bug Fixes
77
+
78
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
79
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
80
+
81
+ ## [1.6.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.2) (2023-08-16)
82
+
83
+ ### Bug Fixes
84
+
85
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
86
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
87
+
88
+ ## [1.6.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.6.0...@bitgo/abstract-cosmos@1.6.1) (2023-08-16)
89
+
90
+ ### Bug Fixes
91
+
92
+ - **abstract-cosmos:** getAccountDetails fix ([d5c6c74](https://github.com/BitGo/BitGoJS/commit/d5c6c74845e62ee3cd68321c55d729da1526fcae))
93
+ - **abstract-cosmos:** getAccountDetails fix ([3c869f2](https://github.com/BitGo/BitGoJS/commit/3c869f22ce9db917feaa75acec8a47696043bcd3))
94
+
95
+ # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.4.0...@bitgo/abstract-cosmos@1.6.0) (2023-08-04)
96
+
97
+ ### Bug Fixes
98
+
99
+ - **abstract-cosmos:** getAccountBalance fix ([94b7dbc](https://github.com/BitGo/BitGoJS/commit/94b7dbc52e962b5e3e4819acbee39dc420d1d7ea))
100
+ - **abstract-cosmos:** getAccountDetails fix ([3f2e940](https://github.com/BitGo/BitGoJS/commit/3f2e940a6d7e63761e0f81a889f1fb3b480f878d))
101
+ - **abstract-cosmos:** skip amount validation for contractcall txn ([9acb564](https://github.com/BitGo/BitGoJS/commit/9acb56479c1db488e95cfcabe8e0396172006d9d))
102
+ - **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
103
+
104
+ ### Features
105
+
106
+ - **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
107
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
108
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
109
+ - **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
110
+
111
+ # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.4.0...@bitgo/abstract-cosmos@1.5.0) (2023-07-28)
112
+
113
+ ### Bug Fixes
114
+
115
+ - **abstract-cosmos:** skip amount validation for contractcall txn ([9acb564](https://github.com/BitGo/BitGoJS/commit/9acb56479c1db488e95cfcabe8e0396172006d9d))
116
+ - **sdk-coin-osmo:** allow zero amount on contract call ([2245ba7](https://github.com/BitGo/BitGoJS/commit/2245ba7acde8ae669ed53ffeb0e58178054f3da3))
117
+
118
+ ### Features
119
+
120
+ - **abstract-cosmos:** add wallet recovery for abstract cosmos ([1c62e4b](https://github.com/BitGo/BitGoJS/commit/1c62e4b42a6e58d2e3e14dbfa7e312ce062c5db3))
121
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
122
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
123
+ - **sdk-coin-osmo:** allow amount in execute contract transaction ([44be383](https://github.com/BitGo/BitGoJS/commit/44be383f38830aeb2d5825ee83c77aab444cfe25))
124
+
125
+ # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.3.0...@bitgo/abstract-cosmos@1.4.0) (2023-07-18)
126
+
127
+ ### Features
128
+
129
+ - **abstract-cosmos:** add support for contract call transaction ([9b7dd54](https://github.com/BitGo/BitGoJS/commit/9b7dd54c6a3a9e5cf2b47b4a94ef225f111a8baf))
130
+ - add base factor for individual cosmos side chains ([e661b36](https://github.com/BitGo/BitGoJS/commit/e661b3631445e7ff1ddcdb51385d1f993b4f35c9))
131
+
132
+ # [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.2.1...@bitgo/abstract-cosmos@1.3.0) (2023-06-21)
133
+
134
+ ### Features
135
+
136
+ - **bitgo:** update dockerfile ([987140b](https://github.com/BitGo/BitGoJS/commit/987140b2b40e9f2f2c2911eb750a33f2185d43b7))
137
+
138
+ ## [1.2.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.2.0...@bitgo/abstract-cosmos@1.2.1) (2023-06-14)
139
+
140
+ **Note:** Version bump only for package @bitgo/abstract-cosmos
141
+
142
+ # [1.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.1.1...@bitgo/abstract-cosmos@1.2.0) (2023-06-13)
143
+
144
+ ### Features
145
+
146
+ - **abstract-cosmos:** sdk abstract-cosmos and sdk osmo refactored ([d1bb5f6](https://github.com/BitGo/BitGoJS/commit/d1bb5f614533b1cc119b434510539673061d2c2a))
147
+ - **sdk-coin-tia:** celestia sdk along with testcases ([eb1431a](https://github.com/BitGo/BitGoJS/commit/eb1431a02de539b05f1fc2660c650563f3d7085a))
148
+ - **sdk-coin-tia:** celestia sdk along with testcases ([1d104e0](https://github.com/BitGo/BitGoJS/commit/1d104e0d0ac0c813d16cd6da759b1a904bab4641))
149
+
150
+ ## [1.1.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@1.1.0...@bitgo/abstract-cosmos@1.1.1) (2023-06-07)
151
+
152
+ **Note:** Version bump only for package @bitgo/abstract-cosmos
153
+
6
154
  # 1.1.0 (2023-06-05)
7
155
 
8
156
  ### Bug Fixes
@@ -1,7 +1,10 @@
1
1
  /// <reference types="node" />
2
- import { BaseCoin, BitGoBase, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
2
+ import { BaseCoin, BitGoBase, ExplanationResult, KeyPair, MPCAlgorithm, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
3
3
  import { BaseCoin as StaticsBaseCoin, CoinFamily } from '@bitgo-beta/statics';
4
+ import { Buffer } from 'buffer';
4
5
  import { Hash } from 'crypto';
6
+ import * as request from 'superagent';
7
+ import { CosmosKeyPair, CosmosLikeCoinRecoveryOutput, GasAmountDetails, RecoveryOptions } from './lib';
5
8
  /**
6
9
  * Cosmos accounts support memo Id based addresses
7
10
  */
@@ -13,6 +16,10 @@ export declare class CosmosCoin extends BaseCoin {
13
16
  protected readonly _staticsCoin: Readonly<StaticsBaseCoin>;
14
17
  protected constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
15
18
  static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
19
+ /**
20
+ * Creates an instance of TransactionBuilderFactory for the coin specific sdk
21
+ */
22
+ getBuilder(): any;
16
23
  /** @inheritDoc **/
17
24
  getBaseFactor(): string | number;
18
25
  /** @inheritDoc **/
@@ -29,18 +36,78 @@ export declare class CosmosCoin extends BaseCoin {
29
36
  isValidPub(pub: string): boolean;
30
37
  /** @inheritDoc **/
31
38
  isValidPrv(prv: string): boolean;
32
- verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
33
39
  isValidAddress(address: string): boolean;
34
- signTransaction(params: SignTransactionOptions): Promise<SignedTransaction>;
40
+ /**
41
+ * Builds a funds recovery transaction without BitGo
42
+ * @param {RecoveryOptions} params parameters needed to construct and
43
+ * (maybe) sign the transaction
44
+ *
45
+ * @returns {CosmosLikeCoinRecoveryOutput} the serialized transaction hex string and index
46
+ * of the address being swept
47
+ */
48
+ recover(params: RecoveryOptions): Promise<CosmosLikeCoinRecoveryOutput>;
49
+ private getKeyCombinedFromTssKeyShares;
50
+ private signRecoveryTSS;
51
+ /** @inheritDoc **/
52
+ verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
53
+ /** @inheritDoc **/
54
+ explainTransaction(options: {
55
+ txHex: string;
56
+ }): Promise<ExplanationResult>;
57
+ /**
58
+ * Sign a transaction with a single private key
59
+ * @param params parameters in the form of { txPrebuild: {txHex}, prv }
60
+ * @returns signed transaction in the form of { txHex }
61
+ */
62
+ signTransaction(params: SignTransactionOptions & {
63
+ txPrebuild: {
64
+ txHex: string;
65
+ };
66
+ prv: string;
67
+ }): Promise<SignedTransaction>;
35
68
  /** @inheritDoc **/
36
69
  parseTransaction(params: ParseTransactionOptions & {
37
70
  txHex: string;
38
71
  }): Promise<ParsedTransaction>;
72
+ /**
73
+ * Get the public node url from the Environments constant we have defined
74
+ */
75
+ protected getPublicNodeUrl(): string;
76
+ /**
77
+ * Get account number from public node
78
+ */
79
+ protected getAccountFromNode(senderAddress: string): Promise<request.Response>;
80
+ /**
81
+ * Get balance from public node
82
+ */
83
+ protected getBalanceFromNode(senderAddress: string): Promise<request.Response>;
84
+ /**
85
+ * Get chain id from public node
86
+ */
87
+ protected getChainIdFromNode(): Promise<request.Response>;
88
+ /**
89
+ * Helper to fetch account balance
90
+ */
91
+ protected getAccountBalance(senderAddress: string): Promise<string>;
92
+ /**
93
+ * Helper to fetch chainId
94
+ */
95
+ protected getChainId(): Promise<string>;
96
+ /**
97
+ * Helper to fetch account number
98
+ */
99
+ protected getAccountDetails(senderAddress: string): Promise<string[]>;
39
100
  /** @inheritDoc **/
40
101
  generateKeyPair(seed?: Buffer): KeyPair;
102
+ /**
103
+ * Retrieves the address from a public key.
104
+ * @param {string} pubKey - The public key.
105
+ * @returns {string} The corresponding address.
106
+ */
41
107
  getAddressFromPublicKey(pubKey: string): string;
42
108
  /** @inheritDoc **/
43
109
  isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
110
+ /** @inheritDoc **/
44
111
  getHashFunction(): Hash;
45
112
  /**
46
113
  * Process address into address and memo id
@@ -56,8 +123,19 @@ export declare class CosmosCoin extends BaseCoin {
56
123
  * @returns true if memo id is valid
57
124
  */
58
125
  isValidMemoId(memoId: string): boolean;
59
- private getKeyCombinedFromTssKeyShares;
60
- private signRecoveryTSS;
126
+ /**
127
+ * Helper method to return the respective coin's base unit
128
+ */
129
+ getDenomination(): string;
130
+ /**
131
+ * Helper method to fetch gas amount details for respective coin
132
+ */
133
+ getGasAmountDetails(): GasAmountDetails;
134
+ /**
135
+ * Helper method to get key pair for individual coin
136
+ * @param publicKey
137
+ */
138
+ getKeyPair(publicKey: string): CosmosKeyPair;
61
139
  }
62
140
  export {};
63
141
  //# sourceMappingURL=cosmosCoin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cosmosCoin.d.ts","sourceRoot":"","sources":["../../src/cosmosCoin.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EAOT,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EAEtB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG9E,OAAO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