@ardrive/turbo-sdk 1.28.3 → 1.29.0-alpha.1

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.
@@ -220959,7 +220959,7 @@ var import_winston = __toESM(require_winston(), 1);
220959
220959
  init_dirname();
220960
220960
  init_buffer2();
220961
220961
  init_process2();
220962
- var version21 = "1.28.3-alpha.1";
220962
+ var version21 = "1.28.3";
220963
220963
 
220964
220964
  // src/common/logger.ts
220965
220965
  var TurboWinstonLogger = class _TurboWinstonLogger {
@@ -239414,16 +239414,6 @@ init_dirname();
239414
239414
  init_buffer2();
239415
239415
  init_process2();
239416
239416
 
239417
- // src/cli/constants.ts
239418
- init_dirname();
239419
- init_buffer2();
239420
- init_process2();
239421
- var turboCliTags = [
239422
- { name: "App-Name", value: "Turbo-CLI" },
239423
- { name: "App-Version", value: version21 },
239424
- { name: "App-Platform", value: process_exports?.platform }
239425
- ];
239426
-
239427
239417
  // src/common/token/ethereum.ts
239428
239418
  init_dirname();
239429
239419
  init_buffer2();
@@ -18,7 +18,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  */
20
20
  // eslint-disable-next-line header/header -- This is a CLI file
21
+ const arbundles_1 = require("@dha-team/arbundles");
21
22
  const commander_1 = require("commander");
23
+ const fs_1 = require("fs");
22
24
  const version_js_1 = require("../version.js");
23
25
  const fiatEstimate_js_1 = require("./commands/fiatEstimate.js");
24
26
  const index_js_1 = require("./commands/index.js");
@@ -78,6 +80,49 @@ const utils_js_1 = require("./utils.js");
78
80
  .description('Lists all given or received Turbo credit share approvals for specified address or connected wallet'), options_js_1.listSharesOptions).action(async (_commandOptions, command) => {
79
81
  await (0, utils_js_1.runCommand)(command, listShares_js_1.listShares);
80
82
  });
