@ardrive/turbo-sdk 1.17.0 → 1.18.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.
Files changed (144) hide show
  1. package/LICENSE.md +201 -661
  2. package/README.md +2 -0
  3. package/bundles/web.bundle.min.js +62 -62
  4. package/lib/cjs/cli/commands/balance.js +10 -11
  5. package/lib/cjs/cli/commands/cryptoFund.js +10 -11
  6. package/lib/cjs/cli/commands/index.js +10 -11
  7. package/lib/cjs/cli/commands/price.js +10 -11
  8. package/lib/cjs/cli/commands/topUp.js +10 -11
  9. package/lib/cjs/cli/commands/uploadFile.js +10 -11
  10. package/lib/cjs/cli/commands/uploadFolder.js +10 -11
  11. package/lib/cjs/cli/constants.js +10 -11
  12. package/lib/cjs/cli/errors.js +10 -11
  13. package/lib/cjs/cli/options.js +22 -11
  14. package/lib/cjs/cli/types.js +10 -11
  15. package/lib/cjs/cli/utils.js +34 -18
  16. package/lib/cjs/common/index.js +10 -11
  17. package/lib/cjs/common/logger.js +10 -11
  18. package/lib/cjs/common/payment.js +10 -11
  19. package/lib/cjs/common/signer.js +11 -12
  20. package/lib/cjs/common/token/arweave.js +10 -11
  21. package/lib/cjs/common/token/ethereum.js +10 -11
  22. package/lib/cjs/common/token/kyve.js +11 -12
  23. package/lib/cjs/common/token/solana.js +10 -11
  24. package/lib/cjs/common/upload.js +10 -11
  25. package/lib/cjs/node/factory.js +11 -12
  26. package/lib/cjs/node/index.js +10 -11
  27. package/lib/cjs/node/signer.js +11 -12
  28. package/lib/cjs/node/upload.js +10 -11
  29. package/lib/cjs/utils/axiosClient.js +10 -11
  30. package/lib/cjs/utils/base64.js +10 -11
  31. package/lib/cjs/utils/common.js +11 -12
  32. package/lib/cjs/utils/errors.js +10 -11
  33. package/lib/cjs/utils/readableStream.js +10 -11
  34. package/lib/cjs/version.js +11 -12
  35. package/lib/cjs/web/factory.js +11 -12
  36. package/lib/cjs/web/index.js +10 -11
  37. package/lib/cjs/web/signer.js +11 -12
  38. package/lib/cjs/web/upload.js +10 -11
  39. package/lib/esm/cli/commands/balance.js +10 -11
  40. package/lib/esm/cli/commands/cryptoFund.js +10 -11
  41. package/lib/esm/cli/commands/index.js +10 -11
  42. package/lib/esm/cli/commands/price.js +10 -11
  43. package/lib/esm/cli/commands/topUp.js +10 -11
  44. package/lib/esm/cli/commands/uploadFile.js +10 -11
  45. package/lib/esm/cli/commands/uploadFolder.js +10 -11
  46. package/lib/esm/cli/constants.js +10 -11
  47. package/lib/esm/cli/errors.js +10 -11
  48. package/lib/esm/cli/options.js +22 -11
  49. package/lib/esm/cli/types.js +10 -11
  50. package/lib/esm/cli/utils.js +34 -18
  51. package/lib/esm/common/index.js +10 -11
  52. package/lib/esm/common/logger.js +10 -11
  53. package/lib/esm/common/payment.js +10 -11
  54. package/lib/esm/common/signer.js +11 -12
  55. package/lib/esm/common/token/arweave.js +10 -11
  56. package/lib/esm/common/token/ethereum.js +10 -11
  57. package/lib/esm/common/token/kyve.js +11 -12
  58. package/lib/esm/common/token/solana.js +10 -11
  59. package/lib/esm/common/upload.js +10 -11
  60. package/lib/esm/node/factory.js +11 -12
  61. package/lib/esm/node/index.js +10 -11
  62. package/lib/esm/node/signer.js +11 -12
  63. package/lib/esm/node/upload.js +10 -11
  64. package/lib/esm/utils/axiosClient.js +10 -11
  65. package/lib/esm/utils/base64.js +10 -11
  66. package/lib/esm/utils/common.js +11 -12
  67. package/lib/esm/utils/errors.js +10 -11
  68. package/lib/esm/utils/readableStream.js +10 -11
  69. package/lib/esm/version.js +11 -12
  70. package/lib/esm/web/factory.js +11 -12
  71. package/lib/esm/web/index.js +10 -11
  72. package/lib/esm/web/signer.js +11 -12
  73. package/lib/esm/web/upload.js +10 -11
  74. package/lib/types/cli/commands/balance.d.ts.map +1 -1
  75. package/lib/types/cli/commands/cryptoFund.d.ts.map +1 -1
  76. package/lib/types/cli/commands/index.d.ts +10 -11
  77. package/lib/types/cli/commands/index.d.ts.map +1 -1
  78. package/lib/types/cli/commands/price.d.ts.map +1 -1
  79. package/lib/types/cli/commands/topUp.d.ts.map +1 -1
  80. package/lib/types/cli/commands/uploadFile.d.ts.map +1 -1
  81. package/lib/types/cli/commands/uploadFolder.d.ts.map +1 -1
  82. package/lib/types/cli/constants.d.ts.map +1 -1
  83. package/lib/types/cli/errors.d.ts +10 -11
  84. package/lib/types/cli/errors.d.ts.map +1 -1
  85. package/lib/types/cli/options.d.ts +28 -11
  86. package/lib/types/cli/options.d.ts.map +1 -1
  87. package/lib/types/cli/types.d.ts +12 -11
  88. package/lib/types/cli/types.d.ts.map +1 -1
  89. package/lib/types/cli/utils.d.ts.map +1 -1
  90. package/lib/types/common/currency.d.ts +10 -11
  91. package/lib/types/common/currency.d.ts.map +1 -1
  92. package/lib/types/common/factory.d.ts +10 -11
  93. package/lib/types/common/factory.d.ts.map +1 -1
  94. package/lib/types/common/http.d.ts +10 -11
  95. package/lib/types/common/http.d.ts.map +1 -1
  96. package/lib/types/common/index.d.ts +10 -11
  97. package/lib/types/common/index.d.ts.map +1 -1
  98. package/lib/types/common/jwk.d.ts +10 -11
  99. package/lib/types/common/jwk.d.ts.map +1 -1
  100. package/lib/types/common/logger.d.ts +10 -11
  101. package/lib/types/common/logger.d.ts.map +1 -1
  102. package/lib/types/common/payment.d.ts.map +1 -1
  103. package/lib/types/common/signer.d.ts.map +1 -1
  104. package/lib/types/common/token/arweave.d.ts +10 -11
  105. package/lib/types/common/token/arweave.d.ts.map +1 -1
  106. package/lib/types/common/token/ethereum.d.ts +10 -11
  107. package/lib/types/common/token/ethereum.d.ts.map +1 -1
  108. package/lib/types/common/token/index.d.ts +10 -11
  109. package/lib/types/common/token/index.d.ts.map +1 -1
  110. package/lib/types/common/token/kyve.d.ts.map +1 -1
  111. package/lib/types/common/token/polygon.d.ts +10 -11
  112. package/lib/types/common/token/polygon.d.ts.map +1 -1
  113. package/lib/types/common/token/solana.d.ts +10 -11
  114. package/lib/types/common/token/solana.d.ts.map +1 -1
  115. package/lib/types/common/turbo.d.ts +10 -11
  116. package/lib/types/common/turbo.d.ts.map +1 -1
  117. package/lib/types/common/upload.d.ts +10 -11
  118. package/lib/types/common/upload.d.ts.map +1 -1
  119. package/lib/types/node/factory.d.ts.map +1 -1
  120. package/lib/types/node/index.d.ts +10 -11
  121. package/lib/types/node/index.d.ts.map +1 -1
  122. package/lib/types/node/signer.d.ts +11 -12
  123. package/lib/types/node/signer.d.ts.map +1 -1
  124. package/lib/types/node/upload.d.ts.map +1 -1
  125. package/lib/types/types.d.ts +11 -12
  126. package/lib/types/types.d.ts.map +1 -1
  127. package/lib/types/utils/axiosClient.d.ts +10 -11
  128. package/lib/types/utils/axiosClient.d.ts.map +1 -1
  129. package/lib/types/utils/base64.d.ts.map +1 -1
  130. package/lib/types/utils/common.d.ts.map +1 -1
  131. package/lib/types/utils/errors.d.ts +10 -11
  132. package/lib/types/utils/errors.d.ts.map +1 -1
  133. package/lib/types/utils/readableStream.d.ts +10 -11
  134. package/lib/types/utils/readableStream.d.ts.map +1 -1
  135. package/lib/types/version.d.ts +11 -12
  136. package/lib/types/version.d.ts.map +1 -1
  137. package/lib/types/web/factory.d.ts.map +1 -1
  138. package/lib/types/web/index.d.ts +10 -11
  139. package/lib/types/web/index.d.ts.map +1 -1
  140. package/lib/types/web/signer.d.ts +11 -12
  141. package/lib/types/web/signer.d.ts.map +1 -1
  142. package/lib/types/web/upload.d.ts +10 -11
  143. package/lib/types/web/upload.d.ts.map +1 -1
  144. package/package.json +3 -3
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import { Buffer } from 'node:buffer';
18
17
  import { pLimit } from 'plimit-lit';
