diff --git a/package.json b/package.json index e2e97d78..4c2b27fb 100755 --- a/package.json +++ b/package.json @@ -33,6 +33,8 @@ "keen-slider": "^6.8.3", "metro-config": "^0.72.2", "moment": "^2.29.4", + "near-api-js": "^2.1.4", + "near-seed-phrase": "^0.2.0", "patch-package": "^6.4.7", "postcss-normalize": "^10.0.1", "process": "^0.11.10", diff --git a/src/assets/images/IconSolana.png b/src/assets/images/IconSolana.png index 7e2a75ef..aea65a32 100644 Binary files a/src/assets/images/IconSolana.png and b/src/assets/images/IconSolana.png differ diff --git a/src/assets/images/IconSolanaVector.png b/src/assets/images/IconSolanaVector.png index e63d9cb6..f29c3da0 100644 Binary files a/src/assets/images/IconSolanaVector.png and b/src/assets/images/IconSolanaVector.png differ diff --git a/src/eclipse-wallet-adapter/constants/token-constants.js b/src/eclipse-wallet-adapter/constants/token-constants.js index 718a094e..d8614b98 100644 --- a/src/eclipse-wallet-adapter/constants/token-constants.js +++ b/src/eclipse-wallet-adapter/constants/token-constants.js @@ -1,10 +1,9 @@ const { PublicKey } = require('@solana/web3.js'); const SOL_DECIMALS = 6; -const SOL_SYMBOL = 'SOL'; -const SOL_NAME = 'Solana'; -const SOL_LOGO = - 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png'; +const SOL_SYMBOL = 'ETH'; +const SOL_NAME = 'Eclipse'; +const SOL_LOGO = 'https://i.imgur.com/y0JEPfQ.png'; const SOL_ADDRESS = 'So11111111111111111111111111111111111111112'; const USDC_ADDRESS = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'; diff --git a/src/eclipse-wallet-adapter/services/network-service.js b/src/eclipse-wallet-adapter/services/network-service.js index fd1cb95b..e9036627 100644 --- a/src/eclipse-wallet-adapter/services/network-service.js +++ b/src/eclipse-wallet-adapter/services/network-service.js @@ -1,122 +1,78 @@ let promise; const networkData = [ - { - "id": "ethereum-mainnet", - "blockchain": "ethereum", - "environment": "mainnet", - "name": "Ethereum", - "icon": "https://assets-cdn.trustwallet.com/blockchains/ethereum/info/logo.png", - "currency": { - "symbol": "ETH", - "decimals": 18 - }, - "config": { - "chainId": 1, - "openSeaUrl": "https://api.opensea.io/api" - } + { + id: 'solana-devnet', + blockchain: 'solana', + environment: 'devnet', + name: 'Eclipse Mainnet', + icon: 'https://assets-cdn.trustwallet.com/blockchains/solana/info/logo.png', + currency: { + symbol: 'ETH', + decimals: 9, }, - { - "id": "ethereum-goerli", - "blockchain": "ethereum", - "environment": "goerli", - "name": "Ethereum Goerli", - "icon": "https://assets-cdn.trustwallet.com/blockchains/ethereum/info/logo.png", - "currency": { - "symbol": "ETH", - "decimals": 18 - }, - "config": { - "chainId": 5, - "openSeaUrl": "https://testnets-api.opensea.io/api" - } + config: { + nodeUrl: 'https://staging-rpc.dev.eclipsenetwork.xyz', }, - { - "id": "solana-mainnet", - "blockchain": "solana", - "environment": "mainnet", - "name": "Solana", - "icon": "https://assets-cdn.trustwallet.com/blockchains/solana/info/logo.png", - "currency": { - "symbol": "SOL", - "decimals": 9 - }, - "config": { - "nodeUrl": "https://solana-api.syndica.io/access-token/GihB7MDgiHYn8jy0JKZTVEVHzMBKSKPZnrMxMNxyb3h9Wf637lklI4AxyTdNlw8Z/rpc" - } + }, + { + id: 'solana-testnet', + blockchain: 'solana', + environment: 'testnet', + name: 'Eclipse Testnet', + icon: 'https://assets-cdn.trustwallet.com/blockchains/solana/info/logo.png', + currency: { + symbol: 'ETH', + decimals: 9, }, - { - "id": "solana-testnet", - "blockchain": "solana", - "environment": "testnet", - "name": "Solana Testnet", - "icon": "https://assets-cdn.trustwallet.com/blockchains/solana/info/logo.png", - "currency": { - "symbol": "SOL", - "decimals": 9 - }, - "config": { - "nodeUrl": "https://api.testnet.solana.com" - } + config: { + nodeUrl: 'https://api.testnet.solana.com', }, - { - "id": "solana-devnet", - "blockchain": "solana", - "environment": "devnet", - "name": "Solana Devnet", - "icon": "https://assets-cdn.trustwallet.com/blockchains/solana/info/logo.png", - "currency": { - "symbol": "SOL", - "decimals": 9 - }, - "config": { - "nodeUrl": "https://api.devnet.solana.com" - } + }, + { + id: 'ethereum-mainnet', + blockchain: 'ethereum', + environment: 'mainnet', + name: 'Ethereum', + icon: 'https://assets-cdn.trustwallet.com/blockchains/ethereum/info/logo.png', + currency: { + symbol: 'ETH', + decimals: 18, }, - { - "id": "near-mainnet", - "blockchain": "near", - "environment": "mainnet", - "name": "Near", - "icon": "https://assets-cdn.trustwallet.com/blockchains/near/info/logo.png", - "currency": { - "symbol": "NEAR", - "decimals": 24 - }, - "config": { - "nodeUrl": "https://rpc.mainnet.near.org", - "archivalNodeUrl": "https://archival-rpc.mainnet.near.org", - "helperUrl": "https://helper.mainnet.near.org", - "indexerUrl": "https://api.kitwallet.app", - "nearTokenId": "wrap.near", - "refFinance": { - "apiUrl": "https://indexer.ref.finance", - "contractId": "v2.ref-finance.near" - } - } + config: { + chainId: 1, + openSeaUrl: 'https://api.opensea.io/api', }, - { - "id": "near-testnet", - "blockchain": "near", - "environment": "testnet", - "name": "Near Testnet", - "icon": "https://assets-cdn.trustwallet.com/blockchains/near/info/logo.png", - "currency": { - "symbol": "NEAR", - "decimals": 24 - }, - "config": { - "nodeUrl": "https://rpc.testnet.near.org", - "archivalNodeUrl": "https://archival-rpc.testnet.near.org", - "helperUrl": "https://helper.testnet.near.org", - "indexerUrl": "https://testnet-api.kitwallet.app", - "nearTokenId": "wrap.testnet", - "refFinance": { - "apiUrl": "https://dev-indexer.ref-finance.com", - "contractId": "ref-finance-101.testnet" - } - } - } + }, + { + id: 'ethereum-goerli', + blockchain: 'ethereum', + environment: 'goerli', + name: 'Ethereum Goerli', + icon: 'https://assets-cdn.trustwallet.com/blockchains/ethereum/info/logo.png', + currency: { + symbol: 'ETH', + decimals: 18, + }, + config: { + chainId: 5, + openSeaUrl: 'https://testnets-api.opensea.io/api', + }, + }, + // { + // "id": "solana-mainnet", + // "blockchain": "solana", + // "environment": "mainnet", + // "name": "Solana", + // "icon": "https://assets-cdn.trustwallet.com/blockchains/solana/info/logo.png", + // "currency": { + // "symbol": "SOL", + // "decimals": 9 + // }, + // "config": { + // "nodeUrl": "https://solana-api.syndica.io/access-token/GihB7MDgiHYn8jy0JKZTVEVHzMBKSKPZnrMxMNxyb3h9Wf637lklI4AxyTdNlw8Z/rpc" + // } + // }, ]; const getNetworks = async () => { diff --git a/yarn.lock b/yarn.lock index f467a347..bfb5b14f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3449,6 +3449,126 @@ prop-types "^15.8.1" react-is "^18.2.0" +"@near-js/accounts@0.1.4": + version "0.1.4" + resolved "https://registry.yarnpkg.com/@near-js/accounts/-/accounts-0.1.4.tgz#ff557dc65c5064ee4ac2dbfdd39aa3e35ae4d222" + integrity sha512-zHFmL4OUZ4qHXOE+dDBkYgTNHLWC5RmYUVp9LiuGciO5zFPp7WlxmowJL0QjgXqV1w+dNXq3mgmkfAgYVS8Xjw== + dependencies: + "@near-js/crypto" "0.0.5" + "@near-js/providers" "0.0.7" + "@near-js/signers" "0.0.5" + "@near-js/transactions" "0.2.1" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.0.4" + ajv "^8.11.2" + ajv-formats "^2.1.1" + bn.js "5.2.1" + borsh "^0.7.0" + depd "^2.0.0" + near-abi "0.1.1" + +"@near-js/crypto@0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@near-js/crypto/-/crypto-0.0.5.tgz#3191cdc8dcdba572bdead482b5d38f364bdcc2a0" + integrity sha512-nbQ971iYES5Spiolt+p568gNuZ//HeMHm3qqT3xT+i8ZzgbC//l6oRf48SUVTPAboQ1TJ5dW/NqcxOY0pe7b4g== + dependencies: + "@near-js/types" "0.0.4" + bn.js "5.2.1" + borsh "^0.7.0" + tweetnacl "^1.0.1" + +"@near-js/keystores-browser@0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@near-js/keystores-browser/-/keystores-browser-0.0.5.tgz#7e94181ca5c4fbad8b8e67cda16888b4ccafae61" + integrity sha512-mHF3Vcvsr7xnkaM/reOyxtykbE3OWKV6vQzqyTH2tZYT2OTEnj0KhRT9BCFC0Ra67K1zQLbg49Yc/kDCc5qupA== + dependencies: + "@near-js/crypto" "0.0.5" + "@near-js/keystores" "0.0.5" + +"@near-js/keystores-node@0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@near-js/keystores-node/-/keystores-node-0.0.5.tgz#f474dabbb84590896dd8861bb33a7304580e0d99" + integrity sha512-BYmWyGNydfAqi7eYA1Jo8zULL13cxejD2VBr0BBIXx5bJ+BO4TLecsY1xdTBEq06jyWXHa7kV4h8BJzAjvpTLg== + dependencies: + "@near-js/crypto" "0.0.5" + "@near-js/keystores" "0.0.5" + +"@near-js/keystores@0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@near-js/keystores/-/keystores-0.0.5.tgz#44ec009b23c552809b6f9bc9a83632f79de4112b" + integrity sha512-kxqV+gw/3L8/axe9prhlU+M0hfybkxX54xfI0EEpWP2QiUV+qw+jkKolYIbdk5tdEZrGf9jHawh1yFtwP7APPQ== + dependencies: + "@near-js/crypto" "0.0.5" + "@near-js/types" "0.0.4" + +"@near-js/providers@0.0.7": + version "0.0.7" + resolved "https://registry.yarnpkg.com/@near-js/providers/-/providers-0.0.7.tgz#b2189e5d14d1afb1798c91c59e6dfb9bb476f46b" + integrity sha512-qj16Ey+vSw7lHE85xW+ykYJoLPr4A6Q/TsfpwhJLS6zBInSC6sKVqPO1L8bK4VA/yB7V7JJPor9UVCWgRXdNEA== + dependencies: + "@near-js/transactions" "0.2.1" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.0.4" + bn.js "5.2.1" + borsh "^0.7.0" + http-errors "^1.7.2" + optionalDependencies: + node-fetch "^2.6.1" + +"@near-js/signers@0.0.5": + version "0.0.5" + resolved "https://registry.yarnpkg.com/@near-js/signers/-/signers-0.0.5.tgz#f3f946440314bf039dd32154928163ceaec8bedb" + integrity sha512-XJjYYatehxHakHa7WAoiQ8uIBSWBR2EnO4GzlIe8qpWL+LoH4t68MSezC1HwT546y9YHIvePjwDrBeYk8mg20w== + dependencies: + "@near-js/crypto" "0.0.5" + "@near-js/keystores" "0.0.5" + js-sha256 "^0.9.0" + +"@near-js/transactions@0.2.1": + version "0.2.1" + resolved "https://registry.yarnpkg.com/@near-js/transactions/-/transactions-0.2.1.tgz#ab6d246e94e6f64b4e5a651fe6e9de03dd573521" + integrity sha512-V9tXzkICDPruSxihKXkBhUgsI4uvW7TwXlnZS2GZpPsFFiIUeGrso0wo4uiQwB6miFA5q6fKaAtQa4F2v1s+zg== + dependencies: + "@near-js/crypto" "0.0.5" + "@near-js/signers" "0.0.5" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.0.4" + bn.js "5.2.1" + borsh "^0.7.0" + js-sha256 "^0.9.0" + +"@near-js/types@0.0.4": + 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/utils@0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@near-js/utils/-/utils-0.0.4.tgz#1a387f81974ebbfa4521c92590232be97e3335dd" + integrity sha512-mPUEPJbTCMicGitjEGvQqOe8AS7O4KkRCxqd0xuE/X6gXF1jz1pYMZn4lNUeUz2C84YnVSGLAM0o9zcN6Y4hiA== + dependencies: + "@near-js/types" "0.0.4" + bn.js "5.2.1" + depd "^2.0.0" + mustache "^4.0.0" + +"@near-js/wallet-account@0.0.7": + version "0.0.7" + resolved "https://registry.yarnpkg.com/@near-js/wallet-account/-/wallet-account-0.0.7.tgz#efa6738114171b2a6e40e8b35a8194b7cf86c11e" + integrity sha512-tmRyieG/wHmuNkg/WGFyKD6iH6atHPbY0rZ5OjOIiteuhZEPgp+z8OBpiQ4qumTa63q46aj/QVSQL0J3+JmBfw== + dependencies: + "@near-js/accounts" "0.1.4" + "@near-js/crypto" "0.0.5" + "@near-js/keystores" "0.0.5" + "@near-js/signers" "0.0.5" + "@near-js/transactions" "0.2.1" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.0.4" + bn.js "5.2.1" + borsh "^0.7.0" + "@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": version "5.1.1-v1" resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" @@ -4445,7 +4565,7 @@ expect "^29.0.0" pretty-format "^29.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": +"@types/json-schema@*", "@types/json-schema@^7.0.11", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": version "7.0.13" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.13.tgz#02c24f4363176d2d18fc8b70b9f3c54aba178a85" integrity sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ== @@ -4482,6 +4602,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f" integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA== +"@types/node@11.11.6": + version "11.11.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a" + integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== + "@types/node@16.9.1": version "16.9.1" resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708" @@ -5865,6 +5990,24 @@ bip32@^4.0.0: typeforce "^1.11.5" wif "^2.0.6" +bip39-light@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/bip39-light/-/bip39-light-1.0.7.tgz#06a72f251b89389a136d3f177f29b03342adc5ba" + integrity sha512-WDTmLRQUsiioBdTs9BmSEmkJza+8xfJmptsNJjxnoq3EydSa/ZBXT6rm66KoT3PJIRYMnhSKNR7S9YL1l7R40Q== + dependencies: + create-hash "^1.1.0" + pbkdf2 "^3.0.9" + +bip39@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.2.tgz#2baf42ff3071fc9ddd5103de92e8f80d9257ee32" + integrity sha512-J4E1r2N0tUylTKt07ibXvhpT2c5pyAFgvuA5q1H9uDy6dEGpjV8jmymh3MTYJDLCNbIVClSB9FbND49I6N24MQ== + dependencies: + "@types/node" "11.11.6" + create-hash "^1.1.0" + pbkdf2 "^3.0.9" + randombytes "^2.0.1" + bitcoinjs-lib@^6.1.4: version "6.1.4" resolved "https://registry.yarnpkg.com/bitcoinjs-lib/-/bitcoinjs-lib-6.1.4.tgz#c985c90ae4d0385f951436c36dc3d2555961a63f" @@ -5918,6 +6061,11 @@ bmp-js@^0.1.0: resolved "https://registry.yarnpkg.com/bmp-js/-/bmp-js-0.1.0.tgz#e05a63f796a6c1ff25f4771ec7adadc148c07233" integrity sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw== +bn.js@5.2.1, bn.js@^5.0.0, bn.js@^5.1.1, bn.js@^5.1.2, bn.js@^5.2.0, bn.js@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" + integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== + bn.js@=4.11.8: version "4.11.8" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" @@ -5928,11 +6076,6 @@ bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== -bn.js@^5.0.0, bn.js@^5.1.1, bn.js@^5.1.2, bn.js@^5.2.0, bn.js@^5.2.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" - integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== - body-parser@1.20.1: version "1.20.1" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668" @@ -6368,6 +6511,11 @@ caniuse-lite@^1.0.30001400: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz#987437b266260b640a23cd18fbddb509d7f69f3e" integrity sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg== +capability@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/capability/-/capability-0.2.5.tgz#51ad87353f1936ffd77f2f21c74633a4dea88801" + integrity sha512-rsJZYVCgXd08sPqwmaIqjAd5SUTfonV0z/gDJ8D6cN8wQphky1kkAYEqQ+hmDxTw7UihvBfjUVUSY+DBEe44jg== + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -7509,7 +7657,7 @@ denodeify@^1.2.1: resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" integrity sha512-KNTihKNmQENUZeKu5fzfpzRqR5S2VMp4gl9RFHiWzj9DfvYQPMJ6XHKNaQxaGCXwPk6y9yme3aUoaiAe+KX+vg== -depd@2.0.0: +depd@2.0.0, depd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== @@ -7933,6 +8081,15 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" +error-polyfill@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/error-polyfill/-/error-polyfill-0.1.3.tgz#df848b61ad8834f7a5db69a70b9913df86721d15" + integrity sha512-XHJk60ufE+TG/ydwp4lilOog549iiQF2OAPhkk9DdiYWMrltz5yhDz/xnKuenNwP7gy3dsibssO5QpVhkrSzzg== + dependencies: + capability "^0.2.5" + o3 "^1.0.3" + u3 "^0.1.1" + error-stack-parser@^2.0.6: version "2.1.4" resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.1.4.tgz#229cb01cdbfa84440bfa91876285b94680188286" @@ -10046,6 +10203,17 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" +http-errors@^1.7.2: + version "1.8.1" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.8.1.tgz#7c3f28577cbc8a207388455dbd62295ed07bd68c" + integrity sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g== + dependencies: + depd "~1.1.2" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.1" + http-errors@~1.6.2: version "1.6.3" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" @@ -13075,6 +13243,11 @@ multicast-dns@^7.2.5: dns-packet "^5.2.2" thunky "^1.0.2" +mustache@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/mustache/-/mustache-4.2.0.tgz#e5892324d60a12ec9c2a73359edca52972bf6f64" + integrity sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ== + mute-stream@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" @@ -13145,6 +13318,59 @@ ncjsm@^4.3.0, ncjsm@^4.3.1: fs2 "^0.3.9" type "^2.6.0" +near-abi@0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/near-abi/-/near-abi-0.1.1.tgz#b7ead408ca4ad11de4fe3e595d30a7a8bc5307e0" + integrity sha512-RVDI8O+KVxRpC3KycJ1bpfVj9Zv+xvq9PlW1yIFl46GhrnLw83/72HqHGjGDjQ8DtltkcpSjY9X3YIGZ+1QyzQ== + dependencies: + "@types/json-schema" "^7.0.11" + +near-api-js@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-2.1.4.tgz#562bb7047bf3699fbdf78f9a6620366069ad7cd9" + integrity sha512-e1XicyvJvQMtu7qrG8oWyAdjHJJCoy+cvbW6h2Dky4yj7vC85omQz/x7IgKl71VhzDj2/TGUwjTVESp6NSe75A== + dependencies: + "@near-js/accounts" "0.1.4" + "@near-js/crypto" "0.0.5" + "@near-js/keystores" "0.0.5" + "@near-js/keystores-browser" "0.0.5" + "@near-js/keystores-node" "0.0.5" + "@near-js/providers" "0.0.7" + "@near-js/signers" "0.0.5" + "@near-js/transactions" "0.2.1" + "@near-js/types" "0.0.4" + "@near-js/utils" "0.0.4" + "@near-js/wallet-account" "0.0.7" + ajv "^8.11.2" + ajv-formats "^2.1.1" + bn.js "5.2.1" + borsh "^0.7.0" + depd "^2.0.0" + error-polyfill "^0.1.3" + http-errors "^1.7.2" + near-abi "0.1.1" + node-fetch "^2.6.1" + tweetnacl "^1.0.1" + +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" + integrity sha512-SIrthcL5Wc0sps+2e1xGj3zceEa68TgNZDLuCx0daxmfTP7sFTB3/mtE2pYhlFsCxWoMn+JfID5E1NlzvvbRJg== + dependencies: + bip39 "3.0.2" + create-hmac "1.1.7" + tweetnacl "1.0.3" + +near-seed-phrase@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/near-seed-phrase/-/near-seed-phrase-0.2.0.tgz#fb7cf89682112b1160ab68abb50dc821f49be18a" + integrity sha512-NpmrnejpY1AdlRpDZ0schJQJtfBaoUheRfiYtQpcq9TkwPgqKZCRULV5L3hHmLc0ep7KRtikbPQ9R2ztN/3cyQ== + dependencies: + bip39-light "^1.0.7" + bs58 "^4.0.1" + near-hd-key "^1.2.1" + tweetnacl "^1.0.2" + negotiator@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" @@ -13337,6 +13563,13 @@ nwsapi@^2.2.0: resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== +o3@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/o3/-/o3-1.0.3.tgz#192ce877a882dfa6751f0412a865fafb2da1dac0" + integrity sha512-f+4n+vC6s4ysy7YO7O2gslWZBUu8Qj2i2OUJOvjRxQva7jVjYjB29jrr9NCjmxZQR0gzrOcv1RnqoYOeMs5VRQ== + dependencies: + capability "^0.2.5" + ob1@0.72.3: version "0.72.3" resolved "https://registry.yarnpkg.com/ob1/-/ob1-0.72.3.tgz#fc1efcfe156f12ed23615f2465a796faad8b91e4" @@ -13856,7 +14089,7 @@ path@^0.12.7: process "^0.11.1" util "^0.10.3" -pbkdf2@^3.0.3: +pbkdf2@^3.0.3, pbkdf2@^3.0.9: version "3.1.2" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== @@ -16548,7 +16781,7 @@ statuses@2.0.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== -"statuses@>= 1.4.0 < 2", statuses@~1.5.0: +"statuses@>= 1.4.0 < 2", "statuses@>= 1.5.0 < 2", statuses@~1.5.0: version "1.5.0" resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== @@ -17320,7 +17553,7 @@ tsutils@^3.21.0: dependencies: tslib "^1.8.1" -tweetnacl@1.0.3, tweetnacl@^1.0.3: +tweetnacl@1.0.3, tweetnacl@^1.0.1, tweetnacl@^1.0.2, tweetnacl@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== @@ -17443,6 +17676,11 @@ typeforce@^1.11.3, typeforce@^1.11.5: resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== +u3@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/u3/-/u3-0.1.1.tgz#5f52044f42ee76cd8de33148829e14528494b73b" + integrity sha512-+J5D5ir763y+Am/QY6hXNRlwljIeRMZMGs0cT6qqZVVzzT3X3nFPXVyPOFRMOR4kupB0T8JnCdpWdp6Q/iXn3w== + ua-parser-js@^0.7.30: version "0.7.32" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.32.tgz#cd8c639cdca949e30fa68c44b7813ef13e36d211"