83
+ (0, utils_js_1.applyOptions)(commander_1.program
84
+ .command('inspect-data-items')
85
+ .description('Lists all given or received Turbo credit share approvals for specified address or connected wallet'), [options_js_1.optionMap.folderPath]).action(async (_commandOptions, command) => {
86
+ await (0, utils_js_1.runCommand)(command, async (options) => {
87
+ const folderPath = options.folderPath ?? './maybe-broke';
88
+ // read directory /maybe-broken-data-items and check all files within to see if can read
89
+ const dir = (0, fs_1.readdirSync)(folderPath);
90
+ // const data = await axios.get('https://arweave.net/raw/' + options.txId); // TODO: Gateway that gives raw data items
91
+ const validDataItemStats = [];
92
+ const invalidDataItemIds = [];
93
+ for (const file of dir) {
94
+ const data = (0, fs_1.readFileSync)('./maybe-broke/' + file);
95
+ try {
96
+ const dataItem = new arbundles_1.DataItem(data);
97
+ const id = dataItem.id;
98
+ console.log('id', id);
99
+ const isValid = await dataItem.isValid().catch((e) => {
100
+ console.log('error', e);
101
+ });
102
+ if (!isValid) {
103
+ invalidDataItemIds.push(id);
104
+ continue;
105
+ }
106
+ const size = dataItem.getRaw().byteLength;
107
+ const dataStart = dataItem.getStartOfData();
108
+ validDataItemStats.push({
109
+ id,
110
+ size,
111
+ dataStart,
112
+ signatureType: dataItem.signatureType,
113
+ });
114
+ }
115
+ catch (e) {
116
+ console.log('error', e);
117
+ }
118
+ }
119
+ console.log(JSON.stringify({
120
+ validDataItemStats,
121
+ invalidDataItemIds,
122
+ validDataItemIds: validDataItemStats.map((item) => item.id),
123
+ }, null, 2));
124
+ });
125
+ });
81
126
  if (process.argv[1].includes('bin/turbo') || // Running from global .bin
82
127
  process.argv[1].includes('cli/cli') // Running from source
83
128
  ) {
@@ -1,25 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseEthToken = void 0;
4
- /**
5
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- const constants_js_1 = require("../../cli/constants.js");
4
+ const common_js_1 = require("../../utils/common.js");
20
5
  const ethereum_js_1 = require("./ethereum.js");
21
6
  class BaseEthToken extends ethereum_js_1.EthereumToken {
22
- constructor({ logger, gatewayUrl = constants_js_1.defaultProdGatewayUrls['base-eth'], pollingOptions = {
7
+ constructor({ logger, gatewayUrl = common_js_1.defaultProdGatewayUrls['base-eth'], pollingOptions = {
23
8
  initialBackoffMs: 1_000,
24
9
  maxAttempts: 10,
25
10
  pollingIntervalMs: 2_500,
@@ -18,14 +18,14 @@ exports.EthereumToken = exports.ETHToTokenAmount = exports.weiToTokenAmount = vo
18
18
  */
19
19
  const bignumber_js_1 = require("bignumber.js");
20
20
  const ethers_1 = require("ethers");
21
- const constants_js_1 = require("../../cli/constants.js");
21
+ const common_js_1 = require("../../utils/common.js");
22
22
  const logger_js_1 = require("../logger.js");
23
23
  const weiToTokenAmount = (wei) => wei;
24
24
  exports.weiToTokenAmount = weiToTokenAmount;
25
25
  const ETHToTokenAmount = (eth) => new bignumber_js_1.BigNumber(eth).times(1e18).valueOf();
26
26
  exports.ETHToTokenAmount = ETHToTokenAmount;
27
27
  class EthereumToken {
28
- constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = constants_js_1.defaultProdGatewayUrls.ethereum, pollingOptions = {
28
+ constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = common_js_1.defaultProdGatewayUrls.ethereum, pollingOptions = {
29
29
  maxAttempts: 10,
30
30
  pollingIntervalMs: 4_000,
31
31
  initialBackoffMs: 10_000,
@@ -26,9 +26,9 @@ const proto_signing_1 = require("@cosmjs/proto-signing");
26
26
  const stargate_1 = require("@cosmjs/stargate");
27
27
  const arbundles_1 = require("@dha-team/arbundles");
28
28
  const bignumber_js_1 = require("bignumber.js");
29
- const constants_js_1 = require("../../cli/constants.js");
30
29
  const axiosClient_js_1 = require("../../utils/axiosClient.js");
31
30
  const common_js_1 = require("../../utils/common.js");
31
+ const common_js_2 = require("../../utils/common.js");
32
32
  const logger_js_1 = require("../logger.js");
33
33
  function hasKyveTxResponse(response) {
34
34
  return response.tx_response !== undefined;
@@ -38,7 +38,7 @@ exports.ukyveToTokenAmount = ukyveToTokenAmount;
38
38
  const KYVEToTokenAmount = (sol) => new bignumber_js_1.BigNumber(sol).times(1e6).valueOf();
39
39
  exports.KYVEToTokenAmount = KYVEToTokenAmount;
40
40
  class KyveToken {
41
- constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = constants_js_1.defaultProdGatewayUrls.kyve, pollingOptions = {
41
+ constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = common_js_1.defaultProdGatewayUrls.kyve, pollingOptions = {
42
42
  maxAttempts: 5,
43
43
  pollingIntervalMs: 1_000,
44
44
  initialBackoffMs: 500,
@@ -72,7 +72,7 @@ class KyveToken {
72
72
  txId,
73
73
  pollingOptions: this.pollingOptions,
74
74
  });
75
- await (0, common_js_1.sleep)(initialBackoffMs);
75
+ await (0, common_js_2.sleep)(initialBackoffMs);
76
76
  let attempts = 0;
77
77
  while (attempts < maxAttempts) {
78
78
  let res = undefined;
@@ -100,7 +100,7 @@ class KyveToken {
100
100
  maxAttempts,
101
101
  pollingIntervalMs,
102
102
  });
103
- await (0, common_js_1.sleep)(pollingIntervalMs);
103
+ await (0, common_js_2.sleep)(pollingIntervalMs);
104
104
  }
105
105
  throw new Error('Transaction not found after polling, transaction id: ' + txId);
106
106
  }
@@ -1,27 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PolygonToken = exports.POLToTokenAmount = void 0;
4
- /**
5
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- const constants_js_1 = require("../../cli/constants.js");
4
+ const common_js_1 = require("../../utils/common.js");
20
5
  const logger_js_1 = require("../logger.js");
21
6
  const ethereum_js_1 = require("./ethereum.js");
22
7
  exports.POLToTokenAmount = ethereum_js_1.ETHToTokenAmount;
23
8
  class PolygonToken extends ethereum_js_1.EthereumToken {
24
- constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = constants_js_1.defaultProdGatewayUrls.pol, pollingOptions = {
9
+ constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = common_js_1.defaultProdGatewayUrls.pol, pollingOptions = {
25
10
  maxAttempts: 10,
26
11
  pollingIntervalMs: 4_000,
27
12
  initialBackoffMs: 5_000,
@@ -22,15 +22,15 @@ exports.SolanaToken = exports.SOLToTokenAmount = exports.lamportToTokenAmount =
22
22
  const web3_js_1 = require("@solana/web3.js");
23
23
  const bignumber_js_1 = require("bignumber.js");
24
24
  const bs58_1 = __importDefault(require("bs58"));
25
- const constants_js_1 = require("../../cli/constants.js");
26
25
  const common_js_1 = require("../../utils/common.js");
26
+ const common_js_2 = require("../../utils/common.js");
27
27
  const logger_js_1 = require("../logger.js");
28
28
  const lamportToTokenAmount = (winston) => winston;
29
29
  exports.lamportToTokenAmount = lamportToTokenAmount;
30
30
  const SOLToTokenAmount = (sol) => new bignumber_js_1.BigNumber(sol).times(1e9).valueOf();
31
31
  exports.SOLToTokenAmount = SOLToTokenAmount;
32
32
  class SolanaToken {
33
- constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = constants_js_1.defaultProdGatewayUrls.solana, pollingOptions = {
33
+ constructor({ logger = logger_js_1.TurboWinstonLogger.default, gatewayUrl = common_js_1.defaultProdGatewayUrls.solana, pollingOptions = {
34
34
  maxAttempts: 10,
35
35
  pollingIntervalMs: 2_500,
36
36
  initialBackoffMs: 500,
@@ -80,7 +80,7 @@ class SolanaToken {
80
80
  txId,
81
81
  pollingOptions: this.pollingOptions,
82
82
  });
83
- await (0, common_js_1.sleep)(initialBackoffMs);
83
+ await (0, common_js_2.sleep)(initialBackoffMs);
84
84
  let attempts = 0;
85
85
  while (attempts < maxAttempts) {
86
86
  let status = undefined;
@@ -104,7 +104,7 @@ class SolanaToken {
104
104
  maxAttempts,
105
105
  pollingIntervalMs,
106
106
  });
107
- await (0, common_js_1.sleep)(pollingIntervalMs);
107
+ await (0, common_js_2.sleep)(pollingIntervalMs);
108
108
  }
109
109
  throw new Error('Transaction not found after polling, transaction id: ' + txId);
110
110
  }
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '1.28.3';
20
+ exports.version = '1.29.0-alpha.1';
@@ -16,7 +16,9 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  // eslint-disable-next-line header/header -- This is a CLI file
19
+ import { DataItem } from '@dha-team/arbundles';
19
20
  import { program } from 'commander';
21
+ import { readFileSync, readdirSync } from 'fs';
20
22
  import { version } from '../version.js';
21
23
  import { fiatEstimate } from './commands/fiatEstimate.js';
22
24
  import { balance, cryptoFund, price, topUp, uploadFile, uploadFolder, } from './commands/index.js';
@@ -76,6 +78,49 @@ applyOptions(program
76
78
  .description('Lists all given or received Turbo credit share approvals for specified address or connected wallet'), listSharesOptions).action(async (_commandOptions, command) => {
77
79
  await runCommand(command, listShares);
78
80
  });
81
+ applyOptions(program
82
+ .command('inspect-data-items')
83
+ .description('Lists all given or received Turbo credit share approvals for specified address or connected wallet'), [optionMap.folderPath]).action(async (_commandOptions, command) => {
84
+ await runCommand(command, async (options) => {
85
+ const folderPath = options.folderPath ?? './maybe-broke';
86
+ // read directory /maybe-broken-data-items and check all files within to see if can read
87
+ const dir = readdirSync(folderPath);
88
+ // const data = await axios.get('https://arweave.net/raw/' + options.txId); // TODO: Gateway that gives raw data items
89
+ const validDataItemStats = [];
90
+ const invalidDataItemIds = [];
91
+ for (const file of dir) {
92
+ const data = readFileSync('./maybe-broke/' + file);
93
+ try {
94
+ const dataItem = new DataItem(data);
95
+ const id = dataItem.id;
96
+ console.log('id', id);
97
+ const isValid = await dataItem.isValid().catch((e) => {
98
+ console.log('error', e);
99
+ });
100
+ if (!isValid) {
101
+ invalidDataItemIds.push(id);
102
+ continue;
103
+ }
104
+ const size = dataItem.getRaw().byteLength;
105
+ const dataStart = dataItem.getStartOfData();
106
+ validDataItemStats.push({
107
+ id,
108
+ size,
109
+ dataStart,
110
+ signatureType: dataItem.signatureType,
111
+ });
112
+ }
113
+ catch (e) {
114
+ console.log('error', e);
115
+ }
116
+ }
117
+ console.log(JSON.stringify({
118
+ validDataItemStats,
119
+ invalidDataItemIds,
120
+ validDataItemIds: validDataItemStats.map((item) => item.id),
121
+ }, null, 2));
122
+ });
123
+ });
79
124
  if (process.argv[1].includes('bin/turbo') || // Running from global .bin
80
125
  process.argv[1].includes('cli/cli') // Running from source
81
126
  ) {
@@ -1,19 +1,4 @@
1
- /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { defaultProdGatewayUrls } from '../../cli/constants.js';
1
+ import { defaultProdGatewayUrls } from '../../utils/common.js';
17
2
  import { EthereumToken } from './ethereum.js';
18
3
  export class BaseEthToken extends EthereumToken {
19
4
  constructor({ logger, gatewayUrl = defaultProdGatewayUrls['base-eth'], pollingOptions = {
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { BigNumber } from 'bignumber.js';
17
17
  import { ethers } from 'ethers';
18
- import { defaultProdGatewayUrls } from '../../cli/constants.js';
18
+ import { defaultProdGatewayUrls } from '../../utils/common.js';
19
19
  import { TurboWinstonLogger } from '../logger.js';
20
20
  export const weiToTokenAmount = (wei) => wei;
21
21
  export const ETHToTokenAmount = (eth) => new BigNumber(eth).times(1e18).valueOf();
@@ -20,8 +20,8 @@ import { DirectSecp256k1Wallet } from '@cosmjs/proto-signing';
20
20
  import { GasPrice, SigningStargateClient, calculateFee, } from '@cosmjs/stargate';
21
21
  import { EthereumSigner } from '@dha-team/arbundles';
22
22
  import { BigNumber } from 'bignumber.js';
23
- import { defaultProdGatewayUrls } from '../../cli/constants.js';
24
23
  import { createAxiosInstance } from '../../utils/axiosClient.js';
24
+ import { defaultProdGatewayUrls } from '../../utils/common.js';
25
25
  import { sleep } from '../../utils/common.js';
26
26
  import { TurboWinstonLogger } from '../logger.js';
27
27
  function hasKyveTxResponse(response) {
@@ -1,19 +1,4 @@
1
- /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { defaultProdGatewayUrls } from '../../cli/constants.js';
1
+ import { defaultProdGatewayUrls } from '../../utils/common.js';
17
2
  import { TurboWinstonLogger } from '../logger.js';
18
3
  import { ETHToTokenAmount, EthereumToken } from './ethereum.js';
19
4
  export const POLToTokenAmount = ETHToTokenAmount;
@@ -16,7 +16,7 @@
16
16
  import { Connection, PublicKey, SystemProgram, Transaction, } from '@solana/web3.js';
17
17
  import { BigNumber } from 'bignumber.js';
18
18
  import bs58 from 'bs58';
19
- import { defaultProdGatewayUrls } from '../../cli/constants.js';
19
+ import { defaultProdGatewayUrls } from '../../utils/common.js';
20
20
  import { sleep } from '../../utils/common.js';
21
21
  import { TurboWinstonLogger } from '../logger.js';
22
22
  export const lamportToTokenAmount = (winston) => winston;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '1.28.3';
17
+ export const version = '1.29.0-alpha.1';
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { TokenConfig } from '../../types.js';
2
17
  import { EthereumToken } from './ethereum.js';
3
18
  export declare class BaseEthToken extends EthereumToken {
@@ -1 +1 @@
1
- {"version":3,"file":"baseEth.d.ts","sourceRoot":"","sources":["../../../../src/common/token/baseEth.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,qBAAa,YAAa,SAAQ,aAAa;gBACjC,EACV,MAAM,EACN,UAA+C,EAC/C,cAIC,GACF,GAAE,WAAgB;CAOpB"}
1
+ {"version":3,"file":"baseEth.d.ts","sourceRoot":"","sources":["../../../../src/common/token/baseEth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,qBAAa,YAAa,SAAQ,aAAa;gBACjC,EACV,MAAM,EACN,UAA+C,EAC/C,cAIC,GACF,GAAE,WAAgB;CAOpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ethereum.d.ts","sourceRoot":"","sources":["../../../../src/common/token/ethereum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,gBAAgB,QAAS,SAAS,CAAC,KAAK,oBAAQ,CAAC;AAC9D,eAAO,MAAM,gBAAgB,QAAS,SAAS,CAAC,KAAK,WACX,CAAC;AAE3C,qBAAa,aAAc,YAAW,UAAU;IAC9C,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;IAC9B,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,cAAc,EAAE,mBAAmB,CAAC;IAE9C,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC,eAAe,CAAC;gBAElC,EACV,MAAmC,EACnC,UAA4C,EAC5C,cAIC,GACF,GAAE,WAAgB;IAQN,iBAAiB,CAAC,EAC7B,MAAM,EACN,WAAW,EACX,MAAM,GACP,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAC/B,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAeW,uBAAuB,CAAC,EACnC,IAAI,GACL,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC;CAyBlB"}
1
+ {"version":3,"file":"ethereum.d.ts","sourceRoot":"","sources":["../../../../src/common/token/ethereum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAIxB,eAAO,MAAM,gBAAgB,QAAS,SAAS,CAAC,KAAK,oBAAQ,CAAC;AAC9D,eAAO,MAAM,gBAAgB,QAAS,SAAS,CAAC,KAAK,WACX,CAAC;AAE3C,qBAAa,aAAc,YAAW,UAAU;IAC9C,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;IAC9B,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,cAAc,EAAE,mBAAmB,CAAC;IAE9C,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC,eAAe,CAAC;gBAElC,EACV,MAAmC,EACnC,UAA4C,EAC5C,cAIC,GACF,GAAE,WAAgB;IAQN,iBAAiB,CAAC,EAC7B,MAAM,EACN,WAAW,EACX,MAAM,GACP,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAC/B,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAeW,uBAAuB,CAAC,EACnC,IAAI,GACL,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC;CAyBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"kyve.d.ts","sourceRoot":"","sources":["../../../../src/common/token/kyve.ts"],"names":[],"mappings":"AA0BA,OAAO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Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
  import { TokenConfig } from '../../types.js';
2
17
  import { EthereumToken } from './ethereum.js';
3
18
  export declare const POLToTokenAmount: (eth: import("bignumber.js").BigNumber.Value) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../src/common/token/polygon.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAoB,aAAa,EAAE,MAAM,eAAe,CAAC;AAEhE,eAAO,MAAM,gBAAgB,yDAAmB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,aAAa;gBACjC,EACV,MAAmC,EACnC,UAAuC,EACvC,cAIC,GACF,GAAE,WAAgB;CAGpB"}
1
+ {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../src/common/token/polygon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAoB,aAAa,EAAE,MAAM,eAAe,CAAC;AAEhE,eAAO,MAAM,gBAAgB,yDAAmB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,aAAa;gBACjC,EACV,MAAmC,EACnC,UAAuC,EACvC,cAIC,GACF,GAAE,WAAgB;CAGpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../../src/common/token/solana.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,UAAU,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,CAAC;AAC1E,eAAO,MAAM,gBAAgB,QAAS,SAAS,CAAC,KAAK,WACZ,CAAC;AAE1C,qBAAa,WAAY,YAAW,UAAU;IAC5C,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;IAC9B,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IACjC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,cAAc,EAAE,mBAAmB,CAAC;gBAElC,EACV,MAAmC,EACnC,UAA0C,EAC1C,cAIC,GACF,GAAE,WAAgB;IAQN,iBAAiB,CAAC,EAC7B,MAAM,EACN,WAAW,EACX,MAAM,GACP,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAC/B,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;YA4BY,QAAQ;IA2BT,uBAAuB,CAAC,EACnC,IAAI,GACL,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC;CA4ClB"}
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "1.28.3-alpha.1";
16
+ export declare const version = "1.28.3";
17
17
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ardrive/turbo-sdk",
3
- "version": "1.28.3",
3
+ "version": "1.29.0-alpha.1",
4
4
  "main": "./lib/cjs/node/index.js",
5
5
  "types": "./lib/types/node/index.d.ts",
6
6
  "module": "./lib/esm/node/index.js",