@@ -1,20 +1,19 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
- import { EthereumSigner, HexSolanaSigner } from '@ar.io/arbundles';
16
+ import { EthereumSigner, HexSolanaSigner } from '@dha-team/arbundles';
18
17
  import { TurboBaseFactory } from '../common/factory.js';
19
18
  import { defaultTokenMap } from '../common/index.js';
20
19
  import { TurboAuthenticatedPaymentService } from '../common/payment.js';
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  export * from './factory.js';
18
17
  export * from './signer.js';
@@ -1,20 +1,19 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
- import { ArconnectSigner, ArweaveSigner, EthereumSigner, HexSolanaSigner, serializeTags, streamSigner, } from '@ar.io/arbundles';
16
+ import { ArconnectSigner, ArweaveSigner, EthereumSigner, HexSolanaSigner, serializeTags, streamSigner, } from '@dha-team/arbundles';
18
17
  import { Buffer } from 'node:buffer';
19
18
  import { TurboDataItemAbstractSigner } from '../common/signer.js';
20
19
  import { fromB64Url } from '../utils/base64.js';
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import { createReadStream, promises, statSync } from 'fs';
18
17
  import { lookup } from 'mime-types';
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import axios, { CanceledError } from 'axios';
18
17
  import axiosRetry from 'axios-retry';
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import { bufferTob64Url } from 'arweave/node/lib/utils.js';
18
17
  import { createHash } from 'crypto';
