Skip to content

Commit

Permalink
Merge pull request #181 from ardriveapp/PE-6769-dha-arbundles
Browse files Browse the repository at this point in the history
refactor: use @dha-team/arbundles PE-6769
  • Loading branch information
fedellen authored Sep 19, 2024
2 parents 4c2383f + 3549574 commit bfcfe19
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"docs": "markdown-toc-gen insert README.md"
},
"dependencies": {
"@ar.io/arbundles": "^1.0.1",
"@dha-team/arbundles": "^1.0.1",
"@cosmjs/amino": "^0.32.4",
"@cosmjs/crypto": "^0.32.4",
"@cosmjs/encoding": "^0.32.4",
Expand Down
2 changes: 1 addition & 1 deletion src/common/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EthereumSigner, HexSolanaSigner } from '@ar.io/arbundles';
import { pubkeyToAddress } from '@cosmjs/amino';
import { Secp256k1 } from '@cosmjs/crypto';
import { toBase64 } from '@cosmjs/encoding';
import { EthereumSigner, HexSolanaSigner } from '@dha-team/arbundles';
import { computePublicKey } from '@ethersproject/signing-key';
import { KyveSDK } from '@kyvejs/sdk/dist/sdk.js';
import bs58 from 'bs58';
Expand Down
2 changes: 1 addition & 1 deletion src/common/token/kyve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EthereumSigner } from '@ar.io/arbundles';
import { Secp256k1HdWallet, makeCosmoshubPath } from '@cosmjs/amino';
import { Slip10, Slip10Curve } from '@cosmjs/crypto';
import { toHex } from '@cosmjs/encoding';
import { EthereumSigner } from '@dha-team/arbundles';
import { AxiosResponse } from 'axios';
import { BigNumber } from 'bignumber.js';

Expand Down
2 changes: 1 addition & 1 deletion src/node/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EthereumSigner, HexSolanaSigner } from '@ar.io/arbundles';
import { EthereumSigner, HexSolanaSigner } from '@dha-team/arbundles';

import { TurboBaseFactory } from '../common/factory.js';
import { defaultTokenMap } from '../common/index.js';
Expand Down
2 changes: 1 addition & 1 deletion src/node/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
HexSolanaSigner,
serializeTags,
streamSigner,
} from '@ar.io/arbundles';
} from '@dha-team/arbundles';
import { Buffer } from 'node:buffer';
import { Readable } from 'node:stream';

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
DataItemCreateOptions,
EthereumSigner,
HexSolanaSigner,
} from '@ar.io/arbundles';
} from '@dha-team/arbundles';
import { IAxiosRetryConfig } from 'axios-retry';
import { BigNumber } from 'bignumber.js';
import { Readable } from 'node:stream';
Expand Down
8 changes: 4 additions & 4 deletions src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Secp256k1HdWallet, makeCosmoshubPath } from '@cosmjs/amino';
import { Slip10, Slip10Curve } from '@cosmjs/crypto';
import { toHex } from '@cosmjs/encoding';
import {
ArweaveSigner,
EthereumSigner,
HexSolanaSigner,
} from '@ar.io/arbundles';
import { Secp256k1HdWallet, makeCosmoshubPath } from '@cosmjs/amino';
import { Slip10, Slip10Curve } from '@cosmjs/crypto';
import { toHex } from '@cosmjs/encoding';
} from '@dha-team/arbundles';

import {
TokenType,
Expand Down
2 changes: 1 addition & 1 deletion src/web/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { EthereumSigner, HexSolanaSigner } from '@ar.io/arbundles';
import { EthereumSigner, HexSolanaSigner } from '@dha-team/arbundles';

import { TurboBaseFactory } from '../common/factory.js';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/web/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
EthereumSigner,
HexSolanaSigner,
createData,
} from '@ar.io/arbundles';
} from '@dha-team/arbundles';

import { TurboDataItemAbstractSigner } from '../common/signer.js';
import {
Expand Down
2 changes: 1 addition & 1 deletion tests/turbo.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
EthereumSigner,
HexSolanaSigner,
createData,
} from '@ar.io/arbundles';
} from '@dha-team/arbundles';
import { CanceledError } from 'axios';
import { BigNumber } from 'bignumber.js';
import { expect } from 'chai';
Expand Down
2 changes: 1 addition & 1 deletion tests/turbo.web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
EthereumSigner,
HexSolanaSigner,
createData,
} from '@ar.io/arbundles';
} from '@dha-team/arbundles';
import { CanceledError } from 'axios';
import { BigNumber } from 'bignumber.js';
import { expect } from 'chai';
Expand Down
48 changes: 24 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069"
integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==

"@ar.io/arbundles@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@ar.io/arbundles/-/arbundles-1.0.1.tgz#f080b5caa51f221afc3b890cddd92c193b1be8fc"
integrity sha512-JqnRJYprFXaZ7z+JV0FXCJj9214vON+FeLOtKtSWP1nUaBNgtA2eaJ6/Yi5n3sn9E89UHvknZFUTG7VswLXzJA==
dependencies:
"@ethersproject/bytes" "^5.7.0"
"@ethersproject/hash" "^5.7.0"
"@ethersproject/providers" "^5.7.2"
"@ethersproject/signing-key" "^5.7.0"
"@ethersproject/transactions" "^5.7.0"
"@ethersproject/wallet" "^5.7.0"
"@noble/ed25519" "^1.6.1"
arweave "^1.15.1"
base64url "^3.0.1"
bs58 "^4.0.1"
keccak "^3.0.2"
secp256k1 "^5.0.0"
optionalDependencies:
"@randlabs/myalgo-connect" "^1.1.2"
algosdk "^1.13.1"
arweave-stream-tx "^1.1.0"
multistream "^4.1.0"
tmp-promise "^3.0.2"

"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.16.7", "@babel/code-frame@^7.21.4", "@babel/code-frame@^7.22.5":
version "7.22.10"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.10.tgz#1c20e612b768fefa75f6e90d6ecb86329247f0a3"
Expand Down Expand Up @@ -488,6 +464,30 @@
enabled "2.0.x"
kuler "^2.0.0"

"@dha-team/arbundles@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@dha-team/arbundles/-/arbundles-1.0.1.tgz#5e81039b74da241cf0e2b074ae77e489eec7887d"
integrity sha512-cgVxhZJLK1HG2+vcRBZ0CYGpxz7mA2QvLaspcw2gOzb2V/ZUxlifUu1aufBK3iz63Ww2OhgO0j9DstRJqrG1uA==
dependencies:
"@ethersproject/bytes" "^5.7.0"
"@ethersproject/hash" "^5.7.0"
"@ethersproject/providers" "^5.7.2"
"@ethersproject/signing-key" "^5.7.0"
"@ethersproject/transactions" "^5.7.0"
"@ethersproject/wallet" "^5.7.0"
"@noble/ed25519" "^1.6.1"
arweave "^1.15.1"
base64url "^3.0.1"
bs58 "^4.0.1"
keccak "^3.0.2"
secp256k1 "^5.0.0"
optionalDependencies:
"@randlabs/myalgo-connect" "^1.1.2"
algosdk "^1.13.1"
arweave-stream-tx "^1.1.0"
multistream "^4.1.0"
tmp-promise "^3.0.2"

"@esbuild-plugins/node-modules-polyfill@^0.2.2":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@esbuild-plugins/node-modules-polyfill/-/node-modules-polyfill-0.2.2.tgz#cefa3dc0bd1c16277a8338b52833420c94987327"
Expand Down

0 comments on commit bfcfe19

Please sign in to comment.