Skip to content

Commit

Permalink
Revert "build: Override near-api-js in nested dependencies."
Browse files Browse the repository at this point in the history
This reverts commit a539f14.
  • Loading branch information
paouvrard committed Aug 20, 2024
1 parent 33cbc1a commit 05841d3
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 10 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,5 @@
"util": "0.12.5",
"webpack": "5.75.0",
"webpack-merge": "5.8.0"
},
"resolutions": {
"near-api-js": "4.0.3"
}
}
6 changes: 3 additions & 3 deletions packages/ethereum-wallets/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
} from "near-api-js/lib/providers/provider";
import { JsonRpcProvider } from "near-api-js/lib/providers";
import {
// encodeTransaction,
encodeTransaction,
stringifyJsonOrBytes,
} from "near-api-js/lib/transaction";
import { parseRpcError } from "near-api-js/lib/utils/rpc_errors";
Expand Down Expand Up @@ -546,10 +546,11 @@ const EthereumWallets: WalletBehaviourFactory<
);
const results: Array<FinalExecutionOutcome> = [];
for (let i = 0; i < signedTransactions.length; i += 1) {
/*
const nearTx = await nearProvider.sendTransaction(
signedTransactions[i]
);
/*
*/
const bytes = encodeTransaction(signedTransactions[i]);
const nearTx: FinalExecutionOutcome = await nearProvider.sendJsonRpc(
"send_tx",
Expand All @@ -558,7 +559,6 @@ const EthereumWallets: WalletBehaviourFactory<
wait_until: "EXECUTED_OPTIMISTIC",
}
);
*/
logger.log("NEAR transaction:", nearTx);
if (
typeof nearTx.status === "object" &&
Expand Down
193 changes: 189 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4223,6 +4223,25 @@
uint8-varint "^2.0.1"
uint8arrays "^5.0.0"

"@near-js/[email protected]":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@near-js/accounts/-/accounts-1.0.4.tgz#b699dc1c63ffccc1598481b4260dfaf2507f0a69"
integrity sha512-6zgSwq/rQ9ggPOIkGUx9RoEurbJiojqA/axeh6o1G+46GqUBI7SUcDooyVvZjeiOvUPObnTQptDYpbV+XZji8g==
dependencies:
"@near-js/crypto" "1.2.1"
"@near-js/providers" "0.1.1"
"@near-js/signers" "0.1.1"
"@near-js/transactions" "1.1.2"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.1.0"
ajv "8.11.2"
ajv-formats "2.1.1"
bn.js "5.2.1"
borsh "1.0.0"
depd "2.0.0"
lru_map "0.4.1"
near-abi "0.1.1"

"@near-js/[email protected]", "@near-js/accounts@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@near-js/accounts/-/accounts-1.2.1.tgz#6e5c0315a07997bbaacbe7b9021ac23974a80ea0"
Expand All @@ -4240,6 +4259,18 @@
lru_map "0.4.1"
near-abi "0.1.1"

"@near-js/[email protected]":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-1.2.1.tgz#aa18bed171e68653dae9f82114636eba34ece32a"
integrity sha512-iJOHaGKvdudYfR8nEtRhGlgcTEHeVmxMoT0JVXmuP3peG96v/sSnA03CE6MZBeCC8txKAQOffagxE7oU6hJp9g==
dependencies:
"@near-js/types" "0.0.4"
"@near-js/utils" "0.1.0"
"@noble/curves" "1.2.0"
bn.js "5.2.1"
borsh "1.0.0"
randombytes "2.1.0"

"@near-js/[email protected]", "@near-js/crypto@^1.2.4":
version "1.2.4"
resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-1.2.4.tgz#fad977d6a6d2c0c836ef42db8c8d355c1f433ec0"
Expand All @@ -4259,6 +4290,14 @@
"@near-js/crypto" "1.2.4"
"@near-js/keystores" "0.0.12"

"@near-js/[email protected]":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@near-js/keystores-browser/-/keystores-browser-0.0.9.tgz#4d6211ad617613124aeee78ede5771b153e3bcdd"
integrity sha512-JzPj+RHJN2G3CEm/LyfbtZDQy/wxgOlqfh52voqPGijUHg93b27KBqtZShazAgJNkhzRbWcoluWQnd2jL8vF7A==
dependencies:
"@near-js/crypto" "1.2.1"
"@near-js/keystores" "0.0.9"

"@near-js/[email protected]":
version "0.0.12"
resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.12.tgz#81efaa707faf0cdfc91075920a66be008fbfed8a"
Expand All @@ -4267,6 +4306,14 @@
"@near-js/crypto" "1.2.4"
"@near-js/keystores" "0.0.12"

"@near-js/[email protected]":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.9.tgz#c2fd2f5bfbca1c75699dd7324e300cfd12e790ed"
integrity sha512-2B9MYz6uIhysG1fhQSjvaPYCM7gM+UAeDchX0J8QRauXIeN8TGzpcdgkdkMUnWNTIdt3Iblh0ZuCs+FY02dTXg==
dependencies:
"@near-js/crypto" "1.2.1"
"@near-js/keystores" "0.0.9"

"@near-js/[email protected]":
version "0.0.12"
resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.12.tgz#747101d9df8fe55870edd317ab3300a5bd33119d"
Expand All @@ -4275,6 +4322,28 @@
"@near-js/crypto" "1.2.4"
"@near-js/types" "0.2.1"

"@near-js/[email protected]":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.9.tgz#768aaaab1beb7f797432513cb1bbf9430e305a85"
integrity sha512-j8ySgVEcm2Gg6zxkSdadNtPlIqhJZdPGfWWM3tPtEoowNS9snhwZn5NRFPrgmX0+MzpF7E091CRcY90MvRVhsg==
dependencies:
"@near-js/crypto" "1.2.1"
"@near-js/types" "0.0.4"

"@near-js/[email protected]":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.1.1.tgz#7489eb5a4248562fe98fdbc4cb55ea3f6d787e0a"
integrity sha512-0M/Vz2Ac34ShKVoe2ftVJ5Qg4eSbEqNXDbCDOdVj/2qbLWZa7Wpe+me5ei4TMY2ZhGdawhgJUPrYwdJzOCyf8w==
dependencies:
"@near-js/transactions" "1.1.2"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.1.0"
bn.js "5.2.1"
borsh "1.0.0"
http-errors "1.7.2"
optionalDependencies:
node-fetch "2.6.7"

"@near-js/[email protected]":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.2.2.tgz#672f914e97b2de94905e46efe724470ae9ea31a2"
Expand All @@ -4288,6 +4357,15 @@
optionalDependencies:
node-fetch "2.6.7"

"@near-js/[email protected]":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.1.1.tgz#6d32b262eac9b03fab5fc1ee93d2c4055c86980f"
integrity sha512-focJgs04dBUfawMnyGg3yIjaMawuVz2OeLRKC4t5IQDmO4PLfdIraEuwgS7tckMq3GdrJ7nqkwkpSNYpdt7I5Q==
dependencies:
"@near-js/crypto" "1.2.1"
"@near-js/keystores" "0.0.9"
"@noble/hashes" "1.3.3"

"@near-js/[email protected]":
version "0.1.4"
resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.1.4.tgz#76b8d29fd9577171f546323cc95502bcf80d00ec"
Expand All @@ -4297,6 +4375,19 @@
"@near-js/keystores" "0.0.12"
"@noble/hashes" "1.3.3"

"@near-js/[email protected]":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-1.1.2.tgz#7dec18b463cd336e325ee61b1e1c39a6192d9e81"
integrity sha512-AqYA56ncwgrWjIu+bNaWjTPRZb0O+SfpWIP7U+1FKNKxNYMCtkt6zp7SlQeZn743shKVq9qMzA9+ous/KCb0QQ==
dependencies:
"@near-js/crypto" "1.2.1"
"@near-js/signers" "0.1.1"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.1.0"
"@noble/hashes" "1.3.3"
bn.js "5.2.1"
borsh "1.0.0"

"@near-js/[email protected]":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-1.2.2.tgz#7302f8dd7dc3ea87cd2ebafa0b86bed12232a034"
Expand All @@ -4309,11 +4400,29 @@
"@noble/hashes" "1.3.3"
borsh "1.0.0"

"@near-js/[email protected]":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@near-js/types/-/types-0.0.4.tgz#d941689df41c850aeeeaeb9d498418acec515404"
integrity sha512-8TTMbLMnmyG06R5YKWuS/qFG1tOA3/9lX4NgBqQPsvaWmDsa+D+QwOkrEHDegped0ZHQwcjAXjKML1S1TyGYKg==
dependencies:
bn.js "5.2.1"

"@near-js/[email protected]", "@near-js/types@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@near-js/types/-/types-0.2.1.tgz#a298f0e70dbe059ee8c762dfac05c2eae3e0ae0e"
integrity sha512-YygQEGMdFe6d2e/6dtNZer9paH396XeAdIKEhY/RPXDUnjDdfiDQ5DK4mM130sEeID2bAH9X1LQ+7vXGRjvyWw==

"@near-js/[email protected]":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@near-js/utils/-/utils-0.1.0.tgz#1368f59008c39df1e903bd3e0f308eedcdf25c1d"
integrity sha512-kOVAXmJzaC8ElJD3RLEoBuqOK+d5s7jc0JkvhyEtbuEmXYHHAy9Q17/YkDcX9tyr01L85iOt66z0cODqzgtQwA==
dependencies:
"@near-js/types" "0.0.4"
bn.js "5.2.1"
bs58 "4.0.0"
depd "2.0.0"
mustache "4.0.0"

"@near-js/[email protected]", "@near-js/utils@^0.2.2":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@near-js/utils/-/utils-0.2.2.tgz#a42c29db9ccd5a02ad583319028fdb7231821ab2"
Expand All @@ -4324,6 +4433,21 @@
depd "2.0.0"
mustache "4.0.0"

"@near-js/[email protected]":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-1.1.1.tgz#e66e8d10fb51f71f7cb722bdff63fb98e2b0d486"
integrity sha512-NnoJKtogBQ7Qz+AP+LdF70BP8Az6UXQori7OjPqJLMo73bn6lh5Ywvegwd1EB7ZEVe4BRt9+f9QkbU5M8ANfAw==
dependencies:
"@near-js/accounts" "1.0.4"
"@near-js/crypto" "1.2.1"
"@near-js/keystores" "0.0.9"
"@near-js/signers" "0.1.1"
"@near-js/transactions" "1.1.2"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.1.0"
bn.js "5.2.1"
borsh "1.0.0"

"@near-js/[email protected]":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-1.2.2.tgz#c04e3e515bd3ca93bafbb761c9770d2fdc078837"
Expand Down Expand Up @@ -8900,6 +9024,16 @@ ajv-keywords@^5.1.0:
dependencies:
fast-deep-equal "^3.1.3"

[email protected]:
version "8.11.2"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.2.tgz#aecb20b50607acf2569b6382167b65a96008bb78"
integrity sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg==
dependencies:
fast-deep-equal "^3.1.1"
json-schema-traverse "^1.0.0"
require-from-string "^2.0.2"
uri-js "^4.2.2"

[email protected]:
version "8.12.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1"
Expand Down Expand Up @@ -17621,7 +17755,7 @@ [email protected]:
dependencies:
"@types/json-schema" "^7.0.11"

[email protected], near-api-js@^3.0.0, near-api-js@^4.0.0:
[email protected], near-api-js@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-4.0.3.tgz#7b31e8d86224acf526cda7c4e5e57f44b23c4719"
integrity sha512-NNxIUOGjTafDp65WKRmRqjOTdn4gukse5zFzo2YS/1YJMac++WR05mEsiAB2Aj54rDb/PL8TObQZgHtSs/Pjvg==
Expand All @@ -17644,6 +17778,32 @@ [email protected], near-api-js@^3.0.0, near-api-js@^4.0.0:
near-abi "0.1.1"
node-fetch "2.6.7"

near-api-js@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-3.0.4.tgz#5ee094ce53e30239cc817ca942ec3e9739296dbb"
integrity sha512-qKWjnugoB7kSFhzZ5GXyH/eABspCQYWBmWnM4hpV5ctnQBt89LqgEu9yD1z4sa89MvUu8BuCxwb1m00BE8iofg==
dependencies:
"@near-js/accounts" "1.0.4"
"@near-js/crypto" "1.2.1"
"@near-js/keystores" "0.0.9"
"@near-js/keystores-browser" "0.0.9"
"@near-js/keystores-node" "0.0.9"
"@near-js/providers" "0.1.1"
"@near-js/signers" "0.1.1"
"@near-js/transactions" "1.1.2"
"@near-js/types" "0.0.4"
"@near-js/utils" "0.1.0"
"@near-js/wallet-account" "1.1.1"
"@noble/curves" "1.2.0"
ajv "8.11.2"
ajv-formats "2.1.1"
bn.js "5.2.1"
borsh "1.0.0"
depd "2.0.0"
http-errors "1.7.2"
near-abi "0.1.1"
node-fetch "2.6.7"

near-hd-key@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/near-hd-key/-/near-hd-key-1.2.1.tgz#f508ff15436cf8a439b543220f3cc72188a46756"
Expand Down Expand Up @@ -21632,7 +21792,16 @@ string-range@~1.2, string-range@~1.2.1:
resolved "https://registry.yarnpkg.com/string-range/-/string-range-1.2.2.tgz#a893ed347e72299bc83befbbf2a692a8d239d5dd"
integrity sha512-tYft6IFi8SjplJpxCUxyqisD3b+R2CSkomrtJYCkvuf1KuCAWgz7YXt4O0jip7efpfCemwHEzTEAO8EuOYgh3w==

"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -21731,7 +21900,14 @@ string_decoder@~1.1.1:
dependencies:
safe-buffer "~5.1.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -23544,7 +23720,7 @@ wordwrap@^1.0.0:
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand All @@ -23562,6 +23738,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
Expand Down

0 comments on commit 05841d3

Please sign in to comment.