@@ -1,23 +1,22 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
- import { ArweaveSigner, EthereumSigner, HexSolanaSigner, } from '@ar.io/arbundles';
18
16
  import { Secp256k1HdWallet, makeCosmoshubPath } from '@cosmjs/amino';
19
17
  import { Slip10, Slip10Curve } from '@cosmjs/crypto';
20
18
  import { toHex } from '@cosmjs/encoding';
19
+ import { ArweaveSigner, EthereumSigner, HexSolanaSigner, } from '@dha-team/arbundles';
21
20
  import { isEthPrivateKey, isJWK, isKyvePrivateKey, } from '../types.js';
22
21
  export function sleep(ms) {
23
22
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  export class BaseError extends Error {
18
17
  constructor(message) {
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import { Buffer } from 'node:buffer';
18
17
  export async function readableStreamToBuffer({ stream, size, }) {
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
18
- export const version = '1.17.0';
17
+ export const version = '1.18.0-alpha.1';
@@ -1,20 +1,19 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
- import { EthereumSigner, HexSolanaSigner } from '@ar.io/arbundles';
16
+ import { EthereumSigner, HexSolanaSigner } from '@dha-team/arbundles';
18
17
  import { TurboBaseFactory } from '../common/factory.js';
19
18
  import { TurboAuthenticatedClient, TurboAuthenticatedPaymentService, defaultTokenMap, } from '../common/index.js';
20
19
  import { createTurboSigner } from '../utils/common.js';
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  export * from './factory.js';
18
17
  export * from './upload.js';
@@ -1,20 +1,19 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
- import { ArconnectSigner, ArweaveSigner, EthereumSigner, HexSolanaSigner, createData, } from '@ar.io/arbundles';
16
+ import { ArconnectSigner, ArweaveSigner, EthereumSigner, HexSolanaSigner, createData, } from '@dha-team/arbundles';
18
17
  import { TurboDataItemAbstractSigner } from '../common/signer.js';
19
18
  import { readableStreamToBuffer } from '../utils/readableStream.js';
20
19
  /**
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import { TurboAuthenticatedBaseUploadService, defaultUploadServiceURL, } from '../common/upload.js';
18
17
  import { isWebUploadFolderParams, } from '../types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/balance.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,iBAgCpD"}
1
+ {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/balance.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,iBAgCpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"cryptoFund.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/cryptoFund.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,iBAqD1D"}
1
+ {"version":3,"file":"cryptoFund.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/cryptoFund.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOhD,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,iBAqD1D"}
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  export * from './balance.js';
18
17
  export * from './cryptoFund.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/price.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBA8ChD"}
1
+ {"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/price.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBA8ChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"topUp.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/topUp.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAgB3C,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBA4DhD"}
1
+ {"version":3,"file":"topUp.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/topUp.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAgB3C,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBA4DhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"uploadFile.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/uploadFile.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB1E"}
1
+ {"version":3,"file":"uploadFile.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/uploadFile.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"uploadFolder.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/uploadFolder.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAuBf"}
1
+ {"version":3,"file":"uploadFolder.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/uploadFolder.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAuBf"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/cli/constants.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAIzD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/cli/constants.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAIzD,CAAC"}
@@ -1,18 +1,17 @@
1
1
  /**
2
- * Copyright (C) 2022-2024 Permanent Data Solutions, Inc. All Rights Reserved.
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
3
  *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
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
8
7
  *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
8
+ * http://www.apache.org/licenses/LICENSE-2.0
13
9
  *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
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.
16
15
  */
17
16
  import { BaseError } from '../utils/errors.js';
18
17
  export declare class NoWalletProvidedError extends BaseError {
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/cli/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,qBAAa,qBAAsB,SAAQ,SAAS;;CAInD"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/cli/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,qBAAa,qBAAsB,SAAQ,SAAS;;CAInD"}