diff --git a/.catalog-info.yaml b/.catalog-info.yaml index 018e9ce5..9be2d1a5 100644 --- a/.catalog-info.yaml +++ b/.catalog-info.yaml @@ -11,5 +11,7 @@ spec: - ./near/omni-prover/wormhole-omni-prover-proxy/.catalog-info.yaml - ./near/omni-types/.catalog-info.yaml - ./near/omni-bridge/.catalog-info.yaml + - ./near/omni-token/.catalog-info.yaml - ./evm/bridge-token-factory/.catalog-info.yaml - ./omni-relayer/.catalog-info.yaml + - ./solana/bridge_token_factory/.catalog-info.yaml diff --git a/.github/workflows/build-contracts.yaml b/.github/workflows/build-contracts.yaml new file mode 100644 index 00000000..31ae9307 --- /dev/null +++ b/.github/workflows/build-contracts.yaml @@ -0,0 +1,72 @@ +name: Build Contracts + +on: + pull_request: + types: [closed] + branches: [main] + + +jobs: + build: + name: Build Contracts + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + strategy: + matrix: + platform: [evm, near] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + if: matrix.platform == 'evm' + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'yarn' + cache-dependency-path: evm/yarn.lock + + - name: Setup Rust toolchain + if: matrix.platform == 'near' || matrix.platform == 'solana' + uses: dtolnay/rust-toolchain@stable + with: + toolchain: 1.80.0 + target: wasm32-unknown-unknown + + - name: Install NEAR CLI RS + if: matrix.platform == 'near' + run: | + curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/download/v0.7.4/near-cli-rs-installer.sh | sh + + - name: Install Docker + if: matrix.platform == 'near' + uses: docker/setup-buildx-action@v2 + + - name: Install Solana CLI + if: matrix.platform == 'solana' + run: | + sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)" + export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" + + - name: Install Anchor + if: matrix.platform == 'solana' + run: | + cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli + + - name: Build Contracts + run: | + if [ "${{ matrix.platform }}" == "evm" ]; then + make -C ${{ github.workspace }}/e2e-testing/ evm-build + elif [ "${{ matrix.platform }}" == "near" ]; then + make -C ${{ github.workspace }}/e2e-testing/ near-build + elif [ "${{ matrix.platform }}" == "solana" ]; then + make -C ${{ github.workspace }}/e2e-testing/ solana-build + fi + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.platform }}-artifacts + path: | + ${{ github.workspace }}/e2e-testing/${{ matrix.platform }}_artifacts diff --git a/.github/workflows/check-wasm.yaml b/.github/workflows/check-wasm.yaml new file mode 100644 index 00000000..d06fb8e7 --- /dev/null +++ b/.github/workflows/check-wasm.yaml @@ -0,0 +1,25 @@ +on: + push: + branches: [ main, develop ] + pull_request: + +name: Check WASM files +jobs: + test: + runs-on: ubuntu-latest + name: Check wasm files + steps: + - name: Clone the repository + uses: actions/checkout@v3 + + - name: Build NEAR contracts + run: | + cd near + ./build.sh + git status + changed_files=$(git status --porcelain --untracked-files=no | wc -l) + if [ $changed_files -gt 0 ]; then + echo 'contract changed, please rebuild contract' + exit 1 + fi + timeout-minutes: 40 diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml new file mode 100644 index 00000000..b82d6d93 --- /dev/null +++ b/.github/workflows/e2e-test.yml @@ -0,0 +1,17 @@ +name: E2E Tests + +on: + workflow_dispatch: + inputs: + selected_pipelines: + description: "Space-separated list of pipelines to run (e.g. 'bridge_token_near_to_evm another_pipeline')" + required: false + default: "bridge_token_near_to_evm" + +jobs: + e2e-tests: + name: E2E Tests + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index d1b9120a..94533273 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -25,7 +25,7 @@ jobs: - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.79.0 + toolchain: 1.80.0 components: clippy, rustfmt target: wasm32-unknown-unknown @@ -52,7 +52,7 @@ jobs: - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.79.0 + toolchain: 1.80.0 target: wasm32-unknown-unknown - name: Cache Rust dependencies diff --git a/.github/workflows/security-analysis.yaml b/.github/workflows/security-analysis.yaml index f4d7c335..48e5355b 100644 --- a/.github/workflows/security-analysis.yaml +++ b/.github/workflows/security-analysis.yaml @@ -8,9 +8,12 @@ on: - develop pull_request: workflow_dispatch: + schedule: + - cron: "0 0 * * *" jobs: contract_analysis: name: "Shared" uses: aurora-is-near/.github/.github/workflows/security_analysis.yml@master - secrets: inherit + secrets: + DD_API_KEY: ${{secrets.DD_API_KEY}} diff --git a/.gitignore b/.gitignore index 144c800b..e1f10c6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,9 @@ .DS_Store **/target +**/config.toml +**/.env .history node_modules +near/res/mock_token.wasm +near/res/mock_prover.wasm +near/res/omni_tests.wasm \ No newline at end of file diff --git a/Makefile b/Makefile index eb8e0e6a..47df9207 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ RUSTFLAGS = -C link-arg=-s NEAR_MANIFEST = ./near/Cargo.toml OMNI_RELAYER_MANIFEST = ./omni-relayer/Cargo.toml -clippy: clippy-near #clippy-relayer +clippy: clippy-near clippy-omni-relayer clippy-near: rust-build-token cargo clippy --manifest-path $(NEAR_MANIFEST) -- $(LINT_OPTIONS) diff --git a/e2e-testing/.gitignore b/e2e-testing/.gitignore new file mode 100644 index 00000000..c5f502f7 --- /dev/null +++ b/e2e-testing/.gitignore @@ -0,0 +1,25 @@ +evm_artifacts/ +near_artifacts/ +solana_artifacts/ +evm_deploy_results/ +near_deploy_results/ +solana_deploy_results/ +bridge-token-near-to-evm/ + +.evm-compile.stamp +.near-token-deployment-prepare.stamp +.solana-build.stamp +*dyn_init_args.json +bridge-sdk-config.json +bridge_token_factory-keypair.json + + +evm_scripts/build/ +evm_scripts/cache/ +evm_scripts/coverage/ +evm_scripts/coverage.json +evm_scripts/.openzeppelin/ +evm_scripts/node_modules/ +evm_scripts/.env +evm_scripts/typechain-types/ +evm_scripts/dist/ diff --git a/e2e-testing/Makefile b/e2e-testing/Makefile new file mode 100644 index 00000000..4fef8259 --- /dev/null +++ b/e2e-testing/Makefile @@ -0,0 +1,69 @@ +########################################################## +# Makefile prologue +########################################################## + +MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables --silent +unexport MAKEFLAGS +.DELETE_ON_ERROR: +.SUFFIXES: +SHELL := bash +.SHELLFLAGS := -eu -o pipefail -c +.DEFAULT_GOAL := help + +# Master clean target +.PHONY: clean +clean: clean-deploy-results clean-evm clean-near clean-solana clean-bridge-token-near-to-evm + $(call description,Cleaning all build artifacts and deploy results) + +# Include common module +include makefiles/common.mk + +# Include chain-specific modules +include makefiles/evm.mk +include makefiles/near.mk +include makefiles/solana.mk + +# Include test pipelines +include makefiles/pipelines/bridge_token_near_to_evm.mk + +# Help target +.PHONY: help +help: + $(call description,Available targets) + @echo "Build targets:" + @echo " evm-build Build EVM contracts" + @echo " evm-scripts-build Build EVM deployment scripts" + @echo " near-build Build NEAR contracts" + @echo " solana-build Build Solana programs" + @echo + @echo "Clean targets:" + @echo " clean Clean all build artifacts and deploy results" + @echo " clean-deploy-results Clean deploy results directories" + @echo " clean-evm Clean all EVM build artifacts" + @echo " clean-evm-{network} Clean specific network deploy results" + @echo " Available networks: $(evm_networks)" + @echo " clean-near Clean NEAR build artifacts" + @echo " clean-solana Clean Solana build artifacts" + @echo " clean-bridge-token-near-to-evm Clean bridge pipeline artifacts" + @echo + @echo "Account creation:" + @echo " create-near-init-account Create NEAR initialization account" + @echo " create-near-sender Create NEAR sender account" + @echo " create-near-relayer Create NEAR relayer account" + @echo " create-dao-account Create NEAR DAO account" + @echo + @echo "Deployment targets:" + @echo " near-deploy Deploy all NEAR contracts" + @echo " {network}-deploy Deploy all contracts to specific EVM network" + @echo " Available networks: $(evm_networks)" + @echo " {network}-deploy-bridge Deploy bridge contract to specific network" + @echo " {network}-deploy-enear Deploy eNEAR token to specific network" + @echo " {network}-deploy-test-token Deploy test token to specific network" + @echo + @echo "Bridge pipeline:" + @echo " bridge-token-near-to-evm Run complete NEAR to ETH bridge test" + @echo " prepare-token-deployment Prepare token deployment (Step 0)" + @echo " near-log-metadata-call Log token metadata (Step 1)" + @echo " ethereum-deploy-token Deploy token on Ethereum (Step 2)" + @echo " near-bind-token Bind token on NEAR (Step 3)" + diff --git a/e2e-testing/README.md b/e2e-testing/README.md new file mode 100644 index 00000000..3e8cac18 --- /dev/null +++ b/e2e-testing/README.md @@ -0,0 +1,128 @@ +# Omni Bridge End-to-End Tests + +## General description + +The E2E tests cover an entire workflow involving multiple blockchain components (NEAR, EVM-based chains, Solana) and cross-chain communication. These tests ensure that all parts (smart contracts, scripts, etc.) integrate correctly. The Makefiles in this project orchestrate each step in the workflow, from compiling and deploying contracts on various chains to executing and verifying cross-chain transactions. + +## Prerequisites + +You will need the following tools installed on your environment before proceeding: +- **Yarn**. Used for installing TypeScript dependencies for EVM contracts and scripts. +- **Cargo**. The Rust package manager, required for building Rust-based components. +- **NEAR CLI RS**. A command-line interface for interacting with NEAR protocols. +- **Docker**. Required to build NEAR contracts in consistent environment. +- **Solana CLI and Anchor**. For compiling and deploying Solana programs. +- **Bridge SDK CLI**. Install with: +`cargo install --git https://github.com/Near-One/bridge-sdk-rs/ --rev e2c86d5 bridge-cli` +Enables bridging functionality for various blockchain environments. +- **jq**. A command-line JSON processor used by many scripts in this project. + +## User guide + +### How to Run Builds and Pipelines + +This repository contains multiple Makefiles, each focusing on a particular chain or pipeline. + +You can explore all the available targets by running: +``` +make help +``` + +Typical usage involves calling a specific pipeline target, for example: + +``` +make bridge-token-near-to-evm +``` + +This command triggers a multi-step process that compiles, deploys, and binds tokens across NEAR and an EVM-based network. + +### Environment variables and configuration + +You need to create a `.env` files from: +- `./evm-scripts/.env.example` +- `../evm/.env.example` (`INFURA_API_KEY` and `EVM_PRIVATE_KEY` only) + +Also you need to copy or rename the provided `bridge-sdk-config.example.json` to `bridge-sdk-config.json`. And update it with your `ETH_PRIVATE_KEY` and your `ETH_RPC` endpoint. + +For Solana bulding and deployment, ensure that for every program you have a keypair in `.e2e-testing/` directory in the format of `-keypair.json`. However, this key pair is secret and should not be shared. + +### Result artifacts + +Throughout the pipelines, you will see JSON files containing addresses, transaction hashes, and other relevant data. +These files serve as evidence that each step or deployment was successfully executed. They are automatically generated and stored in dedicated directories such as `evm_deploy_results` or `near_deploy_results`. + +### Handling Pipeline Failures + +If a pipeline fails at a certain step, fix the underlying issue and rerun the same target. Make will pick up from the point of failure if the previous steps have created their artifact files or “stamp” files. + +### Rebuilding Binaries + +Each build step depends on “stamp” files that mark the completion of the step. Simply calling the relevant build target again will skip the build if the stamp file exists. + +To perform a clean rebuild, run the corresponding clean target. For example: +``` + make clean-near + make near-build +``` + +This removes the old artifacts and stamps, forcing a complete recompile. + +## Developer Guide + +### Introduction to Make + +- If you are new to Make, the [[GNU Make Manual](https://www.gnu.org/software/make/manual/make.html)] is an excellent place to start. +- Make allows us to define rules that specify how to build or process files and manage dependencies. + + +### Structure of the Makefiles + +- Makefiles here are split into modules for different chains (e.g., `near.mk`, `evm.mk`, `solana.mk`) and pipelines (e.g., `pipelines/bridge_token_near_to_evm.mk`). +- Each of these is included into a master Makefile. +- Variables are in a global namespace. Therefore, every variable should be prefixed to avoid naming collisions, such as `evm_compile_stamp`, `solana_build_stamp`, etc. + +### Pipelines Organization + +- Each pipeline typically has a prefix, such as pipeline1, pipeline2, and so on. +- Consider adding new pipelines in separate `.mk` files. +- Number the generated files for clarity (e.g., `01_step.json`, `02_step.json`) to keep track of the pipeline steps. + +### Targets and Phony Targets + +Most steps have two targets: + +1. A “file” target (e.g., a JSON artifact) or a “stamp” file target to indicate completion. +2. A `.PHONY` target to run that step directly. + +The phony target typically depends on the file target, ensuring that the command is performed when necessary. + +Each step usually prints a brief description before execution using a helper function like `description`, so you know what is happening. + +### Order of prerequsites + +In certain cases, the order in which prerequisites are listed (and thus passed to scripts) can matter. Pay special attention to the scripts that rely on positional arguments. + +### Special targets + +- Every module or feature should provide a custom `clean-{custom-name}` target that removes the artifacts and stamp files it generates. +- Remember to add that clean target to the help target or a consolidated list of “clean” targets so that users can discover and run it easily. +- After adding module, don't forget to add it to the `help` target. + +### Debugging + +- Run `make --dry-run` to print the commands that would be executed without actually running them. +- Use `make -d` for a more verbose explanation of why each command runs (or doesn’t run). It could be used with `make --dry-run` in order not to run the commands. + +## General recommendations for Makefiles in this project + +Below are some guidelines to maintain consistency and clarity: +1. Internal variables (not environment or inherited from parent Makefile) should use lowercase. +2. Prefer `:=` (immediate assignment) over `=` (delayed assignment) for most variable definitions. +3. Use `.INTERMEDIATE` and `.PHONY` to define targets properly. +4. Make each phony target a prerequisite of `.PHONY` right before declaring the target. +5. Avoid using phony targets as prerequisites for file targets. +6. When a Makefile grows large, consider splitting it into multiple files, each handling a distinct set of tasks or a single pipeline. +7. Use automatic variables like `$^`, `$@`, `$<`, and `$(word n,$^)` wisely to simplify commands. +8. Directories often work best as order-only prerequisites (using the pipe symbol `|`) to avoid rebuilding them unnecessarily. +9. Try to avoid recursive Make patterns; a single dependency graph is often clearer. +10. Control verbosity to suit the needs of the project, for example by hiding command echoes and only printing the essential logs. diff --git a/e2e-testing/bin/eNear_creation.template b/e2e-testing/bin/eNear_creation.template new file mode 100644 index 00000000..d62b3687 --- /dev/null +++ b/e2e-testing/bin/eNear_creation.template @@ -0,0 +1 @@ +60806040523480156200001157600080fd5b5060405162002d2638038062002d26833981810160405260e08110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084640100000000821115620001bc57600080fd5b908301906020820185811115620001d257600080fd5b8251640100000000811182820188101715620001ed57600080fd5b82525081516020918201929091019080838360005b838110156200021c57818101518382015260200162000202565b50505050905090810190601f1680156200024a5780820380516001836020036101000a031916815260200191505b506040908152602082810151918301516060840151608090940151895193965090945091839183918791899188918d918d916200028d916003918501906200035a565b508051620002a39060049060208401906200035a565b505060058054601260ff1990911617610100600160a81b0319166101006001600160a01b03871602179055508151620002e49060069060208501906200035a565b50600780546001600160401b0319166001600160401b03929092169190911790555050600980546001600160a01b0319166001600160a01b039390931692909217909155600a5562000337601862000344565b50505050505050620003f6565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200039d57805160ff1916838001178555620003cd565b82800160010185558215620003cd579182015b82811115620003cd578251825591602001919060010190620003b0565b50620003db929150620003df565b5090565b5b80821115620003db5760008155600101620003e0565b61292080620004066000396000f3fe60806040526004361061014b5760003560e01c80636bf43296116100b6578063be831a2e1161006f578063be831a2e14610614578063c30a0f2514610644578063dd62ed3e1461066e578063e3113e3b146106a9578063f48ab4e014610763578063f851a4401461076b5761014b565b80636bf432961461047357806370a08231146104a457806395d89b41146104d7578063a457c2d7146104ec578063a9059cbb14610525578063b8e9744c1461055e5761014b565b8063313ce56711610108578063313ce567146102d257806332a8f30f146102fd578063395093511461032e5780633a239bee14610367578063530208f2146104255780635c975abb1461045e5761014b565b806306fdde0314610150578063095ea7b3146101da57806318160ddd1461022757806323b872dd1461024e5780632692c59f146102915780632a8853cd146102bd575b600080fd5b34801561015c57600080fd5b50610165610780565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b50610213600480360360408110156101fd57600080fd5b506001600160a01b038135169060200135610816565b604080519115158252519081900360200190f35b34801561023357600080fd5b5061023c610833565b60408051918252519081900360200190f35b34801561025a57600080fd5b506102136004803603606081101561027157600080fd5b506001600160a01b03813581169160208101359091169060400135610839565b34801561029d57600080fd5b506102bb600480360360208110156102b457600080fd5b50356108c0565b005b3480156102c957600080fd5b506101656108dc565b3480156102de57600080fd5b506102e761096a565b6040805160ff9092168252519081900360200190f35b34801561030957600080fd5b50610312610973565b604080516001600160a01b039092168252519081900360200190f35b34801561033a57600080fd5b506102136004803603604081101561035157600080fd5b506001600160a01b038135169060200135610987565b34801561037357600080fd5b506102bb6004803603604081101561038a57600080fd5b8101906020810181356401000000008111156103a557600080fd5b8201836020820111156103b757600080fd5b803590602001918460018302840111640100000000831117156103d957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160401b031691506109d59050565b34801561043157600080fd5b506102bb6004803603604081101561044857600080fd5b506001600160a01b038135169060200135610a9c565b34801561046a57600080fd5b5061023c610aee565b34801561047f57600080fd5b50610488610af4565b604080516001600160401b039092168252519081900360200190f35b3480156104b057600080fd5b5061023c600480360360208110156104c757600080fd5b50356001600160a01b0316610b03565b3480156104e357600080fd5b50610165610b22565b3480156104f857600080fd5b506102136004803603604081101561050f57600080fd5b506001600160a01b038135169060200135610b83565b34801561053157600080fd5b506102136004803603604081101561054857600080fd5b506001600160a01b038135169060200135610beb565b6101656004803603604081101561057457600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561059f57600080fd5b8201836020820111156105b157600080fd5b803590602001918460018302840111640100000000831117156105d357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bff945050505050565b34801561062057600080fd5b506102bb6004803603604081101561063757600080fd5b5080359060200135610cd3565b34801561065057600080fd5b506102136004803603602081101561066757600080fd5b5035610cee565b34801561067a57600080fd5b5061023c6004803603604081101561069157600080fd5b506001600160a01b0381358116916020013516610d03565b3480156106b557600080fd5b506102bb600480360360408110156106cc57600080fd5b813591908101906040810160208201356401000000008111156106ee57600080fd5b82018360208201111561070057600080fd5b8035906020019184600183028401116401000000008311171561072257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d2e945050505050565b6102bb610e10565b34801561077757600080fd5b50610312610e29565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561080c5780601f106107e15761010080835404028352916020019161080c565b820191906000526020600020905b8154815290600101906020018083116107ef57829003601f168201915b5050505050905090565b600061082a610823610e38565b8484610e3c565b50600192915050565b60025490565b6000610846848484610f28565b6108b684610852610e38565b6108b18560405180606001604052806028815260200161276a602891396001600160a01b038a16600090815260016020526040812090610890610e38565b6001600160a01b031681526020810191909152604001600020549190611083565b610e3c565b5060019392505050565b6009546001600160a01b031633146108d757600080fd5b600a55565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109625780601f1061093757610100808354040283529160200191610962565b820191906000526020600020905b81548152906001019060200180831161094557829003601f168201915b505050505081565b60055460ff1690565b60055461010090046001600160a01b031681565b600061082a610994610e38565b846108b185600160006109a5610e38565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061111a565b600180600a5416600014806109f457506009546001600160a01b031633145b6109fd57600080fd5b610a0561244b565b610a0f848461117b565b9050610a19612478565b610a2682606001516115b6565b9050610a43816020015182600001516001600160801b0316611664565b80602001516001600160a01b03167f3538c3349544a9ce6d1cfda849857b2b8fa919c15fe6d382e08573b9838d2aa8826000015160405180826001600160801b0316815260200191505060405180910390a25050505050565b6009546001600160a01b03163314610ab357600080fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610ae9573d6000803e3d6000fd5b505050565b600a5481565b6007546001600160401b031681565b6001600160a01b0381166000908152602081905260409020545b919050565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561080c5780601f106107e15761010080835404028352916020019161080c565b600061082a610b90610e38565b846108b1856040518060600160405280602581526020016128c66025913960016000610bba610e38565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611083565b600061082a610bf8610e38565b8484610f28565b6009546060906001600160a01b03163314610c1957600080fd5b60006060846001600160a01b0316846040518082805190602001908083835b60208310610c575780518252601f199092019160209182019101610c38565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610cb7576040519150601f19603f3d011682016040523d82523d6000602084013e610cbc565b606091505b509150915081610ccb57600080fd5b949350505050565b6009546001600160a01b03163314610cea57600080fd5b9055565b60086020526000908152604090205460ff1681565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600280600a541660001480610d4d57506009546001600160a01b031633145b610d5657600080fd5b610d603384611754565b336001600160a01b03167fabeef16c62fe7504587dd9ef5d707aeb0932570da8eb1a4f099c6e80524b17c384846040518083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610dd0578181015183820152602001610db8565b50505050905090810190601f168015610dfd5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2505050565b6009546001600160a01b03163314610e2757600080fd5b565b6009546001600160a01b031681565b3390565b6001600160a01b038316610e815760405162461bcd60e51b81526004018080602001828103825260248152602001806128656024913960400191505060405180910390fd5b6001600160a01b038216610ec65760405162461bcd60e51b81526004018080602001828103825260228152602001806126b66022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610f6d5760405162461bcd60e51b81526004018080602001828103825260258152602001806127ef6025913960400191505060405180910390fd5b6001600160a01b038216610fb25760405162461bcd60e51b81526004018080602001828103825260238152602001806126296023913960400191505060405180910390fd5b610fbd838383610ae9565b610ffa8160405180606001604052806026815260200161270f602691396001600160a01b0386166000908152602081905260409020549190611083565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611029908261111a565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156111125760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110d75781810151838201526020016110bf565b50505050905090810190601f1680156111045780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015611174576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b61118361244b565b600554604080516392d68dfd60e01b81526001600160401b0385166024820152600481019182528551604482015285516101009093046001600160a01b0316926392d68dfd9287928792829160640190602086019080838360005b838110156111f65781810151838201526020016111de565b50505050905090810190601f1680156112235780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b15801561124157600080fd5b505afa158015611255573d6000803e3d6000fd5b505050506040513d602081101561126b57600080fd5b50516112b6576040805162461bcd60e51b8152602060048201526015602482015274141c9bdbd9881cda1bdd5b19081899481d985b1a59605a1b604482015290519081900360640190fd5b6112be61248f565b6112c784611850565b90506112d16124a9565b6112da82611872565b6007546040808301510151519192506001600160401b0390811691161015611349576040805162461bcd60e51b815260206004820152601f60248201527f50726f6f662069732066726f6d2074686520616e6369656e7420626c6f636b00604482015290519081900360640190fd5b611352826118b4565b61138d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612814602c913960400191505060405180910390fd5b600081600001516040015160200151602001516000815181106113ac57fe5b6020908102919091018101516000818152600890925260409091205490915060ff161561140a5760405162461bcd60e51b81526004018080602001828103825260258152602001806128406025913960400191505060405180910390fd5b60008181526008602052604090819020805460ff19166001908117909155905160068054909282918491600260001991831615610100029190910190911604801561148c5780601f1061146a57610100808354040283529182019161148c565b820191906000526020600020905b815481529060010190602001808311611478575b50509150506040518091039020826000015160400151602001516080015180519060200120146114ed5760405162461bcd60e51b815260040180806020018281038252604881526020018061264c6048913960600191505060405180910390fd5b8160000151604001516020015160a0015193508360400151156115415760405162461bcd60e51b815260040180806020018281038252603c815260200180612792603c913960400191505060405180910390fd5b8360200151156115825760405162461bcd60e51b815260040180806020018281038252603d815260200180612889603d913960400191505060405180910390fd5b60405181907fb226e263cb7a3bde6afd6e46c543e956d49171b4fe4f0daf93cb1798f2315d1d90600090a250505092915050565b6115be612478565b6115c661248f565b6115cf83611850565b905060006115dc826118c0565b905060ff811615611634576040805162461bcd60e51b815260206004820152601760248201527f4552525f4e4f545f57495448445241575f524553554c54000000000000000000604482015290519081900360640190fd5b61163d82611942565b6001600160801b03168352600061165383611974565b60601c602085015250919392505050565b6001600160a01b0382166116bf576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6116cb60008383610ae9565b6002546116d8908261111a565b6002556001600160a01b0382166000908152602081905260409020546116fe908261111a565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166117995760405162461bcd60e51b81526004018080602001828103825260218152602001806127ce6021913960400191505060405180910390fd5b6117a582600083610ae9565b6117e281604051806060016040528060228152602001612694602291396001600160a01b0385166000908152602081905260409020549190611083565b6001600160a01b03831660009081526020819052604090205560025461180890826119b0565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b61185861248f565b506040805180820190915260008152602081019190915290565b61187a6124a9565b61188382611a0d565b815261188e82611a41565b602082015261189c82611ae1565b60408201526118aa82611a41565b6060820152919050565b60208101515190511490565b600081600180826000015101826020015151101561191b576040805162461bcd60e51b8152602060048201526013602482015272426f7273683a204f7574206f662072616e676560681b604482015290519081900360640190fd5b602084015184518151811061192c57fe5b0160200151825190910190915260f81c92915050565b600061194d82611c86565b6001600160401b03169050604061196383611c86565b6001600160401b0316901b17919050565b6000805b60148110156119aa578060080261198e846118c0565b60f81b6001600160f81b031916901c9190911790600101611978565b50919050565b600082821115611a07576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b611a156124e8565b611a1e82611a41565b8152611a2982611cb2565b6020820152611a3782611d27565b6040820152919050565b611a4961250f565b611a5282611ea0565b63ffffffff166001600160401b0381118015611a6d57600080fd5b50604051908082528060200260200182016040528015611aa757816020015b611a94612478565b815260200190600190039081611a8c5790505b50815260005b8151518110156119aa57611ac083611ec8565b8251805183908110611ace57fe5b6020908102919091010152600101611aad565b611ae9612522565b611af282611cb2565b8152611afd82611cb2565b6020820152611b0b82611f2c565b816040018190525060028082604001516101000151836020015160405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b60208310611b7a5780518252601f199092019160209182019101611b5b565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015611bb9573d6000803e3d6000fd5b5050506040513d6020811015611bce57600080fd5b50518251604080516020818101949094528082019290925280518083038201815260609092019081905281519192909182918401908083835b60208310611c265780518252601f199092019160209182019101611c07565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015611c65573d6000803e3d6000fd5b5050506040513d6020811015611c7a57600080fd5b50516060820152919050565b6000611c9182611ea0565b63ffffffff1690506020611ca483611ea0565b63ffffffff16901b17919050565b6000816020808260000151018260200151511015611d0d576040805162461bcd60e51b8152602060048201526013602482015272426f7273683a204f7574206f662072616e676560681b604482015290519081900360640190fd5b602080850151945190940190930151815190930190525090565b611d2f61254e565b611d3882611cb2565b8152611d4382611fc9565b81602001819052506000816020015160c001515160010190506002600082901c60ff16600883901c60ff16601084901c60ff16601885901c60ff168660000151876020015160c00151604051602001808760ff1660f81b81526001018660ff1660f81b81526001018560ff1660f81b81526001018460ff1660f81b8152600101838152602001828051906020019060200280838360005b83811015611df2578181015183820152602001611dda565b5050505090500196505050505050506040516020818303038152906040526040518082805190602001908083835b60208310611e3f5780518252601f199092019160209182019101611e20565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015611e7e573d6000803e3d6000fd5b5050506040513d6020811015611e9357600080fd5b5051604083015250919050565b6000611eab82612297565b61ffff1690506010611ebc83612297565b61ffff16901b17919050565b611ed0612478565b611ed982611cb2565b8152611ee4826118c0565b60ff1660208201819052600211610b1d5760405162461bcd60e51b81526004018080602001828103825260378152602001806126d86037913960400191505060405180910390fd5b611f34612569565b611f3f8260d06122bd565b610100820152611f4e82611c86565b6001600160401b03168152611f6282611cb2565b6020820152611f7082611cb2565b6040820152611f7e82611cb2565b6060820152611f8c82611cb2565b6080820152611f9a82611c86565b6001600160401b031660a0820152611fb182611cb2565b60c0820152611fbf82611cb2565b60e0820152919050565b611fd16125b5565b611fda82611ea0565b63ffffffff166001600160401b0381118015611ff557600080fd5b5060405190808252806020026020018201604052801561202957816020015b60608152602001906001900390816120145790505b50815260005b81515181101561206357612042836122d2565b825180518390811061205057fe5b602090810291909101015260010161202f565b50815161206f83611ea0565b63ffffffff166001600160401b038111801561208a57600080fd5b506040519080825280602002602001820160405280156120b4578160200160208202803683370190505b50602083015260005b8260200151518110156120f6576120d384611cb2565b836020015182815181106120e357fe5b60209081029190910101526001016120bd565b5061210083611c86565b6001600160401b0316604083015261211783611942565b6001600160801b0316606083015261212e836122d2565b608083015261213c83612369565b60a083015282518251516001016001600160401b038111801561215e57600080fd5b50604051908082528060200260200182016040528015612188578160200160208202803683370190505b5060c084015281845261219d848383036122bd565b8360c001516000815181106121ae57fe5b602090810291909101015280845260005b83515181101561228f576002846000015182815181106121db57fe5b60200260200101516040518082805190602001908083835b602083106122125780518252601f1990920191602091820191016121f3565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015612251573d6000803e3d6000fd5b5050506040513d602081101561226657600080fd5b505160c085015180516001840190811061227c57fe5b60209081029190910101526001016121bf565b505050919050565b60006122a2826118c0565b60ff16905060086122b2836118c0565b60ff16901b17919050565b60006111748360200151846000015184612429565b60606122dd82611ea0565b63ffffffff166001600160401b03811180156122f857600080fd5b506040519080825280601f01601f191660200182016040528015612323576020820181803683370190505b50905060005b81518110156119aa5761233b836118c0565b60f81b82828151811061234a57fe5b60200101906001600160f81b031916908160001a905350600101612329565b61237161244b565b61237a826118c0565b60ff168082526123905760016020820152610b1d565b806000015160ff16600114156123ac5760016040820152610b1d565b806000015160ff16600214156123cf576123c5826122d2565b6060820152610b1d565b806000015160ff16600314156123f2576123e882611cb2565b6080820152610b1d565b60405162461bcd60e51b81526004018080602001828103825260358152602001806127356035913960400191505060405180910390fd5b600061243361260a565b6020818486602089010160025afa5051949350505050565b6040805160a081018252600080825260208201819052918101829052606080820152608081019190915290565b604080518082019091526000808252602082015290565b604051806040016040528060008152602001606081525090565b60405180608001604052806124bc6124e8565b81526020016124c961250f565b81526020016124d6612522565b81526020016124e361250f565b905290565b60405180606001604052806124fb61250f565b8152600060208201526040016124e361254e565b6040518060200160405280606081525090565b6040805160808101825260008082526020820152908101612541612569565b8152600060209091015290565b604080516060810190915260008152602081016125416125b5565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b6040518060e00160405280606081526020016060815260200160006001600160401b0316815260200160006001600160801b03168152602001606081526020016125fd61244b565b8152602001606081525090565b6040518060200160405280600190602082028036833750919291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737343616e206f6e6c7920756e6c6f636b20746f6b656e732066726f6d20746865206c696e6b65642070726f6f662070726f6475636572206f6e204e65617220626c6f636b636861696e45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737350726f6f664465636f6465723a204d65726b6c65506174684974656d20646972656374696f6e2073686f756c642062652030206f72203145524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654e6561724465636f6465723a206465636f6465457865637574696f6e53746174757320696e646578206f7574206f662072616e676545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636543616e6e6f7420757365206661696c656420657865637574696f6e206f7574636f6d6520666f7220756e6c6f636b696e672074686520746f6b656e7345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373417267756d656e742073686f756c6420626520657861637420626f7273682073657269616c697a6174696f6e546865206275726e206576656e742070726f6f662063616e6e6f742062652072657573656445524332303a20617070726f76652066726f6d20746865207a65726f206164647265737343616e6e6f742075736520756e6b6e6f776e20657865637574696f6e206f7574636f6d6520666f7220756e6c6f636b696e672074686520746f6b656e7345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201225bbd7f0a82122ab1cb419399486bffa69ce7288e9343b357e554f3a55808a64736f6c634300060c003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b8e11A1Ad588863379A3e523b37D8C78070C16D9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e4541520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e45415200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b652d6e6561722e6e656172000000000000000000000000000000000000000000 \ No newline at end of file diff --git a/e2e-testing/bridge-sdk-config.example.json b/e2e-testing/bridge-sdk-config.example.json new file mode 100644 index 00000000..7df84713 --- /dev/null +++ b/e2e-testing/bridge-sdk-config.example.json @@ -0,0 +1,25 @@ +{ + "near_rpc": "https://rpc.testnet.near.org/", + "near_token_locker_id": "omni-locker.testnet", + "near_light_client_eth_address": "0x202cdf10bfa45a3d2190901373edd864f071d707", + "near_signer": "omni-sender.testnet", + "near_private_key": "0x0000000000000000000000000000000000000000000000000000000000000000", + "eth_chain_id": 11155111, + "eth_bridge_token_factory_address": "0xa9108f7F83Fb661e611991116D526fCa1a9585ab", + "eth_connector_account_id": "aurora", + "eth_custodian_address": "0xe0320b199863D7f6D5bBa62741aACB312110DEf7", + "base_rpc": "https://base-sepolia.blockpi.network/v1/rpc/public", + "base_chain_id": 84532, + "base_bridge_token_factory_address": "0x0C981337fFe39a555d3A40dbb32f21aD0eF33FFA", + "arb_rpc": "https://arbitrum-sepolia.blockpi.network/v1/rpc/public", + "arb_chain_id": 421614, + "arb_bridge_token_factory_address": "0xd565f7CcE0FA1bB8DBe73FCDA281390d545f6200", + "solana_rpc": "https://api.devnet.solana.com", + "solana_bridge_address": "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5", + "solana_wormhole_address": "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5", + "solana_keypair": "6Tyktf6mEqUMEKm2ZpLn3srEwk9zsT5jiE54EgPgToikMFYww1LGFUXgwgr6hvc9CikpaNaBH2vmkmqN3Usrxpd", + "fast_bridge_account_id": "fastbridge.testnet", + "fast_bridge_address": "0x0B2C4871C9bAD795746C05c1539A8B1f26c26357", + "eth_private_key": "", + "eth_rpc": "" +} \ No newline at end of file diff --git a/e2e-testing/evm_scripts/.env.example b/e2e-testing/evm_scripts/.env.example new file mode 100644 index 00000000..dc3b9383 --- /dev/null +++ b/e2e-testing/evm_scripts/.env.example @@ -0,0 +1,2 @@ +INFURA_API_KEY= +EVM_PRIVATE_KEY= diff --git a/e2e-testing/evm_scripts/hardhat.config.ts b/e2e-testing/evm_scripts/hardhat.config.ts new file mode 100644 index 00000000..af14f2f3 --- /dev/null +++ b/e2e-testing/evm_scripts/hardhat.config.ts @@ -0,0 +1,144 @@ +import "@nomicfoundation/hardhat-chai-matchers" +import "@nomicfoundation/hardhat-ethers" +import "@nomicfoundation/hardhat-verify" +import "@openzeppelin/hardhat-upgrades" +import "@typechain/hardhat" +import * as dotenv from "dotenv" +import "hardhat-storage-layout" +import type { HardhatUserConfig } from "hardhat/config" +import "solidity-coverage" +import { task } from "hardhat/config" + +import "hardhat/types/config" +import * as fs from "node:fs" + +declare module "hardhat/types/config" { + interface HttpNetworkUserConfig { + omniChainId: number + wormholeAddress?: string + } +} + +dotenv.config() + +const INFURA_API_KEY = process.env.INFURA_API_KEY +const EVM_PRIVATE_KEY = process.env.EVM_PRIVATE_KEY || "11".repeat(32) +const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "" +const ARBISCAN_API_KEY = process.env.ARBISCAN_API_KEY || "" +const BASESCAN_API_KEY = process.env.BASESCAN_API_KEY || "" + + +task("deploy-bytecode", "Deploys a contract with a given bytecode") + .addParam("bytecode", "The path to the file containing the bytecode of the contract") + .setAction(async (taskArgs, hre) => { + const { ethers } = hre + + const bytecode = fs.readFileSync(taskArgs.bytecode, "utf8") + const [signer] = await ethers.getSigners() + + const contractFactory = new ethers.ContractFactory([], bytecode, signer) + const contract = await contractFactory.deploy() + await contract.waitForDeployment() + + console.log( + JSON.stringify({ + contractAddress: await contract.getAddress(), + }), + ) + }) + +task("deploy-test-token", "Deploys the E2ETestToken contract") + .addParam("name", "Token name") + .addParam("symbol", "Token symbol") + .addOptionalParam("supply", "Initial supply of tokens (default: 1000000 tokens)", "1000000") + .setAction(async (taskArgs, hre) => { + const { ethers } = hre; + + // Convert supply to tokens with 18 decimals + const supply = ethers.parseEther(taskArgs.supply); + + const [deployer] = await ethers.getSigners(); + + const TestToken = await ethers.getContractFactory("E2ETestToken"); + const token = await TestToken.deploy(taskArgs.name, taskArgs.symbol, supply); + await token.waitForDeployment(); + + const tokenAddress = await token.getAddress(); + + console.log(JSON.stringify({ + contractAddress: tokenAddress, + name: taskArgs.name, + symbol: taskArgs.symbol, + supply: taskArgs.supply, + })); + }); + + +const config: HardhatUserConfig = { + paths: { + sources: "./src", + cache: "./cache", + artifacts: "./build", + tests: "./tests", + }, + solidity: { + compilers: [ + { + version: "0.8.24", + settings: { + optimizer: { + enabled: true, + runs: 200, + }, + metadata: { + // do not include the metadata hash, since this is machine dependent + // and we want all generated code to be deterministic + // https://docs.soliditylang.org/en/v0.8.24/metadata.html + bytecodeHash: "none", + }, + }, + }, + ], + }, + networks: { + hardhat: { + chainId: 1337, + mining: { + auto: true, + interval: 0, + }, + }, + sepolia: { + omniChainId: 0, + chainId: 11155111, + url: `https://sepolia.infura.io/v3/${INFURA_API_KEY}`, + accounts: [`${EVM_PRIVATE_KEY}`], + }, + arbitrumSepolia: { + wormholeAddress: "0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35", + omniChainId: 3, + chainId: 421614, + url: `https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}`, + accounts: [`${EVM_PRIVATE_KEY}`], + }, + baseSepolia: { + wormholeAddress: "0x79A1027a6A159502049F10906D333EC57E95F083", + omniChainId: 4, + chainId: 84532, + url: `https://base-sepolia.infura.io/v3/${INFURA_API_KEY}`, + accounts: [`${EVM_PRIVATE_KEY}`], + }, + }, + etherscan: { + apiKey: { + mainnet: ETHERSCAN_API_KEY, + arbitrumMainnet: ARBISCAN_API_KEY, + baseMainnet: BASESCAN_API_KEY, + sepolia: ETHERSCAN_API_KEY, + arbitrumSepolia: ARBISCAN_API_KEY, + baseSepolia: BASESCAN_API_KEY, + }, + }, +} + +export default config diff --git a/e2e-testing/evm_scripts/package.json b/e2e-testing/evm_scripts/package.json new file mode 100644 index 00000000..02c75821 --- /dev/null +++ b/e2e-testing/evm_scripts/package.json @@ -0,0 +1,47 @@ +{ + "name": "omni-bridge", + "version": "0.1.0", + "description": "OmniBridge contracts for the EVM", + "license": "MIT", + "dependencies": { + "@openzeppelin/contracts": "^5.1.0", + "@openzeppelin/contracts-upgradeable": "^5.1.0", + "prettier": "^3.3.3", + "prettier-plugin-solidity": "^1.4.1" + }, + "devDependencies": { + "@biomejs/biome": "^1.9.4", + "@nomicfoundation/hardhat-chai-matchers": "^2.0.8", + "@nomicfoundation/hardhat-ethers": "^3.0.6", + "@nomicfoundation/hardhat-network-helpers": "^1.0.12", + "@nomicfoundation/hardhat-verify": "^2.0.12", + "@openzeppelin/hardhat-upgrades": "^3.5.0", + "@typechain/ethers-v6": "^0.5.1", + "@typechain/hardhat": "^9.1.0", + "@types/chai": "4", + "@types/elliptic": "^6.4.18", + "@types/mocha": "^10.0.9", + "@types/node": "^22.9.0", + "borsh": "^2.0.0", + "chai": "4", + "dotenv": "^16.4.5", + "ethers": "^6.13.4", + "hardhat": "^2.22.16", + "hardhat-storage-layout": "^0.1.7", + "solidity-coverage": "^0.8.13", + "ts-node": "^10.9.2", + "typechain": "^8.3.2", + "typescript": "^5.7.2", + "bs58": "^6.0.0" + }, + "scripts": { + "build": "yarn hardhat compile", + "testrpc": "", + "test": "yarn hardhat test", + "coverage": "yarn hardhat coverage", + "lint:js": "biome check", + "lint:js:fix": "biome check --write", + "lint": "prettier --list-different --plugin=prettier-plugin-solidity '**/*.sol'", + "lint:fix": "prettier --write --plugin=prettier-plugin-solidity '**/*.sol'" + } +} \ No newline at end of file diff --git a/e2e-testing/evm_scripts/src/E2ETestToken/contracts/E2ETestToken.sol b/e2e-testing/evm_scripts/src/E2ETestToken/contracts/E2ETestToken.sol new file mode 100644 index 00000000..db78e445 --- /dev/null +++ b/e2e-testing/evm_scripts/src/E2ETestToken/contracts/E2ETestToken.sol @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; + +contract E2ETestToken is ERC20 { + constructor( + string memory name, + string memory symbol, + uint256 initialSupply + ) ERC20(name, symbol) { + _mint(msg.sender, initialSupply); + } +} \ No newline at end of file diff --git a/e2e-testing/evm_scripts/tsconfig.json b/e2e-testing/evm_scripts/tsconfig.json new file mode 100644 index 00000000..0b1e1d4c --- /dev/null +++ b/e2e-testing/evm_scripts/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "commonjs", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "outDir": "dist", + "declaration": true + }, + "include": ["./tests", "./scripts", "./typechain-types"], + "files": ["hardhat.config.ts"] +} diff --git a/e2e-testing/evm_scripts/yarn.lock b/e2e-testing/evm_scripts/yarn.lock new file mode 100644 index 00000000..e9adfa4f --- /dev/null +++ b/e2e-testing/evm_scripts/yarn.lock @@ -0,0 +1,3510 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@adraffy/ens-normalize@1.10.1": + version "1.10.1" + resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069" + integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw== + +"@aws-crypto/sha256-js@1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@aws-crypto/sha256-js/-/sha256-js-1.2.2.tgz#02acd1a1fda92896fc5a28ec7c6e164644ea32fc" + integrity sha512-Nr1QJIbW/afYYGzYvrF70LtaHrIRtd4TNAglX8BvlfxJLZ45SAmueIKYl5tWoNBPzp65ymXGFK0Bb1vZUpuc9g== + dependencies: + "@aws-crypto/util" "^1.2.2" + "@aws-sdk/types" "^3.1.0" + tslib "^1.11.1" + +"@aws-crypto/util@^1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@aws-crypto/util/-/util-1.2.2.tgz#b28f7897730eb6538b21c18bd4de22d0ea09003c" + integrity sha512-H8PjG5WJ4wz0UXAFXeJjWCW1vkvIJ3qUUD+rGRwJ2/hj+xT58Qle2MTql/2MGzkU+1JLAFuR6aJpLAjHwhmwwg== + dependencies: + "@aws-sdk/types" "^3.1.0" + "@aws-sdk/util-utf8-browser" "^3.0.0" + tslib "^1.11.1" + +"@aws-sdk/types@^3.1.0": + version "3.714.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.714.0.tgz#de6afee1436d2d95364efa0663887f3bf0b1303a" + integrity sha512-ZjpP2gYbSFlxxaUDa1Il5AVvfggvUPbjzzB/l3q0gIE5Thd6xKW+yzEpt2mLZ5s5UaYSABZbF94g8NUOF4CVGA== + dependencies: + "@smithy/types" "^3.7.2" + tslib "^2.6.2" + +"@aws-sdk/util-utf8-browser@^3.0.0": + version "3.259.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz#3275a6f5eb334f96ca76635b961d3c50259fd9ff" + integrity sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw== + dependencies: + tslib "^2.3.1" + +"@biomejs/biome@^1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.9.4.tgz#89766281cbc3a0aae865a7ff13d6aaffea2842bf" + integrity sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog== + optionalDependencies: + "@biomejs/cli-darwin-arm64" "1.9.4" + "@biomejs/cli-darwin-x64" "1.9.4" + "@biomejs/cli-linux-arm64" "1.9.4" + "@biomejs/cli-linux-arm64-musl" "1.9.4" + "@biomejs/cli-linux-x64" "1.9.4" + "@biomejs/cli-linux-x64-musl" "1.9.4" + "@biomejs/cli-win32-arm64" "1.9.4" + "@biomejs/cli-win32-x64" "1.9.4" + +"@biomejs/cli-darwin-arm64@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz#dfa376d23a54a2d8f17133c92f23c1bf2e62509f" + integrity sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw== + +"@biomejs/cli-darwin-x64@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz#eafc2ce3849d385fc02238aad1ca4a73395a64d9" + integrity sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg== + +"@biomejs/cli-linux-arm64-musl@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz#d780c3e01758fc90f3268357e3f19163d1f84fca" + integrity sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA== + +"@biomejs/cli-linux-arm64@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz#8ed1dd0e89419a4b66a47f95aefb8c46ae6041c9" + integrity sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g== + +"@biomejs/cli-linux-x64-musl@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz#f36982b966bd671a36671e1de4417963d7db15fb" + integrity sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg== + +"@biomejs/cli-linux-x64@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz#a0a7f56680c76b8034ddc149dbf398bdd3a462e8" + integrity sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg== + +"@biomejs/cli-win32-arm64@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz#e2ef4e0084e76b7e26f0fc887c5ef1265ea56200" + integrity sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg== + +"@biomejs/cli-win32-x64@1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz#4c7afa90e3970213599b4095e62f87e5972b2340" + integrity sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA== + +"@bytecodealliance/preview2-shim@0.17.0": + version "0.17.0" + resolved "https://registry.yarnpkg.com/@bytecodealliance/preview2-shim/-/preview2-shim-0.17.0.tgz#9bc1cadbb9f86c446c6f579d3431c08a06a6672e" + integrity sha512-JorcEwe4ud0x5BS/Ar2aQWOQoFzjq/7jcnxYXCvSMh0oRm0dQXzOA+hqLDBnOMks1LLBA7dmiLLsEBl09Yd6iQ== + +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + +"@ethereumjs/rlp@^4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@ethereumjs/rlp/-/rlp-4.0.1.tgz#626fabfd9081baab3d0a3074b0c7ecaf674aaa41" + integrity sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw== + +"@ethereumjs/util@^8.1.0": + version "8.1.0" + resolved "https://registry.yarnpkg.com/@ethereumjs/util/-/util-8.1.0.tgz#299df97fb6b034e0577ce9f94c7d9d1004409ed4" + integrity sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA== + dependencies: + "@ethereumjs/rlp" "^4.0.1" + ethereum-cryptography "^2.0.0" + micro-ftch "^0.3.1" + +"@ethersproject/abi@^5.0.9", "@ethersproject/abi@^5.1.2": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" + integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== + dependencies: + "@ethersproject/address" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/hash" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + +"@ethersproject/abstract-provider@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" + integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/networks" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/transactions" "^5.7.0" + "@ethersproject/web" "^5.7.0" + +"@ethersproject/abstract-signer@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2" + integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== + dependencies: + "@ethersproject/abstract-provider" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + +"@ethersproject/address@^5.0.2", "@ethersproject/address@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" + integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/rlp" "^5.7.0" + +"@ethersproject/base64@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c" + integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== + dependencies: + "@ethersproject/bytes" "^5.7.0" + +"@ethersproject/bignumber@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" + integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + bn.js "^5.2.1" + +"@ethersproject/bytes@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" + integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== + dependencies: + "@ethersproject/logger" "^5.7.0" + +"@ethersproject/constants@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" + integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== + dependencies: + "@ethersproject/bignumber" "^5.7.0" + +"@ethersproject/hash@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" + integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== + dependencies: + "@ethersproject/abstract-signer" "^5.7.0" + "@ethersproject/address" "^5.7.0" + "@ethersproject/base64" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + +"@ethersproject/keccak256@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" + integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== + dependencies: + "@ethersproject/bytes" "^5.7.0" + js-sha3 "0.8.0" + +"@ethersproject/logger@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" + integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== + +"@ethersproject/networks@^5.7.0": + version "5.7.1" + resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6" + integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== + dependencies: + "@ethersproject/logger" "^5.7.0" + +"@ethersproject/properties@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" + integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== + dependencies: + "@ethersproject/logger" "^5.7.0" + +"@ethersproject/rlp@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304" + integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + +"@ethersproject/signing-key@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3" + integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + bn.js "^5.2.1" + elliptic "6.5.4" + hash.js "1.1.7" + +"@ethersproject/strings@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" + integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== + dependencies: + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + +"@ethersproject/transactions@^5.7.0": + version "5.7.0" + resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b" + integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== + dependencies: + "@ethersproject/address" "^5.7.0" + "@ethersproject/bignumber" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/constants" "^5.7.0" + "@ethersproject/keccak256" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/rlp" "^5.7.0" + "@ethersproject/signing-key" "^5.7.0" + +"@ethersproject/web@^5.7.0": + version "5.7.1" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" + integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== + dependencies: + "@ethersproject/base64" "^5.7.0" + "@ethersproject/bytes" "^5.7.0" + "@ethersproject/logger" "^5.7.0" + "@ethersproject/properties" "^5.7.0" + "@ethersproject/strings" "^5.7.0" + +"@fastify/busboy@^2.0.0": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d" + integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA== + +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== + +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@metamask/eth-sig-util@^4.0.0": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@metamask/eth-sig-util/-/eth-sig-util-4.0.1.tgz#3ad61f6ea9ad73ba5b19db780d40d9aae5157088" + integrity sha512-tghyZKLHZjcdlDqCA3gNZmLeR0XvOE9U1qoQO9ohyAZT6Pya+H9vkBPcsyXytmYLNgVoin7CKCmweo/R43V+tQ== + dependencies: + ethereumjs-abi "^0.6.8" + ethereumjs-util "^6.2.1" + ethjs-util "^0.1.6" + tweetnacl "^1.0.3" + tweetnacl-util "^0.15.1" + +"@noble/curves@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35" + integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw== + dependencies: + "@noble/hashes" "1.3.2" + +"@noble/curves@1.4.2", "@noble/curves@~1.4.0": + version "1.4.2" + resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.2.tgz#40309198c76ed71bc6dbf7ba24e81ceb4d0d1fe9" + integrity sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw== + dependencies: + "@noble/hashes" "1.4.0" + +"@noble/hashes@1.2.0", "@noble/hashes@~1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.2.0.tgz#a3150eeb09cc7ab207ebf6d7b9ad311a9bdbed12" + integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== + +"@noble/hashes@1.3.2": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" + integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== + +"@noble/hashes@1.4.0", "@noble/hashes@~1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" + integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== + +"@noble/hashes@^1.4.0": + version "1.6.1" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.1.tgz#df6e5943edcea504bac61395926d6fd67869a0d5" + integrity sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w== + +"@noble/secp256k1@1.7.1", "@noble/secp256k1@~1.7.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@nomicfoundation/edr-darwin-arm64@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.6.5.tgz#37a31565d7ef42bed9028ac44aed82144de30bd1" + integrity sha512-A9zCCbbNxBpLgjS1kEJSpqxIvGGAX4cYbpDYCU2f3jVqOwaZ/NU761y1SvuCRVpOwhoCXqByN9b7HPpHi0L4hw== + +"@nomicfoundation/edr-darwin-x64@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.6.5.tgz#3252f6e86397af460b7a480bfe1b889464d75b89" + integrity sha512-x3zBY/v3R0modR5CzlL6qMfFMdgwd6oHrWpTkuuXnPFOX8SU31qq87/230f4szM+ukGK8Hi+mNq7Ro2VF4Fj+w== + +"@nomicfoundation/edr-linux-arm64-gnu@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.6.5.tgz#e7dc2934920b6cfabeb5ee7a5e26c8fb0d4964ac" + integrity sha512-HGpB8f1h8ogqPHTyUpyPRKZxUk2lu061g97dOQ/W4CxevI0s/qiw5DB3U3smLvSnBHKOzYS1jkxlMeGN01ky7A== + +"@nomicfoundation/edr-linux-arm64-musl@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.6.5.tgz#00459cd53e9fb7bd5b7e32128b508a6e89079d89" + integrity sha512-ESvJM5Y9XC03fZg9KaQg3Hl+mbx7dsSkTIAndoJS7X2SyakpL9KZpOSYrDk135o8s9P9lYJdPOyiq+Sh+XoCbQ== + +"@nomicfoundation/edr-linux-x64-gnu@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.6.5.tgz#5c9e4e2655caba48e0196977cba395bbde6fe97d" + integrity sha512-HCM1usyAR1Ew6RYf5AkMYGvHBy64cPA5NMbaeY72r0mpKaH3txiMyydcHibByOGdQ8iFLWpyUdpl1egotw+Tgg== + +"@nomicfoundation/edr-linux-x64-musl@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.6.5.tgz#9c220751b66452dc43a365f380e1e236a0a8c5a9" + integrity sha512-nB2uFRyczhAvWUH7NjCsIO6rHnQrof3xcCe6Mpmnzfl2PYcGyxN7iO4ZMmRcQS7R1Y670VH6+8ZBiRn8k43m7A== + +"@nomicfoundation/edr-win32-x64-msvc@0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.6.5.tgz#90d3ac2a6a8a687522bda5ff2e92dd97e68126ea" + integrity sha512-B9QD/4DSSCFtWicO8A3BrsnitO1FPv7axB62wq5Q+qeJ50yJlTmyeGY3cw62gWItdvy2mh3fRM6L1LpnHiB77A== + +"@nomicfoundation/edr@^0.6.5": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/edr/-/edr-0.6.5.tgz#b3b1ebcdd0148cfe67cca128e7ebe8092e200359" + integrity sha512-tAqMslLP+/2b2sZP4qe9AuGxG3OkQ5gGgHE4isUuq6dUVjwCRPFhAOhpdFl+OjY5P3yEv3hmq9HjUGRa2VNjng== + dependencies: + "@nomicfoundation/edr-darwin-arm64" "0.6.5" + "@nomicfoundation/edr-darwin-x64" "0.6.5" + "@nomicfoundation/edr-linux-arm64-gnu" "0.6.5" + "@nomicfoundation/edr-linux-arm64-musl" "0.6.5" + "@nomicfoundation/edr-linux-x64-gnu" "0.6.5" + "@nomicfoundation/edr-linux-x64-musl" "0.6.5" + "@nomicfoundation/edr-win32-x64-msvc" "0.6.5" + +"@nomicfoundation/ethereumjs-common@4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.4.tgz#9901f513af2d4802da87c66d6f255b510bef5acb" + integrity sha512-9Rgb658lcWsjiicr5GzNCjI1llow/7r0k50dLL95OJ+6iZJcVbi15r3Y0xh2cIO+zgX0WIHcbzIu6FeQf9KPrg== + dependencies: + "@nomicfoundation/ethereumjs-util" "9.0.4" + +"@nomicfoundation/ethereumjs-rlp@5.0.4": + version "5.0.4" + resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.4.tgz#66c95256fc3c909f6fb18f6a586475fc9762fa30" + integrity sha512-8H1S3s8F6QueOc/X92SdrA4RDenpiAEqMg5vJH99kcQaCy/a3Q6fgseo75mgWlbanGJXSlAPtnCeG9jvfTYXlw== + +"@nomicfoundation/ethereumjs-tx@5.0.4": + version "5.0.4" + resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.4.tgz#b0ceb58c98cc34367d40a30d255d6315b2f456da" + integrity sha512-Xjv8wAKJGMrP1f0n2PeyfFCCojHd7iS3s/Ab7qzF1S64kxZ8Z22LCMynArYsVqiFx6rzYy548HNVEyI+AYN/kw== + dependencies: + "@nomicfoundation/ethereumjs-common" "4.0.4" + "@nomicfoundation/ethereumjs-rlp" "5.0.4" + "@nomicfoundation/ethereumjs-util" "9.0.4" + ethereum-cryptography "0.1.3" + +"@nomicfoundation/ethereumjs-util@9.0.4": + version "9.0.4" + resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.4.tgz#84c5274e82018b154244c877b76bc049a4ed7b38" + integrity sha512-sLOzjnSrlx9Bb9EFNtHzK/FJFsfg2re6bsGqinFinH1gCqVfz9YYlXiMWwDM4C/L4ywuHFCYwfKTVr/QHQcU0Q== + dependencies: + "@nomicfoundation/ethereumjs-rlp" "5.0.4" + ethereum-cryptography "0.1.3" + +"@nomicfoundation/hardhat-chai-matchers@^2.0.8": + version "2.0.8" + resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.0.8.tgz#9c7cfc4ad0f0a5e9cf16aba8ab668c02f6e273aa" + integrity sha512-Z5PiCXH4xhNLASROlSUOADfhfpfhYO6D7Hn9xp8PddmHey0jq704cr6kfU8TRrQ4PUZbpfsZadPj+pCfZdjPIg== + dependencies: + "@types/chai-as-promised" "^7.1.3" + chai-as-promised "^7.1.1" + deep-eql "^4.0.1" + ordinal "^1.0.3" + +"@nomicfoundation/hardhat-ethers@^3.0.6": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.8.tgz#af078f566373abeb77e11cbe69fe3dd47f8bfc27" + integrity sha512-zhOZ4hdRORls31DTOqg+GmEZM0ujly8GGIuRY7t7szEk2zW/arY1qDug/py8AEktT00v5K+b6RvbVog+va51IA== + dependencies: + debug "^4.1.1" + lodash.isequal "^4.5.0" + +"@nomicfoundation/hardhat-network-helpers@^1.0.12": + version "1.0.12" + resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.12.tgz#2c0abec0c50b75f9d0d71776e49e3b5ef746d289" + integrity sha512-xTNQNI/9xkHvjmCJnJOTyqDSl8uq1rKb2WOVmixQxFtRd7Oa3ecO8zM0cyC2YmOK+jHB9WPZ+F/ijkHg1CoORA== + dependencies: + ethereumjs-util "^7.1.4" + +"@nomicfoundation/hardhat-verify@^2.0.12": + version "2.0.12" + resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.0.12.tgz#480819a245a2db0b127e473c62079f7b4f16daa8" + integrity sha512-Lg3Nu7DCXASQRVI/YysjuAX2z8jwOCbS0w5tz2HalWGSTZThqA0v9N0v0psHbKNqzPJa8bNOeapIVSziyJTnAg== + dependencies: + "@ethersproject/abi" "^5.1.2" + "@ethersproject/address" "^5.0.2" + cbor "^8.1.0" + debug "^4.1.1" + lodash.clonedeep "^4.5.0" + picocolors "^1.1.0" + semver "^6.3.0" + table "^6.8.0" + undici "^5.14.0" + +"@nomicfoundation/slang@^0.18.3": + version "0.18.3" + resolved "https://registry.yarnpkg.com/@nomicfoundation/slang/-/slang-0.18.3.tgz#976b6c3820081cebf050afbea434038aac9313cc" + integrity sha512-YqAWgckqbHM0/CZxi9Nlf4hjk9wUNLC9ngWCWBiqMxPIZmzsVKYuChdlrfeBPQyvQQBoOhbx+7C1005kLVQDZQ== + dependencies: + "@bytecodealliance/preview2-shim" "0.17.0" + +"@nomicfoundation/solidity-analyzer-darwin-arm64@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.2.tgz#3a9c3b20d51360b20affb8f753e756d553d49557" + integrity sha512-JaqcWPDZENCvm++lFFGjrDd8mxtf+CtLd2MiXvMNTBD33dContTZ9TWETwNFwg7JTJT5Q9HEecH7FA+HTSsIUw== + +"@nomicfoundation/solidity-analyzer-darwin-x64@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.2.tgz#74dcfabeb4ca373d95bd0d13692f44fcef133c28" + integrity sha512-fZNmVztrSXC03e9RONBT+CiksSeYcxI1wlzqyr0L7hsQlK1fzV+f04g2JtQ1c/Fe74ZwdV6aQBdd6Uwl1052sw== + +"@nomicfoundation/solidity-analyzer-linux-arm64-gnu@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.2.tgz#4af5849a89e5a8f511acc04f28eb5d4460ba2b6a" + integrity sha512-3d54oc+9ZVBuB6nbp8wHylk4xh0N0Gc+bk+/uJae+rUgbOBwQSfuGIbAZt1wBXs5REkSmynEGcqx6DutoK0tPA== + +"@nomicfoundation/solidity-analyzer-linux-arm64-musl@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.2.tgz#54036808a9a327b2ff84446c130a6687ee702a8e" + integrity sha512-iDJfR2qf55vgsg7BtJa7iPiFAsYf2d0Tv/0B+vhtnI16+wfQeTbP7teookbGvAo0eJo7aLLm0xfS/GTkvHIucA== + +"@nomicfoundation/solidity-analyzer-linux-x64-gnu@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.2.tgz#466cda0d6e43691986c944b909fc6dbb8cfc594e" + integrity sha512-9dlHMAt5/2cpWyuJ9fQNOUXFB/vgSFORg1jpjX1Mh9hJ/MfZXlDdHQ+DpFCs32Zk5pxRBb07yGvSHk9/fezL+g== + +"@nomicfoundation/solidity-analyzer-linux-x64-musl@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.2.tgz#2b35826987a6e94444140ac92310baa088ee7f94" + integrity sha512-GzzVeeJob3lfrSlDKQw2bRJ8rBf6mEYaWY+gW0JnTDHINA0s2gPR4km5RLIj1xeZZOYz4zRw+AEeYgLRqB2NXg== + +"@nomicfoundation/solidity-analyzer-win32-x64-msvc@0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.2.tgz#e6363d13b8709ca66f330562337dbc01ce8bbbd9" + integrity sha512-Fdjli4DCcFHb4Zgsz0uEJXZ2K7VEO+w5KVv7HmT7WO10iODdU9csC2az4jrhEsRtiR9Gfd74FlG0NYlw1BMdyA== + +"@nomicfoundation/solidity-analyzer@^0.1.0": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.2.tgz#8bcea7d300157bf3a770a851d9f5c5e2db34ac55" + integrity sha512-q4n32/FNKIhQ3zQGGw5CvPF6GTvDCpYwIf7bEY/dZTZbgfDsHyjJwURxUJf3VQuuJj+fDIFl4+KkBVbw4Ef6jA== + optionalDependencies: + "@nomicfoundation/solidity-analyzer-darwin-arm64" "0.1.2" + "@nomicfoundation/solidity-analyzer-darwin-x64" "0.1.2" + "@nomicfoundation/solidity-analyzer-linux-arm64-gnu" "0.1.2" + "@nomicfoundation/solidity-analyzer-linux-arm64-musl" "0.1.2" + "@nomicfoundation/solidity-analyzer-linux-x64-gnu" "0.1.2" + "@nomicfoundation/solidity-analyzer-linux-x64-musl" "0.1.2" + "@nomicfoundation/solidity-analyzer-win32-x64-msvc" "0.1.2" + +"@openzeppelin/contracts-upgradeable@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-5.1.0.tgz#4d37648b7402929c53e2ff6e45749ecff91eb2b6" + integrity sha512-AIElwP5Ck+cslNE+Hkemf5SxjJoF4wBvvjxc27Rp+9jaPs/CLIaUBMYe1FNzhdiN0cYuwGRmYaRHmmntuiju4Q== + +"@openzeppelin/contracts@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-5.1.0.tgz#4e61162f2a2bf414c4e10c45eca98ce5f1aadbd4" + integrity sha512-p1ULhl7BXzjjbha5aqst+QMLY+4/LCWADXOCsmLHRM77AqiPjnd9vvUN9sosUfhL9JGKpZ0TjEGxgvnizmWGSA== + +"@openzeppelin/defender-sdk-base-client@^1.14.4", "@openzeppelin/defender-sdk-base-client@^1.15.2": + version "1.15.2" + resolved "https://registry.yarnpkg.com/@openzeppelin/defender-sdk-base-client/-/defender-sdk-base-client-1.15.2.tgz#aae7ec001365968b81ccce087f39a6eb52fa13f9" + integrity sha512-N3ZTeH8TXyklL7yNPMLUv0dxQwT78DTkOEDhzMS2/QE2FxbXrclSseoeeXxl6UYI61RBtZKn+okbSsbwiB5QWQ== + dependencies: + amazon-cognito-identity-js "^6.3.6" + async-retry "^1.3.3" + +"@openzeppelin/defender-sdk-deploy-client@^1.14.4": + version "1.15.2" + resolved "https://registry.yarnpkg.com/@openzeppelin/defender-sdk-deploy-client/-/defender-sdk-deploy-client-1.15.2.tgz#3b1d953aa66b6cdee13e7e672a488af2e2acf974" + integrity sha512-zspzMqh+OC8arXAkgBqTUDVO+NfCkt54UrsmQHbA3UAjr5TiDXKycBKU5ORb01hE+2gAmoPwEpDW9uS2VLg33A== + dependencies: + "@openzeppelin/defender-sdk-base-client" "^1.15.2" + axios "^1.7.2" + lodash "^4.17.21" + +"@openzeppelin/defender-sdk-network-client@^1.14.4": + version "1.15.2" + resolved "https://registry.yarnpkg.com/@openzeppelin/defender-sdk-network-client/-/defender-sdk-network-client-1.15.2.tgz#7178836d9861272ad509d93dea8739a5c4bf86c1" + integrity sha512-9r9pegc1aR7xzP9fmj1zvkk0OXMRJE10JabxxiJzAQQgmNXDeTGI6W5bFgrNJfxzcImNGqddJ3K4weKdLyL21A== + dependencies: + "@openzeppelin/defender-sdk-base-client" "^1.15.2" + axios "^1.7.2" + lodash "^4.17.21" + +"@openzeppelin/hardhat-upgrades@^3.5.0": + version "3.8.0" + resolved "https://registry.yarnpkg.com/@openzeppelin/hardhat-upgrades/-/hardhat-upgrades-3.8.0.tgz#df865f208a8fd379e136b5f8454e1bcc5417dedb" + integrity sha512-NwRk14ykTVilQqB0Vzd0vOWvUE8gpyn+SSwdzyHECRc5fuSSPDt/cIdadG9Hd6AKMPXfY+CS6G7q0+nDLng2Zw== + dependencies: + "@openzeppelin/defender-sdk-base-client" "^1.14.4" + "@openzeppelin/defender-sdk-deploy-client" "^1.14.4" + "@openzeppelin/defender-sdk-network-client" "^1.14.4" + "@openzeppelin/upgrades-core" "^1.41.0" + chalk "^4.1.0" + debug "^4.1.1" + ethereumjs-util "^7.1.5" + proper-lockfile "^4.1.1" + undici "^6.11.1" + +"@openzeppelin/upgrades-core@^1.41.0": + version "1.41.0" + resolved "https://registry.yarnpkg.com/@openzeppelin/upgrades-core/-/upgrades-core-1.41.0.tgz#3a5e044cf53acd50c392f3297e7c37e4ff8f8355" + integrity sha512-+oryinqZnxkiZvg7bWqWX4Ki/CNwVUZEqC6Elpi5PQoahpL3/6Sq9xjIozD5AiI2O61h8JHQ+A//5NtczyavJw== + dependencies: + "@nomicfoundation/slang" "^0.18.3" + cbor "^9.0.0" + chalk "^4.1.0" + compare-versions "^6.0.0" + debug "^4.1.1" + ethereumjs-util "^7.0.3" + minimatch "^9.0.5" + minimist "^1.2.7" + proper-lockfile "^4.1.1" + solidity-ast "^0.4.51" + +"@scure/base@~1.1.0", "@scure/base@~1.1.6": + version "1.1.9" + resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.9.tgz#e5e142fbbfe251091f9c5f1dd4c834ac04c3dbd1" + integrity sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg== + +"@scure/bip32@1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.1.5.tgz#d2ccae16dcc2e75bc1d75f5ef3c66a338d1ba300" + integrity sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw== + dependencies: + "@noble/hashes" "~1.2.0" + "@noble/secp256k1" "~1.7.0" + "@scure/base" "~1.1.0" + +"@scure/bip32@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.4.0.tgz#4e1f1e196abedcef395b33b9674a042524e20d67" + integrity sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg== + dependencies: + "@noble/curves" "~1.4.0" + "@noble/hashes" "~1.4.0" + "@scure/base" "~1.1.6" + +"@scure/bip39@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.1.1.tgz#b54557b2e86214319405db819c4b6a370cf340c5" + integrity sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg== + dependencies: + "@noble/hashes" "~1.2.0" + "@scure/base" "~1.1.0" + +"@scure/bip39@1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.3.0.tgz#0f258c16823ddd00739461ac31398b4e7d6a18c3" + integrity sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ== + dependencies: + "@noble/hashes" "~1.4.0" + "@scure/base" "~1.1.6" + +"@sentry/core@5.30.0": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.30.0.tgz#6b203664f69e75106ee8b5a2fe1d717379b331f3" + integrity sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg== + dependencies: + "@sentry/hub" "5.30.0" + "@sentry/minimal" "5.30.0" + "@sentry/types" "5.30.0" + "@sentry/utils" "5.30.0" + tslib "^1.9.3" + +"@sentry/hub@5.30.0": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.30.0.tgz#2453be9b9cb903404366e198bd30c7ca74cdc100" + integrity sha512-2tYrGnzb1gKz2EkMDQcfLrDTvmGcQPuWxLnJKXJvYTQDGLlEvi2tWz1VIHjunmOvJrB5aIQLhm+dcMRwFZDCqQ== + dependencies: + "@sentry/types" "5.30.0" + "@sentry/utils" "5.30.0" + tslib "^1.9.3" + +"@sentry/minimal@5.30.0": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.30.0.tgz#ce3d3a6a273428e0084adcb800bc12e72d34637b" + integrity sha512-BwWb/owZKtkDX+Sc4zCSTNcvZUq7YcH3uAVlmh/gtR9rmUvbzAA3ewLuB3myi4wWRAMEtny6+J/FN/x+2wn9Xw== + dependencies: + "@sentry/hub" "5.30.0" + "@sentry/types" "5.30.0" + tslib "^1.9.3" + +"@sentry/node@^5.18.1": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/node/-/node-5.30.0.tgz#4ca479e799b1021285d7fe12ac0858951c11cd48" + integrity sha512-Br5oyVBF0fZo6ZS9bxbJZG4ApAjRqAnqFFurMVJJdunNb80brh7a5Qva2kjhm+U6r9NJAB5OmDyPkA1Qnt+QVg== + dependencies: + "@sentry/core" "5.30.0" + "@sentry/hub" "5.30.0" + "@sentry/tracing" "5.30.0" + "@sentry/types" "5.30.0" + "@sentry/utils" "5.30.0" + cookie "^0.4.1" + https-proxy-agent "^5.0.0" + lru_map "^0.3.3" + tslib "^1.9.3" + +"@sentry/tracing@5.30.0": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.30.0.tgz#501d21f00c3f3be7f7635d8710da70d9419d4e1f" + integrity sha512-dUFowCr0AIMwiLD7Fs314Mdzcug+gBVo/+NCMyDw8tFxJkwWAKl7Qa2OZxLQ0ZHjakcj1hNKfCQJ9rhyfOl4Aw== + dependencies: + "@sentry/hub" "5.30.0" + "@sentry/minimal" "5.30.0" + "@sentry/types" "5.30.0" + "@sentry/utils" "5.30.0" + tslib "^1.9.3" + +"@sentry/types@5.30.0": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.30.0.tgz#19709bbe12a1a0115bc790b8942917da5636f402" + integrity sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw== + +"@sentry/utils@5.30.0": + version "5.30.0" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.30.0.tgz#9a5bd7ccff85ccfe7856d493bffa64cabc41e980" + integrity sha512-zaYmoH0NWWtvnJjC9/CBseXMtKHm/tm40sz3YfJRxeQjyzRqNQPgivpd9R/oDJCYj999mzdW382p/qi2ypjLww== + dependencies: + "@sentry/types" "5.30.0" + tslib "^1.9.3" + +"@smithy/types@^3.7.2": + version "3.7.2" + resolved "https://registry.yarnpkg.com/@smithy/types/-/types-3.7.2.tgz#05cb14840ada6f966de1bf9a9c7dd86027343e10" + integrity sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg== + dependencies: + tslib "^2.6.2" + +"@solidity-parser/parser@^0.18.0": + version "0.18.0" + resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.18.0.tgz#8e77a02a09ecce957255a2f48c9a7178ec191908" + integrity sha512-yfORGUIPgLck41qyN7nbwJRAx17/jAIXCTanHOJZhB6PJ1iAk/84b/xlsVKFSyNyLXIj0dhppoE0+CRws7wlzA== + +"@solidity-parser/parser@^0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.19.0.tgz#37a8983b2725af9b14ff8c4a475fa0e98d773c3f" + integrity sha512-RV16k/qIxW/wWc+mLzV3ARyKUaMUTBy9tOLMzFhtNSKYeTAanQ3a5MudJKf/8arIFnA2L27SNjarQKmFg0w/jA== + +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + +"@typechain/ethers-v6@^0.5.1": + version "0.5.1" + resolved "https://registry.yarnpkg.com/@typechain/ethers-v6/-/ethers-v6-0.5.1.tgz#42fe214a19a8b687086c93189b301e2b878797ea" + integrity sha512-F+GklO8jBWlsaVV+9oHaPh5NJdd6rAKN4tklGfInX1Q7h0xPgVLP39Jl3eCulPB5qexI71ZFHwbljx4ZXNfouA== + dependencies: + lodash "^4.17.15" + ts-essentials "^7.0.1" + +"@typechain/hardhat@^9.1.0": + version "9.1.0" + resolved "https://registry.yarnpkg.com/@typechain/hardhat/-/hardhat-9.1.0.tgz#6985015f01dfb37ef2ca8a29c742d05890351ddc" + integrity sha512-mtaUlzLlkqTlfPwB3FORdejqBskSnh+Jl8AIJGjXNAQfRQ4ofHADPl1+oU7Z3pAJzmZbUXII8MhOLQltcHgKnA== + dependencies: + fs-extra "^9.1.0" + +"@types/bn.js@*", "@types/bn.js@^5.1.0": + version "5.1.6" + resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.6.tgz#9ba818eec0c85e4d3c679518428afdf611d03203" + integrity sha512-Xh8vSwUeMKeYYrj3cX4lGQgFSF/N03r+tv4AiLl1SucqV+uTQpxRcnM8AkXKHwYP9ZPXOYXRr2KPXpVlIvqh9w== + dependencies: + "@types/node" "*" + +"@types/bn.js@^4.11.3": + version "4.11.6" + resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c" + integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg== + dependencies: + "@types/node" "*" + +"@types/chai-as-promised@^7.1.3": + version "7.1.8" + resolved "https://registry.yarnpkg.com/@types/chai-as-promised/-/chai-as-promised-7.1.8.tgz#f2b3d82d53c59626b5d6bbc087667ccb4b677fe9" + integrity sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw== + dependencies: + "@types/chai" "*" + +"@types/chai@*": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-5.0.1.tgz#2c3705555cf11f5f59c836a84c44afcfe4e5689d" + integrity sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA== + dependencies: + "@types/deep-eql" "*" + +"@types/chai@4": + version "4.3.20" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.20.tgz#cb291577ed342ca92600430841a00329ba05cecc" + integrity sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ== + +"@types/deep-eql@*": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/deep-eql/-/deep-eql-4.0.2.tgz#334311971d3a07121e7eb91b684a605e7eea9cbd" + integrity sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw== + +"@types/elliptic@^6.4.18": + version "6.4.18" + resolved "https://registry.yarnpkg.com/@types/elliptic/-/elliptic-6.4.18.tgz#bc96e26e1ccccbabe8b6f0e409c85898635482e1" + integrity sha512-UseG6H5vjRiNpQvrhy4VF/JXdA3V/Fp5amvveaL+fs28BZ6xIKJBPnUPRlEaZpysD9MbpfaLi8lbl7PGUAkpWw== + dependencies: + "@types/bn.js" "*" + +"@types/glob@^7.1.1": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb" + integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== + dependencies: + "@types/minimatch" "*" + "@types/node" "*" + +"@types/lru-cache@^5.1.0": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.1.tgz#c48c2e27b65d2a153b19bfc1a317e30872e01eef" + integrity sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw== + +"@types/minimatch@*": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca" + integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== + +"@types/mocha@^10.0.9": + version "10.0.10" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.10.tgz#91f62905e8d23cbd66225312f239454a23bebfa0" + integrity sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q== + +"@types/node@*", "@types/node@^22.9.0": + version "22.10.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.2.tgz#a485426e6d1fdafc7b0d4c7b24e2c78182ddabb9" + integrity sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ== + dependencies: + undici-types "~6.20.0" + +"@types/node@22.7.5": + version "22.7.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.5.tgz#cfde981727a7ab3611a481510b473ae54442b92b" + integrity sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ== + dependencies: + undici-types "~6.19.2" + +"@types/pbkdf2@^3.0.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@types/pbkdf2/-/pbkdf2-3.1.2.tgz#2dc43808e9985a2c69ff02e2d2027bd4fe33e8dc" + integrity sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew== + dependencies: + "@types/node" "*" + +"@types/prettier@^2.1.1": + version "2.7.3" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f" + integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== + +"@types/secp256k1@^4.0.1": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@types/secp256k1/-/secp256k1-4.0.6.tgz#d60ba2349a51c2cbc5e816dcd831a42029d376bf" + integrity sha512-hHxJU6PAEUn0TP4S/ZOzuTUvJWuZ6eIKeNKb5RBpODvSl6hp1Wrw4s7ATY50rklRCScUDpHzVA/DQdSjJ3UoYQ== + dependencies: + "@types/node" "*" + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +abbrev@1.0.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" + integrity sha512-LEyx4aLEC3x6T0UguF6YILf+ntvmOaWsVfENmIW0E9H09vKlLDGelMjjSm0jkDHALj8A8quZ/HapKNigzwge+Q== + +acorn-walk@^8.1.1: + version "8.3.4" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== + dependencies: + acorn "^8.11.0" + +acorn@^8.11.0, acorn@^8.4.1: + version "8.14.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0" + integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA== + +adm-zip@^0.4.16: + version "0.4.16" + resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.4.16.tgz#cf4c508fdffab02c269cbc7f471a875f05570365" + integrity sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg== + +aes-js@4.0.0-beta.5: + version "4.0.0-beta.5" + resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-4.0.0-beta.5.tgz#8d2452c52adedebc3a3e28465d858c11ca315873" + integrity sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv@^8.0.1: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + +amazon-cognito-identity-js@^6.3.6: + version "6.3.12" + resolved "https://registry.yarnpkg.com/amazon-cognito-identity-js/-/amazon-cognito-identity-js-6.3.12.tgz#af73df033094ad4c679c19cf6122b90058021619" + integrity sha512-s7NKDZgx336cp+oDeUtB2ZzT8jWJp/v2LWuYl+LQtMEODe22RF1IJ4nRiDATp+rp1pTffCZcm44Quw4jx2bqNg== + dependencies: + "@aws-crypto/sha256-js" "1.2.2" + buffer "4.9.2" + fast-base64-decode "^1.0.0" + isomorphic-unfetch "^3.0.0" + js-cookie "^2.2.1" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg== + +ansi-align@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" + integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== + dependencies: + string-width "^4.1.0" + +ansi-colors@^4.1.1, ansi-colors@^4.1.3: + version "4.1.3" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" + integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== + +ansi-escapes@^4.3.0: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +array-back@^3.0.1, array-back@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/array-back/-/array-back-3.1.0.tgz#b8859d7a508871c9a7b2cf42f99428f65e96bfb0" + integrity sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q== + +array-back@^4.0.1, array-back@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/array-back/-/array-back-4.0.2.tgz#8004e999a6274586beeb27342168652fdb89fa1e" + integrity sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg== + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + +assertion-error@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" + integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== + +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async-retry@^1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.3.tgz#0e7f36c04d8478e7a58bdbed80cedf977785f280" + integrity sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw== + dependencies: + retry "0.13.1" + +async@1.x: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + integrity sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + +axios@^1.7.2: + version "1.7.9" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.9.tgz#d7d071380c132a24accda1b2cfc1535b79ec650a" + integrity sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +base-x@^3.0.2: + version "3.0.10" + resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.10.tgz#62de58653f8762b5d6f8d9fe30fa75f7b2585a75" + integrity sha512-7d0s06rR9rYaIWHkpfLIFICM/tkSVdoPC9qYAQRpxn9DdKNWNsKC0uk++akckyLq16Tx2WIinnZ6WRriAt6njQ== + dependencies: + safe-buffer "^5.0.1" + +base-x@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/base-x/-/base-x-5.0.0.tgz#6d835ceae379130e1a4cb846a70ac4746f28ea9b" + integrity sha512-sMW3VGSX1QWVFA6l8U62MLKz29rRfpTlYdCqLdpLo1/Yd4zZwSbnUaDfciIAowAqvq7YFnWq9hrhdg1KYgc1lQ== + +base64-js@^1.0.2: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +binary-extensions@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== + +blakejs@^1.1.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.2.1.tgz#5057e4206eadb4a97f7c0b6e197a505042fc3814" + integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== + +bn.js@4.11.6: + version "4.11.6" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215" + integrity sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA== + +bn.js@^4.11.0, bn.js@^4.11.8, bn.js@^4.11.9: + version "4.12.1" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.1.tgz#215741fe3c9dba2d7e12c001d0cfdbae43975ba7" + integrity sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg== + +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== + +borsh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/borsh/-/borsh-2.0.0.tgz#042a9f109565caac3c6a21297cd8c0ae8db3149d" + integrity sha512-kc9+BgR3zz9+cjbwM8ODoUB4fs3X3I5A/HtX7LZKxCLaMrEeDFoBpnhZY//DTS1VZBSs6S5v46RZRbZjRFspEg== + +boxen@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" + integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ== + dependencies: + ansi-align "^3.0.0" + camelcase "^6.2.0" + chalk "^4.1.0" + cli-boxes "^2.2.1" + string-width "^4.2.2" + type-fest "^0.20.2" + widest-line "^3.1.0" + wrap-ansi "^7.0.0" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +braces@^3.0.3, braces@~3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== + dependencies: + fill-range "^7.1.1" + +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== + +browser-stdout@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" + integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== + +browserify-aes@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +bs58@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/bs58/-/bs58-4.0.1.tgz#be161e76c354f6f788ae4071f63f34e8c4f0a42a" + integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw== + dependencies: + base-x "^3.0.2" + +bs58@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/bs58/-/bs58-6.0.0.tgz#a2cda0130558535dd281a2f8697df79caaf425d8" + integrity sha512-PD0wEnEYg6ijszw/u8s+iI3H17cTymlrwkKhDhPZq+Sokl3AU4htyBFTjAeNAlCCmg0f53g6ih3jATyCKftTfw== + dependencies: + base-x "^5.0.0" + +bs58check@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-2.1.2.tgz#53b018291228d82a5aa08e7d796fdafda54aebfc" + integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== + dependencies: + bs58 "^4.0.0" + create-hash "^1.1.0" + safe-buffer "^5.1.2" + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== + +buffer@4.9.2: + version "4.9.2" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.2.tgz#230ead344002988644841ab0244af8c44bbe3ef8" + integrity sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg== + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + isarray "^1.0.0" + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +camelcase@^6.0.0, camelcase@^6.2.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== + +cbor@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/cbor/-/cbor-8.1.0.tgz#cfc56437e770b73417a2ecbfc9caf6b771af60d5" + integrity sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg== + dependencies: + nofilter "^3.1.0" + +cbor@^9.0.0: + version "9.0.2" + resolved "https://registry.yarnpkg.com/cbor/-/cbor-9.0.2.tgz#536b4f2d544411e70ec2b19a2453f10f83cd9fdb" + integrity sha512-JPypkxsB10s9QOWwa6zwPzqE1Md3vqpPc+cai4sAecuCsRyAtAl/pMyhPlMbT/xtPnm2dznJZYRLui57qiRhaQ== + dependencies: + nofilter "^3.1.0" + +chai-as-promised@^7.1.1: + version "7.1.2" + resolved "https://registry.yarnpkg.com/chai-as-promised/-/chai-as-promised-7.1.2.tgz#70cd73b74afd519754161386421fb71832c6d041" + integrity sha512-aBDHZxRzYnUYuIAIPBH2s511DjlKPzXNlXSGFC8CwmroWQLfrW0LtE1nK3MAwwNhJPa9raEjNCmRoFpG0Hurdw== + dependencies: + check-error "^1.0.2" + +chai@4: + version "4.5.0" + resolved "https://registry.yarnpkg.com/chai/-/chai-4.5.0.tgz#707e49923afdd9b13a8b0b47d33d732d13812fd8" + integrity sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw== + dependencies: + assertion-error "^1.1.0" + check-error "^1.0.3" + deep-eql "^4.1.3" + get-func-name "^2.0.2" + loupe "^2.3.6" + pathval "^1.1.1" + type-detect "^4.1.0" + +chalk@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.1.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +check-error@^1.0.2, check-error@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.3.tgz#a6502e4312a7ee969f646e83bb3ddd56281bd694" + integrity sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg== + dependencies: + get-func-name "^2.0.2" + +chokidar@^3.5.3: + version "3.6.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +chokidar@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.3.tgz#7be37a4c03c9aee1ecfe862a4a23b2c70c205d30" + integrity sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA== + dependencies: + readdirp "^4.0.1" + +ci-info@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" + integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.6.tgz#8fe672437d01cd6c4561af5334e0cc50ff1955f7" + integrity sha512-3Ek9H3X6pj5TgenXYtNWdaBon1tgYCaebd+XPg0keyjEbEfkD4KkmAxkQ/i1vYvxdcT5nscLBfq9VJRmCBcFSw== + dependencies: + inherits "^2.0.4" + safe-buffer "^5.2.1" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cli-boxes@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" + integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +command-exists@^1.2.8: + version "1.2.9" + resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" + integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== + +command-line-args@^5.1.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.2.1.tgz#c44c32e437a57d7c51157696893c5909e9cec42e" + integrity sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg== + dependencies: + array-back "^3.1.0" + find-replace "^3.0.0" + lodash.camelcase "^4.3.0" + typical "^4.0.0" + +command-line-usage@^6.1.0: + version "6.1.3" + resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-6.1.3.tgz#428fa5acde6a838779dfa30e44686f4b6761d957" + integrity sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw== + dependencies: + array-back "^4.0.2" + chalk "^2.4.2" + table-layout "^1.0.2" + typical "^5.2.0" + +commander@^8.1.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" + integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== + +compare-versions@^6.0.0: + version "6.1.1" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-6.1.1.tgz#7af3cc1099ba37d244b3145a9af5201b629148a9" + integrity sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg== + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +console-table-printer@^2.9.0: + version "2.12.1" + resolved "https://registry.yarnpkg.com/console-table-printer/-/console-table-printer-2.12.1.tgz#4a9646537a246a6d8de57075d4fae1e08abae267" + integrity sha512-wKGOQRRvdnd89pCeH96e2Fn4wkbenSP6LMHfjfyNLMbGuHEFbMqQNuxXqd0oXG9caIOQ1FTvc5Uijp9/4jujnQ== + dependencies: + simple-wcswidth "^1.0.1" + +cookie@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432" + integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA== + +create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.4, create-hmac@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +death@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/death/-/death-1.1.0.tgz#01aa9c401edd92750514470b8266390c66c67318" + integrity sha512-vsV6S4KVHvTGxbEcij7hkWRv0It+sGGWVOM67dQde/o5Xjnr+KmLjxWJii2uEObIrt1CcM9w0Yaovx+iOlIL+w== + +debug@4, debug@^4.1.1, debug@^4.3.1, debug@^4.3.5: + version "4.4.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" + integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== + dependencies: + ms "^2.1.3" + +decamelize@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" + integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== + +deep-eql@^4.0.1, deep-eql@^4.1.3: + version "4.1.4" + resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.4.tgz#d0d3912865911bb8fac5afb4e3acfa6a28dc72b7" + integrity sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg== + dependencies: + type-detect "^4.0.0" + +deep-extend@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-is@~0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +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== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +diff@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.2.0.tgz#26ded047cd1179b78b9537d5ef725503ce1ae531" + integrity sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A== + +difflib@^0.2.4: + version "0.2.4" + resolved "https://registry.yarnpkg.com/difflib/-/difflib-0.2.4.tgz#b5e30361a6db023176d562892db85940a718f47e" + integrity sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w== + dependencies: + heap ">= 0.2.0" + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +dotenv@^16.4.5: + version "16.4.7" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.7.tgz#0e20c5b82950140aa99be360a8a5f52335f53c26" + integrity sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ== + +elliptic@6.5.4: + version "6.5.4" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +elliptic@^6.5.2, elliptic@^6.5.7: + version "6.6.1" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.6.1.tgz#3b8ffb02670bf69e382c7f65bf524c97c5405c06" + integrity sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +enquirer@^2.3.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.4.1.tgz#93334b3fbd74fc7097b224ab4a8fb7e40bf4ae56" + integrity sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ== + dependencies: + ansi-colors "^4.1.1" + strip-ansi "^6.0.1" + +env-paths@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" + integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== + +escalade@^3.1.1: + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escodegen@1.8.x: + version "1.8.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" + integrity sha512-yhi5S+mNTOuRvyW4gWlg5W1byMaQGWWSYHXsuFZ7GBo7tpyOwi2EdzMP/QWxh9hwkD2m+wDVHJsxhRIj+v/b/A== + dependencies: + esprima "^2.7.1" + estraverse "^1.9.1" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.2.0" + +esprima@2.7.x, esprima@^2.7.1: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + integrity sha512-OarPfz0lFCiW4/AV2Oy1Rp9qu0iusTKqykwTspGCZtPxmF81JR4MmIebvF1F9+UOKth2ZubLQ4XGGaU+hSn99A== + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +estraverse@^1.9.1: + version "1.9.3" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" + integrity sha512-25w1fMXQrGdoquWnScXZGckOv+Wes+JDnuN/+7ex3SauFRS72r2lFDec0EKPt2YD1wUJ/IrfEex+9yp4hfSOJA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +ethereum-bloom-filters@^1.0.6: + version "1.2.0" + resolved "https://registry.yarnpkg.com/ethereum-bloom-filters/-/ethereum-bloom-filters-1.2.0.tgz#8294f074c1a6cbd32c39d2cc77ce86ff14797dab" + integrity sha512-28hyiE7HVsWubqhpVLVmZXFd4ITeHi+BUu05o9isf0GUpMtzBUi+8/gFrGaGYzvGAJQmJ3JKj77Mk9G98T84rA== + dependencies: + "@noble/hashes" "^1.4.0" + +ethereum-cryptography@0.1.3, ethereum-cryptography@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz#8d6143cfc3d74bf79bbd8edecdf29e4ae20dd191" + integrity sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ== + dependencies: + "@types/pbkdf2" "^3.0.0" + "@types/secp256k1" "^4.0.1" + blakejs "^1.1.0" + browserify-aes "^1.2.0" + bs58check "^2.1.2" + create-hash "^1.2.0" + create-hmac "^1.1.7" + hash.js "^1.1.7" + keccak "^3.0.0" + pbkdf2 "^3.0.17" + randombytes "^2.1.0" + safe-buffer "^5.1.2" + scrypt-js "^3.0.0" + secp256k1 "^4.0.1" + setimmediate "^1.0.5" + +ethereum-cryptography@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz#5ccfa183e85fdaf9f9b299a79430c044268c9b3a" + integrity sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw== + dependencies: + "@noble/hashes" "1.2.0" + "@noble/secp256k1" "1.7.1" + "@scure/bip32" "1.1.5" + "@scure/bip39" "1.1.1" + +ethereum-cryptography@^2.0.0, ethereum-cryptography@^2.1.2: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz#58f2810f8e020aecb97de8c8c76147600b0b8ccf" + integrity sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg== + dependencies: + "@noble/curves" "1.4.2" + "@noble/hashes" "1.4.0" + "@scure/bip32" "1.4.0" + "@scure/bip39" "1.3.0" + +ethereumjs-abi@^0.6.8: + version "0.6.8" + resolved "https://registry.yarnpkg.com/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz#71bc152db099f70e62f108b7cdfca1b362c6fcae" + integrity sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA== + dependencies: + bn.js "^4.11.8" + ethereumjs-util "^6.0.0" + +ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz#fcb4e4dd5ceacb9d2305426ab1a5cd93e3163b69" + integrity sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw== + dependencies: + "@types/bn.js" "^4.11.3" + bn.js "^4.11.0" + create-hash "^1.1.2" + elliptic "^6.5.2" + ethereum-cryptography "^0.1.3" + ethjs-util "0.1.6" + rlp "^2.2.3" + +ethereumjs-util@^7.0.3, ethereumjs-util@^7.1.4, ethereumjs-util@^7.1.5: + version "7.1.5" + resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz#9ecf04861e4fbbeed7465ece5f23317ad1129181" + integrity sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg== + dependencies: + "@types/bn.js" "^5.1.0" + bn.js "^5.1.2" + create-hash "^1.1.2" + ethereum-cryptography "^0.1.3" + rlp "^2.2.4" + +ethers@^6.13.4: + version "6.13.4" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.13.4.tgz#bd3e1c3dc1e7dc8ce10f9ffb4ee40967a651b53c" + integrity sha512-21YtnZVg4/zKkCQPjrDj38B1r4nQvTZLopUGMLQ1ePU2zV/joCfDC3t3iKQjWRzjjjbzR+mdAIoikeBRNkdllA== + dependencies: + "@adraffy/ens-normalize" "1.10.1" + "@noble/curves" "1.2.0" + "@noble/hashes" "1.3.2" + "@types/node" "22.7.5" + aes-js "4.0.0-beta.5" + tslib "2.7.0" + ws "8.17.1" + +ethjs-unit@0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/ethjs-unit/-/ethjs-unit-0.1.6.tgz#c665921e476e87bce2a9d588a6fe0405b2c41699" + integrity sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw== + dependencies: + bn.js "4.11.6" + number-to-bn "1.7.0" + +ethjs-util@0.1.6, ethjs-util@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/ethjs-util/-/ethjs-util-0.1.6.tgz#f308b62f185f9fe6237132fb2a9818866a5cd536" + integrity sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w== + dependencies: + is-hex-prefixed "1.0.0" + strip-hex-prefix "1.0.0" + +evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +fast-base64-decode@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz#b434a0dd7d92b12b43f26819300d2dafb83ee418" + integrity sha512-qwaScUgUGBYeDNRnbc/KyllVU88Jk1pRHPStuF/lO7B0/RTRLj7U0lkdTAutlBblY08rwZDff6tNU9cjv6j//Q== + +fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-glob@^3.0.3: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fast-uri@^3.0.1: + version "3.0.3" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.3.tgz#892a1c91802d5d7860de728f18608a0573142241" + integrity sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw== + +fastq@^1.6.0: + version "1.17.1" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== + dependencies: + reusify "^1.0.4" + +fdir@^6.4.2: + version "6.4.2" + resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.2.tgz#ddaa7ce1831b161bc3657bb99cb36e1622702689" + integrity sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ== + +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== + dependencies: + to-regex-range "^5.0.1" + +find-replace@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-3.0.0.tgz#3e7e23d3b05167a76f770c9fbd5258b0def68c38" + integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ== + dependencies: + array-back "^3.0.1" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + +follow-redirects@^1.12.1, follow-redirects@^1.15.6: + version "1.15.9" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" + integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== + +form-data@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" + integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +fp-ts@1.19.3: + version "1.19.3" + resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.19.3.tgz#261a60d1088fbff01f91256f91d21d0caaaaa96f" + integrity sha512-H5KQDspykdHuztLTg+ajGN0Z2qUjcEf3Ybxc6hLt0k7/zPkn29XnKnxlBPyW2XIddWrGaJBzBl4VLYOtk39yZg== + +fp-ts@^1.0.0: + version "1.19.5" + resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.19.5.tgz#3da865e585dfa1fdfd51785417357ac50afc520a" + integrity sha512-wDNqTimnzs8QqpldiId9OavWK2NptormjXnRJTQecNjzwfyp6P/8s/zG8e4h3ja3oqkKaY72UlTjQYt/1yXf9A== + +fs-extra@^7.0.0, fs-extra@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" + integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-extra@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-func-name@^2.0.1, get-func-name@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.2.tgz#0d7cf20cd13fda808669ffa88f4ffc7a3943fc41" + integrity sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ== + +ghost-testrpc@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/ghost-testrpc/-/ghost-testrpc-0.0.2.tgz#c4de9557b1d1ae7b2d20bbe474a91378ca90ce92" + integrity sha512-i08dAEgJ2g8z5buJIrCTduwPIhih3DP+hOCTyyryikfV8T0bNvHnGXO67i0DD1H4GBDETTclPy9njZbfluQYrQ== + dependencies: + chalk "^2.4.2" + node-emoji "^1.10.0" + +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@7.1.7: + version "7.1.7" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^5.0.15: + version "5.0.15" + resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" + integrity sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA== + dependencies: + inflight "^1.0.4" + inherits "2" + minimatch "2 || 3" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^7.0.0, glob@^7.1.3: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" + integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^5.0.1" + once "^1.3.0" + +global-modules@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" + integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== + dependencies: + global-prefix "^3.0.0" + +global-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" + integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== + dependencies: + ini "^1.3.5" + kind-of "^6.0.2" + which "^1.3.1" + +globby@^10.0.1: + version "10.0.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.2.tgz#277593e745acaa4646c3ab411289ec47a0392543" + integrity sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg== + dependencies: + "@types/glob" "^7.1.1" + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.0.3" + glob "^7.1.3" + ignore "^5.1.1" + merge2 "^1.2.3" + slash "^3.0.0" + +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + +handlebars@^4.0.1: + version "4.7.8" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.8.tgz#41c42c18b1be2365439188c77c6afae71c0cd9e9" + integrity sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ== + dependencies: + minimist "^1.2.5" + neo-async "^2.6.2" + source-map "^0.6.1" + wordwrap "^1.0.0" + optionalDependencies: + uglify-js "^3.1.4" + +hardhat-storage-layout@^0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/hardhat-storage-layout/-/hardhat-storage-layout-0.1.7.tgz#ad8a5afd8593ee51031eb1dd9476b4a2ed981785" + integrity sha512-q723g2iQnJpRdMC6Y8fbh/stG6MLHKNxa5jq/ohjtD5znOlOzQ6ojYuInY8V4o4WcPyG3ty4hzHYunLf66/1+A== + dependencies: + console-table-printer "^2.9.0" + +hardhat@^2.22.16: + version "2.22.17" + resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.22.17.tgz#96036bbe6bad8eb6a6b65c54dc5fbc1324541612" + integrity sha512-tDlI475ccz4d/dajnADUTRc1OJ3H8fpP9sWhXhBPpYsQOg8JHq5xrDimo53UhWPl7KJmAeDCm1bFG74xvpGRpg== + dependencies: + "@ethersproject/abi" "^5.1.2" + "@metamask/eth-sig-util" "^4.0.0" + "@nomicfoundation/edr" "^0.6.5" + "@nomicfoundation/ethereumjs-common" "4.0.4" + "@nomicfoundation/ethereumjs-tx" "5.0.4" + "@nomicfoundation/ethereumjs-util" "9.0.4" + "@nomicfoundation/solidity-analyzer" "^0.1.0" + "@sentry/node" "^5.18.1" + "@types/bn.js" "^5.1.0" + "@types/lru-cache" "^5.1.0" + adm-zip "^0.4.16" + aggregate-error "^3.0.0" + ansi-escapes "^4.3.0" + boxen "^5.1.2" + chokidar "^4.0.0" + ci-info "^2.0.0" + debug "^4.1.1" + enquirer "^2.3.0" + env-paths "^2.2.0" + ethereum-cryptography "^1.0.3" + ethereumjs-abi "^0.6.8" + find-up "^5.0.0" + fp-ts "1.19.3" + fs-extra "^7.0.1" + immutable "^4.0.0-rc.12" + io-ts "1.10.4" + json-stream-stringify "^3.1.4" + keccak "^3.0.2" + lodash "^4.17.11" + mnemonist "^0.38.0" + mocha "^10.0.0" + p-map "^4.0.0" + picocolors "^1.1.0" + raw-body "^2.4.1" + resolve "1.17.0" + semver "^6.3.0" + solc "0.8.26" + source-map-support "^0.5.13" + stacktrace-parser "^0.1.10" + tinyglobby "^0.2.6" + tsort "0.0.1" + undici "^5.14.0" + uuid "^8.3.2" + ws "^7.4.6" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + integrity sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +he@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +"heap@>= 0.2.0": + version "0.2.7" + resolved "https://registry.yarnpkg.com/heap/-/heap-0.2.7.tgz#1e6adf711d3f27ce35a81fe3b7bd576c2260a8fc" + integrity sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg== + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg== + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.4: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore@^5.1.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" + integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== + +immutable@^4.0.0-rc.12: + version "4.3.7" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.7.tgz#c70145fc90d89fb02021e65c84eb0226e4e5a381" + integrity sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw== + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ini@^1.3.5: + version "1.3.8" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + +interpret@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" + integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== + +io-ts@1.10.4: + version "1.10.4" + resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-1.10.4.tgz#cd5401b138de88e4f920adbcb7026e2d1967e6e2" + integrity sha512-b23PteSnYXSONJ6JQXRAlvJhuw8KOtkqa87W4wDtvMrud/DTJd5X+NpOOI+O/zZwVq6v0VLAaJ+1EDViKEuN9g== + dependencies: + fp-ts "^1.0.0" + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-core-module@^2.16.0: + version "2.16.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4" + integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== + dependencies: + hasown "^2.0.2" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-hex-prefixed@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554" + integrity sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA== + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-plain-obj@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +isarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +isomorphic-unfetch@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz#87341d5f4f7b63843d468438128cb087b7c3e98f" + integrity sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q== + dependencies: + node-fetch "^2.6.1" + unfetch "^4.2.0" + +js-cookie@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-2.2.1.tgz#69e106dc5d5806894562902aa5baec3744e9b2b8" + integrity sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ== + +js-sha3@0.8.0, js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== + +js-yaml@3.x: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-stream-stringify@^3.1.4: + version "3.1.6" + resolved "https://registry.yarnpkg.com/json-stream-stringify/-/json-stream-stringify-3.1.6.tgz#ebe32193876fb99d4ec9f612389a8d8e2b5d54d4" + integrity sha512-x7fpwxOkbhFCaJDJ8vb1fBY3DdSa4AlITaz+HHILQJzdPMnHEFjxPwVUi1ALIbcIxDE0PNe/0i7frnY8QnBQog== + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + +jsonschema@^1.2.4: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsonschema/-/jsonschema-1.4.1.tgz#cc4c3f0077fb4542982973d8a083b6b34f482dab" + integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ== + +keccak@^3.0.0, keccak@^3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" + integrity sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q== + dependencies: + node-addon-api "^2.0.0" + node-gyp-build "^4.2.0" + readable-stream "^3.6.0" + +kind-of@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" + integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== + +lodash.clonedeep@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== + +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" + integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== + +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== + +lodash@^4.17.11, lodash@^4.17.15, lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +loupe@^2.3.6: + version "2.3.7" + resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.7.tgz#6e69b7d4db7d3ab436328013d37d1c8c3540c697" + integrity sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA== + dependencies: + get-func-name "^2.0.1" + +lru_map@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/lru_map/-/lru_map-0.3.3.tgz#b5c8351b9464cbd750335a79650a0ec0e56118dd" + integrity sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ== + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +memorystream@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" + integrity sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw== + +merge2@^1.2.3, merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +micro-ftch@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/micro-ftch/-/micro-ftch-0.3.1.tgz#6cb83388de4c1f279a034fb0cf96dfc050853c5f" + integrity sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg== + +micromatch@^4.0.4: + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== + dependencies: + braces "^3.0.3" + picomatch "^2.3.1" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== + +"minimatch@2 || 3", minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^5.0.1, minimatch@^5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" + integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^9.0.5: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== + dependencies: + brace-expansion "^2.0.1" + +minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +mkdirp@0.5.x: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +mkdirp@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + +mnemonist@^0.38.0: + version "0.38.5" + resolved "https://registry.yarnpkg.com/mnemonist/-/mnemonist-0.38.5.tgz#4adc7f4200491237fe0fa689ac0b86539685cade" + integrity sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg== + dependencies: + obliterator "^2.0.0" + +mocha@^10.0.0, mocha@^10.2.0: + version "10.8.2" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.8.2.tgz#8d8342d016ed411b12a429eb731b825f961afb96" + integrity sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg== + dependencies: + ansi-colors "^4.1.3" + browser-stdout "^1.3.1" + chokidar "^3.5.3" + debug "^4.3.5" + diff "^5.2.0" + escape-string-regexp "^4.0.0" + find-up "^5.0.0" + glob "^8.1.0" + he "^1.2.0" + js-yaml "^4.1.0" + log-symbols "^4.1.0" + minimatch "^5.1.6" + ms "^2.1.3" + serialize-javascript "^6.0.2" + strip-json-comments "^3.1.1" + supports-color "^8.1.1" + workerpool "^6.5.1" + yargs "^16.2.0" + yargs-parser "^20.2.9" + yargs-unparser "^2.0.0" + +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +neo-async@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + +node-addon-api@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-2.0.2.tgz#432cfa82962ce494b132e9d72a15b29f71ff5d32" + integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== + +node-addon-api@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-5.1.0.tgz#49da1ca055e109a23d537e9de43c09cca21eb762" + integrity sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA== + +node-emoji@^1.10.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c" + integrity sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A== + dependencies: + lodash "^4.17.21" + +node-fetch@^2.6.1: + version "2.7.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== + dependencies: + whatwg-url "^5.0.0" + +node-gyp-build@^4.2.0: + version "4.8.4" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.4.tgz#8a70ee85464ae52327772a90d66c6077a900cfc8" + integrity sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ== + +nofilter@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/nofilter/-/nofilter-3.1.0.tgz#c757ba68801d41ff930ba2ec55bab52ca184aa66" + integrity sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g== + +nopt@3.x: + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + integrity sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg== + dependencies: + abbrev "1" + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +number-to-bn@1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/number-to-bn/-/number-to-bn-1.7.0.tgz#bb3623592f7e5f9e0030b1977bd41a0c53fe1ea0" + integrity sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig== + dependencies: + bn.js "4.11.6" + strip-hex-prefix "1.0.0" + +obliterator@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/obliterator/-/obliterator-2.0.4.tgz#fa650e019b2d075d745e44f1effeb13a2adbe816" + integrity sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ== + +once@1.x, once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +ordinal@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/ordinal/-/ordinal-1.0.3.tgz#1a3c7726a61728112f50944ad7c35c06ae3a0d4d" + integrity sha512-cMddMgb2QElm8G7vdaa02jhUNbTSrhsgAGUz1OokD83uJTwSUn+nKoNoKVVaRa08yF6sgfO7Maou1+bgLd9rdQ== + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-map@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" + integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== + dependencies: + aggregate-error "^3.0.0" + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-parse@^1.0.6, path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +pathval@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" + integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== + +pbkdf2@^3.0.17: + version "3.1.2" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" + integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +picocolors@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +picomatch@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab" + integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg== + +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== + +prettier-plugin-solidity@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/prettier-plugin-solidity/-/prettier-plugin-solidity-1.4.1.tgz#8060baf18853a9e34d2e09e47e87b4f19e15afe9" + integrity sha512-Mq8EtfacVZ/0+uDKTtHZGW3Aa7vEbX/BNx63hmVg6YTiTXSiuKP0amj0G6pGwjmLaOfymWh3QgXEZkjQbU8QRg== + dependencies: + "@solidity-parser/parser" "^0.18.0" + semver "^7.5.4" + +prettier@^2.3.1: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== + +prettier@^3.3.3: + version "3.4.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f" + integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ== + +proper-lockfile@^4.1.1: + version "4.1.2" + resolved "https://registry.yarnpkg.com/proper-lockfile/-/proper-lockfile-4.1.2.tgz#c8b9de2af6b2f1601067f98e01ac66baa223141f" + integrity sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA== + dependencies: + graceful-fs "^4.2.4" + retry "^0.12.0" + signal-exit "^3.0.2" + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +raw-body@^2.4.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" + integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +readable-stream@^3.6.0: + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdirp@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.2.tgz#388fccb8b75665da3abffe2d8f8ed59fe74c230a" + integrity sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA== + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== + dependencies: + resolve "^1.1.6" + +recursive-readdir@^2.2.2: + version "2.2.3" + resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.3.tgz#e726f328c0d69153bcabd5c322d3195252379372" + integrity sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA== + dependencies: + minimatch "^3.0.5" + +reduce-flatten@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-2.0.0.tgz#734fd84e65f375d7ca4465c69798c25c9d10ae27" + integrity sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w== + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +resolve@1.1.x: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg== + +resolve@1.17.0: + version "1.17.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" + integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== + dependencies: + path-parse "^1.0.6" + +resolve@^1.1.6: + version "1.22.10" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.10.tgz#b663e83ffb09bbf2386944736baae803029b8b39" + integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== + dependencies: + is-core-module "^2.16.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +retry@0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" + integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== + +retry@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" + integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rlp@^2.2.3, rlp@^2.2.4: + version "2.2.7" + resolved "https://registry.yarnpkg.com/rlp/-/rlp-2.2.7.tgz#33f31c4afac81124ac4b283e2bd4d9720b30beaf" + integrity sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ== + dependencies: + bn.js "^5.2.0" + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@^5.2.1, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sc-istanbul@^0.4.5: + version "0.4.6" + resolved "https://registry.yarnpkg.com/sc-istanbul/-/sc-istanbul-0.4.6.tgz#cf6784355ff2076f92d70d59047d71c13703e839" + integrity sha512-qJFF/8tW/zJsbyfh/iT/ZM5QNHE3CXxtLJbZsL+CzdJLBsPD7SedJZoUA4d8iAcN2IoMp/Dx80shOOd2x96X/g== + dependencies: + abbrev "1.0.x" + async "1.x" + escodegen "1.8.x" + esprima "2.7.x" + glob "^5.0.15" + handlebars "^4.0.1" + js-yaml "3.x" + mkdirp "0.5.x" + nopt "3.x" + once "1.x" + resolve "1.1.x" + supports-color "^3.1.0" + which "^1.1.1" + wordwrap "^1.0.0" + +scrypt-js@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" + integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== + +secp256k1@^4.0.1: + version "4.0.4" + resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.4.tgz#58f0bfe1830fe777d9ca1ffc7574962a8189f8ab" + integrity sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw== + dependencies: + elliptic "^6.5.7" + node-addon-api "^5.0.0" + node-gyp-build "^4.2.0" + +semver@^5.5.0: + version "5.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + +semver@^6.3.0: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.3.4, semver@^7.5.4: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + +serialize-javascript@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" + integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== + dependencies: + randombytes "^2.1.0" + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +sha.js@^2.4.0, sha.js@^2.4.8: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shelljs@^0.8.3: + version "0.8.5" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" + integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +signal-exit@^3.0.2: + version "3.0.7" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +simple-wcswidth@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/simple-wcswidth/-/simple-wcswidth-1.0.1.tgz#8ab18ac0ae342f9d9b629604e54d2aa1ecb018b2" + integrity sha512-xMO/8eNREtaROt7tJvWJqHBDTMFN4eiQ5I4JRMuilwfnFcV5W9u7RUkueNkdw0jPqGMX36iCywelS5yilTuOxg== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +solc@0.8.26: + version "0.8.26" + resolved "https://registry.yarnpkg.com/solc/-/solc-0.8.26.tgz#afc78078953f6ab3e727c338a2fefcd80dd5b01a" + integrity sha512-yiPQNVf5rBFHwN6SIf3TUUvVAFKcQqmSUFeq+fb6pNRCo0ZCgpYOZDi3BVoezCPIAcKrVYd/qXlBLUP9wVrZ9g== + dependencies: + command-exists "^1.2.8" + commander "^8.1.0" + follow-redirects "^1.12.1" + js-sha3 "0.8.0" + memorystream "^0.3.1" + semver "^5.5.0" + tmp "0.0.33" + +solidity-ast@^0.4.51: + version "0.4.59" + resolved "https://registry.yarnpkg.com/solidity-ast/-/solidity-ast-0.4.59.tgz#290a2815aef70a61092591ab3e991da080ae5931" + integrity sha512-I+CX0wrYUN9jDfYtcgWSe+OAowaXy8/1YQy7NS4ni5IBDmIYBq7ZzaP/7QqouLjzZapmQtvGLqCaYgoUWqBo5g== + +solidity-coverage@^0.8.13: + version "0.8.14" + resolved "https://registry.yarnpkg.com/solidity-coverage/-/solidity-coverage-0.8.14.tgz#db9bfcc10e3bc369fc074b35b267d665bcc6ae2e" + integrity sha512-ItAAObe5GaEOp20kXC2BZRnph+9P7Rtoqg2mQc2SXGEHgSDF2wWd1Wxz3ntzQWXkbCtIIGdJT918HG00cObwbA== + dependencies: + "@ethersproject/abi" "^5.0.9" + "@solidity-parser/parser" "^0.19.0" + chalk "^2.4.2" + death "^1.1.0" + difflib "^0.2.4" + fs-extra "^8.1.0" + ghost-testrpc "^0.0.2" + global-modules "^2.0.0" + globby "^10.0.1" + jsonschema "^1.2.4" + lodash "^4.17.21" + mocha "^10.2.0" + node-emoji "^1.10.0" + pify "^4.0.1" + recursive-readdir "^2.2.2" + sc-istanbul "^0.4.5" + semver "^7.3.4" + shelljs "^0.8.3" + web3-utils "^1.3.6" + +source-map-support@^0.5.13: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.6.0, source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" + integrity sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA== + dependencies: + amdefine ">=0.0.4" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== + +stacktrace-parser@^0.1.10: + version "0.1.10" + resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz#29fb0cae4e0d0b85155879402857a1639eb6051a" + integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg== + dependencies: + type-fest "^0.7.1" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +string-format@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-format/-/string-format-2.0.0.tgz#f2df2e7097440d3b65de31b6d40d54c96eaffb9b" + integrity sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA== + +string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, 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== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +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== + dependencies: + ansi-regex "^5.0.1" + +strip-hex-prefix@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz#0c5f155fef1151373377de9dbb588da05500e36f" + integrity sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A== + dependencies: + is-hex-prefixed "1.0.0" + +strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +supports-color@^3.1.0: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + integrity sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A== + dependencies: + has-flag "^1.0.0" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-color@^8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +table-layout@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-1.0.2.tgz#c4038a1853b0136d63365a734b6931cf4fad4a04" + integrity sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A== + dependencies: + array-back "^4.0.1" + deep-extend "~0.6.0" + typical "^5.2.0" + wordwrapjs "^4.0.0" + +table@^6.8.0: + version "6.9.0" + resolved "https://registry.yarnpkg.com/table/-/table-6.9.0.tgz#50040afa6264141c7566b3b81d4d82c47a8668f5" + integrity sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A== + dependencies: + ajv "^8.0.1" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + +tinyglobby@^0.2.6: + version "0.2.10" + resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.10.tgz#e712cf2dc9b95a1f5c5bbd159720e15833977a0f" + integrity sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew== + dependencies: + fdir "^6.4.2" + picomatch "^4.0.2" + +tmp@0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +ts-command-line-args@^2.2.0: + version "2.5.1" + resolved "https://registry.yarnpkg.com/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz#e64456b580d1d4f6d948824c274cf6fa5f45f7f0" + integrity sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw== + dependencies: + chalk "^4.1.0" + command-line-args "^5.1.1" + command-line-usage "^6.1.0" + string-format "^2.0.0" + +ts-essentials@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-7.0.3.tgz#686fd155a02133eedcc5362dc8b5056cde3e5a38" + integrity sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ== + +ts-node@^10.9.2: + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + +tslib@2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" + integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== + +tslib@^1.11.1, tslib@^1.9.3: + version "1.14.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tslib@^2.3.1, tslib@^2.6.2: + version "2.8.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" + integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== + +tsort@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/tsort/-/tsort-0.0.1.tgz#e2280f5e817f8bf4275657fd0f9aebd44f5a2786" + integrity sha512-Tyrf5mxF8Ofs1tNoxA13lFeZ2Zrbd6cKbuH3V+MQ5sb6DtBj5FjrXVsRWT8YvNAQTqNoz66dz1WsbigI22aEnw== + +tweetnacl-util@^0.15.1: + version "0.15.1" + resolved "https://registry.yarnpkg.com/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz#b80fcdb5c97bcc508be18c44a4be50f022eea00b" + integrity sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw== + +tweetnacl@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596" + integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== + dependencies: + prelude-ls "~1.1.2" + +type-detect@^4.0.0, type-detect@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.1.0.tgz#deb2453e8f08dcae7ae98c626b13dddb0155906c" + integrity sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.7.1.tgz#8dda65feaf03ed78f0a3f9678f1869147f7c5c48" + integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== + +typechain@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/typechain/-/typechain-8.3.2.tgz#1090dd8d9c57b6ef2aed3640a516bdbf01b00d73" + integrity sha512-x/sQYr5w9K7yv3es7jo4KTX05CLxOf7TRWwoHlrjRh8H82G64g+k7VuWPJlgMo6qrjfCulOdfBjiaDtmhFYD/Q== + dependencies: + "@types/prettier" "^2.1.1" + debug "^4.3.1" + fs-extra "^7.0.0" + glob "7.1.7" + js-sha3 "^0.8.0" + lodash "^4.17.15" + mkdirp "^1.0.4" + prettier "^2.3.1" + ts-command-line-args "^2.2.0" + ts-essentials "^7.0.1" + +typescript@^5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== + +typical@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4" + integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw== + +typical@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/typical/-/typical-5.2.0.tgz#4daaac4f2b5315460804f0acf6cb69c52bb93066" + integrity sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg== + +uglify-js@^3.1.4: + version "3.19.3" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.19.3.tgz#82315e9bbc6f2b25888858acd1fff8441035b77f" + integrity sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ== + +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== + +undici-types@~6.20.0: + version "6.20.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" + integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== + +undici@^5.14.0: + version "5.28.4" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.28.4.tgz#6b280408edb6a1a604a9b20340f45b422e373068" + integrity sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g== + dependencies: + "@fastify/busboy" "^2.0.0" + +undici@^6.11.1: + version "6.21.0" + resolved "https://registry.yarnpkg.com/undici/-/undici-6.21.0.tgz#4b3d3afaef984e07b48e7620c34ed8a285ed4cd4" + integrity sha512-BUgJXc752Kou3oOIuU1i+yZZypyZRqNPW0vqoMPl8VaoalSfeR0D8/t4iAS3yirs79SSMTxTag+ZC86uswv+Cw== + +unfetch@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be" + integrity sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA== + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +universalify@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" + integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== + +unpipe@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +utf8@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1" + integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ== + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +uuid@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + +web3-utils@^1.3.6: + version "1.10.4" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.10.4.tgz#0daee7d6841641655d8b3726baf33b08eda1cbec" + integrity sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A== + dependencies: + "@ethereumjs/util" "^8.1.0" + bn.js "^5.2.1" + ethereum-bloom-filters "^1.0.6" + ethereum-cryptography "^2.1.2" + ethjs-unit "0.1.6" + number-to-bn "1.7.0" + randombytes "^2.1.0" + utf8 "3.0.0" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which@^1.1.1, which@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +widest-line@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" + integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== + dependencies: + string-width "^4.0.0" + +word-wrap@~1.2.3: + version "1.2.5" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== + +wordwrapjs@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-4.0.1.tgz#d9790bccfb110a0fc7836b5ebce0937b37a8b98f" + integrity sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA== + dependencies: + reduce-flatten "^2.0.0" + typical "^5.2.0" + +workerpool@^6.5.1: + version "6.5.1" + resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544" + integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA== + +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" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +ws@8.17.1: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" + integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== + +ws@^7.4.6: + version "7.5.10" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9" + integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yargs-parser@^20.2.2, yargs-parser@^20.2.9: + version "20.2.9" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" + integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== + +yargs-unparser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" + integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== + dependencies: + camelcase "^6.0.0" + decamelize "^4.0.0" + flat "^5.0.2" + is-plain-obj "^2.1.0" + +yargs@^16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/e2e-testing/makefiles/common.mk b/e2e-testing/makefiles/common.mk new file mode 100644 index 00000000..ec68bfc2 --- /dev/null +++ b/e2e-testing/makefiles/common.mk @@ -0,0 +1,52 @@ +# Common variables and settings +common_testing_root := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/.. +common_timestamp := $(shell date -u +%Y%m%d-%H%M%S) + +# ASCII box formatting for step descriptions +define description + @echo "|──────────────────────────────────────────────────────────────" + @echo "│ $(1)" + @echo "|──────────────────────────────────────────────────────────────" +endef + +# Progress bar for waiting operations +define progress_wait + @tput civis; \ + for i in $$(seq 1 $(1)); do \ + printf "\033[2K\rWaiting: ["; \ + p=$$((i * 100 / $(1))); \ + for j in $$(seq 1 $$p); do printf "="; done; \ + if [ $$p -lt 100 ]; then printf ">"; fi; \ + for j in $$(seq $$(($$p + 1)) 100); do printf " "; done; \ + printf "] $$p%% ($$i/$(1) seconds)"; \ + sleep 1; \ + done; \ + printf "\n"; \ + tput cnorm +endef + +# Common directories +common_near_deploy_results_dir := $(common_testing_root)/near_deploy_results +common_evm_deploy_results_dir := $(common_testing_root)/evm_deploy_results +common_solana_deploy_results_dir := $(common_testing_root)/solana_deploy_results + +# Common files +common_near_bridge_id_file := $(common_near_deploy_results_dir)/omni_bridge.json +common_bridge_sdk_config_file := $(common_testing_root)/bridge-sdk-config.json + +# Chain identifiers +COMMON_SEPOLIA_CHAIN_ID := 0 +COMMON_SEPOLIA_CHAIN_STR := Eth + +# Create required directories +$(common_near_deploy_results_dir) $(common_evm_deploy_results_dir) $(common_solana_deploy_results_dir): + $(call description,Creating directory to store deploy results: $@) + mkdir -p $@ + +# Clean targets +.PHONY: clean-deploy-results +clean-deploy-results: + $(call description,Cleaning deploy results directories) + rm -rf $(common_near_deploy_results_dir) + rm -rf $(common_evm_deploy_results_dir) + rm -rf $(common_solana_deploy_results_dir) \ No newline at end of file diff --git a/e2e-testing/makefiles/evm.mk b/e2e-testing/makefiles/evm.mk new file mode 100644 index 00000000..c745c4b0 --- /dev/null +++ b/e2e-testing/makefiles/evm.mk @@ -0,0 +1,117 @@ +# EVM-specific variables and rules +evm_dir := $(common_testing_root)/../evm +evm_script_dir := $(common_testing_root)/evm_scripts + +evm_compile_stamp := $(common_testing_root)/.evm-compile.stamp +evm_artifacts_dir := $(common_testing_root)/evm_artifacts +evm_script_compile_stamp := $(common_testing_root)/.evm-scripts-compile.stamp + +evm_networks := sepolia arbitrumSepolia baseSepolia + +# EVM deployment commands +EVM_DEPLOY_TOKEN_IMPL = yarn --silent --cwd $(evm_dir) hardhat deploy-token-impl --network $(1) +EVM_DEPLOY_OMNI_BRIDGE_CONTRACT = yarn --silent --cwd $(evm_dir) hardhat deploy-bridge-token-factory --network $(1) --bridge-token-impl $(2) --near-bridge-account-id $(3) +EVM_DEPLOY_FAKE_PROVER = yarn --silent --cwd $(evm_dir) hardhat deploy-fake-prover --network $(1) +EVM_DEPLOY_ENEAR_PROXY = yarn --silent --cwd $(evm_dir) hardhat deploy-e-near-proxy --network $(1) --enear $(2) + +EVM_DEPLOY_BYTECODE = yarn --silent --cwd $(evm_script_dir) hardhat deploy-bytecode --network $(1) --bytecode $(2) +EVM_DEPLOY_TEST_TOKEN = yarn --silent --cwd $(evm_script_dir) hardhat deploy-test-token --network $(1) --name $(2) --symbol $(3) + +evm_enear_creation_template_file := $(common_testing_root)/bin/eNear_creation.template + +# Clean targets +.PHONY: clean-evm +clean-evm: + $(call description,Cleaning EVM build artifacts) + rm -rf $(evm_artifacts_dir) + rm -f $(evm_compile_stamp) + rm -f $(evm_script_compile_stamp) + +# Build rules +.PHONY: evm-build +evm-build: $(evm_compile_stamp) +$(evm_compile_stamp): + $(call description,Building EVM contracts) + mkdir -p $(evm_artifacts_dir) && \ + yarn --cwd $(evm_dir) install --frozen-lockfile && \ + yarn --cwd $(evm_dir) hardhat compile && \ + cp -r $(evm_dir)/build/* $(evm_artifacts_dir) + touch $@ + +.PHONY: evm-scripts-build +evm-scripts-build: $(evm_script_compile_stamp) +$(evm_script_compile_stamp): + $(call description,Building EVM scripts) + yarn --cwd $(evm_script_dir) install && \ + yarn --cwd $(evm_script_dir) hardhat compile + touch $@ + +# Network-specific deployment rules +define generate_evm_deploy_rules + +$(1)_deploy_results_dir := $(common_evm_deploy_results_dir)/$(1) + +.PHONY: clean-evm-$(1) +clean-evm-$(1): + $(call description,Cleaning EVM deploy results for $(1)) + rm -rf $$($(1)_deploy_results_dir) + +$$($(1)_deploy_results_dir): | $(common_evm_deploy_results_dir) + $(call description,Creating deploy results directory for $(1)) + mkdir -p $$@ + +$(1)_bridge_contract_address_file := $$($(1)_deploy_results_dir)/omni_bridge.json +$(1)_token_impl_address_file := $$($(1)_deploy_results_dir)/token_impl.json +$(1)_fake_prover_address_file := $$($(1)_deploy_results_dir)/fake_prover.json +$(1)_enear_address_file := $$($(1)_deploy_results_dir)/eNear.json +$(1)_enear_proxy_address_file := $$($(1)_deploy_results_dir)/eNearProxy.json +$(1)_enear_creation_file := $$($(1)_deploy_results_dir)/eNear_creation +$(1)_test_token_address_file := $$($(1)_deploy_results_dir)/test_token.json + +.PHONY: $(1)-deploy-fake-prover +$(1)-deploy-fake-prover: $$($(1)_fake_prover_address_file) +$$($(1)_fake_prover_address_file): $(evm_compile_stamp) | $$($(1)_deploy_results_dir) + $(call description,Deploying fake prover to $(1)) + $$(call EVM_DEPLOY_FAKE_PROVER,$(1)) 2>/dev/stderr 1> $$@ + +$$($(1)_enear_creation_file): $$($(1)_fake_prover_address_file) $(evm_enear_creation_template_file) | $$($(1)_deploy_results_dir) + $(call description,Creating eNear creation file for $(1)) + cat $(evm_enear_creation_template_file) | \ + sed "s//$$(shell cat $$($(1)_fake_prover_address_file) | jq -r .fakeProverAddress | sed 's/^0x//')/" > $$@ + +.PHONY: $(1)-deploy-enear +$(1)-deploy-enear: $$($(1)_enear_address_file) +$$($(1)_enear_address_file): $$($(1)_enear_creation_file) $(evm_script_compile_stamp) | $$($(1)_deploy_results_dir) + $(call description,Deploying eNear to $(1)) + $$(call EVM_DEPLOY_BYTECODE,$(1),$$<) 2>/dev/stderr 1> $$@ + +.PHONY: $(1)-deploy-enear-proxy +$(1)-deploy-enear-proxy: $$($(1)_enear_proxy_address_file) +$$($(1)_enear_proxy_address_file): $$($(1)_enear_address_file) $(evm_compile_stamp) | $$($(1)_deploy_results_dir) + $(call description,Deploying eNear proxy to $(1)) + $$(call EVM_DEPLOY_ENEAR_PROXY,$(1),$$(shell cat $$< | jq -r .contractAddress)) 2>/dev/stderr 1> $$@ + +.PHONY: $(1)-deploy-token-impl +$(1)-deploy-token-impl: $$($(1)_token_impl_address_file) +$$($(1)_token_impl_address_file): $(evm_compile_stamp) | $$($(1)_deploy_results_dir) + $(call description,Deploying token implementation to $(1)) + $$(call EVM_DEPLOY_TOKEN_IMPL,$(1)) 2>/dev/stderr 1> $$@ + +.PHONY: $(1)-deploy-bridge +$(1)-deploy-bridge: $$($(1)_bridge_contract_address_file) +$$($(1)_bridge_contract_address_file): $$($(1)_token_impl_address_file) $(common_near_bridge_id_file) $(evm_compile_stamp) | $$($(1)_deploy_results_dir) + $(call description,Deploying bridge contract to $(1)) + $$(call EVM_DEPLOY_OMNI_BRIDGE_CONTRACT,$(1),$$(shell cat $$< | jq -r .tokenImplAddress),$$(shell cat $(common_near_bridge_id_file) | jq -r .contract_id)) 2>/dev/stderr 1> $$@ + +.PHONY: $(1)-deploy-test-token +$(1)-deploy-test-token: $$($(1)_test_token_address_file) +$$($(1)_test_token_address_file): $(evm_script_compile_stamp) | $$($(1)_deploy_results_dir) + $(call description,Deploying test token to $(1)) + $$(call EVM_DEPLOY_TEST_TOKEN,$(1),E2ETestToken-$(common_timestamp),E2ETT-$(common_timestamp)) 2>/dev/stderr 1> $$@ + +.PHONY: $(1)-deploy +$(1)-deploy: $(1)-deploy-bridge $(1)-deploy-enear-proxy $(1)-deploy-test-token + +endef + +$(foreach network,$(evm_networks),$(eval $(call generate_evm_deploy_rules,$(network)))) \ No newline at end of file diff --git a/e2e-testing/makefiles/near.mk b/e2e-testing/makefiles/near.mk new file mode 100644 index 00000000..75bfa9ab --- /dev/null +++ b/e2e-testing/makefiles/near.mk @@ -0,0 +1,125 @@ +# NEAR-specific variables and rules +near_dir := $(common_testing_root)/../near +near_binary_dir := $(common_testing_root)/near_artifacts + +near_init_params_file := $(common_testing_root)/near_init_params.json + +# List all expected WASM binaries +near_binaries := evm_prover.wasm omni_bridge.wasm omni_prover.wasm token_deployer.wasm wormhole_omni_prover_proxy.wasm mock_token.wasm +near_binary_paths := $(addprefix $(near_binary_dir)/,$(near_binaries)) + +# List of binaries that require dynamic init args +near_binaries_with_dynamic_args := token_deployer mock_token omni_bridge + +near_deploy_results := $(patsubst $(near_binary_dir)/%.wasm,$(common_near_deploy_results_dir)/%.json,$(near_binary_paths)) + +near_init_account_credentials_file := $(common_near_deploy_results_dir)/omni-init-account.json +near_dao_account_credentials_file := $(common_near_deploy_results_dir)/omni-dao-account.json + +near_prover_dau_grant_call_file := $(common_near_deploy_results_dir)/omni-prover-dau-grant-call.json + +near_evm_prover_setup_call_file := $(common_near_deploy_results_dir)/evm-prover-setup-call.json + +# Clean targets +.PHONY: clean-near +clean-near: + $(call description,Cleaning NEAR build artifacts) + rm -rf $(near_binary_dir) + rm -f $(common_testing_root)/*_dyn_init_args.json + +# Main deployment targets +.PHONY: near-deploy +near-deploy: $(near_deploy_results) + +.PHONY: near-build +near-build: $(near_binary_paths) + +$(near_binary_paths) &: + $(call description,Building NEAR contracts) + $(near_dir)/build.sh --output-dir $(near_binary_dir) + +# Account creation rules +.PHONY: create-near-init-account +create-near-init-account: $(near_init_account_credentials_file) +$(near_init_account_credentials_file): | $(common_near_deploy_results_dir) + $(call description,Creating NEAR init account) + ./scripts/create-near-account.sh omni-init-$(common_timestamp).testnet $@ + +.PHONY: create-dao-account +create-dao-account: $(near_dao_account_credentials_file) +$(near_dao_account_credentials_file): | $(common_near_deploy_results_dir) + $(call description,Creating NEAR DAO account) + ./scripts/create-near-account.sh omni-dao-$(common_timestamp).testnet $@ + +# Contract deployment rules +define generate_near_deploy_rules + +$(1)_name := $$(basename $$(notdir $(1))) + +# Check if the binary requires dynamic init args +ifeq ($$(filter $$($(1)_name),$(near_binaries_with_dynamic_args)),) + +# Rule for binaries without dynamic init args +$(common_near_deploy_results_dir)/$$($(1)_name).json: $(near_init_params_file) $(near_init_account_credentials_file) $(1) | $(common_near_deploy_results_dir) + $(call description,Deploying $$($(1)_name) contract) + ./scripts/deploy-near-contract.sh $$^ $$($(1)_name)-$(common_timestamp).testnet $$@ + +else + +# Rule for binaries with dynamic init args +$(common_near_deploy_results_dir)/$$($(1)_name).json: $(near_init_params_file) $(near_init_account_credentials_file) $(common_testing_root)/$$($(1)_name)_dyn_init_args.json $(1) | $(common_near_deploy_results_dir) + $(call description,Deploying $$($(1)_name) contract with dynamic init args) + ./scripts/deploy-near-contract.sh $$^ $$($(1)_name)-$(common_timestamp).testnet $$@ + +endif + +endef + +$(foreach binary,$(near_binary_paths),$(eval $(call generate_near_deploy_rules,$(binary)))) + +# Dynamic init args generation +$(common_testing_root)/token_deployer_dyn_init_args.json: $(common_near_deploy_results_dir)/omni_bridge.json $(near_init_account_credentials_file) + $(call description,Generating token deployer init args) + CONTROLLER_ADDRESS=$$(jq -r .contract_id $(common_near_deploy_results_dir)/omni_bridge.json) && \ + DAO_ADDRESS=$$(jq -r .account_id $(near_init_account_credentials_file)) && \ + echo "{\"controller\": \"$$CONTROLLER_ADDRESS\", \"dao\": \"$$DAO_ADDRESS\"}" > $@ + +$(common_testing_root)/mock_token_dyn_init_args.json: $(near_init_account_credentials_file) + $(call description,Generating mock token init args) + OWNER_ADDRESS=$$(jq -r .account_id $<) && \ + echo "{\"owner_id\": \"$$OWNER_ADDRESS\"}" > $@ + +$(common_testing_root)/omni_bridge_dyn_init_args.json: $(common_near_deploy_results_dir)/omni_prover.json + $(call description,Generating omni bridge init args) + PROVER_ADDRESS=$$(jq -r .contract_id $<) && \ + echo "{\"prover_account\": \"$$PROVER_ADDRESS\"}" > $@ + + +.PHONY: omni-prover-dau-grant +omni-prover-dau-grant: $(near_prover_dau_grant_call_file) +$(near_prover_dau_grant_call_file): $(near_init_account_credentials_file) $(near_dao_account_credentials_file) $(common_near_deploy_results_dir)/omni_prover.json + $(call description,Granting DAO role to omni prover) + OMNI_PROVER_ACCOUNT_ID=$$(jq -r .contract_id $(common_near_deploy_results_dir)/omni_prover.json) && \ + DAO_ACCOUNT_ID=$$(jq -r .account_id $(near_dao_account_credentials_file)) && \ + ./scripts/call-near-contract.sh -c $$OMNI_PROVER_ACCOUNT_ID \ + -m acl_grant_role \ + -a "{\"role\": \"DAO\", \"account_id\": \"$$DAO_ACCOUNT_ID\"}" \ + -f $(near_init_account_credentials_file) \ + -n testnet 2>&1 | tee $@ && \ + TX_HASH=$$(grep -o 'Transaction ID: [^ ]*' $@ | cut -d' ' -f3) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ + + +.PHONY: evm-prover-setup +evm-prover-setup: $(near_evm_prover_setup_call_file) +$(near_evm_prover_setup_call_file): $(common_near_deploy_results_dir)/omni_prover.json $(common_near_deploy_results_dir)/evm_prover.json $(near_prover_dau_grant_call_file) + $(call description,Setting up EVM prover) + OMNI_PROVER_ACCOUNT_ID=$$(jq -r .contract_id $(common_near_deploy_results_dir)/omni_prover.json) && \ + EVM_PROVER_ACCOUNT_ID=$$(jq -r .contract_id $(common_near_deploy_results_dir)/evm_prover.json) && \ + ./scripts/call-near-contract.sh -c $$OMNI_PROVER_ACCOUNT_ID \ + -m add_prover \ + -a "{\"account_id\": \"$$EVM_PROVER_ACCOUNT_ID\", \"prover_id\": \"$(COMMON_SEPOLIA_CHAIN_STR)\"}" \ + -f $(near_dao_account_credentials_file) \ + -n testnet 2>&1 | tee $@ && \ + TX_HASH=$$(grep -o 'Transaction ID: [^ ]*' $@ | cut -d' ' -f3) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ \ No newline at end of file diff --git a/e2e-testing/makefiles/pipelines/bridge_token_near_to_evm.mk b/e2e-testing/makefiles/pipelines/bridge_token_near_to_evm.mk new file mode 100644 index 00000000..b0f10ae0 --- /dev/null +++ b/e2e-testing/makefiles/pipelines/bridge_token_near_to_evm.mk @@ -0,0 +1,136 @@ +# Pipeline: Bridge NEAR Token to Ethereum +pipeline1_call_dir := $(common_testing_root)/bridge-token-near-to-evm + +# Clean target +.PHONY: clean-bridge-token-near-to-evm +clean-bridge-token-near-to-evm: + $(call description,Cleaning bridge pipeline artifacts) + rm -rf $(pipeline1_call_dir) + +# Account and contract ID files +pipeline1_sender_account_file := $(common_near_deploy_results_dir)/omni-sender.json +pipeline1_bridge_contract_file := $(common_near_deploy_results_dir)/omni_bridge.json +pipeline1_test_token_file := $(common_near_deploy_results_dir)/mock_token.json +pipeline1_relayer_account_file := $(common_near_deploy_results_dir)/omni-relayer.json +pipeline1_token_deployer_file := $(common_near_deploy_results_dir)/token_deployer.json + +# Call files +pipeline1_add_deployer_file := $(pipeline1_call_dir)/00-1_add-deployer-to-locker-call.json +pipeline1_add_factory_file := $(pipeline1_call_dir)/00-2_add-factory-to-locker-call.json +pipeline1_log_metadata_file := $(pipeline1_call_dir)/01_omni-log-metadata-call.json +pipeline1_evm_deploy_token_file := $(pipeline1_call_dir)/02_evm-deploy-token-call.json +pipeline1_near_bind_token_file := $(pipeline1_call_dir)/03_near-bind-token-call.json + +pipeline1_prepare_stamp := $(pipeline1_call_dir)/.prepare.stamp + +$(pipeline1_call_dir): + mkdir -p $@ + +# Account creation rules +.PHONY: create-near-sender +create-near-sender: $(pipeline1_sender_account_file) +$(pipeline1_sender_account_file): | $(common_near_deploy_results_dir) + $(call description,Creating NEAR sender account) + ./scripts/create-near-account.sh omni-sender-$(common_timestamp).testnet $@ + +.PHONY: create-near-relayer +create-near-relayer: $(pipeline1_relayer_account_file) +$(pipeline1_relayer_account_file): | $(common_near_deploy_results_dir) + $(call description,Creating NEAR relayer account) + ./scripts/create-near-account.sh omni-relayer-$(common_timestamp).testnet $@ + +# Main pipeline target +.PHONY: bridge-token-near-to-evm +bridge-token-near-to-evm: near-bind-token + +# Step 0: Prepare token deployment +.PHONY: prepare-token-deployment +prepare-token-deployment: $(pipeline1_prepare_stamp) +$(pipeline1_prepare_stamp): $(pipeline1_add_deployer_file) $(pipeline1_add_factory_file) $(near_evm_prover_setup_call_file) | $(pipeline1_call_dir) + $(call description,Token deployment preparation complete) + touch $@ + +# Step 0.1: Add deployer to locker +.PHONY: add-deployer-to-locker +add-deployer-to-locker: $(pipeline1_add_deployer_file) +$(pipeline1_add_deployer_file): $(pipeline1_token_deployer_file) $(pipeline1_bridge_contract_file) $(near_init_account_credentials_file) | $(pipeline1_call_dir) + $(call description,Bridge NEAR Token to Ethereum. Step 0.1: Adding token deployer to locker) + TOKEN_DEPLOYER_ID=$$(jq -r .contract_id $(pipeline1_token_deployer_file)) && \ + TOKEN_LOCKER_ID=$$(jq -r .contract_id $(pipeline1_bridge_contract_file)) && \ + ./scripts/call-near-contract.sh -c $$TOKEN_LOCKER_ID \ + -m add_token_deployer \ + -a "{\"chain\": \"$(COMMON_SEPOLIA_CHAIN_STR)\", \"account_id\": \"$$TOKEN_DEPLOYER_ID\"}" \ + -f $(near_init_account_credentials_file) \ + -n testnet 2>&1 | tee $@ && \ + TX_HASH=$$(grep -o 'Transaction ID: [^ ]*' $@ | cut -d' ' -f3) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ + +# Step 0.2: Add Ethereum factory to locker +.PHONY: add-ethereum-factory-to-locker +add-ethereum-factory-to-locker: $(pipeline1_add_factory_file) +$(pipeline1_add_factory_file): $(pipeline1_bridge_contract_file) $(near_init_account_credentials_file) $(sepolia_bridge_contract_address_file) | $(pipeline1_call_dir) + $(call description,Bridge NEAR Token to Ethereum. Step 0.2: Adding Ethereum factory to locker) + FACTORY_ADDRESS=$$(jq -r .bridgeAddress $(sepolia_bridge_contract_address_file)) && \ + TOKEN_LOCKER_ID=$$(jq -r .contract_id $(pipeline1_bridge_contract_file)) && \ + ./scripts/call-near-contract.sh -c $$TOKEN_LOCKER_ID \ + -m add_factory \ + -a "{\"address\": \"$$FACTORY_ADDRESS\"}" \ + -f $(near_init_account_credentials_file) \ + -n testnet 2>&1 | tee $@ && \ + TX_HASH=$$(grep -o 'Transaction ID: [^ ]*' $@ | cut -d' ' -f3) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ + +# Step 1: Log metadata +.PHONY: near-log-metadata-call +near-log-metadata-call: $(pipeline1_log_metadata_file) +$(pipeline1_log_metadata_file): $(pipeline1_sender_account_file) $(pipeline1_bridge_contract_file) $(pipeline1_test_token_file) $(pipeline1_prepare_stamp) | $(pipeline1_call_dir) + $(call description,Bridge NEAR Token to Ethereum. Step 1: Logging token metadata) + TOKEN_ID=$$(jq -r .contract_id $(pipeline1_test_token_file)) && \ + SENDER_ACCOUNT_ID=$$(jq -r .account_id $(pipeline1_sender_account_file)) && \ + SENDER_PRIVATE_KEY=$$(jq -r .private_key $(pipeline1_sender_account_file)) && \ + TOKEN_LOCKER_ID=$$(jq -r .contract_id $(pipeline1_bridge_contract_file)) && \ + bridge-cli testnet omni-connector log-metadata \ + --token near:$$TOKEN_ID \ + --near-signer $$SENDER_ACCOUNT_ID \ + --near-private-key $$SENDER_PRIVATE_KEY \ + --near-token-locker-id $$TOKEN_LOCKER_ID \ + --config-file $(common_bridge_sdk_config_file) > $@ && \ + TX_HASH=$$(grep -o 'tx_hash="[^"]*"' $@ | cut -d'"' -f2) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ + +# Step 2: Deploy token on Ethereum +.PHONY: ethereum-deploy-token +ethereum-deploy-token: $(pipeline1_evm_deploy_token_file) +$(pipeline1_evm_deploy_token_file): $(pipeline1_log_metadata_file) $(sepolia_bridge_contract_address_file) | $(pipeline1_call_dir) + $(call description,Bridge NEAR Token to Ethereum. Step 2: Deploying token on Ethereum) + TX_HASH=$$(jq -r .tx_hash $(pipeline1_log_metadata_file)) && \ + ETH_BRIDGE_TOKEN_FACTORY_ADDRESS=$$(jq -r .bridgeAddress $(sepolia_bridge_contract_address_file)) && \ + bridge-cli testnet omni-connector evm-deploy-token \ + --chain $(COMMON_SEPOLIA_CHAIN_STR) \ + --tx-hash $$TX_HASH \ + --eth-bridge-token-factory-address $$ETH_BRIDGE_TOKEN_FACTORY_ADDRESS \ + --config-file $(common_bridge_sdk_config_file) > $@ && \ + TX_HASH=$$(grep -o 'tx_hash="[^"]*"' $@ | cut -d'"' -f2) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ + + +# Step 3: Bind token on NEAR +.PHONY: near-bind-token +near-bind-token: $(pipeline1_near_bind_token_file) +$(pipeline1_near_bind_token_file): $(pipeline1_evm_deploy_token_file) $(pipeline1_relayer_account_file) | $(pipeline1_call_dir) + $(call description,Waiting for Ethereum transaction being captured by relayer) + $(call progress_wait,1300) + $(call description,Bridge NEAR Token to Ethereum. Step 3: Binding token on NEAR) + TX_HASH=$$(jq -r .tx_hash $(pipeline1_evm_deploy_token_file)) && \ + RELAYER_ACCOUNT_ID=$$(jq -r .account_id $(pipeline1_relayer_account_file)) && \ + RELAYER_PRIVATE_KEY=$$(jq -r .private_key $(pipeline1_relayer_account_file)) && \ + TOKEN_LOCKER_ID=$$(jq -r .contract_id $(pipeline1_bridge_contract_file)) && \ + bridge-cli testnet omni-connector near-bind-token \ + --chain $(COMMON_SEPOLIA_CHAIN_STR) \ + --tx-hash $$TX_HASH \ + --near-signer $$RELAYER_ACCOUNT_ID \ + --near-private-key $$RELAYER_PRIVATE_KEY \ + --near-token-locker-id $$TOKEN_LOCKER_ID \ + --config-file $(common_bridge_sdk_config_file) > $@ && \ + TX_HASH=$$(grep -o 'tx_hash="[^"]*"' $@ | cut -d'"' -f2) && \ + echo "{\"tx_hash\": \"$$TX_HASH\"}" > $@ \ No newline at end of file diff --git a/e2e-testing/makefiles/solana.mk b/e2e-testing/makefiles/solana.mk new file mode 100644 index 00000000..f568aa9f --- /dev/null +++ b/e2e-testing/makefiles/solana.mk @@ -0,0 +1,42 @@ +# Solana-specific variables and rules +solana_dir := $(common_testing_root)/../solana + +solana_build_stamp := $(common_testing_root)/.solana-build.stamp +solana_artifacts_dir := $(common_testing_root)/solana_artifacts + +solana_programs := bridge_token_factory +solana_programs_keypairs := $(foreach program,$(solana_programs),$(solana_dir)/$(program)/target/deploy/$(program)-keypair.json) +solana_programs_binaries := $(foreach program,$(solana_programs),$(solana_artifacts_dir)/$(program)/target/deploy/$(program).so) + +# Clean targets +.PHONY: clean-solana +clean-solana: + $(call description,Cleaning Solana build artifacts) + rm -rf $(solana_artifacts_dir) + rm -f $(solana_build_stamp) + +# Main build target +.PHONY: solana-build +solana-build: $(solana_build_stamp) +$(solana_build_stamp): $(solana_programs_keypairs) $(solana_programs_binaries) + $(call description,Solana build complete) + touch $@ + +# Program-specific build rules +define generate_solana_build_rules + +$(solana_dir)/$(1)/target/deploy/$(1)-keypair.json: $(common_testing_root)/$(1)-keypair.json + $(call description,Setting up keypair for $(1)) + mkdir -p $$(dir $$@) && \ + cp $$< $$@ + +$(solana_artifacts_dir)/$(1)/target/deploy/$(1).so: $(solana_dir)/$(1)/target/deploy/$(1)-keypair.json + $(call description,Building Solana program $(1)) + mkdir -p $(solana_artifacts_dir)/$(1) && \ + cd $(solana_dir)/$(1) && \ + anchor build && \ + cp -r $(solana_dir)/$(1)/target/* $(solana_artifacts_dir)/$(1) + +endef + +$(foreach program,$(solana_programs),$(eval $(call generate_solana_build_rules,$(program)))) \ No newline at end of file diff --git a/e2e-testing/near_init_params.json b/e2e-testing/near_init_params.json new file mode 100644 index 00000000..54e1a08b --- /dev/null +++ b/e2e-testing/near_init_params.json @@ -0,0 +1,47 @@ +{ + "evm_prover": { + "init_function": "init", + "init_args": { + "light_client": "client-eth2.sepolia.testnet", + "chain_kind": "Eth" + } + }, + "wormhole_omni_prover_proxy": { + "init_function": "init", + "init_args": { + "prover_account": "prover.sepolia.testnet" + } + }, + "omni_prover": { + "init_function": "init", + "init_args": {} + }, + "omni_bridge": { + "init_function": "new", + "init_args": { + "mpc_signer": "v1.signer-prod.testnet", + "wnear_account_id": "wrap.testnet" + } + }, + "omni_token": { + "init_function": "new", + "init_args": { + "controller": "e2e-dev.testnet", + "metadata": { + "name": "TestE2E", + "symbol": "te2e", + "decimals": 24 + } + } + }, + "token_deployer": { + "init_function": "new", + "init_args": {} + }, + "mock_token": { + "init_function": "new_default_meta", + "init_args": { + "total_supply": "1000000000" + } + } +} \ No newline at end of file diff --git a/e2e-testing/scripts/call-near-contract.sh b/e2e-testing/scripts/call-near-contract.sh new file mode 100755 index 00000000..1ddc9cdc --- /dev/null +++ b/e2e-testing/scripts/call-near-contract.sh @@ -0,0 +1,87 @@ +#!/usr/bin/env bash + +set -eu -o pipefail + +usage() { + echo "Usage: $0 [options]" + echo "Options:" + echo " -c CONTRACT_ID Contract ID (required)" + echo " -m METHOD_NAME Method name to call (required)" + echo " -a METHOD_ARGS Method arguments in JSON format (default: {})" + echo " -g GAS Gas amount (default: 100.0 Tgas)" + echo " -d DEPOSIT Deposit amount (default: 0 NEAR)" + echo " -f CREDENTIALS Credentials JSON file with account_id, public_key, and private_key (required)" + echo " -n NETWORK Network to use (default: testnet)" + echo " -h Show this help message" + exit 1 +} + +# Default values +METHOD_ARGS="{}" +GAS="100.0 Tgas" +DEPOSIT="0 NEAR" +NETWORK="testnet" + +# Parse command line arguments +while getopts "c:m:a:g:d:f:n:h" opt; do + case $opt in + c) CONTRACT_ID="$OPTARG" ;; + m) METHOD_NAME="$OPTARG" ;; + a) METHOD_ARGS="$OPTARG" ;; + g) GAS="$OPTARG" ;; + d) DEPOSIT="$OPTARG" ;; + f) CREDENTIALS_FILE="$OPTARG" ;; + n) NETWORK="$OPTARG" ;; + h) usage ;; + ?) usage ;; + esac +done + +# Validate required parameters +if [ -z "$CONTRACT_ID" ]; then + echo "Error: CONTRACT_ID (-c) is required" + usage +fi + +if [ -z "$METHOD_NAME" ]; then + echo "Error: METHOD_NAME (-m) is required" + usage +fi + +if [ -z "$CREDENTIALS_FILE" ]; then + echo "Error: CREDENTIALS_FILE (-f) is required" + usage +fi + +if [ ! -f "$CREDENTIALS_FILE" ]; then + echo "Error: Credentials file $CREDENTIALS_FILE does not exist" + exit 1 +fi + +# Read credentials from file +SIGNER_ACCOUNT_ID=$(jq -r .account_id "$CREDENTIALS_FILE") +SIGNER_PUBLIC_KEY=$(jq -r .public_key "$CREDENTIALS_FILE") +SIGNER_PRIVATE_KEY=$(jq -r .private_key "$CREDENTIALS_FILE") + +if [ -z "$SIGNER_ACCOUNT_ID" ] || [ "$SIGNER_ACCOUNT_ID" = "null" ]; then + echo "Error: account_id not found in credentials file" + exit 1 +fi + +if [ -z "$SIGNER_PUBLIC_KEY" ] || [ "$SIGNER_PUBLIC_KEY" = "null" ] || [ -z "$SIGNER_PRIVATE_KEY" ] || [ "$SIGNER_PRIVATE_KEY" = "null" ]; then + echo "Error: public_key or private_key not found in credentials file" + exit 1 +fi + +echo "Calling contract method: $METHOD_NAME" +if ! near contract call-function as-transaction "$CONTRACT_ID" \ + "$METHOD_NAME" \ + json-args "$METHOD_ARGS" \ + prepaid-gas "$GAS" attached-deposit "$DEPOSIT" \ + sign-as "$SIGNER_ACCOUNT_ID" \ + network-config "$NETWORK" \ + sign-with-plaintext-private-key --signer-public-key "$SIGNER_PUBLIC_KEY" --signer-private-key "$SIGNER_PRIVATE_KEY" \ + send; then + echo "Failed to call method ${METHOD_NAME} on contract ${CONTRACT_ID}" + exit 1 +fi \ No newline at end of file diff --git a/e2e-testing/scripts/create-near-account.sh b/e2e-testing/scripts/create-near-account.sh new file mode 100755 index 00000000..f3f60ae5 --- /dev/null +++ b/e2e-testing/scripts/create-near-account.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +set -euo pipefail + +ACCOUNT_ID="$1" +OUTPUT_JSON="$2" + +echo "Creating account for ${ACCOUNT_ID}" + +if ! near account create-account sponsor-by-faucet-service "$ACCOUNT_ID" \ + autogenerate-new-keypair save-to-legacy-keychain network-config testnet create; then + echo "Failed to create account for ${ACCOUNT_ID}" + exit 1 +fi + +# Extract private key from credentials +CREDENTIALS_FILE="$HOME/.near-credentials/testnet/$ACCOUNT_ID.json" +jq -c --arg account_id "$ACCOUNT_ID" '. + {account_id: $account_id}' "$CREDENTIALS_FILE" > "$OUTPUT_JSON" + +echo "Account created successfully, saved to $OUTPUT_JSON" diff --git a/e2e-testing/scripts/deploy-near-contract.sh b/e2e-testing/scripts/deploy-near-contract.sh new file mode 100755 index 00000000..6b307c57 --- /dev/null +++ b/e2e-testing/scripts/deploy-near-contract.sh @@ -0,0 +1,87 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Usage: ./deploy-near-contract.sh [] + +if [ "$#" -ne 5 ] && [ "$#" -ne 6 ]; then + echo "Error: Invalid number of arguments" + echo "Usage: $0 [] " + exit 1 +fi + +if [ "$#" -eq 5 ]; then + NEAR_INIT_PARAMS_FILE="$1" + INIT_ACCOUNT_CREDENTIALS_FILE="$2" + WASM_PATH="$3" + CONTRACT_ID="$4" + OUTPUT_JSON="$5" + DYN_INIT_ARGS_FILE="" +else + NEAR_INIT_PARAMS_FILE="$1" + INIT_ACCOUNT_CREDENTIALS_FILE="$2" + DYN_INIT_ARGS_FILE="$3" + WASM_PATH="$4" + CONTRACT_ID="$5" + OUTPUT_JSON="$6" +fi + +INIT_ACCOUNT_ID=$(jq -r .account_id "$INIT_ACCOUNT_CREDENTIALS_FILE") +INIT_ACCOUNT_PUBLIC_KEY=$(jq -r .public_key "$INIT_ACCOUNT_CREDENTIALS_FILE") +INIT_ACCOUNT_PRIVATE_KEY=$(jq -r .private_key "$INIT_ACCOUNT_CREDENTIALS_FILE") + +CONTRACT_NAME=$(basename "$OUTPUT_JSON" .json) + +# Extract init function and merge init args +INIT_FUNCTION=$(jq -rc ".$CONTRACT_NAME.init_function // \"\"" "$NEAR_INIT_PARAMS_FILE") +STATIC_INIT_ARGS=$(jq -rc ".$CONTRACT_NAME.init_args // {}" "$NEAR_INIT_PARAMS_FILE") + +if [ -f "$DYN_INIT_ARGS_FILE" ]; then + DYN_INIT_ARGS=$(cat "$DYN_INIT_ARGS_FILE") +else + DYN_INIT_ARGS="{}" +fi + +INIT_ARGS=$(echo "$STATIC_INIT_ARGS $DYN_INIT_ARGS" | jq -s add) + +echo "Creating the contract account" +# Create the contract account +if ! near account create-account sponsor-by-faucet-service "$CONTRACT_ID" \ + autogenerate-new-keypair save-to-keychain network-config testnet create; then + echo "Failed to create account for ${CONTRACT_NAME}" + exit 1 +fi + +# Delay to allow the account to be created +sleep 3 + +# Deploy the contract +echo "Deploying the contract" +if ! near contract deploy "$CONTRACT_ID" use-file "$WASM_PATH" \ + without-init-call network-config testnet sign-with-keychain send; then + echo "Failed to deploy ${CONTRACT_NAME}" + exit 1 +fi + +# Delay to allow the account to be deployed +sleep 3 + +# Init the contract only if init function is specified +if [ -n "$INIT_FUNCTION" ]; then + echo "Init the contract" + if ! near contract call-function as-transaction "$CONTRACT_ID" \ + "$INIT_FUNCTION" \ + json-args "$INIT_ARGS" \ + prepaid-gas '100.0 Tgas' attached-deposit '0 NEAR' \ + sign-as "$INIT_ACCOUNT_ID" \ + network-config testnet \ + sign-with-plaintext-private-key --signer-public-key "$INIT_ACCOUNT_PUBLIC_KEY" --signer-private-key "$INIT_ACCOUNT_PRIVATE_KEY" \ + send; then + echo "Failed to init ${CONTRACT_NAME}" + exit 1 + fi +else + echo "No init function specified, skipping contract initialization" +fi + +echo "{\"contract_id\": \"$CONTRACT_ID\"}" > "$OUTPUT_JSON" +echo "Deployment successful, saved to $OUTPUT_JSON" \ No newline at end of file diff --git a/evm/.gitignore b/evm/.gitignore index d2368a62..da89bbea 100644 --- a/evm/.gitignore +++ b/evm/.gitignore @@ -2,7 +2,6 @@ build/ cache/ coverage/ coverage.json -.openzeppelin/ node_modules .env typechain-types diff --git a/evm/.openzeppelin/arbitrum-one.json b/evm/.openzeppelin/arbitrum-one.json new file mode 100644 index 00000000..d7fdfc54 --- /dev/null +++ b/evm/.openzeppelin/arbitrum-one.json @@ -0,0 +1,534 @@ +{ + "manifestVersion": "3.2", + "proxies": [ + { + "address": "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989", + "txHash": "0x60b473ba8ae68fe192be3c960a3762e46099a3f9e60f60f7eed47db7c73ab29d", + "kind": "uups" + } + ], + "impls": { + "298b9f36a9e024def1c6e6baa12524fe201ac1dd8b39bb4d529d2eb956d896e7": { + "address": "0xf353b40fC144d1c6c5BCdda712fa6De833016aF9", + "txHash": "0x3e7e1b4b6605e3594113dfc09994eead8c1f4f63469d80f7e28219092fd88a36", + "layout": { + "solcVersion": "0.8.24", + "storage": [ + { + "label": "ethToNearToken", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_string_storage)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:24" + }, + { + "label": "nearToEthToken", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_string_memory_ptr,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:25" + }, + { + "label": "isBridgeToken", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_address,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:26" + }, + { + "label": "tokenImplementationAddress", + "offset": 0, + "slot": "3", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:28" + }, + { + "label": "nearBridgeDerivedAddress", + "offset": 0, + "slot": "4", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:29" + }, + { + "label": "omniBridgeChainId", + "offset": 20, + "slot": "4", + "type": "t_uint8", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:30" + }, + { + "label": "completedTransfers", + "offset": 0, + "slot": "5", + "type": "t_mapping(t_uint64,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:32" + }, + { + "label": "currentOriginNonce", + "offset": 0, + "slot": "6", + "type": "t_uint64", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:33" + }, + { + "label": "customMinters", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_address,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:35" + }, + { + "label": "__gap", + "offset": 0, + "slot": "8", + "type": "t_array(t_uint256)50_storage", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:326" + }, + { + "label": "_wormhole", + "offset": 0, + "slot": "58", + "type": "t_contract(IWormhole)5912", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:26" + }, + { + "label": "_consistencyLevel", + "offset": 20, + "slot": "58", + "type": "t_uint8", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:28" + }, + { + "label": "wormholeNonce", + "offset": 21, + "slot": "58", + "type": "t_uint32", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:29" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_struct(RoleData)24_storage)": { + "label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)", + "numberOfBytes": "32" + }, + "t_struct(AccessControlStorage)34_storage": { + "label": "struct AccessControlUpgradeable.AccessControlStorage", + "members": [ + { + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(InitializableStorage)266_storage": { + "label": "struct Initializable.InitializableStorage", + "members": [ + { + "label": "_initialized", + "type": "t_uint64", + "offset": 0, + "slot": "0" + }, + { + "label": "_initializing", + "type": "t_bool", + "offset": 8, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(RoleData)24_storage": { + "label": "struct AccessControlUpgradeable.RoleData", + "members": [ + { + "label": "hasRole", + "type": "t_mapping(t_address,t_bool)", + "offset": 0, + "slot": "0" + }, + { + "label": "adminRole", + "type": "t_bytes32", + "offset": 0, + "slot": "1" + } + ], + "numberOfBytes": "64" + }, + "t_uint64": { + "label": "uint64", + "numberOfBytes": "8" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_contract(IWormhole)5912": { + "label": "contract IWormhole", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_address)": { + "label": "mapping(address => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_string_storage)": { + "label": "mapping(address => string)", + "numberOfBytes": "32" + }, + "t_mapping(t_string_memory_ptr,t_address)": { + "label": "mapping(string => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint64,t_bool)": { + "label": "mapping(uint64 => bool)", + "numberOfBytes": "32" + }, + "t_string_memory_ptr": { + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "label": "uint32", + "numberOfBytes": "4" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": { + "erc7201:openzeppelin.storage.AccessControl": [ + { + "contract": "AccessControlUpgradeable", + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61", + "offset": 0, + "slot": "0" + } + ], + "erc7201:openzeppelin.storage.Initializable": [ + { + "contract": "Initializable", + "label": "_initialized", + "type": "t_uint64", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:69", + "offset": 0, + "slot": "0" + }, + { + "contract": "Initializable", + "label": "_initializing", + "type": "t_bool", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:73", + "offset": 8, + "slot": "0" + } + ] + } + } + }, + "dceb9abdd23926ddaaafb079c9784a3a659e0f99f18efcd0a5b078f4305302ce": { + "address": "0xB9dE9F72e81d1609E940Fb2217f7286602064881", + "txHash": "0xb65ef7240a84e4d653f0eae261ab35503c8f0f0b618000150c9b7656657b7a2d", + "layout": { + "solcVersion": "0.8.24", + "storage": [ + { + "label": "ethToNearToken", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_string_storage)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:24" + }, + { + "label": "nearToEthToken", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_string_memory_ptr,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:25" + }, + { + "label": "isBridgeToken", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_address,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:26" + }, + { + "label": "tokenImplementationAddress", + "offset": 0, + "slot": "3", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:28" + }, + { + "label": "nearBridgeDerivedAddress", + "offset": 0, + "slot": "4", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:29" + }, + { + "label": "omniBridgeChainId", + "offset": 20, + "slot": "4", + "type": "t_uint8", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:30" + }, + { + "label": "completedTransfers", + "offset": 0, + "slot": "5", + "type": "t_mapping(t_uint64,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:32" + }, + { + "label": "currentOriginNonce", + "offset": 0, + "slot": "6", + "type": "t_uint64", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:33" + }, + { + "label": "customMinters", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_address,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:35" + }, + { + "label": "__gap", + "offset": 0, + "slot": "8", + "type": "t_array(t_uint256)50_storage", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:332" + }, + { + "label": "_wormhole", + "offset": 0, + "slot": "58", + "type": "t_contract(IWormhole)5925", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:26" + }, + { + "label": "_consistencyLevel", + "offset": 20, + "slot": "58", + "type": "t_uint8", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:28" + }, + { + "label": "wormholeNonce", + "offset": 21, + "slot": "58", + "type": "t_uint32", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:29" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_struct(RoleData)24_storage)": { + "label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)", + "numberOfBytes": "32" + }, + "t_struct(AccessControlStorage)34_storage": { + "label": "struct AccessControlUpgradeable.AccessControlStorage", + "members": [ + { + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(InitializableStorage)266_storage": { + "label": "struct Initializable.InitializableStorage", + "members": [ + { + "label": "_initialized", + "type": "t_uint64", + "offset": 0, + "slot": "0" + }, + { + "label": "_initializing", + "type": "t_bool", + "offset": 8, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(RoleData)24_storage": { + "label": "struct AccessControlUpgradeable.RoleData", + "members": [ + { + "label": "hasRole", + "type": "t_mapping(t_address,t_bool)", + "offset": 0, + "slot": "0" + }, + { + "label": "adminRole", + "type": "t_bytes32", + "offset": 0, + "slot": "1" + } + ], + "numberOfBytes": "64" + }, + "t_uint64": { + "label": "uint64", + "numberOfBytes": "8" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_contract(IWormhole)5925": { + "label": "contract IWormhole", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_address)": { + "label": "mapping(address => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_string_storage)": { + "label": "mapping(address => string)", + "numberOfBytes": "32" + }, + "t_mapping(t_string_memory_ptr,t_address)": { + "label": "mapping(string => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint64,t_bool)": { + "label": "mapping(uint64 => bool)", + "numberOfBytes": "32" + }, + "t_string_memory_ptr": { + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "label": "uint32", + "numberOfBytes": "4" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": { + "erc7201:openzeppelin.storage.AccessControl": [ + { + "contract": "AccessControlUpgradeable", + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61", + "offset": 0, + "slot": "0" + } + ], + "erc7201:openzeppelin.storage.Initializable": [ + { + "contract": "Initializable", + "label": "_initialized", + "type": "t_uint64", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:69", + "offset": 0, + "slot": "0" + }, + { + "contract": "Initializable", + "label": "_initializing", + "type": "t_bool", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:73", + "offset": 8, + "slot": "0" + } + ] + } + } + } + } +} diff --git a/evm/.openzeppelin/base.json b/evm/.openzeppelin/base.json new file mode 100644 index 00000000..b410ab45 --- /dev/null +++ b/evm/.openzeppelin/base.json @@ -0,0 +1,534 @@ +{ + "manifestVersion": "3.2", + "proxies": [ + { + "address": "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989", + "txHash": "0x051dc38fd5fc186f76b9cc7021746c915cca0cb32f74e56ec4df624cf0d06259", + "kind": "uups" + } + ], + "impls": { + "298b9f36a9e024def1c6e6baa12524fe201ac1dd8b39bb4d529d2eb956d896e7": { + "address": "0xf353b40fC144d1c6c5BCdda712fa6De833016aF9", + "txHash": "0x8bed031882b22ee09d15dd8aaf257eefbb9b4000a8e603b1acc84063c7fe00af", + "layout": { + "solcVersion": "0.8.24", + "storage": [ + { + "label": "ethToNearToken", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_string_storage)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:24" + }, + { + "label": "nearToEthToken", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_string_memory_ptr,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:25" + }, + { + "label": "isBridgeToken", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_address,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:26" + }, + { + "label": "tokenImplementationAddress", + "offset": 0, + "slot": "3", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:28" + }, + { + "label": "nearBridgeDerivedAddress", + "offset": 0, + "slot": "4", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:29" + }, + { + "label": "omniBridgeChainId", + "offset": 20, + "slot": "4", + "type": "t_uint8", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:30" + }, + { + "label": "completedTransfers", + "offset": 0, + "slot": "5", + "type": "t_mapping(t_uint64,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:32" + }, + { + "label": "currentOriginNonce", + "offset": 0, + "slot": "6", + "type": "t_uint64", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:33" + }, + { + "label": "customMinters", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_address,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:35" + }, + { + "label": "__gap", + "offset": 0, + "slot": "8", + "type": "t_array(t_uint256)50_storage", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:326" + }, + { + "label": "_wormhole", + "offset": 0, + "slot": "58", + "type": "t_contract(IWormhole)5912", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:26" + }, + { + "label": "_consistencyLevel", + "offset": 20, + "slot": "58", + "type": "t_uint8", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:28" + }, + { + "label": "wormholeNonce", + "offset": 21, + "slot": "58", + "type": "t_uint32", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:29" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_struct(RoleData)24_storage)": { + "label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)", + "numberOfBytes": "32" + }, + "t_struct(AccessControlStorage)34_storage": { + "label": "struct AccessControlUpgradeable.AccessControlStorage", + "members": [ + { + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(InitializableStorage)266_storage": { + "label": "struct Initializable.InitializableStorage", + "members": [ + { + "label": "_initialized", + "type": "t_uint64", + "offset": 0, + "slot": "0" + }, + { + "label": "_initializing", + "type": "t_bool", + "offset": 8, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(RoleData)24_storage": { + "label": "struct AccessControlUpgradeable.RoleData", + "members": [ + { + "label": "hasRole", + "type": "t_mapping(t_address,t_bool)", + "offset": 0, + "slot": "0" + }, + { + "label": "adminRole", + "type": "t_bytes32", + "offset": 0, + "slot": "1" + } + ], + "numberOfBytes": "64" + }, + "t_uint64": { + "label": "uint64", + "numberOfBytes": "8" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_contract(IWormhole)5912": { + "label": "contract IWormhole", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_address)": { + "label": "mapping(address => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_string_storage)": { + "label": "mapping(address => string)", + "numberOfBytes": "32" + }, + "t_mapping(t_string_memory_ptr,t_address)": { + "label": "mapping(string => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint64,t_bool)": { + "label": "mapping(uint64 => bool)", + "numberOfBytes": "32" + }, + "t_string_memory_ptr": { + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "label": "uint32", + "numberOfBytes": "4" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": { + "erc7201:openzeppelin.storage.AccessControl": [ + { + "contract": "AccessControlUpgradeable", + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61", + "offset": 0, + "slot": "0" + } + ], + "erc7201:openzeppelin.storage.Initializable": [ + { + "contract": "Initializable", + "label": "_initialized", + "type": "t_uint64", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:69", + "offset": 0, + "slot": "0" + }, + { + "contract": "Initializable", + "label": "_initializing", + "type": "t_bool", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:73", + "offset": 8, + "slot": "0" + } + ] + } + } + }, + "dceb9abdd23926ddaaafb079c9784a3a659e0f99f18efcd0a5b078f4305302ce": { + "address": "0xEC81aFc3485a425347Ac03316675e58a680b283A", + "txHash": "0x86fdb8388cfb93962ef728558688e370ec90c529b42f831a1d31195883a88247", + "layout": { + "solcVersion": "0.8.24", + "storage": [ + { + "label": "ethToNearToken", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_string_storage)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:24" + }, + { + "label": "nearToEthToken", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_string_memory_ptr,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:25" + }, + { + "label": "isBridgeToken", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_address,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:26" + }, + { + "label": "tokenImplementationAddress", + "offset": 0, + "slot": "3", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:28" + }, + { + "label": "nearBridgeDerivedAddress", + "offset": 0, + "slot": "4", + "type": "t_address", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:29" + }, + { + "label": "omniBridgeChainId", + "offset": 20, + "slot": "4", + "type": "t_uint8", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:30" + }, + { + "label": "completedTransfers", + "offset": 0, + "slot": "5", + "type": "t_mapping(t_uint64,t_bool)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:32" + }, + { + "label": "currentOriginNonce", + "offset": 0, + "slot": "6", + "type": "t_uint64", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:33" + }, + { + "label": "customMinters", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_address,t_address)", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:35" + }, + { + "label": "__gap", + "offset": 0, + "slot": "8", + "type": "t_array(t_uint256)50_storage", + "contract": "OmniBridge", + "src": "src/omni-bridge/contracts/OmniBridge.sol:332" + }, + { + "label": "_wormhole", + "offset": 0, + "slot": "58", + "type": "t_contract(IWormhole)5925", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:26" + }, + { + "label": "_consistencyLevel", + "offset": 20, + "slot": "58", + "type": "t_uint8", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:28" + }, + { + "label": "wormholeNonce", + "offset": 21, + "slot": "58", + "type": "t_uint32", + "contract": "OmniBridgeWormhole", + "src": "src/omni-bridge/contracts/OmniBridgeWormhole.sol:29" + } + ], + "types": { + "t_address": { + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "label": "mapping(address => bool)", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_struct(RoleData)24_storage)": { + "label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)", + "numberOfBytes": "32" + }, + "t_struct(AccessControlStorage)34_storage": { + "label": "struct AccessControlUpgradeable.AccessControlStorage", + "members": [ + { + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "offset": 0, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(InitializableStorage)266_storage": { + "label": "struct Initializable.InitializableStorage", + "members": [ + { + "label": "_initialized", + "type": "t_uint64", + "offset": 0, + "slot": "0" + }, + { + "label": "_initializing", + "type": "t_bool", + "offset": 8, + "slot": "0" + } + ], + "numberOfBytes": "32" + }, + "t_struct(RoleData)24_storage": { + "label": "struct AccessControlUpgradeable.RoleData", + "members": [ + { + "label": "hasRole", + "type": "t_mapping(t_address,t_bool)", + "offset": 0, + "slot": "0" + }, + { + "label": "adminRole", + "type": "t_bytes32", + "offset": 0, + "slot": "1" + } + ], + "numberOfBytes": "64" + }, + "t_uint64": { + "label": "uint64", + "numberOfBytes": "8" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_contract(IWormhole)5925": { + "label": "contract IWormhole", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_address)": { + "label": "mapping(address => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_string_storage)": { + "label": "mapping(address => string)", + "numberOfBytes": "32" + }, + "t_mapping(t_string_memory_ptr,t_address)": { + "label": "mapping(string => address)", + "numberOfBytes": "32" + }, + "t_mapping(t_uint64,t_bool)": { + "label": "mapping(uint64 => bool)", + "numberOfBytes": "32" + }, + "t_string_memory_ptr": { + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "label": "uint32", + "numberOfBytes": "4" + }, + "t_uint8": { + "label": "uint8", + "numberOfBytes": "1" + } + }, + "namespaces": { + "erc7201:openzeppelin.storage.AccessControl": [ + { + "contract": "AccessControlUpgradeable", + "label": "_roles", + "type": "t_mapping(t_bytes32,t_struct(RoleData)24_storage)", + "src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:61", + "offset": 0, + "slot": "0" + } + ], + "erc7201:openzeppelin.storage.Initializable": [ + { + "contract": "Initializable", + "label": "_initialized", + "type": "t_uint64", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:69", + "offset": 0, + "slot": "0" + }, + { + "contract": "Initializable", + "label": "_initializing", + "type": "t_bool", + "src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:73", + "offset": 8, + "slot": "0" + } + ] + } + } + } + } +} diff --git a/evm/hardhat.config.ts b/evm/hardhat.config.ts index 9a6fd7b7..4d414895 100644 --- a/evm/hardhat.config.ts +++ b/evm/hardhat.config.ts @@ -10,11 +10,12 @@ import "solidity-coverage" import "./src/eNear/scripts" import { task } from "hardhat/config" import type { HttpNetworkUserConfig } from "hardhat/types" -import type { OmniBridge } from "./typechain-types" +import type { OmniBridge, OmniBridgeWormhole } from "./typechain-types" import { deriveEVMAddress, mpcRootPublicKeys } from "./utils/kdf" import "hardhat/types/config" -import * as assert from "node:assert" +import assert from "node:assert" +import * as fs from "node:fs" declare module "hardhat/types/config" { interface HttpNetworkUserConfig { @@ -52,7 +53,7 @@ task("deploy-bridge-token-factory", "Deploys the OmniBridge contract") const omniChainId = networkConfig.omniChainId const wormholeAddress = networkConfig.wormholeAddress - const mpcRootPublicKey = hre.network.name.endsWith("mainnet") + const mpcRootPublicKey = hre.network.name.toLowerCase().endsWith("mainnet") ? mpcRootPublicKeys.mainnet.key : mpcRootPublicKeys.testnet.key @@ -62,10 +63,6 @@ task("deploy-bridge-token-factory", "Deploys the OmniBridge contract") mpcRootPublicKey, ) - console.log(`Derived addres: ${nearBridgeDerivedAddress}`) - console.log(`Omni chain id: ${omniChainId}`) - console.log(`Wormhole address: ${wormholeAddress}`) - const isWormholeContract = wormholeAddress ?? false const contractName = isWormholeContract ? "OmniBridgeWormhole" : "OmniBridge" const OmniBridgeContract = await ethers.getContractFactory(contractName) @@ -90,12 +87,7 @@ task("deploy-bridge-token-factory", "Deploys the OmniBridge contract") await OmniBridge.waitForDeployment() const bridgeAddress = await OmniBridge.getAddress() - - console.log(`OmniBridge deployed at ${bridgeAddress}`) - console.log( - "Implementation address:", - await upgrades.erc1967.getImplementationAddress(await OmniBridge.getAddress()), - ) + const implementationAddress = await upgrades.erc1967.getImplementationAddress(bridgeAddress) const wormholeAddressStorageValue = await hre.ethers.provider.getStorage(bridgeAddress, 58) const decodedWormholeAddress = ethers.AbiCoder.defaultAbiCoder().decode( @@ -103,15 +95,28 @@ task("deploy-bridge-token-factory", "Deploys the OmniBridge contract") wormholeAddressStorageValue, )[0] assert.strictEqual(decodedWormholeAddress, wormholeAddress ?? ethers.ZeroAddress) + + console.log( + JSON.stringify({ + bridgeAddress, + implementationAddress, + derivedAddress: nearBridgeDerivedAddress, + omniChainId, + wormholeAddress: wormholeAddress ?? null, + }), + ) }) task("deploy-token-impl", "Deploys the BridgeToken implementation").setAction(async (_, hre) => { const { ethers } = hre - const BridgeTokenContractFactory = await ethers.getContractFactory("BridgeToken") const BridgeTokenContract = await BridgeTokenContractFactory.deploy() await BridgeTokenContract.waitForDeployment() - console.log(`BridgeTokenContract deployed at ${await BridgeTokenContract.getAddress()}`) + console.log( + JSON.stringify({ + tokenImplAddress: await BridgeTokenContract.getAddress(), + }), + ) }) task("upgrade-bridge-token", "Upgrades a BridgeToken to a new implementation") @@ -123,9 +128,6 @@ task("upgrade-bridge-token", "Upgrades a BridgeToken to a new implementation") const OmniBridgeContract = await ethers.getContractFactory("OmniBridge") const OmniBridge = OmniBridgeContract.attach(taskArgs.factory) as OmniBridge - console.log(`Upgrading token ${taskArgs.nearTokenAccount}`) - console.log("Token proxy address:", await OmniBridge.nearToEthToken(taskArgs.nearTokenAccount)) - const BridgeTokenV2Instance = await ethers.getContractFactory("BridgeTokenV2") const BridgeTokenV2 = await BridgeTokenV2Instance.deploy() await BridgeTokenV2.waitForDeployment() @@ -136,9 +138,15 @@ task("upgrade-bridge-token", "Upgrades a BridgeToken to a new implementation") taskArgs.nearTokenAccount, await BridgeTokenV2.getAddress(), ) - const receipt = await tx.wait() + await tx.wait() - console.log("Token upgraded at tx hash:", receipt?.hash) + console.log( + JSON.stringify({ + upgradingToken: taskArgs.nearTokenAccount, + tokenProxyAddress: await OmniBridge.nearToEthToken(taskArgs.nearTokenAccount), + newImplementationAddress: await BridgeTokenV2.getAddress(), + }), + ) }) task("upgrade-factory", "Upgrades the OmniBridge contract") @@ -151,12 +159,18 @@ task("upgrade-factory", "Upgrades the OmniBridge contract") const contractName = isWormholeContract ? "OmniBridgeWormhole" : "OmniBridge" const OmniBridgeContract = await ethers.getContractFactory(contractName) + + const currentImpl = await upgrades.erc1967.getImplementationAddress(taskArgs.factory) + await upgrades.upgradeProxy(taskArgs.factory, OmniBridgeContract) + const newImpl = await upgrades.erc1967.getImplementationAddress(taskArgs.factory) + console.log( - "Current implementation address:", - await upgrades.erc1967.getImplementationAddress(taskArgs.factory), + JSON.stringify({ + proxyAddress: taskArgs.factory, + previousImplementation: currentImpl, + newImplementation: newImpl, + }), ) - console.log("Upgrade factory, proxy address", taskArgs.factory) - await upgrades.upgradeProxy(taskArgs.factory, OmniBridgeContract) }) task("etherscan-verify", "Verify contract on etherscan") @@ -169,6 +183,44 @@ task("etherscan-verify", "Verify contract on etherscan") }) }) +task("update-wormhole-address", "Update the wormhole address") + .addParam("factory", "The address of the OmniBridge contract") + .setAction(async (taskArgs, hre) => { + const { ethers } = hre + const networkConfig = hre.network.config as HttpNetworkUserConfig + const wormholeAddress = networkConfig.wormholeAddress + if (!wormholeAddress) { + throw new Error("Wormhole address is not set") + } + + const OmniBridgeContract = await ethers.getContractFactory("OmniBridgeWormhole") + const consistencyLevel = 0 + const OmniBridge = OmniBridgeContract.attach(taskArgs.factory) as OmniBridgeWormhole + const tx = await OmniBridge.setWormholeAddress(wormholeAddress, consistencyLevel) + const receipt = await tx.wait() + + console.log("Address upgraded at tx hash:", receipt?.hash) + }) + +task("deploy-bytecode", "Deploys a contract with a given bytecode") + .addParam("bytecode", "The path to the file containing the bytecode of the contract") + .setAction(async (taskArgs, hre) => { + const { ethers } = hre + + const bytecode = fs.readFileSync(taskArgs.bytecode, "utf8") + const [signer] = await ethers.getSigners() + + const contractFactory = new ethers.ContractFactory([], bytecode, signer) + const contract = await contractFactory.deploy() + await contract.waitForDeployment() + + console.log( + JSON.stringify({ + contractAddress: await contract.getAddress(), + }), + ) + }) + const config: HardhatUserConfig = { paths: { sources: "./src", @@ -230,7 +282,7 @@ const config: HardhatUserConfig = { accounts: [`${EVM_PRIVATE_KEY}`], }, arbitrumSepolia: { - wormholeAddress: "0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e", + wormholeAddress: "0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35", omniChainId: 3, chainId: 421614, url: `https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}`, @@ -247,8 +299,8 @@ const config: HardhatUserConfig = { etherscan: { apiKey: { mainnet: ETHERSCAN_API_KEY, - arbitrumMainnet: ARBISCAN_API_KEY, - baseMainnet: BASESCAN_API_KEY, + arbitrumOne: ARBISCAN_API_KEY, + base: BASESCAN_API_KEY, sepolia: ETHERSCAN_API_KEY, arbitrumSepolia: ARBISCAN_API_KEY, baseSepolia: BASESCAN_API_KEY, diff --git a/evm/src/eNear/scripts.ts b/evm/src/eNear/scripts.ts index b411866e..4310adaa 100644 --- a/evm/src/eNear/scripts.ts +++ b/evm/src/eNear/scripts.ts @@ -20,10 +20,13 @@ task("deploy-e-near-proxy", "Deploys the ENearProxy contract") ) await eNearProxy.waitForDeployment() - console.log(`eNearProxy deployed at ${await eNearProxy.getAddress()}`) + const proxyAddress = await eNearProxy.getAddress() + const implementationAddress = await upgrades.erc1967.getImplementationAddress(proxyAddress) console.log( - "Implementation address:", - await upgrades.erc1967.getImplementationAddress(await eNearProxy.getAddress()), + JSON.stringify({ + proxyAddress, + implementationAddress, + }), ) }) @@ -43,6 +46,10 @@ task("deploy-fake-prover", "Deploy fake prover").setAction( const FakeProverContract = await FakeProverContractFactory.deploy() await FakeProverContract.waitForDeployment() - console.log(`FakeProver deployed at ${await FakeProverContract.getAddress()}`) + console.log( + JSON.stringify({ + fakeProverAddress: await FakeProverContract.getAddress(), + }), + ) }, ) diff --git a/evm/src/omni-bridge/contracts/BridgeTypes.sol b/evm/src/omni-bridge/contracts/BridgeTypes.sol index 4f7e048f..7d4d144f 100644 --- a/evm/src/omni-bridge/contracts/BridgeTypes.sol +++ b/evm/src/omni-bridge/contracts/BridgeTypes.sol @@ -44,7 +44,8 @@ library BridgeTypes { string token, string name, string symbol, - uint8 decimals + uint8 decimals, + uint8 originDecimals ); event LogMetadata( diff --git a/evm/src/omni-bridge/contracts/OmniBridge.sol b/evm/src/omni-bridge/contracts/OmniBridge.sol index e6f852f6..e1f7b8c1 100644 --- a/evm/src/omni-bridge/contracts/OmniBridge.sol +++ b/evm/src/omni-bridge/contracts/OmniBridge.sol @@ -42,6 +42,8 @@ contract OmniBridge is error InvalidSignature(); error NonceAlreadyUsed(uint64 nonce); error InvalidFee(); + error InvalidValue(); + error FailedToSendEther(); function initialize( address tokenImplementationAddress_, @@ -59,11 +61,26 @@ contract OmniBridge is _grantRole(PAUSABLE_ADMIN_ROLE, _msgSender()); } - function addCustomToken(string calldata nearTokenId, address tokenAddress, address customMinter) external onlyRole(DEFAULT_ADMIN_ROLE) { + function addCustomToken(string calldata nearTokenId, address tokenAddress, address customMinter, uint8 originDecimals) external onlyRole(DEFAULT_ADMIN_ROLE) { isBridgeToken[tokenAddress] = true; ethToNearToken[tokenAddress] = nearTokenId; nearToEthToken[nearTokenId] = tokenAddress; customMinters[tokenAddress] = customMinter; + + string memory name = IERC20Metadata(tokenAddress).name(); + string memory symbol = IERC20Metadata(tokenAddress).symbol(); + uint8 decimals = IERC20Metadata(tokenAddress).decimals(); + + deployTokenExtension(nearTokenId, tokenAddress, decimals, originDecimals); + + emit BridgeTypes.DeployToken( + tokenAddress, + nearTokenId, + name, + symbol, + decimals, + originDecimals + ); } function removeCustomToken(address tokenAddress) external onlyRole(DEFAULT_ADMIN_ROLE) { @@ -88,6 +105,7 @@ contract OmniBridge is } require(!isBridgeToken[nearToEthToken[metadata.token]], "ERR_TOKEN_EXIST"); + uint8 decimals = _normalizeDecimals(metadata.decimals); address bridgeTokenProxy = address( new ERC1967Proxy( @@ -96,18 +114,19 @@ contract OmniBridge is BridgeToken.initialize.selector, metadata.name, metadata.symbol, - metadata.decimals + decimals ) ) ); - deployTokenExtension(metadata.token, bridgeTokenProxy); + deployTokenExtension(metadata.token, bridgeTokenProxy, decimals, metadata.decimals); emit BridgeTypes.DeployToken( bridgeTokenProxy, metadata.token, metadata.name, metadata.symbol, + decimals, metadata.decimals ); @@ -118,7 +137,7 @@ contract OmniBridge is return bridgeTokenProxy; } - function deployTokenExtension(string memory token, address tokenAddress) internal virtual {} + function deployTokenExtension(string memory token, address tokenAddress, uint8 decimals, uint8 originDecimals) internal virtual {} function setMetadata( string calldata token, @@ -142,7 +161,7 @@ contract OmniBridge is function logMetadata( address tokenAddress - ) external onlyRole(DEFAULT_ADMIN_ROLE) { + ) external { string memory name = IERC20Metadata(tokenAddress).name(); string memory symbol = IERC20Metadata(tokenAddress).symbol(); uint8 decimals = IERC20Metadata(tokenAddress).decimals(); @@ -194,7 +213,11 @@ contract OmniBridge is revert InvalidSignature(); } - if (customMinters[payload.tokenAddress] != address(0)) { + if (payload.tokenAddress == address(0)) { + (bool success, ) = payload.recipient.call{value: payload.amount}(""); + if (!success) revert FailedToSendEther(); + } + else if (customMinters[payload.tokenAddress] != address(0)) { ICustomMinter(customMinters[payload.tokenAddress]).mint(payload.tokenAddress, payload.recipient, payload.amount); } else if (isBridgeToken[payload.tokenAddress]) { BridgeToken(payload.tokenAddress).mint(payload.recipient, payload.amount); @@ -230,7 +253,6 @@ contract OmniBridge is } uint256 extensionValue; - if (tokenAddress == address(0)) { if (fee != 0) { revert InvalidFee(); @@ -254,16 +276,20 @@ contract OmniBridge is } function initTransferExtension( - address sender, - address tokenAddress, - uint64 originNonce, - uint128 amount, - uint128 fee, - uint128 nativeFee, - string calldata recipient, - string calldata message, + address /*sender*/, + address /*tokenAddress*/, + uint64 /*originNonce*/, + uint128 /*amount*/, + uint128 /*fee*/, + uint128 /*nativeFee*/, + string calldata /*recipient*/, + string calldata /*message*/, uint256 value - ) internal virtual {} + ) internal virtual { + if (value != 0) { + revert InvalidValue(); + } + } function pause(uint flags) external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(flags); @@ -283,6 +309,22 @@ contract OmniBridge is proxy.upgradeToAndCall(implementation, bytes("")); } + function setNearBridgeDerivedAddress( + address nearBridgeDerivedAddress_ + ) external onlyRole(DEFAULT_ADMIN_ROLE) { + nearBridgeDerivedAddress = nearBridgeDerivedAddress_; + } + + function _normalizeDecimals( + uint8 decimals + ) internal pure returns (uint8) { + uint8 maxAllowedDecimals = 18; + if (decimals > maxAllowedDecimals) { + return maxAllowedDecimals; + } + return decimals; + } + function _authorizeUpgrade( address newImplementation ) internal override onlyRole(DEFAULT_ADMIN_ROLE) {} diff --git a/evm/src/omni-bridge/contracts/OmniBridgeWormhole.sol b/evm/src/omni-bridge/contracts/OmniBridgeWormhole.sol index f5171eed..4ef82474 100644 --- a/evm/src/omni-bridge/contracts/OmniBridgeWormhole.sol +++ b/evm/src/omni-bridge/contracts/OmniBridgeWormhole.sol @@ -11,6 +11,8 @@ interface IWormhole { bytes memory payload, uint8 consistencyLevel ) external payable returns (uint64 sequence); + + function messageFee() external view returns (uint256); } enum MessageType { @@ -38,12 +40,14 @@ contract OmniBridgeWormhole is OmniBridge { _consistencyLevel = consistencyLevel; } - function deployTokenExtension(string memory token, address tokenAddress) internal override { + function deployTokenExtension(string memory token, address tokenAddress, uint8 decimals, uint8 originDecimals) internal override { bytes memory payload = bytes.concat( bytes1(uint8(MessageType.DeployToken)), Borsh.encodeString(token), bytes1(omniBridgeChainId), - Borsh.encodeAddress(tokenAddress) + Borsh.encodeAddress(tokenAddress), + bytes1(decimals), + bytes1(originDecimals) ); _wormhole.publishMessage{value: msg.value}( wormholeNonce, @@ -130,4 +134,12 @@ contract OmniBridgeWormhole is OmniBridge { wormholeNonce++; } + + function setWormholeAddress( + address wormholeAddress, + uint8 consistencyLevel + ) external onlyRole(DEFAULT_ADMIN_ROLE) { + _wormhole = IWormhole(wormholeAddress); + _consistencyLevel = consistencyLevel; + } } diff --git a/evm/src/omni-bridge/contracts/test/TestWormhole.sol b/evm/src/omni-bridge/contracts/test/TestWormhole.sol index f164fefe..211e086e 100644 --- a/evm/src/omni-bridge/contracts/test/TestWormhole.sol +++ b/evm/src/omni-bridge/contracts/test/TestWormhole.sol @@ -9,7 +9,12 @@ contract TestWormhole { bytes memory payload, uint8 consistencyLevel ) external payable returns (uint64) { + require(msg.value == this.messageFee(), "invalid fee"); emit MessagePublished(nonce, payload, consistencyLevel); return 0; } -} \ No newline at end of file + + function messageFee() external pure returns (uint256) { + return 10000; + } +} diff --git a/evm/tests/BridgeToken.ts b/evm/tests/BridgeToken.ts index ca144597..830392b7 100644 --- a/evm/tests/BridgeToken.ts +++ b/evm/tests/BridgeToken.ts @@ -11,6 +11,7 @@ const PauseMode = { PausedFinTransfer: 1 << 1, } const PauseAll = PauseMode.PausedInitTransfer | PauseMode.PausedFinTransfer +const PanicCodeArithmeticOperationOverflowed = "0x11" describe("BridgeToken", () => { const wrappedNearId = "wrap.testnet" @@ -69,7 +70,7 @@ describe("BridgeToken", () => { const token = OmniBridgeInstance.attach(tokenProxyAddress) as BridgeToken expect(await token.name()).to.be.equal("Wrapped NEAR fungible token") expect(await token.symbol()).to.be.equal("wNEAR") - expect((await token.decimals()).toString()).to.be.equal("24") + expect((await token.decimals()).toString()).to.be.equal("18") }) it("can't create token if token already exists", async () => { @@ -101,7 +102,7 @@ describe("BridgeToken", () => { ).to.be.revertedWithCustomError(OmniBridge, "AccessControlUnauthorizedAccount") }) - it("deposit token", async () => { + it("can fin transfer", async () => { const { token } = await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -123,7 +124,7 @@ describe("BridgeToken", () => { ) }) - it("can't deposit if the contract is paused", async () => { + it("can't fin transfer if the contract is paused", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -136,7 +137,7 @@ describe("BridgeToken", () => { await expect(OmniBridge.finTransfer(signature, payload)).to.be.revertedWith("Pausable: paused") }) - it("can't deposit twice with the same signature", async () => { + it("can't fin transfer twice with the same signature", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -149,7 +150,7 @@ describe("BridgeToken", () => { ) }) - it("can't deposit with invalid amount", async () => { + it("can't fin transfer with invalid amount", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -162,7 +163,7 @@ describe("BridgeToken", () => { ) }) - it("can't deposit with invalid nonce", async () => { + it("can't fin transfer with invalid nonce", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -175,7 +176,7 @@ describe("BridgeToken", () => { ) }) - it("can't deposit with invalid token", async () => { + it("can't fin transfer with invalid token", async () => { await createToken(wrappedNearId) const wrappedNearTokenAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -189,7 +190,7 @@ describe("BridgeToken", () => { ) }) - it("can't deposit with invalid recipient", async () => { + it("can't fin transfer with invalid recipient", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -202,7 +203,7 @@ describe("BridgeToken", () => { ) }) - it("can't deposit with invalid relayer", async () => { + it("can't fin transfer with invalid relayer", async () => { await createToken(wrappedNearId) const wrappedNearTokenAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -215,7 +216,7 @@ describe("BridgeToken", () => { ) }) - it("withdraw token", async () => { + it("can init transfer", async () => { const { token } = await createToken(wrappedNearId) const tokenProxyAddress = await token.getAddress() @@ -242,7 +243,7 @@ describe("BridgeToken", () => { expect((await token.balanceOf(user1.address)).toString()).to.be.equal("0") }) - it("cant withdraw token when paused", async () => { + it("can't init transfer token when paused", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) @@ -250,7 +251,7 @@ describe("BridgeToken", () => { await OmniBridge.finTransfer(signature, payload) const fee = 0 - const nativeFee = 0 + const nativeFee = 100 const message = "" await expect(OmniBridge.pause(PauseMode.PausedInitTransfer)) .to.emit(OmniBridge, "Paused") @@ -263,11 +264,63 @@ describe("BridgeToken", () => { nativeFee, "testrecipient.near", message, + { + value: 100, + }, ), ).to.be.revertedWith("Pausable: paused") }) - it("can deposit and withdraw after unpausing", async () => { + it("can't init transfer when value is too low", async () => { + await createToken(wrappedNearId) + const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) + + const { signature, payload } = depositSignature(tokenProxyAddress, user1.address) + await OmniBridge.finTransfer(signature, payload) + + const fee = 0 + const nativeFee = 100 + const message = "" + + await expect( + OmniBridge.initTransfer( + tokenProxyAddress, + payload.amount, + fee, + nativeFee, + "testrecipient.near", + message, + ), + ).to.be.revertedWithPanic(PanicCodeArithmeticOperationOverflowed) + }) + + it("can't init transfer when value is too high", async () => { + await createToken(wrappedNearId) + const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) + + const { signature, payload } = depositSignature(tokenProxyAddress, user1.address) + await OmniBridge.finTransfer(signature, payload) + + const fee = 0 + const nativeFee = 100 + const message = "" + + await expect( + OmniBridge.connect(user1).initTransfer( + tokenProxyAddress, + payload.amount, + fee, + nativeFee, + "testrecipient.near", + message, + { + value: 200, + }, + ), + ).to.be.revertedWithCustomError(OmniBridge, "InvalidValue") + }) + + it("can fin and init transfer after unpausing", async () => { const { token } = await createToken(wrappedNearId) const tokenProxyAddress = await token.getAddress() @@ -310,10 +363,10 @@ describe("BridgeToken", () => { expect(await BridgeTokenV2Proxied.returnTestString()).to.equal("test") expect(await BridgeTokenV2Proxied.name()).to.equal("Wrapped NEAR fungible token") expect(await BridgeTokenV2Proxied.symbol()).to.equal("wNEAR") - expect((await BridgeTokenV2Proxied.decimals()).toString()).to.equal("24") + expect((await BridgeTokenV2Proxied.decimals()).toString()).to.equal("18") }) - it("user cant upgrade token contract", async () => { + it("user can't upgrade token contract", async () => { await createToken(wrappedNearId) const tokenProxyAddress = await OmniBridge.nearToEthToken(wrappedNearId) diff --git a/evm/tests/BridgeTokenWormhole.ts b/evm/tests/BridgeTokenWormhole.ts index c091a004..002c969e 100644 --- a/evm/tests/BridgeTokenWormhole.ts +++ b/evm/tests/BridgeTokenWormhole.ts @@ -6,6 +6,8 @@ import { ethers, upgrades } from "hardhat" import type { BridgeToken, OmniBridgeWormhole, TestWormhole } from "../typechain-types" import { depositSignature, metadataSignature, testWallet } from "./helpers/signatures" +const WormholeFee = 10000 + class FinTransferWormholeMessage { static schema = { struct: { @@ -124,7 +126,7 @@ describe("BridgeTokenWormhole", () => { ): Promise<{ tokenProxyAddress: string; token: BridgeToken }> { const { signature, payload } = metadataSignature(tokenId) - await OmniBridgeWormhole.deployToken(signature, payload) + await OmniBridgeWormhole.deployToken(signature, payload, { value: WormholeFee }) const tokenProxyAddress = await OmniBridgeWormhole.nearToEthToken(tokenId) const token = OmniBridgeInstance.attach(tokenProxyAddress) as BridgeToken return { tokenProxyAddress, token } @@ -133,12 +135,12 @@ describe("BridgeTokenWormhole", () => { it("deploy token", async () => { const { signature, payload } = metadataSignature(wrappedNearId) - await expect(await OmniBridgeWormhole.deployToken(signature, payload)) + await expect(await OmniBridgeWormhole.deployToken(signature, payload, { value: WormholeFee })) .to.emit(TestWormhole, "MessagePublished") .withArgs(0, anyValue, consistencyLevel) }) - it("deposit token", async () => { + it("fin transfer", async () => { const { token } = await createToken(wrappedNearId) const tokenProxyAddress = await token.getAddress() const { signature, payload } = depositSignature(tokenProxyAddress, await user1.getAddress()) @@ -154,7 +156,7 @@ describe("BridgeTokenWormhole", () => { feeRecipient: payload.feeRecipient, }) - await expect(OmniBridgeWormhole.finTransfer(signature, payload)) + await expect(OmniBridgeWormhole.finTransfer(signature, payload, { value: WormholeFee })) .to.emit(TestWormhole, "MessagePublished") .withArgs(1, messagePayload, consistencyLevel) @@ -163,11 +165,11 @@ describe("BridgeTokenWormhole", () => { ) }) - it("withdraw token", async () => { + it("init transfer", async () => { const { token } = await createToken(wrappedNearId) const tokenProxyAddress = await token.getAddress() const { signature, payload } = depositSignature(tokenProxyAddress, await user1.getAddress()) - await OmniBridgeWormhole.finTransfer(signature, payload) + await OmniBridgeWormhole.finTransfer(signature, payload, { value: WormholeFee }) const recipient = "testrecipient.near" const fee = 0 @@ -197,6 +199,9 @@ describe("BridgeTokenWormhole", () => { nativeFee, recipient, message, + { + value: WormholeFee, + }, ), ) .to.emit(TestWormhole, "MessagePublished") @@ -204,4 +209,22 @@ describe("BridgeTokenWormhole", () => { expect((await token.balanceOf(await user1.getAddress())).toString()).to.be.equal("0") }) + + it("can't init transfer without enough value", async () => { + const { token } = await createToken(wrappedNearId) + const tokenProxyAddress = await token.getAddress() + const { signature, payload } = depositSignature(tokenProxyAddress, await user1.getAddress()) + await OmniBridgeWormhole.finTransfer(signature, payload, { value: WormholeFee }) + + await expect( + OmniBridgeWormhole.connect(user1).initTransfer( + tokenProxyAddress, + payload.amount, + 0, + 0, + "testrecipient.near", + "", + ), + ).to.be.revertedWith("invalid fee") + }) }) diff --git a/near/Cargo.lock b/near/Cargo.lock index 2aa8da2f..0c59d9a2 100644 --- a/near/Cargo.lock +++ b/near/Cargo.lock @@ -3401,7 +3401,7 @@ dependencies = [ [[package]] name = "near-plugins" version = "0.2.0" -source = "git+https://github.com/aurora-is-near/near-plugins?tag=v0.3.0#eff928fda517caf4276b9b58b5a3ece0c48ba5ed" +source = "git+https://github.com/aurora-is-near/near-plugins?tag=v0.4.1#6149e0378fe46c7f740153cc0274b6da1f194112" dependencies = [ "bitflags 1.3.2", "near-plugins-derive", @@ -3412,7 +3412,7 @@ dependencies = [ [[package]] name = "near-plugins-derive" version = "0.2.0" -source = "git+https://github.com/aurora-is-near/near-plugins?tag=v0.3.0#eff928fda517caf4276b9b58b5a3ece0c48ba5ed" +source = "git+https://github.com/aurora-is-near/near-plugins?tag=v0.4.1#6149e0378fe46c7f740153cc0274b6da1f194112" dependencies = [ "darling 0.13.4", "proc-macro-crate 0.1.5", @@ -5903,6 +5903,7 @@ dependencies = [ "near-contract-standards", "near-plugins", "near-sdk", + "omni-token", "omni-types", "serde", ] diff --git a/near/Cargo.toml b/near/Cargo.toml index c7982384..be90c094 100644 --- a/near/Cargo.toml +++ b/near/Cargo.toml @@ -31,7 +31,7 @@ near-contract-standards = "5.2.0" hex = "0.4.2" borsh = "1.5.1" serde = { version = "1.0.200", features = ["derive"] } -near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.3.0" } +near-plugins = { git = "https://github.com/aurora-is-near/near-plugins", tag = "v0.4.1" } omni-types = { path = "omni-types" } strum_macros = "0.26" near-workspaces = "0.12.0" diff --git a/near/build.sh b/near/build.sh new file mode 100755 index 00000000..a7c89ad2 --- /dev/null +++ b/near/build.sh @@ -0,0 +1,101 @@ +#!/usr/bin/env bash + +# Exit script as soon as a command fails. +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +DEFAULT_RES_DIR="$DIR/res" +RES_DIR=$DEFAULT_RES_DIR + +show_help() { + echo "Usage: $0 [OPTION] [COMPONENT_DIR]" + echo + echo "Build NEAR smart contracts." + echo + echo "Options:" + echo " -h, --help Display this help message" + echo " -o, --output-dir DIR Specify output directory for WASM files (default: ./res)" + echo + echo "Arguments:" + echo " COMPONENT_DIR Optional. Directory name of the specific component to build" + echo " If not provided, builds all components" + echo + echo "Examples:" + echo " $0 # Build all contracts" + echo " $0 omni-bridge # Build only omni-bridge contract" + echo " $0 token-deployer # Build only token-deployer contract" + echo " $0 -o ../dist # Build all contracts and output to ../dist" + echo +} + +# Parse command line arguments +while [[ $# -gt 0 ]]; do + case $1 in + -h|--help) + show_help + exit 0 + ;; + -o|--output-dir) + if [ -z "$2" ]; then + echo "Error: Output directory not specified" + exit 1 + fi + RES_DIR="$2" + shift 2 + ;; + *) + COMPONENT="$1" + shift + ;; + esac +done + +# Determine Docker user flags +if [[ -z "$BUILDKITE" ]] && [[ "$(uname -s)" != "Darwin" ]]; +then + userflag="-u $UID:$UID" +else + userflag="" +fi + +# Determine architecture-specific tag +arch=`uname -m` +if [ "$arch" == "arm64" ] +then + tag=":latest-arm64" +else + tag="" +fi + +if [ -z "$COMPONENT" ]; then + BUILD_CMD="cargo build --workspace --target wasm32-unknown-unknown --release" + echo "Building entire workspace..." +else + if [ ! -d "$DIR/$COMPONENT" ]; then + echo "Error: Directory '$COMPONENT' not found in $DIR" + exit 1 + fi + BUILD_CMD="cargo build --manifest-path $COMPONENT/Cargo.toml --target wasm32-unknown-unknown --release" + echo "Building component: $COMPONENT" +fi + +docker run \ + --rm \ + --mount type=bind,source=$DIR,target=/host \ + --cap-add=SYS_PTRACE --security-opt seccomp=unconfined $userflag \ + -w /host \ + -e RUSTFLAGS='-C link-arg=-s' \ + nearprotocol/contract-builder$tag \ + /bin/bash -c "rustup target add wasm32-unknown-unknown && $BUILD_CMD" + +mkdir -p $RES_DIR + +if [ -z "$COMPONENT" ]; then + find $DIR/target/wasm32-unknown-unknown/release/ -name "*.wasm" -maxdepth 1 -exec cp -f {} $RES_DIR/ \; +else + binary_name=$(basename $COMPONENT | tr '-' '_') + find $DIR/target/wasm32-unknown-unknown/release/ -name "$binary_name.wasm" -maxdepth 1 -exec cp -f {} $RES_DIR/ \; +fi + +echo "Build completed! Contract files are in the $RES_DIR directory:" +ls -l $RES_DIR diff --git a/near/omni-bridge/src/lib.rs b/near/omni-bridge/src/lib.rs index af07aa63..40b7de30 100644 --- a/near/omni-bridge/src/lib.rs +++ b/near/omni-bridge/src/lib.rs @@ -28,7 +28,7 @@ use omni_types::{ FastTransferId, Fee, InitTransferMsg, MetadataPayload, Nonce, OmniAddress, PayloadType, SignRequest, TransferId, TransferMessage, TransferMessagePayload, UpdateFee, }; -use storage::{TransferMessageStorage, TransferMessageStorageValue}; +use storage::{Decimals, TransferMessageStorage, TransferMessageStorageValue, NEP141_DEPOSIT}; mod errors; mod storage; @@ -74,6 +74,7 @@ enum StorageKey { DeployedTokens, DestinationNonces, FastTransfers, + TokenDecimals, } #[derive(AccessControlRole, Deserialize, Serialize, Copy, Clone)] @@ -85,6 +86,7 @@ pub enum Role { UpgradableCodeStager, UpgradableCodeDeployer, MetadataManager, + UnrestrictedRelayer, } #[ext_contract(ext_token)] @@ -169,6 +171,7 @@ pub struct Contract { pub fast_transfers: LookupMap, // value is relayer address that performed the transfer pub token_id_to_address: LookupMap<(ChainKind, AccountId), OmniAddress>, pub token_address_to_id: LookupMap, + pub token_decimals: LookupMap, pub deployed_tokens: LookupSet, pub token_deployer_accounts: LookupMap, pub mpc_signer: AccountId, @@ -236,6 +239,7 @@ impl Contract { fast_transfers: LookupMap::new(StorageKey::FastTransfers), token_id_to_address: LookupMap::new(StorageKey::TokenIdToAddress), token_address_to_id: LookupMap::new(StorageKey::TokenAddressToId), + token_decimals: LookupMap::new(StorageKey::TokenDecimals), deployed_tokens: LookupSet::new(StorageKey::DeployedTokens), token_deployer_accounts: LookupMap::new(StorageKey::TokenDeployerAccounts), mpc_signer, @@ -250,6 +254,7 @@ impl Contract { contract } + #[pause(except(roles(Role::DAO, Role::UnrestrictedRelayer)))] pub fn log_metadata(&self, token_id: &AccountId) -> Promise { ext_token::ext(token_id.clone()) .with_static_gas(LOG_METADATA_GAS) @@ -320,6 +325,7 @@ impl Contract { } #[payable] + #[pause] pub fn update_transfer_fee(&mut self, transfer_id: TransferId, fee: UpdateFee) { match fee { UpdateFee::Fee(fee) => { @@ -368,6 +374,7 @@ impl Contract { /// - If the `borsh::to_vec` serialization of the `TransferMessagePayload` fails. /// - If a `fee` is provided and it doesn't match the fee in the stored transfer message. #[payable] + #[pause(except(roles(Role::DAO, Role::UnrestrictedRelayer)))] pub fn sign_transfer( &mut self, transfer_id: TransferId, @@ -386,12 +393,23 @@ impl Contract { ) .unwrap_or_else(|| env::panic_str("ERR_FAILED_TO_GET_TOKEN_ADDRESS")); + let decimals = self + .token_decimals + .get(&token_address) + .sdk_expect("ERR_TOKEN_DECIMALS_NOT_FOUND"); + let amount_to_transfer = Self::normalize_amount( + transfer_message.amount.0 - transfer_message.fee.fee.0, + decimals, + ); + + require!(amount_to_transfer > 0, "Invalid amount to transfer"); + let transfer_payload = TransferMessagePayload { prefix: PayloadType::TransferMessage, destination_nonce: transfer_message.destination_nonce, transfer_id, token_address, - amount: U128(transfer_message.amount.0 - transfer_message.fee.fee.0), + amount: U128(amount_to_transfer), recipient: transfer_message.recipient, fee_recipient, }; @@ -487,6 +505,7 @@ impl Contract { } #[payable] + #[pause(except(roles(Role::DAO, Role::UnrestrictedRelayer)))] pub fn fin_transfer(&mut self, #[serializer(borsh)] args: FinTransferArgs) -> Promise { require!( args.storage_deposit_actions.len() <= 3, @@ -535,14 +554,22 @@ impl Contract { "Unknown factory" ); + let decimals = self + .token_decimals + .get(&init_transfer.token) + .sdk_expect("ERR_TOKEN_DECIMALS_NOT_FOUND"); + let destination_nonce = self.get_next_destination_nonce(init_transfer.recipient.get_chain()); let transfer_message = TransferMessage { origin_nonce: init_transfer.origin_nonce, token: init_transfer.token, - amount: init_transfer.amount, + amount: Self::denormalize_amount(init_transfer.amount.0, decimals).into(), recipient: init_transfer.recipient, - fee: init_transfer.fee, + fee: Fee { + fee: Self::denormalize_amount(init_transfer.fee.fee.0, decimals).into(), + native_fee: init_transfer.fee.native_fee, + }, sender: init_transfer.sender, msg: init_transfer.msg, destination_nonce, @@ -701,6 +728,7 @@ impl Contract { } #[payable] + #[pause(except(roles(Role::DAO, Role::UnrestrictedRelayer)))] pub fn claim_fee(&mut self, #[serializer(borsh)] args: ClaimFeeArgs) -> Promise { ext_prover::ext(self.prover_account.clone()) .with_static_gas(VERIFY_PROOF_GAS) @@ -742,7 +770,20 @@ impl Contract { ); let message = self.remove_transfer_message(fin_transfer.transfer_id); - let fee = message.amount.0 - fin_transfer.amount.0; + let token_address = self + .get_token_address( + message.get_destination_chain(), + self.get_token_id(&message.token), + ) + .unwrap_or_else(|| env::panic_str("ERR_FAILED_TO_GET_TOKEN_ADDRESS")); + + let denormalized_amount = Self::denormalize_amount( + fin_transfer.amount.0, + self.token_decimals + .get(&token_address) + .sdk_expect("ERR_TOKEN_DECIMALS_NOT_FOUND"), + ); + let fee = message.amount.0 - denormalized_amount; if message.fee.native_fee.0 != 0 { if message.get_origin_chain() == ChainKind::Near { @@ -768,18 +809,27 @@ impl Contract { ); if fee > 0 { - PromiseOrValue::Promise( - ext_token::ext(token) - .with_static_gas(FT_TRANSFER_GAS) - .with_attached_deposit(ONE_YOCTO) - .ft_transfer(fin_transfer.fee_recipient, U128(fee), None), - ) + if self.deployed_tokens.contains(&token) { + PromiseOrValue::Promise(ext_token::ext(token).with_static_gas(MINT_TOKEN_GAS).mint( + fin_transfer.fee_recipient, + U128(fee), + None, + )) + } else { + PromiseOrValue::Promise( + ext_token::ext(token) + .with_static_gas(FT_TRANSFER_GAS) + .with_attached_deposit(ONE_YOCTO) + .ft_transfer(fin_transfer.fee_recipient, U128(fee), None), + ) + } } else { PromiseOrValue::Value(()) } } #[payable] + #[pause(except(roles(Role::DAO, Role::UnrestrictedRelayer)))] pub fn deploy_token(&mut self, #[serializer(borsh)] args: DeployTokenArgs) -> Promise { ext_prover::ext(self.prover_account.clone()) .with_static_gas(VERIFY_PROOF_GAS) @@ -848,52 +898,8 @@ impl Contract { ) } - fn deploy_token_internal( - &mut self, - chain_kind: ChainKind, - token_address: &OmniAddress, - metadata: BasicMetadata, - attached_deposit: NearToken, - ) -> Promise { - let deployer = self - .token_deployer_accounts - .get(&chain_kind) - .unwrap_or_else(|| env::panic_str("ERR_DEPLOYER_NOT_SET")); - let prefix = token_address.get_token_prefix(); - let token_id: AccountId = format!("{prefix}.{deployer}") - .parse() - .unwrap_or_else(|_| env::panic_str("ERR_PARSE_ACCOUNT")); - - let storage_usage = env::storage_usage(); - require!( - self.token_id_to_address - .insert(&(chain_kind, token_id.clone()), token_address) - .is_none(), - "ERR_TOKEN_EXIST" - ); - require!( - self.token_address_to_id - .insert(token_address, &token_id) - .is_none(), - "ERR_TOKEN_EXIST" - ); - require!(self.deployed_tokens.insert(&token_id), "ERR_TOKEN_EXIST"); - let required_deposit = env::storage_byte_cost() - .saturating_mul((env::storage_usage().saturating_sub(storage_usage)).into()) - .saturating_add(storage::BRIDGE_TOKEN_INIT_BALANCE); - - require!( - attached_deposit >= required_deposit, - "ERROR: The deposit is not sufficient to cover the storage." - ); - - ext_deployer::ext(deployer) - .with_static_gas(DEPLOY_TOKEN_GAS) - .with_attached_deposit(storage::BRIDGE_TOKEN_INIT_BALANCE) - .deploy_token(token_id, metadata) - } - #[payable] + #[pause(except(roles(Role::DAO, Role::UnrestrictedRelayer)))] pub fn bind_token(&mut self, #[serializer(borsh)] args: BindTokenArgs) -> Promise { ext_prover::ext(self.prover_account.clone()) .with_static_gas(VERIFY_PROOF_GAS) @@ -945,6 +951,15 @@ impl Contract { ); self.token_address_to_id .insert(&deploy_token.token_address, &deploy_token.token); + + self.token_decimals.insert( + &deploy_token.token_address, + &Decimals { + decimals: deploy_token.decimals, + origin_decimals: deploy_token.origin_decimals, + }, + ); + let required_deposit = env::storage_byte_cost() .saturating_mul((env::storage_usage().saturating_sub(storage_usage)).into()); @@ -1024,7 +1039,13 @@ impl Contract { } #[access_control_any(roles(Role::DAO))] + #[payable] pub fn add_deployed_tokens(&mut self, tokens: Vec<(OmniAddress, AccountId)>) { + require!( + env::attached_deposit() >= NEP141_DEPOSIT.saturating_mul(tokens.len() as u128), + "ERR_NOT_ENOUGH_ATTACHED_DEPOSIT" + ); + for (token_address, token_id) in tokens { self.deployed_tokens.insert(&token_id); self.token_address_to_id.insert(&token_address, &token_id); @@ -1032,6 +1053,18 @@ impl Contract { &(token_address.get_chain(), token_id.clone()), &token_address, ); + self.token_decimals.insert( + &token_address, + &Decimals { + decimals: 0, + origin_decimals: 0, + }, + ); + + ext_token::ext(token_id) + .with_static_gas(STORAGE_DEPOSIT_GAS) + .with_attached_deposit(NEP141_DEPOSIT) + .storage_deposit(&env::current_account_id(), Some(true)); } } @@ -1074,6 +1107,10 @@ impl Contract { .burn(amount), } } + + pub fn get_mpc_account(&self) -> AccountId { + self.mpc_signer.clone() + } } impl Contract { @@ -1116,12 +1153,14 @@ impl Contract { None => (recipient, false), }; + let mut storage_deposit_action_index: usize = 0; require!( - Self::check_storage_balance_result(1) - && storage_deposit_actions[0].account_id == recipient - && storage_deposit_actions[0].token_id == token, + Self::check_storage_balance_result((storage_deposit_action_index + 1) as u64) + && storage_deposit_actions[storage_deposit_action_index].account_id == recipient + && storage_deposit_actions[storage_deposit_action_index].token_id == token, "STORAGE_ERR: The transfer recipient is omitted" ); + storage_deposit_action_index += 1; let amount_to_transfer = U128(transfer_message.amount.0 - transfer_message.fee.fee.0); let is_deployed_token = self.deployed_tokens.contains(&token); @@ -1139,21 +1178,23 @@ impl Contract { if transfer_message.fee.fee.0 > 0 { require!( - Self::check_storage_balance_result(2) - && storage_deposit_actions[1].account_id == predecessor_account_id - && storage_deposit_actions[1].token_id == token, + Self::check_storage_balance_result((storage_deposit_action_index + 1) as u64) + && storage_deposit_actions[storage_deposit_action_index].account_id + == predecessor_account_id + && storage_deposit_actions[storage_deposit_action_index].token_id == token, "STORAGE_ERR: The fee recipient is omitted" ); + storage_deposit_action_index += 1; - let transfer_fee_promise = ext_token::ext(token).with_attached_deposit(ONE_YOCTO); promise = promise.then(if is_deployed_token { - transfer_fee_promise.with_static_gas(MINT_TOKEN_GAS).mint( + ext_token::ext(token).with_static_gas(MINT_TOKEN_GAS).mint( predecessor_account_id.clone(), transfer_message.fee.fee, None, ) } else { - transfer_fee_promise + ext_token::ext(token) + .with_attached_deposit(ONE_YOCTO) .with_static_gas(FT_TRANSFER_GAS) .ft_transfer( predecessor_account_id.clone(), @@ -1171,9 +1212,11 @@ impl Contract { let native_token_id = self.get_native_token_id(transfer_message.get_origin_chain()); require!( - Self::check_storage_balance_result(3) - && storage_deposit_actions[2].account_id == predecessor_account_id - && storage_deposit_actions[2].token_id == native_token_id, + Self::check_storage_balance_result((storage_deposit_action_index + 1) as u64) + && storage_deposit_actions[storage_deposit_action_index].account_id + == predecessor_account_id + && storage_deposit_actions[storage_deposit_action_index].token_id + == native_token_id, "STORAGE_ERR: The native fee recipient is omitted" ); @@ -1257,22 +1300,39 @@ impl Contract { .with_static_gas(WNEAR_WITHDRAW_GAS) .with_attached_deposit(ONE_YOCTO) .near_withdraw(amount) - .then(Promise::new(recipient).transfer(NearToken::from_yoctonear(amount.0))) - } else { - let transfer_promise = ext_token::ext(token.clone()).with_attached_deposit(ONE_YOCTO); - if is_deployed_token { - transfer_promise - .with_static_gas(MINT_TOKEN_GAS.saturating_add(FT_TRANSFER_CALL_GAS)) - .mint(recipient, amount, (!msg.is_empty()).then(|| msg.clone())) - } else if msg.is_empty() { - transfer_promise - .with_static_gas(FT_TRANSFER_GAS) - .ft_transfer(recipient, amount, None) + .then( + Promise::new(recipient) + .transfer(NearToken::from_yoctonear(amount.0)), + ) + } else if is_deployed_token { + let deposit = if msg.is_empty() { + NO_DEPOSIT } else { - transfer_promise - .with_static_gas(FT_TRANSFER_CALL_GAS) - .ft_transfer_call(recipient, amount, None, msg.clone()) - } + ONE_YOCTO + }; + ext_token::ext(token.clone()) + .with_attached_deposit(deposit) + .with_static_gas(MINT_TOKEN_GAS.saturating_add(FT_TRANSFER_CALL_GAS)) + .mint( + recipient, + amount, + (!msg.is_empty()).then(|| msg.clone()), + ) + } else if msg.is_empty() { + ext_token::ext(token.clone()) + .with_attached_deposit(ONE_YOCTO) + .with_static_gas(FT_TRANSFER_GAS) + .ft_transfer(recipient, amount, None) + } else { + ext_token::ext(token.clone()) + .with_attached_deposit(ONE_YOCTO) + .with_static_gas(FT_TRANSFER_CALL_GAS) + .ft_transfer_call( + recipient, + amount, + None, + msg.clone(), + ) } } @@ -1422,9 +1482,83 @@ impl Contract { } } + fn deploy_token_internal( + &mut self, + chain_kind: ChainKind, + token_address: &OmniAddress, + metadata: BasicMetadata, + attached_deposit: NearToken, + ) -> Promise { + let deployer = self + .token_deployer_accounts + .get(&chain_kind) + .unwrap_or_else(|| env::panic_str("ERR_DEPLOYER_NOT_SET")); + let prefix = token_address.get_token_prefix(); + let token_id: AccountId = format!("{prefix}.{deployer}") + .parse() + .unwrap_or_else(|_| env::panic_str("ERR_PARSE_ACCOUNT")); + + let storage_usage = env::storage_usage(); + require!( + self.token_id_to_address + .insert(&(chain_kind, token_id.clone()), token_address) + .is_none(), + "ERR_TOKEN_EXIST" + ); + require!( + self.token_address_to_id + .insert(token_address, &token_id) + .is_none(), + "ERR_TOKEN_EXIST" + ); + require!( + self.token_decimals + .insert( + token_address, + &Decimals { + decimals: metadata.decimals, + origin_decimals: metadata.decimals + } + ) + .is_none(), + "ERR_TOKEN_EXIST" + ); + require!(self.deployed_tokens.insert(&token_id), "ERR_TOKEN_EXIST"); + let required_deposit = env::storage_byte_cost() + .saturating_mul((env::storage_usage().saturating_sub(storage_usage)).into()) + .saturating_add(storage::BRIDGE_TOKEN_INIT_BALANCE) + .saturating_add(NEP141_DEPOSIT); + + require!( + attached_deposit >= required_deposit, + "ERROR: The deposit is not sufficient to cover the storage." + ); + + ext_deployer::ext(deployer) + .with_static_gas(DEPLOY_TOKEN_GAS) + .with_attached_deposit(storage::BRIDGE_TOKEN_INIT_BALANCE) + .deploy_token(token_id.clone(), metadata) + .then( + ext_token::ext(token_id) + .with_static_gas(STORAGE_DEPOSIT_GAS) + .with_attached_deposit(NEP141_DEPOSIT) + .storage_deposit(&env::current_account_id(), Some(true)), + ) + } + fn refund(account_id: AccountId, amount: NearToken) { if !amount.is_zero() { Promise::new(account_id).transfer(amount); } } + + fn denormalize_amount(amount: u128, decimals: Decimals) -> u128 { + let diff_decimals: u32 = (decimals.origin_decimals - decimals.decimals).into(); + amount * (10_u128.pow(diff_decimals)) + } + + fn normalize_amount(amount: u128, decimals: Decimals) -> u128 { + let diff_decimals: u32 = (decimals.origin_decimals - decimals.decimals).into(); + amount / (10_u128.pow(diff_decimals)) + } } diff --git a/near/omni-bridge/src/storage.rs b/near/omni-bridge/src/storage.rs index 9da50499..d2621fed 100644 --- a/near/omni-bridge/src/storage.rs +++ b/near/omni-bridge/src/storage.rs @@ -9,6 +9,7 @@ use crate::{ }; pub const BRIDGE_TOKEN_INIT_BALANCE: NearToken = NearToken::from_near(3); +pub const NEP141_DEPOSIT: NearToken = NearToken::from_yoctonear(1_250_000_000_000_000_000_000); #[derive(BorshDeserialize, BorshSerialize, Serialize, Deserialize, Debug, Clone)] pub struct TransferMessageStorageValue { @@ -39,6 +40,12 @@ impl TransferMessageStorage { } } +#[derive(BorshDeserialize, BorshSerialize, Debug, Clone, Copy, PartialEq, Eq)] +pub struct Decimals { + pub decimals: u8, + pub origin_decimals: u8, +} + #[near_bindgen] impl Contract { #[payable] @@ -195,7 +202,7 @@ impl Contract { .len() as u64; env::storage_byte_cost() - .saturating_mul((2 * (Self::get_basic_storage() + key_len + value_len)).into()) + .saturating_mul((3 * (Self::get_basic_storage() + key_len + value_len)).into()) } pub fn required_balance_for_deploy_token(&self) -> NearToken { @@ -207,6 +214,7 @@ impl Contract { bind_token_required_balance .saturating_add(deployed_tokens_required_balance) .saturating_add(BRIDGE_TOKEN_INIT_BALANCE) + .saturating_add(NEP141_DEPOSIT) } fn get_basic_storage() -> u64 { diff --git a/near/omni-bridge/src/tests/lib_test.rs b/near/omni-bridge/src/tests/lib_test.rs index 5a11d039..69aca8da 100644 --- a/near/omni-bridge/src/tests/lib_test.rs +++ b/near/omni-bridge/src/tests/lib_test.rs @@ -1,6 +1,7 @@ use near_contract_standards::storage_management::StorageBalance; use omni_types::locker_args::StorageDepositAction; +use crate::storage::Decimals; use crate::Contract; use near_sdk::test_utils::VMContextBuilder; use near_sdk::RuntimeFeesConfig; @@ -498,6 +499,13 @@ fn test_fin_transfer_callback_near_success() { &native_token_address, &DEFAULT_FT_CONTRACT_ACCOUNT.parse().unwrap(), ); + contract.token_decimals.insert( + &OmniAddress::Near(AccountId::try_from(DEFAULT_FT_CONTRACT_ACCOUNT.to_string()).unwrap()), + &Decimals { + decimals: 24, + origin_decimals: 24, + }, + ); let storage_actions = vec![ StorageDepositAction { @@ -576,6 +584,14 @@ fn test_fin_transfer_callback_non_near_success() { let eth_recipient = OmniAddress::Eth(EvmAddress::from_str(DEFAULT_ETH_USER_ADDRESS).unwrap()); let prover_result = get_prover_result(Some(eth_recipient.clone())); + contract.token_decimals.insert( + &OmniAddress::Near(AccountId::try_from(DEFAULT_FT_CONTRACT_ACCOUNT.to_string()).unwrap()), + &Decimals { + decimals: 24, + origin_decimals: 24, + }, + ); + setup_test_env( predecessor.clone(), NearToken::from_near(1), @@ -666,3 +682,75 @@ fn test_is_transfer_finalised() { contract.finalised_transfers.insert(&transfer_id); assert!(contract.is_transfer_finalised(transfer_id)); } + +#[test] +fn test_normalize_amount() { + assert_eq!( + Contract::normalize_amount( + u128::MAX, + Decimals { + decimals: 18, + origin_decimals: 18 + } + ), + u128::MAX + ); + + assert_eq!( + Contract::normalize_amount( + u128::MAX, + Decimals { + decimals: 18, + origin_decimals: 24 + } + ), + u128::MAX / 1_000_000 + ); + + assert_eq!( + Contract::normalize_amount( + u128::MAX, + Decimals { + decimals: 9, + origin_decimals: 24 + } + ), + u128::MAX / 1_000_000_000_000_000 + ); +} + +#[test] +fn test_denormalize_amount() { + assert_eq!( + Contract::denormalize_amount( + u128::MAX, + Decimals { + decimals: 18, + origin_decimals: 18 + } + ), + u128::MAX + ); + + assert_eq!( + Contract::denormalize_amount( + u64::MAX.into(), + Decimals { + decimals: 18, + origin_decimals: 24 + } + ), + u64::MAX as u128 * 1_000_000_u128 + ); + + assert_eq!( + Contract::denormalize_amount( + u64::MAX.into(), + Decimals { + decimals: 9, + origin_decimals: 24 + } + ), + u64::MAX as u128 * 1_000_000_000_000_000_u128 + ); +} diff --git a/near/omni-prover/evm-prover/build.sh b/near/omni-prover/evm-prover/build.sh deleted file mode 100755 index 6e1d70c1..00000000 --- a/near/omni-prover/evm-prover/build.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -# Exit script as soon as a command fails. -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -if [[ -z "$BUILDKITE" ]] && [[ "$(uname -s)" != "Darwin" ]]; -then - userflag="-u $UID:$UID" -else - userflag="" -fi - -arch=`uname -m` -if [ "$arch" == "arm64" ] -then - tag=":latest-arm64" -else - tag="" -fi - -docker run \ - --rm \ - --mount type=bind,source=$DIR/../..,target=/host \ - --cap-add=SYS_PTRACE --security-opt seccomp=unconfined $userflag \ - -w /host/omni-prover/rainbow-omni-prover-proxy \ - -e RUSTFLAGS='-C link-arg=-s' \ - nearprotocol/contract-builder$tag \ - /bin/bash -c "rustup target add wasm32-unknown-unknown; cargo build --target wasm32-unknown-unknown --release" - -cp $DIR/../../target/wasm32-unknown-unknown/release/rainbow_omni_prover_proxy.wasm $DIR/../../res/ diff --git a/near/omni-prover/evm-prover/src/lib.rs b/near/omni-prover/evm-prover/src/lib.rs index 2ec2d06d..40b49629 100644 --- a/near/omni-prover/evm-prover/src/lib.rs +++ b/near/omni-prover/evm-prover/src/lib.rs @@ -46,6 +46,10 @@ impl EvmProver { /// /// This function will panic in the following situations: /// - If the log entry at the specified index doesn't match the decoded log entry. + /// + /// # Errors + /// + /// This function will return an error if the proof is invalid. #[allow(clippy::needless_pass_by_value)] #[handle_result] pub fn verify_proof(&self, #[serializer(borsh)] input: Vec) -> Result { @@ -87,6 +91,9 @@ impl EvmProver { )) } + /// # Errors + /// + /// This function will return an error if the block hash is not valid. #[allow(clippy::needless_pass_by_value)] #[private] #[handle_result] @@ -175,6 +182,7 @@ impl EvmProver { require!(proof_index + 1 == proof.len()); get_vec(&node, 16) } else { + #[allow(clippy::as_conversions)] let new_expected_root = get_vec(&node, key[key_index] as usize); if new_expected_root.is_empty() { // not included in proof diff --git a/near/omni-prover/omni-prover/build.sh b/near/omni-prover/omni-prover/build.sh deleted file mode 100755 index 5aff7f3a..00000000 --- a/near/omni-prover/omni-prover/build.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -# Exit script as soon as a command fails. -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -if [[ -z "$BUILDKITE" ]] && [[ "$(uname -s)" != "Darwin" ]]; -then - userflag="-u $UID:$UID" -else - userflag="" -fi - -arch=`uname -m` -if [ "$arch" == "arm64" ] -then - tag=":latest-arm64" -else - tag="" -fi - -docker run \ - --rm \ - --mount type=bind,source=$DIR/../..,target=/host \ - --cap-add=SYS_PTRACE --security-opt seccomp=unconfined $userflag \ - -w /host/omni-prover/omni-prover \ - -e RUSTFLAGS='-C link-arg=-s' \ - nearprotocol/contract-builder$tag \ - /bin/bash -c "rustup target add wasm32-unknown-unknown; cargo build --target wasm32-unknown-unknown --release" - -cp $DIR/../../target/wasm32-unknown-unknown/release/omni_prover.wasm $DIR/../../res/ diff --git a/near/omni-prover/omni-prover/src/lib.rs b/near/omni-prover/omni-prover/src/lib.rs index 283d83c9..5a664616 100644 --- a/near/omni-prover/omni-prover/src/lib.rs +++ b/near/omni-prover/omni-prover/src/lib.rs @@ -72,6 +72,7 @@ impl OmniProver { self.provers.remove(&prover_id); } + #[must_use] pub fn get_provers(&self) -> Vec<(ProverId, AccountId)> { self.provers.iter().collect::>() } diff --git a/near/omni-prover/wormhole-omni-prover-proxy/build.sh b/near/omni-prover/wormhole-omni-prover-proxy/build.sh deleted file mode 100755 index 6c398bdf..00000000 --- a/near/omni-prover/wormhole-omni-prover-proxy/build.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -# Exit script as soon as a command fails. -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -if [[ -z "$BUILDKITE" ]] && [[ "$(uname -s)" != "Darwin" ]]; -then - userflag="-u $UID:$UID" -else - userflag="" -fi - -arch=`uname -m` -if [ "$arch" == "arm64" ] -then - tag=":latest-arm64" -else - tag="" -fi - -docker run \ - --rm \ - --mount type=bind,source=$DIR/../..,target=/host \ - --cap-add=SYS_PTRACE --security-opt seccomp=unconfined $userflag \ - -w /host/omni-prover/wormhole-omni-prover-proxy \ - -e RUSTFLAGS='-C link-arg=-s' \ - nearprotocol/contract-builder$tag \ - /bin/bash -c "rustup target add wasm32-unknown-unknown; cargo build --target wasm32-unknown-unknown --release" - -cp $DIR/../../target/wasm32-unknown-unknown/release/wormhole_omni_prover_proxy.wasm $DIR/../../res/ diff --git a/near/omni-prover/wormhole-omni-prover-proxy/src/parsed_vaa.rs b/near/omni-prover/wormhole-omni-prover-proxy/src/parsed_vaa.rs index 235c6a18..01f524a3 100644 --- a/near/omni-prover/wormhole-omni-prover-proxy/src/parsed_vaa.rs +++ b/near/omni-prover/wormhole-omni-prover-proxy/src/parsed_vaa.rs @@ -118,6 +118,8 @@ struct DeployTokenWh { payload_type: ProofKind, token: String, token_address: OmniAddress, + decimals: u8, + origin_decimals: u8, } #[derive(Debug, BorshDeserialize)] @@ -215,6 +217,8 @@ impl TryInto for ParsedVAA { Ok(DeployTokenMessage { token: parsed_payload.token.parse().map_err(stringify)?, token_address: parsed_payload.token_address.clone(), + decimals: parsed_payload.decimals, + origin_decimals: parsed_payload.origin_decimals, emitter_address: OmniAddress::new_from_slice( parsed_payload.token_address.get_chain(), &self.emitter_address, diff --git a/near/omni-tests/src/fin_transfer.rs b/near/omni-tests/src/fin_transfer.rs index a94fd847..f3bb8bcd 100644 --- a/near/omni-tests/src/fin_transfer.rs +++ b/near/omni-tests/src/fin_transfer.rs @@ -1,14 +1,14 @@ #[cfg(test)] mod tests { use crate::helpers::tests::{ - account_n, eth_eoa_address, eth_factory_address, relayer_account_id, LOCKER_PATH, - MOCK_PROVER_PATH, MOCK_TOKEN_PATH, NEP141_DEPOSIT, + account_n, eth_eoa_address, eth_factory_address, eth_token_address, relayer_account_id, + LOCKER_PATH, MOCK_PROVER_PATH, MOCK_TOKEN_PATH, NEP141_DEPOSIT, }; use near_sdk::{borsh, json_types::U128, serde_json::json, AccountId}; use near_workspaces::types::NearToken; use omni_types::{ - locker_args::{FinTransferArgs, StorageDepositAction}, - prover_result::{InitTransferMessage, ProverResult}, + locker_args::{BindTokenArgs, FinTransferArgs, StorageDepositAction}, + prover_result::{DeployTokenMessage, InitTransferMessage, ProverResult}, Fee, OmniAddress, }; use rstest::rstest; @@ -73,7 +73,9 @@ mod tests { "Expected an error but got success" ), Err(result_error) => { - let error = expected_error.expect("Got an error when none was expected"); + let error = expected_error.expect(&format!( + "Got an error {result_error} when none was expected" + )); assert!( result_error.to_string().contains(error), "Wrong error. Got: {}, Expected: {}", @@ -166,6 +168,31 @@ mod tests { .await? .into_result()?; + // Bind token + let required_balance_for_bind_token: NearToken = locker_contract + .view("required_balance_for_bind_token") + .await? + .json()?; + + relayer_account + .call(locker_contract.id(), "bind_token") + .args_borsh(BindTokenArgs { + chain_kind: omni_types::ChainKind::Eth, + prover_args: borsh::to_vec(&ProverResult::DeployToken(DeployTokenMessage { + token: token_contract.id().clone(), + token_address: eth_token_address(), + decimals: 24, + origin_decimals: 24, + emitter_address: eth_factory_address(), + })) + .unwrap(), + }) + .deposit(required_balance_for_bind_token) + .max_gas() + .transact() + .await? + .into_result()?; + let required_deposit_for_fin_transfer = NEP141_DEPOSIT .saturating_mul(storage_deposit_accounts.len() as u128) .saturating_add(required_balance_for_fin_transfer); @@ -187,7 +214,7 @@ mod tests { storage_deposit_actions, prover_args: borsh::to_vec(&ProverResult::InitTransfer(InitTransferMessage { origin_nonce: 1, - token: OmniAddress::Near(token_contract.id().clone()), + token: eth_token_address(), recipient: OmniAddress::Near(account_n(1)), amount: U128(amount), fee: Fee { diff --git a/near/omni-tests/src/helpers.rs b/near/omni-tests/src/helpers.rs index 6c9152f8..e3e7bb83 100644 --- a/near/omni-tests/src/helpers.rs +++ b/near/omni-tests/src/helpers.rs @@ -30,6 +30,22 @@ pub mod tests { .unwrap() } + pub fn arb_factory_address() -> OmniAddress { + "arb:0x252e87862A3A720287E7fd527cE6e8d0738427A2" + .parse() + .unwrap() + } + + pub fn base_factory_address() -> OmniAddress { + "base:0x252e87862A3A720287E7fd527cE6e8d0738427A2" + .parse() + .unwrap() + } + + pub fn sol_factory_address() -> OmniAddress { + "sol:11111111111111111111111111111111".parse().unwrap() + } + pub fn eth_eoa_address() -> OmniAddress { "eth:0xc5ed912ca6db7b41de4ef3632fa0a5641e42bf09" .parse() @@ -100,6 +116,7 @@ pub mod tests { pub fn get_test_deploy_token_args( token_address: &OmniAddress, + factory_contract_address: &OmniAddress, token_metadata: &BasicMetadata, ) -> DeployTokenArgs { let log_metadata_message = LogMetadataMessage { @@ -107,7 +124,7 @@ pub mod tests { name: token_metadata.name.clone(), symbol: token_metadata.symbol.clone(), decimals: token_metadata.decimals, - emitter_address: token_address.clone(), + emitter_address: factory_contract_address.clone(), }; let prover_result = ProverResult::LogMetadata(log_metadata_message); @@ -123,11 +140,15 @@ pub mod tests { token: &AccountId, token_address: &OmniAddress, emitter_address: &OmniAddress, + decimals: u8, + origin_decimals: u8, ) -> BindTokenArgs { let deploy_token_message = DeployTokenMessage { token: token.clone(), token_address: token_address.clone(), emitter_address: emitter_address.clone(), + decimals, + origin_decimals, }; let prover_result = ProverResult::DeployToken(deploy_token_message); diff --git a/near/omni-tests/src/init_transfer.rs b/near/omni-tests/src/init_transfer.rs index 0be1dfd9..8aa5afa6 100644 --- a/near/omni-tests/src/init_transfer.rs +++ b/near/omni-tests/src/init_transfer.rs @@ -149,6 +149,8 @@ mod tests { &token_contract.id(), ð_token_address(), ð_factory_address, + 24, + 24, )) .deposit(required_deposit_for_bind_token) .max_gas() diff --git a/near/omni-tests/src/omni_token.rs b/near/omni-tests/src/omni_token.rs index 6ac564eb..2a24c778 100644 --- a/near/omni-tests/src/omni_token.rs +++ b/near/omni-tests/src/omni_token.rs @@ -1,9 +1,10 @@ #[cfg(test)] mod tests { use crate::helpers::tests::{ - account_n, arb_token_address, base_token_address, eth_eoa_address, eth_token_address, - get_test_deploy_token_args, sol_token_address, LOCKER_PATH, MOCK_PROVER_PATH, - NEP141_DEPOSIT, TOKEN_DEPLOYER_PATH, + account_n, arb_factory_address, arb_token_address, base_factory_address, + base_token_address, eth_eoa_address, eth_factory_address, eth_token_address, + get_test_deploy_token_args, sol_factory_address, sol_token_address, LOCKER_PATH, + MOCK_PROVER_PATH, NEP141_DEPOSIT, TOKEN_DEPLOYER_PATH, }; use anyhow; use near_sdk::borsh; @@ -23,6 +24,7 @@ mod tests { locker: near_workspaces::Contract, token_contract: near_workspaces::Contract, init_token_address: OmniAddress, + factory_contract_address: OmniAddress, token_metadata: BasicMetadata, } @@ -86,10 +88,18 @@ mod tests { .await? .into_result()?; + let factory_contract_address = match init_token_address.get_chain() { + ChainKind::Eth => eth_factory_address(), + ChainKind::Sol => sol_factory_address(), + ChainKind::Arb => arb_factory_address(), + ChainKind::Base => base_factory_address(), + _ => panic!("Unsupported chain"), + }; + locker .call("add_factory") .args_json(json!({ - "address": init_token_address, + "address": factory_contract_address, })) .max_gas() .transact() @@ -97,14 +107,21 @@ mod tests { .into_result()?; // Deploy token - let token_contract = - Self::deploy_token(&worker, &locker, &init_token_address, &token_metadata).await?; + let token_contract = Self::deploy_token( + &worker, + &locker, + &init_token_address, + &factory_contract_address, + &token_metadata, + ) + .await?; Ok(Self { worker, locker, token_contract, init_token_address, + factory_contract_address, token_metadata, }) } @@ -118,6 +135,7 @@ mod tests { worker: &near_workspaces::Worker, locker: &near_workspaces::Contract, init_token_address: &OmniAddress, + factoty_contract_address: &OmniAddress, token_metadata: &BasicMetadata, ) -> anyhow::Result { let token_deploy_initiator = worker @@ -150,6 +168,7 @@ mod tests { .call(locker.id(), "deploy_token") .args_borsh(get_test_deploy_token_args( init_token_address, + &factoty_contract_address, token_metadata, )) .deposit(required_storage) @@ -259,6 +278,7 @@ mod tests { &env.token_contract, &recipient, env.init_token_address, + env.factory_contract_address, amount, ) .await?; @@ -314,6 +334,7 @@ mod tests { &env.token_contract, &sender, env.init_token_address, + env.factory_contract_address, amount, ) .await?; @@ -369,6 +390,7 @@ mod tests { locker_contract: &near_workspaces::Contract, token_contract: &near_workspaces::Contract, recipient: &near_workspaces::Account, + token_address: OmniAddress, emitter_address: OmniAddress, amount: U128, ) -> anyhow::Result<()> { @@ -392,7 +414,7 @@ mod tests { storage_deposit_actions, prover_args: borsh::to_vec(&ProverResult::InitTransfer(InitTransferMessage { origin_nonce: 1, - token: OmniAddress::Near(token_contract.id().clone()), + token: token_address, recipient: OmniAddress::Near(recipient.id().clone()), amount, fee: Fee { diff --git a/near/omni-token/.catalog-info.yaml b/near/omni-token/.catalog-info.yaml new file mode 100644 index 00000000..73f07b71 --- /dev/null +++ b/near/omni-token/.catalog-info.yaml @@ -0,0 +1,13 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: omni-token + tags: + - near + links: [] + annotations: + aurora.dev/security-tier: "1" +spec: + owner: nearone-team + type: library + lifecycle: production diff --git a/near/omni-types/src/evm/events.rs b/near/omni-types/src/evm/events.rs index 4cdc3542..9f5b250b 100644 --- a/near/omni-types/src/evm/events.rs +++ b/near/omni-types/src/evm/events.rs @@ -37,7 +37,8 @@ sol! { string token, string name, string symbol, - uint8 decimals + uint8 decimals, + uint8 originDecimals ); event LogMetadata( @@ -128,15 +129,17 @@ impl TryFromLog> for DeployTokenMessage { } Ok(DeployTokenMessage { - emitter_address: OmniAddress::new_from_evm_address( - chain_kind, - H160(event.address.into()), - )?, token: event.data.token.parse().map_err(stringify)?, token_address: OmniAddress::new_from_evm_address( chain_kind, H160(event.data.tokenAddress.into()), )?, + decimals: event.data.decimals, + origin_decimals: event.data.originDecimals, + emitter_address: OmniAddress::new_from_evm_address( + chain_kind, + H160(event.address.into()), + )?, }) } } diff --git a/near/omni-types/src/lib.rs b/near/omni-types/src/lib.rs index 04245a90..0c03cb51 100644 --- a/near/omni-types/src/lib.rs +++ b/near/omni-types/src/lib.rs @@ -150,6 +150,14 @@ pub enum ChainKind { Base, } +impl FromStr for ChainKind { + type Err = String; + + fn from_str(s: &str) -> Result { + near_sdk::serde_json::from_str(&format!("\"{s}\"")).map_err(stringify) + } +} + impl From<&OmniAddress> for ChainKind { fn from(input: &OmniAddress) -> Self { input.get_chain() @@ -259,15 +267,26 @@ impl OmniAddress { pub fn get_token_prefix(&self) -> String { match self { OmniAddress::Sol(address) => { - // The AccountId on Near can't be uppercased and has a 64 character limit, - // so we encode the solana address into 20 bytes to bypass these restrictions - let hashed_address = H160( - utils::keccak256(&address.0)[12..] - .try_into() - .unwrap_or_default(), - ) - .to_string(); - format!("sol-{hashed_address}") + if self.is_zero() { + "sol".to_string() + } else { + // The AccountId on Near can't be uppercased and has a 64 character limit, + // so we encode the solana address into 20 bytes to bypass these restrictions + let hashed_address = H160( + utils::keccak256(&address.0)[12..] + .try_into() + .unwrap_or_default(), + ) + .to_string(); + format!("sol-{hashed_address}") + } + } + OmniAddress::Eth(address) => { + if self.is_zero() { + "eth".to_string() + } else { + address.to_string()[2..].to_string() + } } _ => self.encode('-', true), } diff --git a/near/omni-types/src/prover_result.rs b/near/omni-types/src/prover_result.rs index 71868d4e..9a40b1aa 100644 --- a/near/omni-types/src/prover_result.rs +++ b/near/omni-types/src/prover_result.rs @@ -29,6 +29,8 @@ pub struct FinTransferMessage { pub struct DeployTokenMessage { pub token: AccountId, pub token_address: OmniAddress, + pub decimals: u8, + pub origin_decimals: u8, pub emitter_address: OmniAddress, } diff --git a/near/omni-types/src/tests/lib_test.rs b/near/omni-types/src/tests/lib_test.rs index a43b287e..271e137a 100644 --- a/near/omni-types/src/tests/lib_test.rs +++ b/near/omni-types/src/tests/lib_test.rs @@ -418,3 +418,50 @@ fn test_stringify() { "Should stringify custom types with Display implementation" ); } + +#[test] +fn test_get_native_token_prefix() { + for chain_kind in [ + ChainKind::Near, + ChainKind::Sol, + ChainKind::Base, + ChainKind::Eth, + ChainKind::Arb, + ] { + let prefix = OmniAddress::new_zero(chain_kind) + .unwrap() + .get_token_prefix(); + assert_eq!( + prefix, + chain_kind.as_ref().to_lowercase(), + "Should return correct token prefix for {} chain", + chain_kind.as_ref() + ); + } +} + +#[test] +fn test_get_evm_token_prefix() { + let address = "0x23ddd3e3692d1861ed57ede224608875809e127f"; + let eth_address: OmniAddress = format!("eth:{address}").parse().unwrap(); + let prefix = eth_address.get_token_prefix(); + assert_eq!(prefix, "23ddd3e3692d1861ed57ede224608875809e127f"); + + for chain_kind in [ChainKind::Base, ChainKind::Arb] { + let chain_kind_prefix: String = chain_kind.as_ref().to_lowercase(); + let chain_address: OmniAddress = format!("{chain_kind_prefix}:{address}").parse().unwrap(); + assert_eq!( + chain_address.get_token_prefix(), + format!("{chain_kind_prefix}-{address}"), + ); + } +} + +#[test] +fn test_chain_kind_from_str() { + let chain: ChainKind = "Eth".parse().unwrap(); + assert_eq!(chain, ChainKind::Eth); + + let chain: ChainKind = "Base".parse().unwrap(); + assert_eq!(chain, ChainKind::Base); +} diff --git a/near/res/evm_prover.wasm b/near/res/evm_prover.wasm new file mode 100755 index 00000000..d62777b9 Binary files /dev/null and b/near/res/evm_prover.wasm differ diff --git a/near/res/omni_bridge.wasm b/near/res/omni_bridge.wasm new file mode 100755 index 00000000..35019648 Binary files /dev/null and b/near/res/omni_bridge.wasm differ diff --git a/near/res/omni_prover.wasm b/near/res/omni_prover.wasm new file mode 100755 index 00000000..5967acb6 Binary files /dev/null and b/near/res/omni_prover.wasm differ diff --git a/near/res/omni_token.wasm b/near/res/omni_token.wasm new file mode 100755 index 00000000..c5058897 Binary files /dev/null and b/near/res/omni_token.wasm differ diff --git a/near/res/token_deployer.wasm b/near/res/token_deployer.wasm new file mode 100755 index 00000000..b4ce504f Binary files /dev/null and b/near/res/token_deployer.wasm differ diff --git a/near/res/wormhole_omni_prover_proxy.wasm b/near/res/wormhole_omni_prover_proxy.wasm new file mode 100755 index 00000000..12f0dd48 Binary files /dev/null and b/near/res/wormhole_omni_prover_proxy.wasm differ diff --git a/near/rust-toolchain b/near/rust-toolchain index 93c0233e..e17bbf13 100644 --- a/near/rust-toolchain +++ b/near/rust-toolchain @@ -1,3 +1,3 @@ [toolchain] -channel = "1.79.0" +channel = "1.80.0" components = ["clippy", "rustfmt"] diff --git a/near/token-deployer/Cargo.toml b/near/token-deployer/Cargo.toml index 93729469..589608ae 100644 --- a/near/token-deployer/Cargo.toml +++ b/near/token-deployer/Cargo.toml @@ -16,3 +16,4 @@ borsh.workspace = true serde.workspace = true near-plugins.workspace = true omni-types.workspace = true +omni-token = { path = "../omni-token"} diff --git a/omni-relayer/.example-env b/omni-relayer/.example-env new file mode 100644 index 00000000..4679c454 --- /dev/null +++ b/omni-relayer/.example-env @@ -0,0 +1,16 @@ +RUST_LOG=info + +# It's used for near-lake-framework +AWS_ACCESS_KEY_ID=... +AWS_SECRET_ACCESS_KEY=... + +NEAR_ACCOUNT_ID=... +NEAR_PRIVATE_KEY=... + +INFURA_API_KEY=... +ETH_PRIVATE_KEY=... +BASE_PRIVATE_KEY=... +ARB_PRIVATE_KEY=... + +# Note that solana private key must be encoded to bs58 string in order to use it +SOLANA_PRIVATE_KEY=... diff --git a/omni-relayer/Cargo.lock b/omni-relayer/Cargo.lock index 5748fba7..03898262 100644 --- a/omni-relayer/Cargo.lock +++ b/omni-relayer/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" @@ -13,85 +13,30 @@ dependencies = [ ] [[package]] -name = "actix" -version = "0.13.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de7fa236829ba0841304542f7614c42b80fca007455315c45c785ccfa873a85b" -dependencies = [ - "actix-macros", - "actix-rt", - "actix_derive", - "bitflags 2.6.0", - "bytes", - "crossbeam-channel", - "futures-core", - "futures-sink", - "futures-task", - "futures-util", - "log", - "once_cell", - "parking_lot 0.12.3", - "pin-project-lite", - "smallvec", - "tokio", - "tokio-util 0.7.12", -] - -[[package]] -name = "actix-macros" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e01ed3140b2f8d422c68afa1ed2e85d996ea619c988ac834d255db32138655cb" -dependencies = [ - "quote", - "syn 2.0.77", -] - -[[package]] -name = "actix-rt" -version = "2.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eda4e2a6e042aa4e55ac438a2ae052d3b5da0ecf83d7411e1a368946925208" -dependencies = [ - "futures-core", - "tokio", -] - -[[package]] -name = "actix_derive" -version = "0.6.2" +name = "addr2line" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6ac1e58cded18cb28ddc17143c4dea5345b3ad575e14f32f66e4054a56eb271" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.77", + "gimli", ] [[package]] -name = "addr2line" -version = "0.21.0" +name = "adler2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" -dependencies = [ - "gimli 0.28.1", -] +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] -name = "addr2line" -version = "0.24.1" +name = "aead" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ - "gimli 0.31.0", + "crypto-common", + "generic-array", ] -[[package]] -name = "adler2" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" - [[package]] name = "aes" version = "0.8.4" @@ -99,19 +44,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if 1.0.0", - "cipher 0.4.4", + "cipher", "cpufeatures", ] [[package]] -name = "ahash" -version = "0.7.8" +name = "aes-gcm-siv" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +checksum = "ae0784134ba9375416d469ec31e7c5f9fa94405049cf08c5ce5b4698be673e0d" dependencies = [ - "getrandom 0.2.15", - "once_cell", - "version_check", + "aead", + "aes", + "cipher", + "ctr", + "polyval", + "subtle", + "zeroize", ] [[package]] @@ -121,6 +70,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if 1.0.0", + "getrandom 0.2.15", "once_cell", "version_check", "zerocopy", @@ -135,17 +85,32 @@ dependencies = [ "memchr", ] +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + [[package]] name = "allocator-api2" -version = "0.2.18" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "alloy" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8367891bf380210abb0d6aa30c5f85a9080cb4a066c4d5c5acadad630823751b" +checksum = "bbcc41e8a11a4975b18ec6afba2cc48d591fa63336a4c526dacb50479a8d6b35" dependencies = [ "alloy-consensus", "alloy-contract", @@ -159,6 +124,8 @@ dependencies = [ "alloy-rpc-client", "alloy-rpc-types", "alloy-serde", + "alloy-signer", + "alloy-signer-local", "alloy-transport", "alloy-transport-http", "alloy-transport-ws", @@ -166,33 +133,51 @@ dependencies = [ [[package]] name = "alloy-chains" -version = "0.1.33" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "805f7a974de5804f5c053edc6ca43b20883bdd3a733b3691200ae3a4b454a2db" +checksum = "4ab9d1367c6ffb90c93fb4a9a4989530aa85112438c6f73a734067255d348469" dependencies = [ + "alloy-primitives", "num_enum", "strum 0.26.3", ] [[package]] name = "alloy-consensus" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "629b62e38d471cc15fea534eb7283d2f8a4e8bdb1811bcc5d66dda6cfce6fae1" +checksum = "f4138dc275554afa6f18c4217262ac9388790b2fc393c2dfe03c51d357abf013" dependencies = [ "alloy-eips", "alloy-primitives", "alloy-rlp", "alloy-serde", + "alloy-trie", + "auto_impl", "c-kzg", + "derive_more 1.0.0", + "serde", +] + +[[package]] +name = "alloy-consensus-any" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa04e1882c31288ce1028fdf31b6ea94cfa9eafa2e497f903ded631c8c6a42c" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", "serde", ] [[package]] name = "alloy-contract" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eefe64fd344cffa9cf9e3435ec4e93e6e9c3481bc37269af988bf497faf4a6a" +checksum = "5f21886c1fea0626f755a49b2ac653b396fb345233f6170db2da3d0ada31560c" dependencies = [ "alloy-dyn-abi", "alloy-json-abi", @@ -206,14 +191,14 @@ dependencies = [ "alloy-transport", "futures", "futures-util", - "thiserror", + "thiserror 2.0.11", ] [[package]] name = "alloy-core" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce854562e7cafd5049189d0268d6e5cba05fe6c9cb7c6f8126a79b94800629c" +checksum = "648275bb59110f88cc5fa9a176845e52a554ebfebac2d21220bcda8c9220f797" dependencies = [ "alloy-dyn-abi", "alloy-json-abi", @@ -224,9 +209,9 @@ dependencies = [ [[package]] name = "alloy-dyn-abi" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b499852e1d0e9b8c6db0f24c48998e647c0d5762a01090f955106a7700e4611" +checksum = "bc9138f4f0912793642d453523c3116bd5d9e11de73b70177aa7cb3e94b98ad2" dependencies = [ "alloy-json-abi", "alloy-primitives", @@ -252,20 +237,21 @@ dependencies = [ [[package]] name = "alloy-eip7702" -version = "0.1.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d319bb544ca6caeab58c39cea8921c55d924d4f68f2c60f24f914673f9a74a" +checksum = "cabf647eb4650c91a9d38cb6f972bb320009e7e9d61765fb688a86f1563b33e8" dependencies = [ "alloy-primitives", "alloy-rlp", + "derive_more 1.0.0", "serde", ] [[package]] name = "alloy-eips" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f923dd5fca5f67a43d81ed3ebad0880bd41f6dd0ada930030353ac356c54cd0f" +checksum = "52dd5869ed09e399003e0e0ec6903d981b2a92e74c5d37e6b40890bad2517526" dependencies = [ "alloy-eip2930", "alloy-eip7702", @@ -276,25 +262,27 @@ dependencies = [ "derive_more 1.0.0", "once_cell", "serde", - "sha2", + "sha2 0.10.8", ] [[package]] name = "alloy-genesis" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a7a18afb0b318616b6b2b0e2e7ac5529d32a966c673b48091c9919e284e6aca" +checksum = "e7d2a7fe5c1a9bd6793829ea21a636f30fc2b3f5d2e7418ba86d96e41dd1f460" dependencies = [ + "alloy-eips", "alloy-primitives", "alloy-serde", + "alloy-trie", "serde", ] [[package]] name = "alloy-json-abi" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a438d4486b5d525df3b3004188f9d5cd1d65cd30ecc41e5a3ccef6f6342e8af9" +checksum = "24acd2f5ba97c7a320e67217274bc81fe3c3174b8e6144ec875d9d54e760e278" dependencies = [ "alloy-primitives", "alloy-sol-type-parser", @@ -304,29 +292,31 @@ dependencies = [ [[package]] name = "alloy-json-rpc" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3c717b5298fad078cd3a418335b266eba91b511383ca9bd497f742d5975d5ab" +checksum = "2008bedb8159a255b46b7c8614516eda06679ea82f620913679afbd8031fea72" dependencies = [ "alloy-primitives", "alloy-sol-types", "serde", "serde_json", - "thiserror", + "thiserror 2.0.11", "tracing", ] [[package]] name = "alloy-network" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb3705ce7d8602132bcf5ac7a1dd293a42adc2f183abf5907c30ac535ceca049" +checksum = "4556f01fe41d0677495df10a648ddcf7ce118b0e8aa9642a0e2b6dd1fb7259de" dependencies = [ "alloy-consensus", + "alloy-consensus-any", "alloy-eips", "alloy-json-rpc", "alloy-network-primitives", "alloy-primitives", + "alloy-rpc-types-any", "alloy-rpc-types-eth", "alloy-serde", "alloy-signer", @@ -334,15 +324,18 @@ dependencies = [ "async-trait", "auto_impl", "futures-utils-wasm", - "thiserror", + "serde", + "serde_json", + "thiserror 2.0.11", ] [[package]] name = "alloy-network-primitives" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94ad40869867ed2d9cd3842b1e800889e5b49e6b92da346e93862b4a741bedf3" +checksum = "f31c3c6b71340a1d076831823f09cb6e02de01de5c6630a9631bdb36f947ff80" dependencies = [ + "alloy-consensus", "alloy-eips", "alloy-primitives", "alloy-serde", @@ -351,9 +344,9 @@ dependencies = [ [[package]] name = "alloy-node-bindings" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5988a227293f949525f0a1b3e1ef728d2ef24afa96bad2b7788c6c9617fa3eec" +checksum = "4520cd4bc5cec20c32c98e4bc38914c7fb96bf4a712105e44da186a54e65e3ba" dependencies = [ "alloy-genesis", "alloy-primitives", @@ -361,25 +354,25 @@ dependencies = [ "rand 0.8.5", "serde_json", "tempfile", - "thiserror", + "thiserror 2.0.11", "tracing", "url", ] [[package]] name = "alloy-primitives" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "260d3ff3bff0bb84599f032a2f2c6828180b0ea0cd41fdaf44f39cef3ba41861" +checksum = "ec878088ec6283ce1e90d280316aadd3d6ce3de06ff63d68953c855e7e447e92" dependencies = [ "alloy-rlp", "bytes", "cfg-if 1.0.0", "const-hex", "derive_more 1.0.0", - "hashbrown 0.14.5", - "hex-literal", - "indexmap 2.5.0", + "foldhash", + "hashbrown 0.15.2", + "indexmap 2.7.1", "itoa", "k256", "keccak-asm", @@ -387,7 +380,7 @@ dependencies = [ "proptest", "rand 0.8.5", "ruint", - "rustc-hash 2.0.0", + "rustc-hash", "serde", "sha3", "tiny-keccak", @@ -395,9 +388,9 @@ dependencies = [ [[package]] name = "alloy-provider" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927f708dd457ed63420400ee5f06945df9632d5d101851952056840426a10dc5" +checksum = "5a22c4441b3ebe2d77fa9cf629ba68c3f713eb91779cff84275393db97eddd82" dependencies = [ "alloy-chains", "alloy-consensus", @@ -411,6 +404,7 @@ dependencies = [ "alloy-rpc-client", "alloy-rpc-types-anvil", "alloy-rpc-types-eth", + "alloy-signer", "alloy-signer-local", "alloy-transport", "alloy-transport-http", @@ -418,25 +412,28 @@ dependencies = [ "async-stream", "async-trait", "auto_impl", - "dashmap", + "dashmap 6.1.0", "futures", "futures-utils-wasm", - "lru 0.12.4", + "lru", + "parking_lot", "pin-project", - "reqwest 0.12.7", + "reqwest 0.12.12", + "schnellru", "serde", "serde_json", - "thiserror", + "thiserror 2.0.11", "tokio", "tracing", "url", + "wasmtimer", ] [[package]] name = "alloy-pubsub" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d05f63677e210d758cd5d6d1ce10f20c980c3560ccfbe79ba1997791862a04f" +checksum = "2269fd635f7b505f27c63a3cb293148cd02301efce4c8bdd9ff54fbfc4a20e23" dependencies = [ "alloy-json-rpc", "alloy-primitives", @@ -447,37 +444,37 @@ dependencies = [ "serde_json", "tokio", "tokio-stream", - "tower 0.5.1", + "tower", "tracing", ] [[package]] name = "alloy-rlp" -version = "0.3.8" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26154390b1d205a4a7ac7352aa2eb4f81f391399d4e2f546fb81a2f8bb383f62" +checksum = "3d6c1d995bff8d011f7cd6c81820d51825e6e06d6db73914c1630ecf544d83d6" dependencies = [ "alloy-rlp-derive", - "arrayvec 0.7.6", + "arrayvec", "bytes", ] [[package]] name = "alloy-rlp-derive" -version = "0.3.8" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d0f2d905ebd295e7effec65e5f6868d153936130ae718352771de3e7d03c75c" +checksum = "a40e1ef334153322fd878d07e86af7a529bcb86b2439525920a88eba87bcf943" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "alloy-rpc-client" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d82952dca71173813d4e5733e2c986d8b04aea9e0f3b0a576664c232ad050a5" +checksum = "d06a292b37e182e514903ede6e623b9de96420e8109ce300da288a96d88b7e4b" dependencies = [ "alloy-json-rpc", "alloy-primitives", @@ -487,22 +484,24 @@ dependencies = [ "alloy-transport-ws", "futures", "pin-project", - "reqwest 0.12.7", + "reqwest 0.12.12", "serde", "serde_json", "tokio", "tokio-stream", - "tower 0.5.1", + "tower", "tracing", "url", + "wasmtimer", ] [[package]] name = "alloy-rpc-types" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64333d639f2a0cf73491813c629a405744e16343a4bc5640931be707c345ecc5" +checksum = "9383845dd924939e7ab0298bbfe231505e20928907d7905aa3bf112287305e06" dependencies = [ + "alloy-primitives", "alloy-rpc-types-eth", "alloy-serde", "serde", @@ -510,41 +509,52 @@ dependencies = [ [[package]] name = "alloy-rpc-types-anvil" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25cb45ad7c0930dd62eecf164d2afe4c3d2dd2c82af85680ad1f118e1e5cb83" +checksum = "11495cb8c8d3141fc27556a4c9188b81531ad5ec3076a0394c61a6dcfbce9f34" dependencies = [ "alloy-primitives", + "alloy-rpc-types-eth", "alloy-serde", "serde", ] +[[package]] +name = "alloy-rpc-types-any" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca445cef0eb6c2cf51cfb4e214fbf1ebd00893ae2e6f3b944c8101b07990f988" +dependencies = [ + "alloy-consensus-any", + "alloy-rpc-types-eth", + "alloy-serde", +] + [[package]] name = "alloy-rpc-types-eth" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83aa984386deda02482660aa31cb8ca1e63d533f1c31a52d7d181ac5ec68e9b8" +checksum = "0938bc615c02421bd86c1733ca7205cc3d99a122d9f9bff05726bd604b76a5c2" dependencies = [ "alloy-consensus", + "alloy-consensus-any", "alloy-eips", "alloy-network-primitives", "alloy-primitives", "alloy-rlp", "alloy-serde", "alloy-sol-types", - "cfg-if 1.0.0", - "derive_more 1.0.0", - "hashbrown 0.14.5", "itertools 0.13.0", "serde", "serde_json", + "thiserror 2.0.11", ] [[package]] name = "alloy-serde" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "731f75ec5d383107fd745d781619bd9cedf145836c51ecb991623d41278e71fa" +checksum = "ae0465c71d4dced7525f408d84873aeebb71faf807d22d74c4a426430ccd9b55" dependencies = [ "alloy-primitives", "serde", @@ -553,23 +563,23 @@ dependencies = [ [[package]] name = "alloy-signer" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "307324cca94354cd654d6713629f0383ec037e1ff9e3e3d547212471209860c0" +checksum = "9bfa395ad5cc952c82358d31e4c68b27bf4a89a5456d9b27e226e77dac50e4ff" dependencies = [ "alloy-primitives", "async-trait", "auto_impl", "elliptic-curve 0.13.8", "k256", - "thiserror", + "thiserror 2.0.11", ] [[package]] name = "alloy-signer-local" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fabe917ab1778e760b4701628d1cae8e028ee9d52ac6307de4e1e9286ab6b5f" +checksum = "fbdc63ce9eda1283fcbaca66ba4a414b841c0e3edbeef9c86a71242fc9e84ccc" dependencies = [ "alloy-consensus", "alloy-network", @@ -578,61 +588,61 @@ dependencies = [ "async-trait", "k256", "rand 0.8.5", - "thiserror", + "thiserror 2.0.11", ] [[package]] name = "alloy-sol-macro" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68e7f6e8fe5b443f82b3f1e15abfa191128f71569148428e49449d01f6f49e8b" +checksum = "8d039d267aa5cbb7732fa6ce1fd9b5e9e29368f580f80ba9d7a8450c794de4b2" dependencies = [ "alloy-sol-macro-expander", "alloy-sol-macro-input", "proc-macro-error2", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "alloy-sol-macro-expander" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b96ce28d2fde09abb6135f410c41fad670a3a770b6776869bd852f1df102e6f" +checksum = "620ae5eee30ee7216a38027dec34e0585c55099f827f92f50d11e3d2d3a4a954" dependencies = [ "alloy-sol-macro-input", "const-hex", "heck 0.5.0", - "indexmap 2.5.0", + "indexmap 2.7.1", "proc-macro-error2", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", "syn-solidity", "tiny-keccak", ] [[package]] name = "alloy-sol-macro-input" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "906746396a8296537745711630d9185746c0b50c033d5e9d18b0a6eba3d53f90" +checksum = "ad9f7d057e00f8c5994e4ff4492b76532c51ead39353aa2ed63f8c50c0f4d52e" dependencies = [ "const-hex", "dunce", "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", "syn-solidity", ] [[package]] name = "alloy-sol-type-parser" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc85178909a49c8827ffccfc9103a7ce1767ae66a801b69bdc326913870bf8e6" +checksum = "74e60b084fe1aef8acecda2743ff2d93c18ff3eb67a2d3b12f62582a1e66ef5e" dependencies = [ "serde", "winnow", @@ -640,9 +650,9 @@ dependencies = [ [[package]] name = "alloy-sol-types" -version = "0.8.5" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d86a533ce22525969661b25dfe296c112d35eb6861f188fd284f8bd4bb3842ae" +checksum = "c1382302752cd751efd275f4d6ef65877ddf61e0e6f5ac84ef4302b79a33a31a" dependencies = [ "alloy-json-abi", "alloy-primitives", @@ -653,9 +663,9 @@ dependencies = [ [[package]] name = "alloy-transport" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33616b2edf7454302a1d48084db185e52c309f73f6c10be99b0fe39354b3f1e9" +checksum = "d17722a198f33bbd25337660787aea8b8f57814febb7c746bc30407bdfc39448" dependencies = [ "alloy-json-rpc", "base64 0.22.1", @@ -663,46 +673,63 @@ dependencies = [ "futures-utils-wasm", "serde", "serde_json", - "thiserror", + "thiserror 2.0.11", "tokio", - "tower 0.5.1", + "tower", "tracing", "url", + "wasmtimer", ] [[package]] name = "alloy-transport-http" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a944f5310c690b62bbb3e7e5ce34527cbd36b2d18532a797af123271ce595a49" +checksum = "6e1509599021330a31c4a6816b655e34bf67acb1cc03c564e09fd8754ff6c5de" dependencies = [ "alloy-json-rpc", "alloy-transport", - "reqwest 0.12.7", + "reqwest 0.12.12", "serde_json", - "tower 0.5.1", + "tower", "tracing", "url", ] [[package]] name = "alloy-transport-ws" -version = "0.3.6" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9704761f6297fe482276bee7f77a93cb42bd541c2bd6c1c560b6f3a9ece672e" +checksum = "58011745b2f17b334db40df9077d75b181f78360a5bc5c35519e15d4bfce15e2" dependencies = [ "alloy-pubsub", "alloy-transport", "futures", - "http 1.1.0", - "rustls 0.23.13", + "http 1.2.0", + "rustls 0.23.21", "serde_json", "tokio", - "tokio-tungstenite 0.23.1", + "tokio-tungstenite 0.24.0", "tracing", "ws_stream_wasm", ] +[[package]] +name = "alloy-trie" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6917c79e837aa7b77b7a6dae9f89cbe15313ac161c4d3cfaf8909ef21f3d22d8" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "arrayvec", + "derive_more 1.0.0", + "nybbles", + "serde", + "smallvec", + "tracing", +] + [[package]] name = "android-tzdata" version = "0.1.1" @@ -720,9 +747,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.15" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -735,49 +762,50 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.4" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "once_cell", + "windows-sys 0.59.0", ] [[package]] name = "anyhow" -version = "1.0.89" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" [[package]] name = "arbitrary" -version = "1.3.2" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" +checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223" dependencies = [ "derive_arbitrary", ] @@ -788,6 +816,34 @@ version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" +[[package]] +name = "ark-bn254" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" +dependencies = [ + "ark-ec", + "ark-ff 0.4.2", + "ark-std 0.4.0", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff 0.4.2", + "ark-poly", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "hashbrown 0.13.2", + "itertools 0.10.5", + "num-traits", + "zeroize", +] + [[package]] name = "ark-ff" version = "0.3.0" @@ -871,6 +927,19 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "hashbrown 0.13.2", +] + [[package]] name = "ark-serialize" version = "0.3.0" @@ -887,11 +956,23 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" dependencies = [ + "ark-serialize-derive", "ark-std 0.4.0", "digest 0.10.7", "num-bigint 0.4.6", ] +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "ark-std" version = "0.3.0" @@ -920,15 +1001,18 @@ checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" [[package]] name = "arrayvec" -version = "0.5.2" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" +dependencies = [ + "serde", +] [[package]] -name = "arrayvec" -version = "0.7.6" +name = "ascii" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" +checksum = "eab1c04a571841102f5345a8fc0f6bb3d31c315dec879b5c6e42e40ce7ffa34e" [[package]] name = "ascii-canvas" @@ -940,16 +1024,91 @@ dependencies = [ ] [[package]] -name = "assert_matches" -version = "1.5.0" +name = "asn1-rs" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - -[[package]] -name = "async-stream" -version = "0.3.5" +checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "synstructure 0.12.6", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "assert_matches" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" + +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener 2.5.3", + "futures-core", +] + +[[package]] +name = "async-compression" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df895a515f70646414f4b45c0b79082783b80552b373a68283012928df56f522" +dependencies = [ + "brotli", + "flate2", + "futures-core", + "memchr", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "async-lock" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" +dependencies = [ + "event-listener 5.4.0", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-stream" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" +checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" dependencies = [ "async-stream-impl", "futures-core", @@ -958,24 +1117,24 @@ dependencies = [ [[package]] name = "async-stream-impl" -version = "0.3.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" +checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "async-trait" -version = "0.1.83" +version = "0.1.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" +checksum = "3f934833b4b7233644e5848f235df3f57ed8c80f1528a26c3dfa13d2147fa056" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -997,26 +1156,26 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" [[package]] name = "auto_impl" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" +checksum = "e12882f59de5360c748c4cbf569a042d5fb0eb515f7bea9c1f470b47f6ffbd73" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "autocfg" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "aws-config" -version = "1.5.6" +version = "1.5.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "848d7b9b605720989929279fa644ce8f244d0ce3146fcca5b70e4eb7b3c020fc" +checksum = "dc47e70fc35d054c8fcd296d47a61711f043ac80534a10b4f741904f81e73a90" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1056,9 +1215,9 @@ dependencies = [ [[package]] name = "aws-runtime" -version = "1.4.3" +version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a10d5c055aa540164d9561a0e2e74ad30f0dcf7393c3a92f6733ddf9c5762468" +checksum = "bee7643696e7fdd74c10f9eb42848a87fe469d35eae9c3323f80aa98f350baac" dependencies = [ "aws-credential-types", "aws-sigv4", @@ -1077,16 +1236,15 @@ dependencies = [ "percent-encoding", "pin-project-lite", "tracing", - "uuid 1.10.0", + "uuid 1.12.1", ] [[package]] name = "aws-sdk-s3" -version = "1.51.0" +version = "1.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c09fd4b5c7ed75f52b913b4f3ff0501dae7f8cb9125f6d45db4553980cbc0528" +checksum = "705cb534fb7b620f540d2fac268d378918dc67d25b173f67edcab3851fe19392" dependencies = [ - "ahash 0.8.11", "aws-credential-types", "aws-runtime", "aws-sigv4", @@ -1103,23 +1261,23 @@ dependencies = [ "bytes", "fastrand", "hex", - "hmac", + "hmac 0.12.1", "http 0.2.12", "http-body 0.4.6", - "lru 0.12.4", + "lru", "once_cell", "percent-encoding", "regex-lite", - "sha2", + "sha2 0.10.8", "tracing", "url", ] [[package]] name = "aws-sdk-sso" -version = "1.43.0" +version = "1.56.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a9d27ed1c12b1140c47daf1bc541606c43fdafd918c4797d520db0043ceef2" +checksum = "12e057fdcb8842de9b83592a70f5b4da0ee10bc0ad278247da1425a742a444d7" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1139,9 +1297,9 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.44.0" +version = "1.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44514a6ca967686cde1e2a1b81df6ef1883d0e3e570da8d8bc5c491dcb6fc29b" +checksum = "a120ade4a44691b3c5c2ff2fa61b14ed331fdc218397f61ab48d66593012ae2a" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1161,9 +1319,9 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.43.0" +version = "1.57.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd7a4d279762a35b9df97209f6808b95d4fe78547fe2316b4d200a0283960c5a" +checksum = "115fd4fb663817ed595a5ee4f1649d7aacd861d47462323cb37576ce89271b93" dependencies = [ "aws-credential-types", "aws-runtime", @@ -1184,9 +1342,9 @@ dependencies = [ [[package]] name = "aws-sigv4" -version = "1.2.4" +version = "1.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc8db6904450bafe7473c6ca9123f88cc11089e41a025408f992db4e22d3be68" +checksum = "690118821e46967b3c4501d67d7d52dd75106a9c54cf36cefa1985cedbe94e05" dependencies = [ "aws-credential-types", "aws-smithy-eventstream", @@ -1197,14 +1355,14 @@ dependencies = [ "crypto-bigint 0.5.5", "form_urlencoded", "hex", - "hmac", + "hmac 0.12.1", "http 0.2.12", - "http 1.1.0", + "http 1.2.0", "once_cell", "p256", "percent-encoding", "ring 0.17.8", - "sha2", + "sha2 0.10.8", "subtle", "time", "tracing", @@ -1213,9 +1371,9 @@ dependencies = [ [[package]] name = "aws-smithy-async" -version = "1.2.1" +version = "1.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62220bc6e97f946ddd51b5f1361f78996e704677afc518a4ff66b7a72ea1378c" +checksum = "fa59d1327d8b5053c54bf2eaae63bf629ba9e904434d0835a28ed3c0ed0a614e" dependencies = [ "futures-util", "pin-project-lite", @@ -1224,30 +1382,31 @@ dependencies = [ [[package]] name = "aws-smithy-checksums" -version = "0.60.12" +version = "0.62.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598b1689d001c4d4dc3cb386adb07d37786783aee3ac4b324bcadac116bf3d23" +checksum = "f2f45a1c384d7a393026bc5f5c177105aa9fa68e4749653b985707ac27d77295" dependencies = [ "aws-smithy-http", "aws-smithy-types", "bytes", "crc32c", "crc32fast", + "crc64fast-nvme", "hex", "http 0.2.12", "http-body 0.4.6", "md-5", "pin-project-lite", "sha1", - "sha2", + "sha2 0.10.8", "tracing", ] [[package]] name = "aws-smithy-eventstream" -version = "0.60.5" +version = "0.60.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cef7d0a272725f87e51ba2bf89f8c21e4df61b9e49ae1ac367a6d69916ef7c90" +checksum = "8b18559a41e0c909b77625adf2b8c50de480a8041e5e4a3f5f7d177db70abc5a" dependencies = [ "aws-smithy-types", "bytes", @@ -1256,9 +1415,9 @@ dependencies = [ [[package]] name = "aws-smithy-http" -version = "0.60.11" +version = "0.60.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c8bc3e8fdc6b8d07d976e301c02fe553f72a39b7a9fea820e023268467d7ab6" +checksum = "7809c27ad8da6a6a68c454e651d4962479e81472aa19ae99e59f9aba1f9713cc" dependencies = [ "aws-smithy-eventstream", "aws-smithy-runtime-api", @@ -1277,9 +1436,9 @@ dependencies = [ [[package]] name = "aws-smithy-json" -version = "0.60.7" +version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4683df9469ef09468dad3473d129960119a0d3593617542b7d52086c8486f2d6" +checksum = "623a51127f24c30776c8b374295f2df78d92517386f77ba30773f15a30ce1422" dependencies = [ "aws-smithy-types", ] @@ -1296,9 +1455,9 @@ dependencies = [ [[package]] name = "aws-smithy-runtime" -version = "1.7.1" +version = "1.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1ce695746394772e7000b39fe073095db6d45a862d0767dd5ad0ac0d7f8eb87" +checksum = "865f7050bbc7107a6c98a397a9fcd9413690c27fa718446967cf03b2d3ac517e" dependencies = [ "aws-smithy-async", "aws-smithy-http", @@ -1311,7 +1470,7 @@ dependencies = [ "http-body 0.4.6", "http-body 1.0.1", "httparse", - "hyper 0.14.30", + "hyper 0.14.32", "hyper-rustls 0.24.2", "once_cell", "pin-project-lite", @@ -1323,15 +1482,15 @@ dependencies = [ [[package]] name = "aws-smithy-runtime-api" -version = "1.7.2" +version = "1.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e086682a53d3aa241192aa110fa8dfce98f2f5ac2ead0de84d41582c7e8fdb96" +checksum = "92165296a47a812b267b4f41032ff8069ab7ff783696d217f0994a0d7ab585cd" dependencies = [ "aws-smithy-async", "aws-smithy-types", "bytes", "http 0.2.12", - "http 1.1.0", + "http 1.2.0", "pin-project-lite", "tokio", "tracing", @@ -1340,16 +1499,16 @@ dependencies = [ [[package]] name = "aws-smithy-types" -version = "1.2.6" +version = "1.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03701449087215b5369c7ea17fef0dd5d24cb93439ec5af0c7615f58c3f22605" +checksum = "a28f6feb647fb5e0d5b50f0472c19a7db9462b74e2fec01bb0b44eedcc834e97" dependencies = [ "base64-simd", "bytes", "bytes-utils", "futures-core", "http 0.2.12", - "http 1.1.0", + "http 1.2.0", "http-body 0.4.6", "http-body 1.0.1", "http-body-util", @@ -1361,7 +1520,7 @@ dependencies = [ "serde", "time", "tokio", - "tokio-util 0.7.12", + "tokio-util", ] [[package]] @@ -1375,9 +1534,9 @@ dependencies = [ [[package]] name = "aws-types" -version = "1.3.3" +version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5221b91b3e441e6675310829fd8984801b772cb1546ef6c0e54dec9f1ac13fef" +checksum = "b0df5a18c4f951c645300d365fec53a61418bcf4650f604f85fe2a665bfaa0c2" dependencies = [ "aws-credential-types", "aws-smithy-async", @@ -1393,11 +1552,11 @@ version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ - "addr2line 0.24.1", + "addr2line", "cfg-if 1.0.0", "libc", "miniz_oxide", - "object 0.36.4", + "object", "rustc-demangle", "windows-targets 0.52.6", ] @@ -1414,6 +1573,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + [[package]] name = "base64" version = "0.13.1" @@ -1475,7 +1640,16 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ - "bit-vec", + "bit-vec 0.6.3", +] + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec 0.8.0", ] [[package]] @@ -1484,6 +1658,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + [[package]] name = "bitflags" version = "1.3.2" @@ -1492,9 +1672,12 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" +dependencies = [ + "serde", +] [[package]] name = "bitvec" @@ -1508,17 +1691,6 @@ dependencies = [ "wyz", ] -[[package]] -name = "blake2" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a4e37d16930f5459780f5621038b6382b9bb37c19016f39fb6b5808d831f174" -dependencies = [ - "crypto-mac", - "digest 0.9.0", - "opaque-debug", -] - [[package]] name = "blake2" version = "0.10.6" @@ -1530,17 +1702,25 @@ dependencies = [ [[package]] name = "blake3" -version = "0.3.8" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" dependencies = [ "arrayref", - "arrayvec 0.5.2", + "arrayvec", "cc", - "cfg-if 0.1.10", - "constant_time_eq", - "crypto-mac", - "digest 0.9.0", + "cfg-if 1.0.0", + "constant_time_eq 0.3.1", + "digest 0.10.7", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array", ] [[package]] @@ -1549,7 +1729,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -1566,29 +1746,29 @@ dependencies = [ [[package]] name = "borsh" -version = "0.9.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15bf3650200d8bffa99015595e10f1fbd17de07abbc25bb067da79e769939bfa" +checksum = "115e54d64eb62cdebad391c19efc9dce4981c690c85a33a12199d99bb9546fee" dependencies = [ - "borsh-derive 0.9.3", - "hashbrown 0.11.2", + "borsh-derive 0.10.4", + "hashbrown 0.13.2", ] [[package]] name = "borsh" -version = "1.5.1" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" +checksum = "5430e3be710b68d984d1391c854eb431a9d548640711faa54eecb1df93db91cc" dependencies = [ - "borsh-derive 1.5.1", + "borsh-derive 1.5.5", "cfg_aliases", ] [[package]] name = "borsh-derive" -version = "0.9.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6441c552f230375d18e3cc377677914d2ca2b0d36e52129fe15450a2dce46775" +checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" dependencies = [ "borsh-derive-internal", "borsh-schema-derive-internal", @@ -1599,23 +1779,22 @@ dependencies = [ [[package]] name = "borsh-derive" -version = "1.5.1" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b" +checksum = "f8b668d39970baad5356d7c83a86fee3a539e6f93bf6764c97368243e17a0487" dependencies = [ "once_cell", "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.77", - "syn_derive", + "syn 2.0.96", ] [[package]] name = "borsh-derive-internal" -version = "0.9.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5449c28a7b352f2d1e592a8a28bf139bc71afb0764a14f3c02500935d8c44065" +checksum = "65d6ba50644c98714aa2a70d13d7df3cd75cd2b523a2b452bf010443800976b3" dependencies = [ "proc-macro2", "quote", @@ -1624,9 +1803,9 @@ dependencies = [ [[package]] name = "borsh-schema-derive-internal" -version = "0.9.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdbd5696d8bfa21d53d9fe39a714a18538bad11492a42d066dbbc395fb1951c0" +checksum = "276691d96f063427be83e6692b86148e488ebba9f48f77788724ca027ba3b6d4" dependencies = [ "proc-macro2", "quote", @@ -1636,13 +1815,37 @@ dependencies = [ [[package]] name = "bridge-connector-common" version = "0.1.0" -source = "git+https://github.com/Near-One/rainbow-bridge-sdk-rs?branch=omni-token-support#a9922eca00939901d0b649a655b29b19a2dc0994" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ "eth-proof", "ethers", "near-light-client-on-eth", "near-rpc-client", - "thiserror", + "serde_json", + "solana-bridge-client", + "solana-client", + "thiserror 2.0.11", +] + +[[package]] +name = "brotli" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "4.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74fa05ad7d803d413eb8380983b092cbbaf9a85f151b871360e7b00cd7060b37" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", ] [[package]] @@ -1657,7 +1860,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" dependencies = [ - "sha2", + "sha2 0.10.8", "tinyvec", ] @@ -1667,6 +1870,16 @@ version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +[[package]] +name = "bv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340" +dependencies = [ + "feature-probe", + "serde", +] + [[package]] name = "byte-slice-cast" version = "1.2.2" @@ -1674,25 +1887,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" [[package]] -name = "bytecheck" -version = "0.6.12" +name = "bytemuck" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" dependencies = [ - "bytecheck_derive", - "ptr_meta", - "simdutf8", + "bytemuck_derive", ] [[package]] -name = "bytecheck_derive" -version = "0.6.12" +name = "bytemuck_derive" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.96", ] [[package]] @@ -1703,9 +1914,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" dependencies = [ "serde", ] @@ -1766,29 +1977,29 @@ dependencies = [ ] [[package]] -name = "c2-chacha" -version = "0.3.3" +name = "camino" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d27dae93fe7b1e0424dc57179ac396908c26b035a87234809f5c4dfd1b47dc80" +checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" dependencies = [ - "cipher 0.2.5", - "ppv-lite86", + "serde", ] [[package]] -name = "camino" -version = "1.1.9" +name = "caps" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" +checksum = "190baaad529bcfbde9e1a19022c42781bdb6ff9de25721abdb8fd98c0807730b" dependencies = [ - "serde", + "libc", + "thiserror 1.0.69", ] [[package]] name = "cargo-platform" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" dependencies = [ "serde", ] @@ -1801,23 +2012,48 @@ checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037" dependencies = [ "camino", "cargo-platform", - "semver 1.0.23", + "semver 1.0.25", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "cbindgen" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fce8dd7fcfcbf3a0a87d8f515194b49d6135acab73e18bd380d1d93bb1a15eb" +dependencies = [ + "clap", + "heck 0.4.1", + "indexmap 2.7.1", + "log", + "proc-macro2", + "quote", "serde", "serde_json", - "thiserror", + "syn 2.0.96", + "tempfile", + "toml 0.8.19", ] [[package]] name = "cc" -version = "1.1.21" +version = "1.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" +checksum = "13208fcbb66eaeffe09b99fffbe1af420f00a7b35aa99ad683dfc1aa76145229" dependencies = [ "jobserver", "libc", "shlex", ] +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + [[package]] name = "cfg-if" version = "0.1.10" @@ -1836,11 +2072,22 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "cfg_eval" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45565fc9416b9896014f5732ac776f810ee53a66730c17e4020c3ec064a8f88f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", +] + [[package]] name = "chrono" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" dependencies = [ "android-tzdata", "iana-time-zone", @@ -1851,15 +2098,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "cipher" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801" -dependencies = [ - "generic-array 0.14.7", -] - [[package]] name = "cipher" version = "0.4.4" @@ -1877,15 +2115,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f0bc31eabef0259183d03c3846ad6818eaa8e542c31dae751c9d22ea030fb7d" dependencies = [ "hasher", - "parking_lot 0.12.3", - "rlp", + "parking_lot", + "rlp 0.5.2", ] [[package]] name = "clap" -version = "4.5.18" +version = "4.5.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0956a43b323ac1afaffc053ed5c4b7c1f1800bacd1683c353aabbb752515dd3" +checksum = "769b0145982b4b48713e01ec42d61614425f27b7058bda7180a3a41f30104796" dependencies = [ "clap_builder", "clap_derive", @@ -1893,9 +2131,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.18" +version = "4.5.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d72166dd41634086d5803a47eb71ae740e61d84709c36f3c34110173db3961b" +checksum = "1b26884eb4b57140e4d2d93652abfa49498b938b3c9179f9fc487b0acc3edad7" dependencies = [ "anstream", "anstyle", @@ -1905,30 +2143,21 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.18" +version = "4.5.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" +checksum = "54b755194d6389280185988721fffba69495eed5ee9feeee9a599b53db80318c" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "clap_lex" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" - -[[package]] -name = "cloudabi" -version = "0.0.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags 1.3.2", -] +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" [[package]] name = "coins-bip32" @@ -1939,11 +2168,11 @@ dependencies = [ "bs58 0.5.1", "coins-core", "digest 0.10.7", - "hmac", + "hmac 0.12.1", "k256", "serde", - "sha2", - "thiserror", + "sha2 0.10.8", + "thiserror 1.0.69", ] [[package]] @@ -1954,12 +2183,12 @@ checksum = "3db8fba409ce3dc04f7d804074039eb68b960b0829161f8e06c95fea3f122528" dependencies = [ "bitvec", "coins-bip32", - "hmac", + "hmac 0.12.1", "once_cell", "pbkdf2 0.12.2", "rand 0.8.5", - "sha2", - "thiserror", + "sha2 0.10.8", + "thiserror 1.0.69", ] [[package]] @@ -1972,21 +2201,34 @@ dependencies = [ "bech32", "bs58 0.5.1", "digest 0.10.7", - "generic-array 0.14.7", + "generic-array", "hex", "ripemd", "serde", "serde_derive", - "sha2", + "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "colorchoice" -version = "1.0.2" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" + +[[package]] +name = "combine" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" +checksum = "da3da6baa321ec19e1cc41d31bf599f00c783d0517095cdaf0332e3fe8d20680" +dependencies = [ + "ascii", + "byteorder", + "either", + "memchr", + "unreachable", +] [[package]] name = "combine" @@ -1999,14 +2241,56 @@ dependencies = [ "memchr", "pin-project-lite", "tokio", - "tokio-util 0.7.12", + "tokio-util", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "console" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea3c6ecd8059b57859df5c69830340ed3c41d30e3da0c1cbed90a96ac853041b" +dependencies = [ + "encode_unicode", + "libc", + "once_cell", + "unicode-width", + "windows-sys 0.59.0", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if 1.0.0", + "wasm-bindgen", +] + +[[package]] +name = "console_log" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" +dependencies = [ + "log", + "web-sys", ] [[package]] name = "const-hex" -version = "1.12.0" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94fb8a24a26d37e1ffd45343323dc9fe6654ceea44c12f2fcb3d7ac29e610bc6" +checksum = "4b0485bab839b018a8f1723fc5391819fea5f8f0f32288ef8a735fd096b6160c" dependencies = [ "cfg-if 1.0.0", "cpufeatures", @@ -2027,6 +2311,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + [[package]] name = "convert_case" version = "0.4.0" @@ -2049,132 +2339,29 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" -[[package]] -name = "cpp_demangle" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" -dependencies = [ - "cfg-if 1.0.0", -] - [[package]] name = "cpufeatures" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" +checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" dependencies = [ "libc", ] [[package]] -name = "cranelift-bforest" -version = "0.101.4" +name = "crc" +version = "3.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b5bb9245ec7dcc04d03110e538d31f0969d301c9d673145f4b4d5c3478539a3" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" dependencies = [ - "cranelift-entity", + "crc-catalog", ] [[package]] -name = "cranelift-codegen" -version = "0.101.4" +name = "crc-catalog" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebb18d10e5ddac43ba4ca8fd4e310938569c3e484cc01b6372b27dc5bb4dfd28" -dependencies = [ - "bumpalo", - "cranelift-bforest", - "cranelift-codegen-meta", - "cranelift-codegen-shared", - "cranelift-control", - "cranelift-entity", - "cranelift-isle", - "gimli 0.28.1", - "hashbrown 0.14.5", - "log", - "regalloc2", - "smallvec", - "target-lexicon 0.12.16", -] - -[[package]] -name = "cranelift-codegen-meta" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a3ce6d22982c1b9b6b012654258bab1a13947bb12703518bef06b1a4867c3d6" -dependencies = [ - "cranelift-codegen-shared", -] - -[[package]] -name = "cranelift-codegen-shared" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47220fd4f9a0ce23541652b6f16f83868d282602c600d14934b2a4c166b4bd80" - -[[package]] -name = "cranelift-control" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5a4c42672aea9b6e820046b52e47a1c05d3394a6cdf4cb3c3c4b702f954bd2" -dependencies = [ - "arbitrary", -] - -[[package]] -name = "cranelift-entity" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b4e9a3296fc827f9d35135dc2c0c8dd8d8359eb1ef904bae2d55d5bcb0c9f94" -dependencies = [ - "serde", - "serde_derive", -] - -[[package]] -name = "cranelift-frontend" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ec537d0f0b8e084517f3e7bfa1d89af343d7c7df455573fca9f272d4e01267" -dependencies = [ - "cranelift-codegen", - "log", - "smallvec", - "target-lexicon 0.12.16", -] - -[[package]] -name = "cranelift-isle" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45bab6d69919d210a50331d35cc6ce111567bc040aebac63a8ae130d0400a075" - -[[package]] -name = "cranelift-native" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f32e81605f352cf37af5463f11cd7deec7b6572741931a8d372f7fdd4a744f5d" -dependencies = [ - "cranelift-codegen", - "libc", - "target-lexicon 0.12.16", -] - -[[package]] -name = "cranelift-wasm" -version = "0.101.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0edaa4cbec1bc787395c074233df2652dd62f3e29d3ee60329514a0a51e6b045" -dependencies = [ - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "itertools 0.10.5", - "log", - "smallvec", - "wasmparser 0.115.0", - "wasmtime-types", -] +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" [[package]] name = "crc32c" @@ -2194,20 +2381,30 @@ dependencies = [ "cfg-if 1.0.0", ] +[[package]] +name = "crc64fast-nvme" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5e2ee08013e3f228d6d2394116c4549a6df77708442c62d887d83f68ef2ee37" +dependencies = [ + "cbindgen", + "crc", +] + [[package]] name = "crossbeam-channel" -version = "0.5.13" +version = "0.5.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2" +checksum = "06ba6d68e24814cb8de6bb986db8222d3a027d15872cabc0d18817bc3c0e4471" dependencies = [ "crossbeam-utils", ] [[package]] name = "crossbeam-deque" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" dependencies = [ "crossbeam-epoch", "crossbeam-utils", @@ -2224,15 +2421,15 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.20" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" [[package]] name = "crunchy" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929" [[package]] name = "crypto-bigint" @@ -2240,7 +2437,7 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" dependencies = [ - "generic-array 0.14.7", + "generic-array", "rand_core 0.6.4", "subtle", "zeroize", @@ -2252,7 +2449,7 @@ version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ - "generic-array 0.14.7", + "generic-array", "rand_core 0.6.4", "subtle", "zeroize", @@ -2264,7 +2461,8 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.7", + "generic-array", + "rand_core 0.6.4", "typenum", ] @@ -2274,7 +2472,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.7", + "generic-array", "subtle", ] @@ -2284,7 +2482,20 @@ version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" dependencies = [ - "cipher 0.4.4", + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.5.1", + "subtle", + "zeroize", ] [[package]] @@ -2300,6 +2511,7 @@ dependencies = [ "fiat-crypto", "rand_core 0.6.4", "rustc_version 0.4.1", + "serde", "subtle", "zeroize", ] @@ -2312,7 +2524,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -2360,7 +2572,7 @@ dependencies = [ "proc-macro2", "quote", "strsim 0.11.1", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -2382,7 +2594,20 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core 0.20.10", "quote", - "syn 2.0.77", + "syn 2.0.96", +] + +[[package]] +name = "dashmap" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" +dependencies = [ + "cfg-if 1.0.0", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", ] [[package]] @@ -2394,25 +2619,16 @@ dependencies = [ "cfg-if 1.0.0", "crossbeam-utils", "hashbrown 0.14.5", - "lock_api 0.4.12", + "lock_api", "once_cell", - "parking_lot_core 0.9.10", + "parking_lot_core", ] [[package]] name = "data-encoding" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" - -[[package]] -name = "debugid" -version = "0.8.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" -dependencies = [ - "uuid 1.10.0", -] +checksum = "0e60eed09d8c01d3cee5b7d30acb059b76614c918fa0f992e0dd6eeb10daad6f" [[package]] name = "der" @@ -2434,6 +2650,20 @@ dependencies = [ "zeroize", ] +[[package]] +name = "der-parser" +version = "8.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom", + "num-bigint 0.4.6", + "num-traits", + "rusticata-macros", +] + [[package]] name = "deranged" version = "0.3.11" @@ -2444,6 +2674,12 @@ dependencies = [ "serde", ] +[[package]] +name = "derivation-path" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" + [[package]] name = "derivative" version = "2.2.0" @@ -2457,13 +2693,13 @@ dependencies = [ [[package]] name = "derive_arbitrary" -version = "1.3.2" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" +checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -2477,11 +2713,11 @@ dependencies = [ [[package]] name = "derive_builder" -version = "0.20.1" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd33f37ee6a119146a1781d3356a7c26028f83d779b2e04ecd45fdc75c76877b" +checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" dependencies = [ - "derive_builder_macro 0.20.1", + "derive_builder_macro 0.20.2", ] [[package]] @@ -2498,14 +2734,14 @@ dependencies = [ [[package]] name = "derive_builder_core" -version = "0.20.1" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7431fa049613920234f22c47fdc33e6cf3ee83067091ea4277a3f8c4587aae38" +checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -2520,12 +2756,12 @@ dependencies = [ [[package]] name = "derive_builder_macro" -version = "0.20.1" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4abae7035bf79b9877b779505d8cf3749285b80c43941eda66604841889451dc" +checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" dependencies = [ - "derive_builder_core 0.20.1", - "syn 2.0.77", + "derive_builder_core 0.20.2", + "syn 2.0.96", ] [[package]] @@ -2538,7 +2774,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version 0.4.1", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -2558,26 +2794,17 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", "unicode-xid", ] -[[package]] -name = "digest" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" -dependencies = [ - "generic-array 0.12.4", -] - [[package]] name = "digest" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -2586,7 +2813,7 @@ version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer", + "block-buffer 0.10.4", "const-oid", "crypto-common", "subtle", @@ -2635,75 +2862,56 @@ dependencies = [ ] [[package]] -name = "dissimilar" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59f8e79d1fbf76bdfbde321e902714bf6c49df88a7dda6fc682fc2979226962d" - -[[package]] -name = "dotenv" -version = "0.15.0" +name = "displaydoc" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", +] [[package]] -name = "dunce" -version = "1.0.5" +name = "dlopen2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" +checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] [[package]] -name = "dynasm" -version = "1.2.3" +name = "dlopen2_derive" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "add9a102807b524ec050363f09e06f1504214b0e1c7797f64261c891022dce8b" +checksum = "a6cbae11b3de8fce2a456e8ea3dada226b35fe791f0dc1d360c0941f0bb681f3" dependencies = [ - "bitflags 1.3.2", - "byteorder", - "lazy_static", - "proc-macro-error", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.96", ] [[package]] -name = "dynasm" -version = "2.0.0" +name = "dotenv" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33dc03612f42465a8ed7f5e354bc2b79ba54cedefa81d5bd3a064f1835adaba8" -dependencies = [ - "bitflags 1.3.2", - "byteorder", - "lazy_static", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", -] +checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" [[package]] -name = "dynasmrt" -version = "1.2.3" +name = "dunce" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64fba5a42bd76a17cad4bfa00de168ee1cbfa06a5e8ce992ae880218c05641a9" -dependencies = [ - "byteorder", - "dynasm 1.2.3", - "memmap2", -] +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] -name = "dynasmrt" -version = "2.0.0" +name = "eager" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7dccc31a678058996aef614f6bd418ced384da70f284e83e2b7bf29b27b6a28" -dependencies = [ - "byteorder", - "dynasm 2.0.0", - "fnv", - "memmap2", -] +checksum = "abe71d579d1812060163dff96056261deb5bf6729b100fa2e36a68b9649ba3d3" [[package]] name = "easy-ext" @@ -2737,6 +2945,15 @@ dependencies = [ "spki 0.7.3", ] +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature 1.6.4", +] + [[package]] name = "ed25519" version = "2.2.3" @@ -2746,19 +2963,45 @@ dependencies = [ "signature 2.2.0", ] +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek 3.2.0", + "ed25519 1.5.3", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "zeroize", +] + [[package]] name = "ed25519-dalek" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ - "curve25519-dalek", - "ed25519", + "curve25519-dalek 4.1.3", + "ed25519 2.2.3", "rand_core 0.6.4", - "sha2", + "sha2 0.10.8", "subtle", ] +[[package]] +name = "ed25519-dalek-bip32" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908" +dependencies = [ + "derivation-path", + "ed25519-dalek 1.0.1", + "hmac 0.12.1", + "sha2 0.10.8", +] + [[package]] name = "either" version = "1.13.0" @@ -2776,7 +3019,7 @@ dependencies = [ "der 0.6.1", "digest 0.10.7", "ff 0.12.1", - "generic-array 0.14.7", + "generic-array", "group 0.12.1", "pkcs8 0.9.0", "rand_core 0.6.4", @@ -2795,7 +3038,7 @@ dependencies = [ "crypto-bigint 0.5.5", "digest 0.10.7", "ff 0.13.0", - "generic-array 0.14.7", + "generic-array", "group 0.13.0", "pkcs8 0.10.2", "rand_core 0.6.4", @@ -2813,11 +3056,17 @@ dependencies = [ "log", ] +[[package]] +name = "encode_unicode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" + [[package]] name = "encoding_rs" -version = "0.8.34" +version = "0.8.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" dependencies = [ "cfg-if 1.0.0", ] @@ -2834,51 +3083,50 @@ dependencies = [ "k256", "log", "rand 0.8.5", - "rlp", + "rlp 0.5.2", "serde", "sha3", "zeroize", ] [[package]] -name = "enum-map" -version = "2.7.3" +name = "enum-iterator" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6866f3bfdf8207509a033af1a75a7b08abda06bbaaeae6669323fd5a097df2e9" +checksum = "9fd242f399be1da0a5354aa462d57b4ab2b4ee0683cc552f7c007d2d12d36e94" dependencies = [ - "enum-map-derive", + "enum-iterator-derive", ] [[package]] -name = "enum-map-derive" -version = "0.17.0" +name = "enum-iterator-derive" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb" +checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] -name = "enumset" -version = "1.1.5" +name = "enum-map" +version = "2.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07a4b049558765cef5f0c1a273c3fc57084d768b44d2f98127aef4cceb17293" +checksum = "6866f3bfdf8207509a033af1a75a7b08abda06bbaaeae6669323fd5a097df2e9" dependencies = [ - "enumset_derive", + "enum-map-derive", ] [[package]] -name = "enumset_derive" -version = "0.10.0" +name = "enum-map-derive" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59c3b24c345d8c314966bdc1832f6c2635bfcce8e7cf363bd115987bba2ee242" +checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb" dependencies = [ - "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -2902,33 +3150,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" -dependencies = [ - "errno-dragonfly", - "libc", - "winapi", -] - -[[package]] -name = "errno" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.2" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ - "cc", "libc", + "windows-sys 0.59.0", ] [[package]] @@ -2941,34 +3168,34 @@ dependencies = [ "ctr", "digest 0.10.7", "hex", - "hmac", + "hmac 0.12.1", "pbkdf2 0.11.0", "rand 0.8.5", "scrypt", "serde", "serde_json", - "sha2", + "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 1.0.69", "uuid 0.8.2", ] [[package]] name = "eth-proof" version = "0.1.0" -source = "git+https://github.com/Near-One/rainbow-bridge-sdk-rs?branch=omni-token-support#a9922eca00939901d0b649a655b29b19a2dc0994" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "cita_trie", - "ethereum-types", + "ethereum-types 0.14.1", "hasher", "hex", "omni-types", - "reqwest 0.11.27", - "rlp", + "reqwest 0.12.12", + "rlp 0.5.2", "serde", "serde_json", - "thiserror", + "thiserror 2.0.11", "tokio", ] @@ -2978,15 +3205,15 @@ version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7413c5f74cc903ea37386a8965a936cbeb334bd270862fdece542c1b2dcbc898" dependencies = [ - "ethereum-types", + "ethereum-types 0.14.1", "hex", "once_cell", "regex", "serde", "serde_json", "sha3", - "thiserror", - "uint", + "thiserror 1.0.69", + "uint 0.9.5", ] [[package]] @@ -2998,26 +3225,53 @@ dependencies = [ "crunchy", "fixed-hash 0.8.0", "impl-codec", - "impl-rlp", - "impl-serde", + "impl-rlp 0.3.0", + "impl-serde 0.4.0", "scale-info", "tiny-keccak", ] +[[package]] +name = "ethbloom" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c321610643004cf908ec0f5f2aa0d8f1f8e14b540562a2887a1111ff1ecbf7b" +dependencies = [ + "crunchy", + "fixed-hash 0.8.0", + "impl-rlp 0.4.0", + "impl-serde 0.5.0", + "tiny-keccak", +] + [[package]] name = "ethereum-types" version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02d215cbf040552efcbe99a38372fe80ab9d00268e20012b79fcd0f073edd8ee" dependencies = [ - "ethbloom", + "ethbloom 0.13.0", "fixed-hash 0.8.0", "impl-codec", - "impl-rlp", - "impl-serde", + "impl-rlp 0.3.0", + "impl-serde 0.4.0", "primitive-types 0.12.2", "scale-info", - "uint", + "uint 0.9.5", +] + +[[package]] +name = "ethereum-types" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ab15ed80916029f878e0267c3a9f92b67df55e79af370bf66199059ae2b4ee3" +dependencies = [ + "ethbloom 0.14.1", + "fixed-hash 0.8.0", + "impl-rlp 0.4.0", + "impl-serde 0.5.0", + "primitive-types 0.13.1", + "uint 0.10.0", ] [[package]] @@ -3064,7 +3318,7 @@ dependencies = [ "pin-project", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3086,7 +3340,7 @@ dependencies = [ "reqwest 0.11.27", "serde", "serde_json", - "syn 2.0.77", + "syn 2.0.96", "toml 0.8.19", "walkdir", ] @@ -3104,7 +3358,7 @@ dependencies = [ "proc-macro2", "quote", "serde_json", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -3113,26 +3367,26 @@ version = "2.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "82d80cc6ad30b14a48ab786523af33b37f28a8623fc06afd55324816ef18fb1f" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "bytes", "cargo_metadata", "chrono", "const-hex", "elliptic-curve 0.13.8", "ethabi", - "generic-array 0.14.7", + "generic-array", "k256", "num_enum", "once_cell", "open-fastrlp", "rand 0.8.5", - "rlp", + "rlp 0.5.2", "serde", "serde_json", "strum 0.26.3", - "syn 2.0.77", + "syn 2.0.96", "tempfile", - "thiserror", + "thiserror 1.0.69", "tiny-keccak", "unicode-xid", ] @@ -3146,10 +3400,10 @@ dependencies = [ "chrono", "ethers-core", "reqwest 0.11.27", - "semver 1.0.23", + "semver 1.0.25", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -3173,7 +3427,7 @@ dependencies = [ "reqwest 0.11.27", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "tracing-futures", @@ -3205,7 +3459,7 @@ dependencies = [ "reqwest 0.11.27", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-tungstenite 0.20.1", "tracing", @@ -3231,8 +3485,8 @@ dependencies = [ "eth-keystore", "ethers-core", "rand 0.8.5", - "sha2", - "thiserror", + "sha2 0.10.8", + "thiserror 1.0.69", "tracing", ] @@ -3255,12 +3509,12 @@ dependencies = [ "path-slash", "rayon", "regex", - "semver 1.0.23", + "semver 1.0.25", "serde", "serde_json", "solang-parser", "svm-rs", - "thiserror", + "thiserror 1.0.69", "tiny-keccak", "tokio", "tracing", @@ -3269,26 +3523,69 @@ dependencies = [ ] [[package]] -name = "eyre" -version = "0.6.12" +name = "event-listener" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd915d99f24784cdc19fd37ef22b97e3ff0ae756c7e492e9fbfe897d61e2aec" -dependencies = [ - "indenter", - "once_cell", -] +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] -name = "fallible-iterator" -version = "0.3.0" +name = "event-listener" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" +dependencies = [ + "event-listener 5.4.0", + "pin-project-lite", +] + +[[package]] +name = "evm-bridge-client" +version = "0.1.0" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" +dependencies = [ + "borsh 1.5.5", + "bridge-connector-common", + "derive_builder 0.20.2", + "eth-proof", + "ethers", + "hex", + "near-crypto 0.28.0", + "near-jsonrpc-client", + "near-primitives 0.28.0", + "near-rpc-client", + "near-token", + "omni-types", + "serde_json", + "sha3", + "tracing", +] + +[[package]] +name = "eyre" +version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" +checksum = "7cd915d99f24784cdc19fd37ef22b97e3ff0ae756c7e492e9fbfe897d61e2aec" +dependencies = [ + "indenter", + "once_cell", +] [[package]] name = "fastrand" -version = "2.1.1" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "fastrlp" @@ -3296,11 +3593,17 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "139834ddba373bbdd213dffe02c8d110508dcf1726c2be27e8d1f7d7e1856418" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "auto_impl", "bytes", ] +[[package]] +name = "feature-probe" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" + [[package]] name = "ff" version = "0.12.1" @@ -3328,21 +3631,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" [[package]] -name = "finite-wasm" -version = "0.5.0" +name = "five8_const" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d81b511929c2669eaf64e36471cf27c2508133e62ade9d49e608e8d675e7854" +checksum = "72b4f62f0f8ca357f93ae90c8c2dd1041a1f665fde2f889ea9b1787903829015" dependencies = [ - "bitvec", - "dissimilar", - "num-traits", - "prefix-sum-vec", - "thiserror", - "wasm-encoder 0.27.0", - "wasmparser 0.105.0", - "wasmprinter", + "five8_core", ] +[[package]] +name = "five8_core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94474d15a76982be62ca8a39570dccce148d98c238ebb7408b0a21b2c4bdddc4" + [[package]] name = "fixed-hash" version = "0.7.0" @@ -3372,9 +3674,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" dependencies = [ "crc32fast", "miniz_oxide", @@ -3386,6 +3688,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f" + [[package]] name = "foreign-types" version = "0.3.2" @@ -3428,9 +3736,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -3443,9 +3751,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -3453,15 +3761,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -3470,9 +3778,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-locks" @@ -3486,26 +3794,26 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-timer" @@ -3519,9 +3827,9 @@ dependencies = [ [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -3550,37 +3858,26 @@ dependencies = [ "byteorder", ] -[[package]] -name = "fxprof-processed-profile" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd" -dependencies = [ - "bitflags 2.6.0", - "debugid", - "fxhash", - "serde", - "serde_json", -] - [[package]] name = "generic-array" -version = "0.12.4" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ + "serde", "typenum", + "version_check", + "zeroize", ] [[package]] -name = "generic-array" -version = "0.14.7" +name = "gethostname" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" dependencies = [ - "typenum", - "version_check", - "zeroize", + "libc", + "winapi", ] [[package]] @@ -3590,8 +3887,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] @@ -3601,32 +3900,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] name = "gimli" -version = "0.28.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" -dependencies = [ - "fallible-iterator", - "indexmap 2.5.0", - "stable_deref_trait", -] - -[[package]] -name = "gimli" -version = "0.31.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "gloo-timers" @@ -3640,6 +3930,26 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "governor" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" +dependencies = [ + "cfg-if 1.0.0", + "dashmap 5.5.3", + "futures", + "futures-timer", + "no-std-compat", + "nonzero_ext", + "parking_lot", + "portable-atomic", + "quanta", + "rand 0.8.5", + "smallvec", + "spinning_top", +] + [[package]] name = "group" version = "0.12.1" @@ -3674,39 +3984,39 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.5.0", + "indexmap 2.7.1", "slab", "tokio", - "tokio-util 0.7.12", + "tokio-util", "tracing", ] [[package]] name = "h2" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205" +checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" dependencies = [ "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "http 1.1.0", - "indexmap 2.5.0", + "http 1.2.0", + "indexmap 2.7.1", "slab", "tokio", - "tokio-util 0.7.12", + "tokio-util", "tracing", ] [[package]] -name = "hashbrown" -version = "0.11.2" +name = "hash32" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" dependencies = [ - "ahash 0.7.8", + "byteorder", ] [[package]] @@ -3714,9 +4024,6 @@ name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash 0.7.8", -] [[package]] name = "hashbrown" @@ -3724,7 +4031,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.11", + "ahash", ] [[package]] @@ -3732,9 +4039,16 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" dependencies = [ - "ahash 0.8.11", "allocator-api2", + "equivalent", + "foldhash", "serde", ] @@ -3756,15 +4070,6 @@ dependencies = [ "fxhash", ] -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - [[package]] name = "heck" version = "0.4.1" @@ -3799,10 +4104,20 @@ dependencies = [ ] [[package]] -name = "hex-literal" -version = "0.4.1" +name = "histogram" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12cb882ccb290b8646e554b157ab0b71e64e8d5bef775cd66b6531e52d302669" + +[[package]] +name = "hmac" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac", + "digest 0.9.0", +] [[package]] name = "hmac" @@ -3813,13 +4128,24 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "hmac-drbg" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +dependencies = [ + "digest 0.9.0", + "generic-array", + "hmac 0.8.1", +] + [[package]] name = "home" -version = "0.5.9" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" +checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3835,9 +4161,9 @@ dependencies = [ [[package]] name = "http" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" +checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" dependencies = [ "bytes", "fnv", @@ -3862,7 +4188,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", - "http 1.1.0", + "http 1.2.0", ] [[package]] @@ -3873,16 +4199,16 @@ checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", "futures-util", - "http 1.1.0", + "http 1.2.0", "http-body 1.0.1", "pin-project-lite", ] [[package]] name = "httparse" -version = "1.9.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" [[package]] name = "httpdate" @@ -3898,9 +4224,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.30" +version = "0.14.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" +checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" dependencies = [ "bytes", "futures-channel", @@ -3922,15 +4248,15 @@ dependencies = [ [[package]] name = "hyper" -version = "1.4.1" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" +checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.6", - "http 1.1.0", + "h2 0.4.7", + "http 1.2.0", "http-body 1.0.1", "httparse", "itoa", @@ -3948,56 +4274,31 @@ checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", "http 0.2.12", - "hyper 0.14.30", + "hyper 0.14.32", "log", "rustls 0.21.12", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "tokio", "tokio-rustls 0.24.1", ] [[package]] name = "hyper-rustls" -version = "0.27.3" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" +checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" dependencies = [ "futures-util", - "http 1.1.0", - "hyper 1.4.1", + "http 1.2.0", + "hyper 1.5.2", "hyper-util", - "rustls 0.23.13", + "rustls 0.23.21", "rustls-pki-types", "tokio", - "tokio-rustls 0.26.0", + "tokio-rustls 0.26.1", "tower-service", ] -[[package]] -name = "hyper-timeout" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" -dependencies = [ - "hyper 0.14.30", - "pin-project-lite", - "tokio", - "tokio-io-timeout", -] - -[[package]] -name = "hyper-tls" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" -dependencies = [ - "bytes", - "hyper 0.14.30", - "native-tls", - "tokio", - "tokio-native-tls", -] - [[package]] name = "hyper-tls" version = "0.6.0" @@ -4006,7 +4307,7 @@ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" dependencies = [ "bytes", "http-body-util", - "hyper 1.4.1", + "hyper 1.5.2", "hyper-util", "native-tls", "tokio", @@ -4016,16 +4317,16 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" dependencies = [ "bytes", "futures-channel", "futures-util", - "http 1.1.0", + "http 1.2.0", "http-body 1.0.1", - "hyper 1.4.1", + "hyper 1.5.2", "pin-project-lite", "socket2", "tokio", @@ -4057,132 +4358,292 @@ dependencies = [ ] [[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "idna" -version = "0.5.0" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", ] [[package]] -name = "impl-codec" -version = "0.6.0" +name = "icu_locid" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" dependencies = [ - "parity-scale-codec", + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", ] [[package]] -name = "impl-rlp" -version = "0.3.0" +name = "icu_locid_transform" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" dependencies = [ - "rlp", + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", ] [[package]] -name = "impl-serde" -version = "0.4.0" +name = "icu_locid_transform_data" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" -dependencies = [ - "serde", -] +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" [[package]] -name = "impl-trait-for-tuples" -version = "0.2.2" +name = "icu_normalizer" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", ] [[package]] -name = "indenter" -version = "0.3.3" +name = "icu_normalizer_data" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" [[package]] -name = "indexmap" -version = "1.9.3" +name = "icu_properties" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" dependencies = [ - "autocfg", - "hashbrown 0.12.3", - "serde", + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", ] [[package]] -name = "indexmap" -version = "2.5.0" +name = "icu_properties_data" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" -dependencies = [ - "equivalent", - "hashbrown 0.14.5", - "serde", -] +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" [[package]] -name = "inout" -version = "0.1.3" +name = "icu_provider" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" dependencies = [ - "generic-array 0.14.7", + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", ] [[package]] -name = "instant" -version = "0.1.13" +name = "icu_provider_macros" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ - "cfg-if 1.0.0", + "proc-macro2", + "quote", + "syn 2.0.96", ] [[package]] -name = "ipnet" -version = "2.10.0" +name = "ident_case" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] -name = "is-terminal" -version = "0.4.13" +name = "idna" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" dependencies = [ - "hermit-abi 0.4.0", - "libc", - "windows-sys 0.52.0", + "idna_adapter", + "smallvec", + "utf8_iter", ] [[package]] -name = "is_terminal_polyfill" -version = "1.70.1" +name = "idna_adapter" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] [[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" +name = "impl-codec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "impl-rlp" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" +dependencies = [ + "rlp 0.5.2", +] + +[[package]] +name = "impl-rlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54ed8ad1f3877f7e775b8cbf30ed1bd3209a95401817f19a0eb4402d13f8cf90" +dependencies = [ + "rlp 0.6.1", +] + +[[package]] +name = "impl-serde" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" +dependencies = [ + "serde", +] + +[[package]] +name = "impl-serde" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a143eada6a1ec4aefa5049037a26a6d597bfd64f8c026d07b77133e02b7dd0b" +dependencies = [ + "serde", +] + +[[package]] +name = "impl-trait-for-tuples" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", +] + +[[package]] +name = "indenter" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" +dependencies = [ + "equivalent", + "hashbrown 0.15.2", + "serde", +] + +[[package]] +name = "indicatif" +version = "0.17.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbf675b85ed934d3c67b5c5469701eec7db22689d0a2139d856e0925fa28b281" +dependencies = [ + "console", + "number_prefix", + "portable-atomic", + "unicode-width", + "web-time", +] + +[[package]] +name = "inout" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +dependencies = [ + "generic-array", +] + +[[package]] +name = "instant" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "is-terminal" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e19b23d53f35ce9f56aebc7d1bb4e6ac1e9c0db7ac85c8d1760c04379edced37" +dependencies = [ + "hermit-abi 0.4.0", + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ "either", @@ -4197,6 +4658,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.13.0" @@ -4208,9 +4678,29 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" + +[[package]] +name = "jni" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6df18c2e3db7e453d3c6ac5b3e9d5182664d28788126d39b91f2d1e22b017ec" +dependencies = [ + "cesu8", + "combine 4.6.7", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "jobserver" @@ -4223,10 +4713,11 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.70" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -4236,6 +4727,21 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dbbfed4e59ba9750e15ba154fdfd9329cee16ff3df539c2666b70f58cc32105" +[[package]] +name = "jsonrpc-core" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb" +dependencies = [ + "futures", + "futures-executor", + "futures-util", + "log", + "serde", + "serde_derive", + "serde_json", +] + [[package]] name = "jsonwebtoken" version = "8.3.0" @@ -4260,7 +4766,7 @@ dependencies = [ "ecdsa 0.16.9", "elliptic-curve 0.13.8", "once_cell", - "sha2", + "sha2 0.10.8", "signature 2.2.0", ] @@ -4290,13 +4796,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55cb077ad656299f160924eb2912aa147d7339ea7d69e1b5517326fdcec3c1ca" dependencies = [ "ascii-canvas", - "bit-set", + "bit-set 0.5.3", "ena", "itertools 0.11.0", "lalrpop-util", "petgraph", "regex", - "regex-syntax 0.8.4", + "regex-syntax", "string_cache", "term", "tiny-keccak", @@ -4310,7 +4816,7 @@ version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "507460a910eb7b32ee961886ff48539633b788a36b65692b95f225b844c82553" dependencies = [ - "regex-automata 0.4.7", + "regex-automata", ] [[package]] @@ -4318,27 +4824,12 @@ name = "lazy_static" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" -dependencies = [ - "spin 0.9.8", -] - -[[package]] -name = "leb128" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.159" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" - -[[package]] -name = "libm" -version = "0.2.8" +version = "0.2.169" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" [[package]] name = "libredox" @@ -4346,104 +4837,93 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "libc", ] [[package]] -name = "linux-raw-sys" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" - -[[package]] -name = "lock_api" -version = "0.3.4" +name = "libsecp256k1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" +checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" dependencies = [ - "scopeguard", + "arrayref", + "base64 0.12.3", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "typenum", ] [[package]] -name = "lock_api" -version = "0.4.12" +name = "libsecp256k1-core" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" dependencies = [ - "autocfg", - "scopeguard", + "crunchy", + "digest 0.9.0", + "subtle", ] [[package]] -name = "log" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" - -[[package]] -name = "loupe" -version = "0.1.3" +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6a72dfa44fe15b5e76b94307eeb2ff995a8c5b283b55008940c02e0c5b634d" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" dependencies = [ - "loupe-derive", - "rustversion", + "libsecp256k1-core", ] [[package]] -name = "loupe-derive" -version = "0.1.3" +name = "libsecp256k1-gen-genmult" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0fbfc88337168279f2e9ae06e157cfed4efd3316e14dc96ed074d4f2e6c5952" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" dependencies = [ - "quote", - "syn 1.0.109", + "libsecp256k1-core", ] [[package]] -name = "lru" -version = "0.7.8" +name = "linux-raw-sys" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999beba7b6e8345721bd280141ed958096a2e4abdf74f67ff4ce49b4b54e47a" -dependencies = [ - "hashbrown 0.12.3", -] +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] -name = "lru" -version = "0.12.4" +name = "litemap" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ee39891760e7d94734f6f63fedc29a2e4a152f836120753a72503f09fcf904" -dependencies = [ - "hashbrown 0.14.5", -] +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" [[package]] -name = "mach" -version = "0.3.2" +name = "lock_api" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ - "libc", + "autocfg", + "scopeguard", ] [[package]] -name = "mach2" -version = "0.4.2" +name = "log" +version = "0.4.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" -dependencies = [ - "libc", -] +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" [[package]] -name = "matchers" -version = "0.1.0" +name = "lru" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" dependencies = [ - "regex-automata 0.1.10", + "hashbrown 0.15.2", ] [[package]] @@ -4462,25 +4942,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "memfd" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" -dependencies = [ - "rustix", -] - -[[package]] -name = "memmap" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "memmap2" version = "0.5.10" @@ -4490,24 +4951,6 @@ dependencies = [ "libc", ] -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - -[[package]] -name = "memoffset" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" -dependencies = [ - "autocfg", -] - [[package]] name = "memoffset" version = "0.9.1" @@ -4524,43 +4967,71 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" [[package]] -name = "mime" -version = "0.3.17" +name = "merlin" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" - +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" -version = "0.8.0" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" +checksum = "b8402cab7aefae129c6977bb0ff1b8fd9a04eb5b51efc50a70bea51cda0c7924" dependencies = [ "adler2", ] [[package]] name = "mio" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ - "hermit-abi 0.3.9", "libc", "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", ] [[package]] -name = "more-asserts" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" - -[[package]] -name = "multimap" -version = "0.8.3" +name = "mpl-token-metadata" +version = "5.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" +checksum = "989e6a3000e761d3b2d685662a3a9ee99826f9369fb033bd1bc7011b1cf02ed9" +dependencies = [ + "borsh 0.10.4", + "num-derive 0.3.3", + "num-traits", + "solana-program", + "thiserror 1.0.69", +] [[package]] name = "native-tls" @@ -4585,62 +5056,49 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35cbb989542587b47205e608324ddd391f0cee1c22b4b64ae49f458334b95907" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "serde", ] [[package]] -name = "near-cache" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b222afeb8daa3849626f0ce713806ce8be2b33e4aac54913dc7ef1db1fa83d7" -dependencies = [ - "lru 0.7.8", -] - -[[package]] -name = "near-chain-configs" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ac5ca8d44a732193603e117f57d490b8c29b1e8e756abb3f12d4eb19443cd1d" +name = "near-bridge-client" +version = "0.1.0" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ - "anyhow", - "bytesize", - "chrono", - "derive_more 0.99.18", - "near-config-utils 0.21.2", - "near-crypto 0.21.2", - "near-parameters 0.21.2", - "near-primitives 0.21.2", - "num-rational", - "once_cell", + "borsh 1.5.5", + "bridge-connector-common", + "derive_builder 0.20.2", + "near-contract-standards", + "near-crypto 0.28.0", + "near-jsonrpc-client", + "near-primitives 0.28.0", + "near-rpc-client", + "near-token", + "omni-types", "serde", "serde_json", - "sha2", - "smart-default", "tracing", ] [[package]] name = "near-chain-configs" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0784e55d9dee91ca830c6199d15ad18fc628f930a5d0946bb0949956026dd64f" +checksum = "4c1f312b5e1cdb6d6eb8a753de5798fe70fc2aa048b37d9a08a8d63f5623707d" dependencies = [ "anyhow", "bytesize", "chrono", "derive_more 0.99.18", - "near-config-utils 0.26.0", - "near-crypto 0.26.0", - "near-parameters 0.26.0", - "near-primitives 0.26.0", - "near-time 0.26.0", - "num-rational", - "once_cell", + "near-config-utils 0.28.0", + "near-crypto 0.28.0", + "near-parameters 0.28.0", + "near-primitives 0.28.0", + "near-time 0.28.0", + "num-rational 0.3.2", "serde", "serde_json", - "sha2", + "sha2 0.10.8", "smart-default", "time", "tracing", @@ -4648,152 +5106,104 @@ dependencies = [ [[package]] name = "near-config-utils" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1c9ff519efa8c778d341fa34971dee93e8adf4e8ae51feaefaa63bdf7e496a" -dependencies = [ - "anyhow", - "json_comments", - "thiserror", - "tracing", -] - -[[package]] -name = "near-config-utils" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b3db4ac2d4340caef06b6363c3fd16c0be1f70267908dfa53e2e6241649b0c" +checksum = "4e7b41110a20f1d82bb06f06e4800068c5ade6d8ff844787f8753bc2ce7b16f7" dependencies = [ "anyhow", "json_comments", - "thiserror", + "thiserror 1.0.69", "tracing", ] [[package]] name = "near-config-utils" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96c1682d13e9a8a62ea696395bf17afc4ed4b60535223251168217098c27a50" +checksum = "bedc768765dd8229a1d960c94f517317f40771a003e78916124784c7d6ea9d74" dependencies = [ "anyhow", "json_comments", - "thiserror", + "thiserror 2.0.11", "tracing", ] [[package]] name = "near-contract-standards" -version = "5.5.0" +version = "5.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3b985c4df43237b6ae533a6451cfa13de1f12f79f7d6254ba376f0ccd017286" +checksum = "6b8bc68a8c2bac5e44b38e322e41cadeefe33f766993bf067375b63cc860a73b" dependencies = [ "near-sdk", ] [[package]] name = "near-crypto" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d927e95742aea981b9fd60996fbeba3b61e90acafd54c2c3c2a4ed40065ff03" -dependencies = [ - "blake2 0.9.2", - "borsh 1.5.1", - "bs58 0.4.0", - "c2-chacha", - "curve25519-dalek", - "derive_more 0.99.18", - "ed25519-dalek", - "hex", - "near-account-id", - "near-config-utils 0.21.2", - "near-stdx 0.21.2", - "once_cell", - "primitive-types 0.10.1", - "rand 0.7.3", - "secp256k1", - "serde", - "serde_json", - "subtle", - "thiserror", -] - -[[package]] -name = "near-crypto" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9807fb257f7dda41383bb33e14cfd4a8840ffa7932cb972db9eabff19ce3bf4" +checksum = "43b17944c8d0f274c684227d79fcd46d583b1e36064b597c53a9ebec187a86f3" dependencies = [ - "blake2 0.10.6", - "borsh 1.5.1", + "blake2", + "borsh 1.5.5", "bs58 0.4.0", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "derive_more 0.99.18", - "ed25519-dalek", + "ed25519-dalek 2.1.1", "hex", "near-account-id", - "near-config-utils 0.23.0", - "near-stdx 0.23.0", - "once_cell", + "near-config-utils 0.27.0", + "near-schema-checker-lib 0.27.0", + "near-stdx 0.27.0", "primitive-types 0.10.1", "secp256k1", "serde", "serde_json", "subtle", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "near-crypto" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "907fdcefa3a42976cd6a8bf626fe2a87eb0d3b3ff144adc67cf32d53c9494b32" +checksum = "4374804fdd45ac84c9e7cc3183312c98560c5518d81e6d8e2d92b77587e5a9f3" dependencies = [ - "blake2 0.10.6", - "borsh 1.5.1", + "blake2", + "borsh 1.5.5", "bs58 0.4.0", - "curve25519-dalek", + "curve25519-dalek 4.1.3", "derive_more 0.99.18", - "ed25519-dalek", + "ed25519-dalek 2.1.1", "hex", "near-account-id", - "near-config-utils 0.26.0", - "near-stdx 0.26.0", - "once_cell", + "near-config-utils 0.28.0", + "near-schema-checker-lib 0.28.0", + "near-stdx 0.28.0", "primitive-types 0.10.1", "rand 0.8.5", "secp256k1", "serde", "serde_json", "subtle", - "thiserror", -] - -[[package]] -name = "near-fmt" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a9aa862014eeedb79df494b1b8080c5b51cd014f978183e08a7918a50350558" -dependencies = [ - "near-primitives-core 0.21.2", + "thiserror 2.0.11", ] [[package]] name = "near-fmt" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00ce363e4078b870775e2a5a5189feae22f0870ca673f6409b1974922dada0c4" +checksum = "b1eff0731995774d1498f017c968a3ebbfdadad84f556afea4b83679f6706ac9" dependencies = [ - "near-primitives-core 0.23.0", + "near-primitives-core 0.27.0", ] [[package]] name = "near-fmt" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a36518bfcf2177096d4298d9158ba698ffd6944cb035ecc0938b098337b933c" +checksum = "f14f36eee2dcb0ecd8febb9f198e0e1fa768c834db9e1982ad2acfcd04b45acf" dependencies = [ - "near-primitives-core 0.26.0", + "near-primitives-core 0.28.0", ] [[package]] @@ -4802,97 +5212,62 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180edcc7dc2fac41f93570d0c7b759c1b6d492f6ad093d749d644a40b4310a97" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "serde", ] [[package]] name = "near-indexer-primitives" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca85c74772338d1b8c8b8729ffa14dec44dacefa2ce367795f3de8846f2fdc06" -dependencies = [ - "near-primitives 0.23.0", - "serde", - "serde_json", -] - -[[package]] -name = "near-jsonrpc-client" -version = "0.9.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5225c0f97a61fd4534dee3169959dd91bb812be7d0573c1130a3cf86fd16b3e" +checksum = "ce9644d23252a0af5c5151b40d440d64339618f356d7ec19ddfd1ce004863a1d" dependencies = [ - "borsh 1.5.1", - "lazy_static", - "log", - "near-chain-configs 0.21.2", - "near-crypto 0.21.2", - "near-jsonrpc-primitives 0.21.2", - "near-primitives 0.21.2", - "reqwest 0.11.27", + "near-primitives 0.27.0", "serde", "serde_json", - "thiserror", ] [[package]] name = "near-jsonrpc-client" -version = "0.13.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "161fdc8f73fd9e19a97e05acb10e985ba89bd06e88543cdfd0c8dad0dac266c5" +checksum = "e66a0c4c47f2fbbfa11ea8317fce2288d70d4aa8231e77fd213721ffcc1c334f" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "lazy_static", "log", - "near-chain-configs 0.26.0", - "near-crypto 0.26.0", - "near-jsonrpc-primitives 0.26.0", - "near-primitives 0.26.0", - "reqwest 0.12.7", - "serde", - "serde_json", - "thiserror", -] - -[[package]] -name = "near-jsonrpc-primitives" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63ba17af2bc4208fdc4f6a8088842ad1f0165ac46d8259db6a2719f15d039e06" -dependencies = [ - "arbitrary", - "near-chain-configs 0.21.2", - "near-crypto 0.21.2", - "near-primitives 0.21.2", - "near-rpc-error-macro 0.21.2", + "near-chain-configs", + "near-crypto 0.28.0", + "near-jsonrpc-primitives", + "near-primitives 0.28.0", + "reqwest 0.12.12", "serde", "serde_json", - "thiserror", + "thiserror 2.0.11", ] [[package]] name = "near-jsonrpc-primitives" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b24bfd0fedef42e07daa79e463a7908e9abee4f6de3532e0e1dde45f6951657" +checksum = "90f445f809d1f227f0f61f38c14271635c0bc9a28a8f74a803a4fb25292d5ea7" dependencies = [ "arbitrary", - "near-chain-configs 0.26.0", - "near-crypto 0.26.0", - "near-primitives 0.26.0", - "near-rpc-error-macro 0.26.0", + "near-chain-configs", + "near-crypto 0.28.0", + "near-primitives 0.28.0", + "near-schema-checker-lib 0.28.0", "serde", "serde_json", - "thiserror", + "thiserror 2.0.11", "time", ] [[package]] name = "near-lake-framework" -version = "0.7.9" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cf514c5d43ac5e0309b80545583a35c09a5cf19f77894241e755e0223a8c50c" +checksum = "b784d25c9eae449a09f432c85bfc98ab4ea30af0242ec81b37acf357652641d7" dependencies = [ "anyhow", "async-stream", @@ -4905,9 +5280,10 @@ dependencies = [ "derive_builder 0.13.1", "futures", "near-indexer-primitives", + "reqwest 0.12.12", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "tracing", @@ -4916,148 +5292,62 @@ dependencies = [ [[package]] name = "near-light-client-on-eth" version = "0.1.0" -source = "git+https://github.com/Near-One/rainbow-bridge-sdk-rs?branch=omni-token-support#a9922eca00939901d0b649a655b29b19a2dc0994" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ - "ethereum-types", + "ethereum-types 0.14.1", "ethers", - "thiserror", - "tokio", -] - -[[package]] -name = "near-o11y" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b64d008979998e436ac5ad2e60326d1a7f2d30dcb5a22c1a4657159f7f284342" -dependencies = [ - "actix", - "base64 0.21.7", - "clap", - "near-crypto 0.21.2", - "near-fmt 0.21.2", - "near-primitives-core 0.21.2", - "once_cell", - "opentelemetry", - "opentelemetry-otlp", - "opentelemetry-semantic-conventions", - "prometheus", - "serde", - "serde_json", - "strum 0.24.1", - "thiserror", + "thiserror 2.0.11", "tokio", - "tracing", - "tracing-appender", - "tracing-opentelemetry", - "tracing-subscriber", -] - -[[package]] -name = "near-parameters" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a996c8654020f7eb3c11039cb39123fd4cd78654fde4c9e7c3fd6d092c84f342" -dependencies = [ - "assert_matches", - "borsh 1.5.1", - "enum-map", - "near-account-id", - "near-primitives-core 0.21.2", - "num-rational", - "serde", - "serde_repr", - "serde_yaml", - "strum 0.24.1", - "thiserror", ] [[package]] name = "near-parameters" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fddf39f5f729976a791d86e0e30a71ec4d8e8dcf58117c8694e7b22fb3f50ee6" +checksum = "0d4b4d014ac9f46baf0eeac7214567a08db97d5fd26157ea13edfbb8ffc5fd8c" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "enum-map", "near-account-id", - "near-primitives-core 0.23.0", - "num-rational", + "near-primitives-core 0.27.0", + "near-schema-checker-lib 0.27.0", + "num-rational 0.3.2", "serde", "serde_repr", "serde_yaml", "strum 0.24.1", - "thiserror", + "thiserror 1.0.69", ] [[package]] name = "near-parameters" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e41afea5c5e84763586bafc5f5e1b63d90ef4e5454e18406cab8df120178db8d" +checksum = "1279baa276725971d5e2b80c524d1aa42d5ad8bccf8901466fd579374cf58a14" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "enum-map", "near-account-id", - "near-primitives-core 0.26.0", - "num-rational", + "near-primitives-core 0.28.0", + "near-schema-checker-lib 0.28.0", + "num-rational 0.3.2", "serde", "serde_repr", "serde_yaml", "strum 0.24.1", - "thiserror", -] - -[[package]] -name = "near-primitives" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c880397c022d3b8f592cef18f85fd6e79181a2a04c31154afb1730f9fa21098" -dependencies = [ - "arbitrary", - "base64 0.21.7", - "borsh 1.5.1", - "bytesize", - "cfg-if 1.0.0", - "chrono", - "derive_more 0.99.18", - "easy-ext", - "enum-map", - "hex", - "near-crypto 0.21.2", - "near-fmt 0.21.2", - "near-o11y", - "near-parameters 0.21.2", - "near-primitives-core 0.21.2", - "near-rpc-error-macro 0.21.2", - "near-stdx 0.21.2", - "near-vm-runner", - "num-rational", - "once_cell", - "primitive-types 0.10.1", - "rand 0.8.5", - "rand_chacha 0.3.1", - "reed-solomon-erasure", - "serde", - "serde_json", - "serde_with", - "serde_yaml", - "sha3", - "smart-default", - "strum 0.24.1", - "thiserror", - "time", - "tracing", + "thiserror 2.0.11", ] [[package]] name = "near-primitives" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d58c175262923db9885ed0347e96ec3bcbec57825e3b6d7de03da220f5e14ef5" +checksum = "b45b4742a1817ff7d80dcf51c6facb8134478f8c4a6d717825cca2e4b834b17f" dependencies = [ "arbitrary", "base64 0.21.7", - "borsh 1.5.1", + "bitvec", + "borsh 1.5.5", "bytes", "bytesize", "cfg-if 1.0.0", @@ -5066,40 +5356,37 @@ dependencies = [ "easy-ext", "enum-map", "hex", - "itertools 0.10.5", - "near-crypto 0.23.0", - "near-fmt 0.23.0", - "near-parameters 0.23.0", - "near-primitives-core 0.23.0", - "near-rpc-error-macro 0.23.0", - "near-stdx 0.23.0", - "near-time 0.23.0", - "num-rational", - "once_cell", + "near-crypto 0.27.0", + "near-fmt 0.27.0", + "near-parameters 0.27.0", + "near-primitives-core 0.27.0", + "near-schema-checker-lib 0.27.0", + "near-stdx 0.27.0", + "near-time 0.27.0", + "num-rational 0.3.2", + "ordered-float", "primitive-types 0.10.1", - "rand 0.8.5", - "rand_chacha 0.3.1", - "reed-solomon-erasure", "serde", "serde_json", "serde_with", "sha3", "smart-default", "strum 0.24.1", - "thiserror", + "thiserror 1.0.69", "tracing", "zstd 0.13.2", ] [[package]] name = "near-primitives" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "165c2dc0fc20d839cfd7948d930ef5e8a4ed2b095abe83e0076ef5d4a5df58ed" +checksum = "6ab6ecc354e61c40b044c8b553c187383a587a1679d2e594f0b98ca58dbfb6e3" dependencies = [ "arbitrary", "base64 0.21.7", - "borsh 1.5.1", + "bitvec", + "borsh 1.5.5", "bytes", "bytesize", "cfg-if 1.0.0", @@ -5109,16 +5396,14 @@ dependencies = [ "enum-map", "hex", "itertools 0.10.5", - "near-crypto 0.26.0", - "near-fmt 0.26.0", - "near-parameters 0.26.0", - "near-primitives-core 0.26.0", - "near-rpc-error-macro 0.26.0", - "near-stdx 0.26.0", - "near-structs-checker-lib", - "near-time 0.26.0", - "num-rational", - "once_cell", + "near-crypto 0.28.0", + "near-fmt 0.28.0", + "near-parameters 0.28.0", + "near-primitives-core 0.28.0", + "near-schema-checker-lib 0.28.0", + "near-stdx 0.28.0", + "near-time 0.28.0", + "num-rational 0.3.2", "ordered-float", "primitive-types 0.10.1", "rand 0.8.5", @@ -5129,166 +5414,122 @@ dependencies = [ "sha3", "smart-default", "strum 0.24.1", - "thiserror", + "thiserror 2.0.11", "tracing", "zstd 0.13.2", ] [[package]] name = "near-primitives-core" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "082b1d3f6c7e273ec5cd9588e00bdbfc51be6cc9a3a7ec31fc899b4b7d2d3f9d" -dependencies = [ - "arbitrary", - "base64 0.21.7", - "borsh 1.5.1", - "bs58 0.4.0", - "derive_more 0.99.18", - "enum-map", - "near-account-id", - "num-rational", - "serde", - "serde_repr", - "serde_with", - "sha2", - "strum 0.24.1", - "thiserror", -] - -[[package]] -name = "near-primitives-core" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45de00d413f5bb890a3912f32fcd0974b2b0a975cc7874012e2c4c4fa7f28917" +checksum = "0de2c9da5de096b5cd4786a270900ff32a49d267e442a2e7f271fb23eb925c87" dependencies = [ "arbitrary", "base64 0.21.7", - "borsh 1.5.1", + "borsh 1.5.5", "bs58 0.4.0", "derive_more 0.99.18", "enum-map", "near-account-id", - "num-rational", + "near-schema-checker-lib 0.27.0", + "num-rational 0.3.2", "serde", "serde_repr", - "sha2", - "thiserror", + "sha2 0.10.8", + "thiserror 1.0.69", ] [[package]] name = "near-primitives-core" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51fd53f992168589c52022dd220c84a7f2ede92251631a06a3817e4b22af5836" +checksum = "d597af103bb7881d1fb9031fb126cfe6c1acb9c9a6c8296dca45b5b3beb0893d" dependencies = [ "arbitrary", "base64 0.21.7", - "borsh 1.5.1", + "borsh 1.5.5", "bs58 0.4.0", "derive_more 0.99.18", "enum-map", "near-account-id", - "near-structs-checker-lib", - "num-rational", + "near-schema-checker-lib 0.28.0", + "num-rational 0.3.2", "serde", "serde_repr", - "sha2", - "thiserror", + "sha2 0.10.8", + "thiserror 2.0.11", ] [[package]] name = "near-rpc-client" version = "0.1.0" -source = "git+https://github.com/Near-One/rainbow-bridge-sdk-rs?branch=omni-token-support#a9922eca00939901d0b649a655b29b19a2dc0994" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "lazy_static", - "near-crypto 0.21.2", - "near-jsonrpc-client 0.9.0", - "near-jsonrpc-primitives 0.21.2", - "near-primitives 0.21.2", - "reqwest 0.11.27", + "near-crypto 0.28.0", + "near-jsonrpc-client", + "near-jsonrpc-primitives", + "near-primitives 0.28.0", + "reqwest 0.12.12", "serde_json", - "thiserror", + "thiserror 2.0.11", "tokio", ] [[package]] -name = "near-rpc-error-core" -version = "0.21.2" +name = "near-schema-checker-core" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3610517a56329b7cce0c8c4cf2686fc4bbe0b155181b118acf20d2a301bf29b6" -dependencies = [ - "quote", - "serde", - "syn 2.0.77", -] +checksum = "03541d1dadd0b5dd0a2e1ae1fbe5735fdab79332ed556af36cdcbe50d4b8cf04" [[package]] -name = "near-rpc-error-core" -version = "0.23.0" +name = "near-schema-checker-core" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf41b149dcc1f5a35d6a96fbcd8c28c92625c05b52025a72ee7378c72bcd68ce" -dependencies = [ - "quote", - "serde", - "syn 2.0.77", -] +checksum = "a48405425eca34de98e680416310df33fdb75768a78481cc75b43172b2748613" [[package]] -name = "near-rpc-error-core" -version = "0.26.0" +name = "near-schema-checker-lib" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df598b0785a3e36d7e4fb73afcdf20536988b13d07cead71dfa777db4783e552" +checksum = "fa9050b0822d2c0dbd90d8c523fd74634f77c5be4ed3337e7010c0d986121982" dependencies = [ - "quote", - "serde", - "syn 2.0.77", + "near-schema-checker-core 0.27.0", + "near-schema-checker-macro 0.27.0", ] [[package]] -name = "near-rpc-error-macro" -version = "0.21.2" +name = "near-schema-checker-lib" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa8db2fd2a6dbab8c56908e983f41570341e391daddb0d4c430746c6971107e3" +checksum = "dfb720bf5cc256af687a9eb7a6e05baf3668dc75cfd43098e83ba1b3d3900f08" dependencies = [ - "fs2", - "near-rpc-error-core 0.21.2", - "serde", - "syn 2.0.77", + "near-schema-checker-core 0.28.0", + "near-schema-checker-macro 0.28.0", ] [[package]] -name = "near-rpc-error-macro" -version = "0.23.0" +name = "near-schema-checker-macro" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73c7f0f12f426792dd2c9d83df43d73c3b15d80f6e99e8d0e16ff3e024d0f9ba" -dependencies = [ - "near-rpc-error-core 0.23.0", - "serde", - "syn 2.0.77", -] +checksum = "a1bca8c93ff0ad17138c147323a07f036d11c9e1602e3bc2ac9d29c3cf78b89d" [[package]] -name = "near-rpc-error-macro" -version = "0.26.0" +name = "near-schema-checker-macro" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "647ef261df99ad877c08c97af2f10368c8b8cde0968250d3482a5a249e9f3926" -dependencies = [ - "near-rpc-error-core 0.26.0", - "serde", - "syn 2.0.77", -] +checksum = "b41a159cbf732acc0279febdde046d9036330a32a951796bce42f9529bce799d" [[package]] name = "near-sdk" -version = "5.5.0" +version = "5.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e296b02c85539c16659e171242d6c6bbea87eec7c9ef860d8dfd3fb3168a18a" +checksum = "befb9df6da1a6a0b6656388c0db76084867062a87f1cbc066c188a8e360b6463" dependencies = [ "base64 0.22.1", - "borsh 1.5.1", + "borsh 1.5.5", "bs58 0.5.1", "near-account-id", "near-gas", @@ -5303,9 +5544,9 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "5.5.0" +version = "5.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0adc79466aa556f56a995c0db34a933b32597ab92bbb0e526597118899c8bcaf" +checksum = "1268c4fc56bf53d70c200261fb8d57c6c1c6692243660f5f889c7fa4cf5771d2" dependencies = [ "Inflector", "darling 0.20.10", @@ -5315,48 +5556,20 @@ dependencies = [ "serde_json", "strum 0.26.3", "strum_macros 0.26.4", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "near-stdx" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73a697f311c110d0fabae6c8c49ab0a8eff0ec37df82cc860deba92156e77c43" - -[[package]] -name = "near-stdx" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29e1897481272eb144328abd51ca9f59b5b558e7a6dc6e2177c8c9bb18fbd818" +checksum = "427b4e4af5e32f682064772da8b1a7558b3f090e6151c8804cff24ee6c5c4966" [[package]] name = "near-stdx" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d5c43f6181873287ddaa25edcc2943d0f2d5da9588231516f2ed0549db1fbac" - -[[package]] -name = "near-structs-checker-core" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e53379bee876286de4ad31dc7f9fde8db12527c39d401d94f4d42cd021b8fce" - -[[package]] -name = "near-structs-checker-lib" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f984805f225c9b19681a124af7783078459e87ea63dde751b62e7cb404b1d6a" -dependencies = [ - "near-structs-checker-core", - "near-structs-checker-macro", -] - -[[package]] -name = "near-structs-checker-macro" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66319954983ae164fd0b714ae9d8b09edc26c74d9b3a1f51e564bb14720adb8e" +checksum = "7a91674768828a593f4bac4aeca9334c4b56fe19344a2ccf7bd795b2325f0b5e" [[package]] name = "near-sys" @@ -5366,26 +5579,22 @@ checksum = "dbf4ca5c805cb78700e10e43484902d8da05f25788db277999d209568aaf4c8e" [[package]] name = "near-time" -version = "0.23.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56db32f26b089441c1a7c5451f0d68637afa9d66f6d8f6a6f2d6c2f7953520a" +checksum = "66ade805f0ca8211f0ca2e6ea130f8ddd03bf70c9c93ebeabdddf37314e3f30b" dependencies = [ - "once_cell", "serde", "time", - "tokio", ] [[package]] name = "near-time" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1d37b864f04d9aebbc3b88ac63ba989d94f221de694bcc8af639cc284a89f64" +checksum = "c92bf9dffb11126e8db9a6a51bcb330c8584d0bab0d6d14c20cf2ff1f16d684d" dependencies = [ - "once_cell", "serde", "time", - "tokio", ] [[package]] @@ -5394,189 +5603,74 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd3e60aa26a74dc514b1b6408fdd06cefe2eb0ff029020956c1c6517594048fd" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "serde", ] [[package]] -name = "near-vm-compiler" -version = "0.21.2" +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nix" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d6c12977e11cbc33921c367a8ae949317d099025c96531702d3afed6e5f44ce" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" dependencies = [ - "enumset", - "finite-wasm", - "near-vm-types", - "near-vm-vm", - "rkyv", - "smallvec", - "target-lexicon 0.12.16", - "thiserror", - "tracing", - "wasmparser 0.99.0", + "bitflags 2.8.0", + "cfg-if 1.0.0", + "cfg_aliases", + "libc", + "memoffset", ] [[package]] -name = "near-vm-compiler-singlepass" -version = "0.21.2" +name = "no-std-compat" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f883363f5d05502035f0f6c0416078fdf535557dbffc1b4177aaab87bd448528" -dependencies = [ - "dynasm 2.0.0", - "dynasmrt 2.0.0", - "enumset", - "finite-wasm", - "lazy_static", - "memoffset 0.8.0", - "more-asserts", - "near-vm-compiler", - "near-vm-types", - "near-vm-vm", - "rayon", - "smallvec", - "strum 0.24.1", - "tracing", -] +checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c" [[package]] -name = "near-vm-engine" -version = "0.21.2" +name = "nom" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c758c7ad8d551eafefd783aa286c2fa95f4ad6e89efedf1bd5f8629efd529ac" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ - "backtrace", - "cfg-if 1.0.0", - "enumset", - "finite-wasm", - "lazy_static", - "memmap2", - "more-asserts", - "near-vm-compiler", - "near-vm-types", - "near-vm-vm", - "region", - "rkyv", - "rustc-demangle", - "target-lexicon 0.12.16", - "thiserror", - "tracing", + "memchr", + "minimal-lexical", ] [[package]] -name = "near-vm-runner" -version = "0.21.2" +name = "nonzero_ext" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20569500ca56e161c6ed81da9a24c7bf7b974c4238b2f08b2582113b66fa0060" -dependencies = [ - "anyhow", - "base64 0.21.7", - "borsh 1.5.1", - "ed25519-dalek", - "enum-map", - "finite-wasm", - "loupe", - "memoffset 0.8.0", - "near-cache", - "near-crypto 0.21.2", - "near-parameters 0.21.2", - "near-primitives-core 0.21.2", - "near-stdx 0.21.2", - "near-vm-compiler", - "near-vm-compiler-singlepass", - "near-vm-engine", - "near-vm-types", - "near-vm-vm", - "num-rational", - "once_cell", - "parity-wasm 0.41.0", - "parity-wasm 0.42.2", - "prefix-sum-vec", - "pwasm-utils", - "ripemd", - "serde", - "serde_repr", - "serde_with", - "sha2", - "sha3", - "strum 0.24.1", - "thiserror", - "tracing", - "wasm-encoder 0.27.0", - "wasmer-compiler-near", - "wasmer-compiler-singlepass-near", - "wasmer-engine-near", - "wasmer-engine-universal-near", - "wasmer-runtime-core-near", - "wasmer-runtime-near", - "wasmer-types-near", - "wasmer-vm-near", - "wasmparser 0.78.2", - "wasmtime", - "zeropool-bn", -] +checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" [[package]] -name = "near-vm-types" -version = "0.21.2" +name = "num" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5e894a085d2a9ed4e8f10ae8766c95fa77b5aa47d3c0e85b89af22d5b253491" +checksum = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36" dependencies = [ - "indexmap 1.9.3", + "num-bigint 0.2.6", + "num-complex", + "num-integer", + "num-iter", + "num-rational 0.2.4", "num-traits", - "rkyv", - "thiserror", -] - -[[package]] -name = "near-vm-vm" -version = "0.21.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c98a68706832b567cafa03375d40512bba8d95ae6d3b760f340b22a4b97893" -dependencies = [ - "backtrace", - "cc", - "cfg-if 1.0.0", - "finite-wasm", - "indexmap 1.9.3", - "libc", - "memoffset 0.8.0", - "more-asserts", - "near-vm-types", - "region", - "rkyv", - "thiserror", - "tracing", - "wasmparser 0.99.0", - "winapi", -] - -[[package]] -name = "new_debug_unreachable" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" - -[[package]] -name = "nix" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2e0b4f3320ed72aaedb9a5ac838690a8047c7b275da22711fddff4f8a14229" -dependencies = [ - "bitflags 1.3.2", - "cc", - "cfg-if 0.1.10", - "libc", - "void", ] [[package]] -name = "nu-ansi-term" -version = "0.46.0" +name = "num-bigint" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" dependencies = [ - "overload", - "winapi", + "autocfg", + "num-integer", + "num-traits", ] [[package]] @@ -5600,12 +5694,44 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-complex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" +dependencies = [ + "autocfg", + "num-traits", +] + [[package]] name = "num-conv" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +[[package]] +name = "num-derive" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", +] + [[package]] name = "num-integer" version = "0.1.46" @@ -5615,6 +5741,29 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-iter" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" +dependencies = [ + "autocfg", + "num-bigint 0.2.6", + "num-integer", + "num-traits", +] + [[package]] name = "num-rational" version = "0.3.2" @@ -5635,7 +5784,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", - "libm", ] [[package]] @@ -5666,48 +5814,72 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] -name = "object" -version = "0.32.2" +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + +[[package]] +name = "nybbles" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +checksum = "8983bb634df7248924ee0c4c3a749609b5abcb082c28fffe3254b3eb3602b307" dependencies = [ - "crc32fast", - "hashbrown 0.14.5", - "indexmap 2.5.0", - "memchr", + "alloy-rlp", + "const-hex", + "proptest", + "serde", + "smallvec", ] [[package]] name = "object" -version = "0.36.4" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "memchr", ] +[[package]] +name = "oid-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" +dependencies = [ + "asn1-rs", +] + [[package]] name = "omni-connector" version = "0.1.0" -source = "git+https://github.com/Near-One/rainbow-bridge-sdk-rs?branch=omni-token-support#a9922eca00939901d0b649a655b29b19a2dc0994" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "bridge-connector-common", - "derive_builder 0.20.1", + "derive_builder 0.20.2", "eth-proof", "ethers", + "evm-bridge-client", "hex", - "near-crypto 0.21.2", - "near-jsonrpc-client 0.9.0", - "near-primitives 0.21.2", + "near-bridge-client", + "near-contract-standards", + "near-crypto 0.28.0", + "near-jsonrpc-client", + "near-primitives 0.28.0", "near-rpc-client", + "near-token", "omni-types", "serde_json", + "sha3", + "solana-bridge-client", + "solana-sdk", "tracing", + "wormhole-bridge-client", ] [[package]] @@ -5716,51 +5888,65 @@ version = "0.1.0" dependencies = [ "alloy", "anyhow", + "borsh 1.5.5", + "bridge-connector-common", + "chrono", "clap", "dotenv", "eth-proof", - "ethereum-types", + "ethereum-types 0.14.1", + "evm-bridge-client", "futures", + "hex", "log", - "near-crypto 0.26.0", - "near-jsonrpc-client 0.13.0", - "near-jsonrpc-primitives 0.26.0", + "near-bridge-client", + "near-crypto 0.28.0", + "near-jsonrpc-client", + "near-jsonrpc-primitives", "near-lake-framework", - "near-primitives 0.26.0", + "near-primitives 0.28.0", "omni-connector", "omni-types", "pretty_env_logger", "redis", - "reqwest 0.12.7", + "reqwest 0.12.12", "serde", "serde_json", + "solana-bridge-client", + "solana-client", + "solana-sdk", + "solana-transaction-status", "tokio", "tokio-stream", "toml 0.8.19", + "wormhole-bridge-client", ] [[package]] name = "omni-types" version = "2.0.0" -source = "git+https://github.com/near-one/omni-bridge?rev=8371f5651be317b601703642903a136e8c8c4f13#8371f5651be317b601703642903a136e8c8c4f13" +source = "git+https://github.com/near-one/omni-bridge?rev=b0ca4e1fb6a34086076511d1162747b154fa8a55#b0ca4e1fb6a34086076511d1162747b154fa8a55" dependencies = [ "alloy-primitives", "alloy-rlp", "alloy-sol-macro", "alloy-sol-types", - "borsh 1.5.1", + "borsh 1.5.5", + "ethereum-types 0.15.1", "hex", "near-contract-standards", "near-sdk", + "rlp 0.6.1", "serde", + "sha3", "strum_macros 0.26.4", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "opaque-debug" @@ -5774,10 +5960,10 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "786393f80485445794f6043fd3138854dd109cc6c4bd1a6383db304c9ce9b9ce" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "auto_impl", "bytes", - "ethereum-types", + "ethereum-types 0.14.1", "open-fastrlp-derive", ] @@ -5795,11 +5981,11 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.66" +version = "0.10.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" +checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "cfg-if 1.0.0", "foreign-types", "libc", @@ -5816,73 +6002,35 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "openssl-probe" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" [[package]] -name = "openssl-sys" -version = "0.9.103" +name = "openssl-src" +version = "300.4.1+3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" +checksum = "faa4eac4138c62414b5622d1b31c5c304f34b406b013c079c2bbc652fdd6678c" dependencies = [ "cc", - "libc", - "pkg-config", - "vcpkg", -] - -[[package]] -name = "opentelemetry" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6105e89802af13fdf48c49d7646d3b533a70e536d818aae7e78ba0433d01acb8" -dependencies = [ - "async-trait", - "crossbeam-channel", - "futures-channel", - "futures-executor", - "futures-util", - "js-sys", - "lazy_static", - "percent-encoding", - "pin-project", - "rand 0.8.5", - "thiserror", - "tokio", - "tokio-stream", -] - -[[package]] -name = "opentelemetry-otlp" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d1a6ca9de4c8b00aa7f1a153bd76cb263287155cec642680d79d98706f3d28a" -dependencies = [ - "async-trait", - "futures", - "futures-util", - "http 0.2.12", - "opentelemetry", - "prost", - "thiserror", - "tokio", - "tonic", - "tonic-build", ] [[package]] -name = "opentelemetry-semantic-conventions" -version = "0.9.0" +name = "openssl-sys" +version = "0.9.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "985cc35d832d412224b2cffe2f9194b1b89b6aa5d0bef76d080dce09d90e62bd" +checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" dependencies = [ - "opentelemetry", + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", ] [[package]] @@ -5893,11 +6041,11 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "ordered-float" -version = "4.3.0" +version = "4.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d501f1a72f71d3c063a6bbc8f7271fa73aa09fe5d6283b6571e2ed176a2537" +checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951" dependencies = [ - "borsh 1.5.1", + "borsh 1.5.5", "num-traits", "rand 0.8.5", "serde", @@ -5905,15 +6053,9 @@ dependencies = [ [[package]] name = "outref" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" - -[[package]] -name = "overload" -version = "0.1.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e" [[package]] name = "p256" @@ -5923,17 +6065,7 @@ checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594" dependencies = [ "ecdsa 0.14.8", "elliptic-curve 0.12.3", - "sha2", -] - -[[package]] -name = "page_size" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eebde548fbbf1ea81a99b128872779c437752fb99f217c45245e1a61dcd9edcd" -dependencies = [ - "libc", - "winapi", + "sha2 0.10.8", ] [[package]] @@ -5942,7 +6074,7 @@ version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" dependencies = [ - "arrayvec 0.7.6", + "arrayvec", "bitvec", "byte-slice-cast", "impl-trait-for-tuples", @@ -5963,26 +6095,10 @@ dependencies = [ ] [[package]] -name = "parity-wasm" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc878dac00da22f8f61e7af3157988424567ab01d9920b962ef7dcbd7cd865" - -[[package]] -name = "parity-wasm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" - -[[package]] -name = "parking_lot" -version = "0.10.2" +name = "parking" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" -dependencies = [ - "lock_api 0.3.4", - "parking_lot_core 0.7.3", -] +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" [[package]] name = "parking_lot" @@ -5990,22 +6106,8 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ - "lock_api 0.4.12", - "parking_lot_core 0.9.10", -] - -[[package]] -name = "parking_lot_core" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b93f386bb233083c799e6e642a9d73db98c24a5deeb95ffc85bf281255dffc98" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi", - "libc", - "redox_syscall 0.1.57", - "smallvec", - "winapi", + "lock_api", + "parking_lot_core", ] [[package]] @@ -6016,7 +6118,7 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if 1.0.0", "libc", - "redox_syscall 0.5.6", + "redox_syscall", "smallvec", "windows-targets 0.52.6", ] @@ -6051,9 +6153,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ "digest 0.10.7", - "hmac", + "hmac 0.12.1", "password-hash", - "sha2", + "sha2 0.10.8", ] [[package]] @@ -6063,7 +6165,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ "digest 0.10.7", - "hmac", + "hmac 0.12.1", ] [[package]] @@ -6081,14 +6183,23 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +[[package]] +name = "percentage" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fd23b938276f14057220b707937bcb42fa76dda7560e57a2da30cb52d557937" +dependencies = [ + "num", +] + [[package]] name = "pest" -version = "2.7.13" +version = "2.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" +checksum = "8b7cafe60d6cf8e62e1b9b2ea516a089c008945bb5a275416789e7db0bc199dc" dependencies = [ "memchr", - "thiserror", + "thiserror 2.0.11", "ucd-trie", ] @@ -6099,7 +6210,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.5.0", + "indexmap 2.7.1", ] [[package]] @@ -6114,35 +6225,35 @@ dependencies = [ [[package]] name = "phf" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" dependencies = [ "phf_macros", - "phf_shared 0.11.2", + "phf_shared 0.11.3", ] [[package]] name = "phf_generator" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" dependencies = [ - "phf_shared 0.11.2", + "phf_shared 0.11.3", "rand 0.8.5", ] [[package]] name = "phf_macros" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" dependencies = [ "phf_generator", - "phf_shared 0.11.2", + "phf_shared 0.11.3", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -6151,43 +6262,43 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" dependencies = [ - "siphasher", + "siphasher 0.3.11", ] [[package]] name = "phf_shared" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" dependencies = [ - "siphasher", + "siphasher 1.0.1", ] [[package]] name = "pin-project" -version = "1.1.5" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +checksum = "1e2ec53ad785f4d35dac0adea7f7dc6f1bb277ad84a680c7afefeae05d1f5916" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.5" +version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +checksum = "d56a66c0c55993aa927429d0f8a0abfd74f084e4d9c192cffed01e418d83eefb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -6221,6 +6332,24 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" +[[package]] +name = "polyval" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" +dependencies = [ + "cfg-if 1.0.0", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "portable-atomic" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6" + [[package]] name = "powerfmt" version = "0.2.0" @@ -6242,12 +6371,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" -[[package]] -name = "prefix-sum-vec" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa06bd51638b6e76ac9ba9b6afb4164fa647bd2916d722f2623fbb6d1ed8bdba" - [[package]] name = "pretty_env_logger" version = "0.5.0" @@ -6260,12 +6383,12 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.22" +version = "0.2.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479cf940fbbb3426c32c5d5176f62ad57549a0bb84773423ba8be9d089f5faba" +checksum = "6924ced06e1f7dfe3fa48d57b9f74f55d8915f5036121bef647ef4b204895fac" dependencies = [ "proc-macro2", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -6275,7 +6398,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05e4722c697a58a99d5d06a08c30821d7c082a4632198de1eaa5a6c22ef42373" dependencies = [ "fixed-hash 0.7.0", - "uint", + "uint 0.9.5", ] [[package]] @@ -6286,10 +6409,22 @@ checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" dependencies = [ "fixed-hash 0.8.0", "impl-codec", - "impl-rlp", - "impl-serde", + "impl-rlp 0.3.0", + "impl-serde 0.4.0", "scale-info", - "uint", + "uint 0.9.5", +] + +[[package]] +name = "primitive-types" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d15600a7d856470b7d278b3fe0e311fe28c2526348549f8ef2ff7db3299c87f5" +dependencies = [ + "fixed-hash 0.8.0", + "impl-rlp 0.4.0", + "impl-serde 0.5.0", + "uint 0.10.0", ] [[package]] @@ -6311,205 +6446,144 @@ dependencies = [ ] [[package]] -name = "proc-macro-error" -version = "1.0.4" +name = "proc-macro-error-attr2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" dependencies = [ - "proc-macro-error-attr", "proc-macro2", "quote", - "syn 1.0.109", - "version_check", ] [[package]] -name = "proc-macro-error-attr" -version = "1.0.4" +name = "proc-macro-error2" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" dependencies = [ + "proc-macro-error-attr2", "proc-macro2", "quote", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr2" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" -dependencies = [ - "proc-macro2", - "quote", -] - -[[package]] -name = "proc-macro-error2" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" -dependencies = [ - "proc-macro-error-attr2", - "proc-macro2", - "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" dependencies = [ "unicode-ident", ] -[[package]] -name = "prometheus" -version = "0.13.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d33c28a30771f7f96db69893f78b857f7450d7e0237e9c8fc6427a81bae7ed1" -dependencies = [ - "cfg-if 1.0.0", - "fnv", - "lazy_static", - "memchr", - "parking_lot 0.12.3", - "protobuf", - "thiserror", -] - [[package]] name = "proptest" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c2511913b88df1637da85cc8d96ec8e43a3f8bb8ccb71ee1ac240d6f3df58d" +checksum = "14cae93065090804185d3b75f0bf93b8eeda30c7a9b4a33d3bdb3988d6229e50" dependencies = [ - "bit-set", - "bit-vec", - "bitflags 2.6.0", + "bit-set 0.8.0", + "bit-vec 0.8.0", + "bitflags 2.8.0", "lazy_static", "num-traits", "rand 0.8.5", "rand_chacha 0.3.1", "rand_xorshift", - "regex-syntax 0.8.4", + "regex-syntax", "rusty-fork", "tempfile", "unarray", ] [[package]] -name = "prost" -version = "0.9.0" +name = "qstring" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001" +checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" dependencies = [ - "bytes", - "prost-derive", + "percent-encoding", ] [[package]] -name = "prost-build" -version = "0.9.0" +name = "quanta" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" +checksum = "3bd1fe6824cea6538803de3ff1bc0cf3949024db3d43c9643024bfb33a807c0e" dependencies = [ - "bytes", - "heck 0.3.3", - "itertools 0.10.5", - "lazy_static", - "log", - "multimap", - "petgraph", - "prost", - "prost-types", - "regex", - "tempfile", - "which", + "crossbeam-utils", + "libc", + "once_cell", + "raw-cpuid", + "wasi 0.11.0+wasi-snapshot-preview1", + "web-sys", + "winapi", ] [[package]] -name = "prost-derive" -version = "0.9.0" +name = "quick-error" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe" -dependencies = [ - "anyhow", - "itertools 0.10.5", - "proc-macro2", - "quote", - "syn 1.0.109", -] +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] -name = "prost-types" -version = "0.9.0" +name = "quinn" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a" +checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" dependencies = [ "bytes", - "prost", -] - -[[package]] -name = "protobuf" -version = "2.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94" - -[[package]] -name = "psm" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa37f80ca58604976033fae9515a8a2989fc13797d953f7c04fb8fa36a11f205" -dependencies = [ - "cc", -] - -[[package]] -name = "ptr_meta" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" -dependencies = [ - "ptr_meta_derive", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.23.21", + "socket2", + "thiserror 2.0.11", + "tokio", + "tracing", ] [[package]] -name = "ptr_meta_derive" -version = "0.1.4" +name = "quinn-proto" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "bytes", + "getrandom 0.2.15", + "rand 0.8.5", + "ring 0.17.8", + "rustc-hash", + "rustls 0.23.21", + "rustls-pki-types", + "rustls-platform-verifier", + "slab", + "thiserror 2.0.11", + "tinyvec", + "tracing", + "web-time", ] [[package]] -name = "pwasm-utils" -version = "0.12.0" +name = "quinn-udp" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f7a12f176deee919f4ba55326ee17491c8b707d0987aed822682c821b660192" +checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" dependencies = [ - "byteorder", - "log", - "parity-wasm 0.41.0", + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.59.0", ] -[[package]] -name = "quick-error" -version = "1.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" - [[package]] name = "quote" -version = "1.0.37" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" dependencies = [ "proc-macro2", ] @@ -6602,6 +6676,15 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "raw-cpuid" +version = "11.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6928fa44c097620b706542d428957635951bade7143269085389d42c8a4927e" +dependencies = [ + "bitflags 2.8.0", +] + [[package]] name = "rayon" version = "1.10.0" @@ -6624,14 +6707,13 @@ dependencies = [ [[package]] name = "redis" -version = "0.27.2" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7e86f5670bd8b028edfb240f0616cad620705b31ec389d55e4f3da2c38dcd48" +checksum = "e37ec3fd44bea2ec947ba6cc7634d7999a6590aca7c35827c250bc0de502bda6" dependencies = [ "arc-swap", - "async-trait", "bytes", - "combine", + "combine 4.6.7", "futures-util", "itoa", "num-bigint 0.4.6", @@ -6641,23 +6723,17 @@ dependencies = [ "sha1_smol", "socket2", "tokio", - "tokio-util 0.7.12", + "tokio-util", "url", ] [[package]] name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - -[[package]] -name = "redox_syscall" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "355ae415ccd3a04315d3f8246e86d67689ea74d88d915576e1589a351062a13b" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", ] [[package]] @@ -6668,61 +6744,30 @@ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom 0.2.15", "libredox", - "thiserror", -] - -[[package]] -name = "reed-solomon-erasure" -version = "4.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a415a013dd7c5d4221382329a5a3482566da675737494935cbbbcdec04662f9d" -dependencies = [ - "smallvec", -] - -[[package]] -name = "regalloc2" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" -dependencies = [ - "hashbrown 0.13.2", - "log", - "rustc-hash 1.1.0", - "slice-group-by", - "smallvec", + "thiserror 1.0.69", ] [[package]] name = "regex" -version = "1.10.6" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", + "regex-automata", + "regex-syntax", ] [[package]] name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax 0.6.29", -] - -[[package]] -name = "regex-automata" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.4", + "regex-syntax", ] [[package]] @@ -6733,36 +6778,9 @@ checksum = "53a49587ad06b26609c52e423de037e7f57f20d53535d66e08c695f347df952a" [[package]] name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - -[[package]] -name = "regex-syntax" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" - -[[package]] -name = "region" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6b6ebd13bc009aef9cd476c1310d49ac354d36e240cf1bd753290f3dc7199a7" -dependencies = [ - "bitflags 1.3.2", - "libc", - "mach2", - "windows-sys 0.52.0", -] - -[[package]] -name = "rend" -version = "0.4.2" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" -dependencies = [ - "bytecheck", -] +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "reqwest" @@ -6770,6 +6788,7 @@ version = "0.11.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" dependencies = [ + "async-compression", "base64 0.21.7", "bytes", "encoding_rs", @@ -6778,14 +6797,13 @@ dependencies = [ "h2 0.3.26", "http 0.2.12", "http-body 0.4.6", - "hyper 0.14.30", + "hyper 0.14.32", "hyper-rustls 0.24.2", - "hyper-tls 0.5.0", "ipnet", "js-sys", "log", "mime", - "native-tls", + "mime_guess", "once_cell", "percent-encoding", "pin-project-lite", @@ -6797,8 +6815,8 @@ dependencies = [ "sync_wrapper 0.1.2", "system-configuration 0.5.1", "tokio", - "tokio-native-tls", "tokio-rustls 0.24.1", + "tokio-util", "tower-service", "url", "wasm-bindgen", @@ -6810,22 +6828,22 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.12.7" +version = "0.12.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8f4955649ef5c38cc7f9e8aa41761d48fb9677197daea9984dc54f56aad5e63" +checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da" dependencies = [ "base64 0.22.1", "bytes", "encoding_rs", "futures-core", "futures-util", - "h2 0.4.6", - "http 1.1.0", + "h2 0.4.7", + "http 1.2.0", "http-body 1.0.1", "http-body-util", - "hyper 1.4.1", - "hyper-rustls 0.27.3", - "hyper-tls 0.6.0", + "hyper 1.5.2", + "hyper-rustls 0.27.5", + "hyper-tls", "hyper-util", "ipnet", "js-sys", @@ -6835,14 +6853,15 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "rustls-pemfile 2.1.3", + "rustls-pemfile 2.2.0", "serde", "serde_json", "serde_urlencoded", - "sync_wrapper 1.0.1", + "sync_wrapper 1.0.2", "system-configuration 0.6.1", "tokio", "tokio-native-tls", + "tower", "tower-service", "url", "wasm-bindgen", @@ -6851,6 +6870,21 @@ dependencies = [ "windows-registry", ] +[[package]] +name = "reqwest-middleware" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a735987236a8e238bf0296c7e351b999c188ccc11477f311b82b55c93984216" +dependencies = [ + "anyhow", + "async-trait", + "http 0.2.12", + "reqwest 0.11.27", + "serde", + "task-local-extensions", + "thiserror 1.0.69", +] + [[package]] name = "rfc6979" version = "0.3.1" @@ -6858,7 +6892,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" dependencies = [ "crypto-bigint 0.4.9", - "hmac", + "hmac 0.12.1", "zeroize", ] @@ -6868,7 +6902,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ - "hmac", + "hmac 0.12.1", "subtle", ] @@ -6912,42 +6946,23 @@ dependencies = [ ] [[package]] -name = "rkyv" -version = "0.7.45" +name = "rlp" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b" +checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" dependencies = [ - "bitvec", - "bytecheck", "bytes", - "hashbrown 0.12.3", - "ptr_meta", - "rend", - "rkyv_derive", - "seahash", - "tinyvec", - "uuid 1.10.0", -] - -[[package]] -name = "rkyv_derive" -version = "0.7.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "503d1d27590a2b0a3a4ca4c94755aa2875657196ecbf401a42eff41d7de532c0" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "rlp-derive", + "rustc-hex", ] [[package]] name = "rlp" -version = "0.5.2" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" +checksum = "fa24e92bb2a83198bb76d661a71df9f7076b8c420b8696e4d3d97d50d94479e3" dependencies = [ "bytes", - "rlp-derive", "rustc-hex", ] @@ -6979,7 +6994,7 @@ dependencies = [ "primitive-types 0.12.2", "proptest", "rand 0.8.5", - "rlp", + "rlp 0.5.2", "ruint-macro", "serde", "valuable", @@ -7000,15 +7015,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - -[[package]] -name = "rustc-hash" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" [[package]] name = "rustc-hex" @@ -7016,15 +7025,6 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver 0.9.0", -] - [[package]] name = "rustc_version" version = "0.3.3" @@ -7040,20 +7040,29 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" dependencies = [ - "semver 1.0.23", + "semver 1.0.25", +] + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", ] [[package]] name = "rustix" -version = "0.38.37" +version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ - "bitflags 2.6.0", - "errno 0.3.9", + "bitflags 2.8.0", + "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -7070,9 +7079,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.13" +version = "0.23.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8" +checksum = "8f287924602bf649d949c63dc8ac8b235fa5387d394020705b80c4eb597ce5b8" dependencies = [ "once_cell", "ring 0.17.8", @@ -7094,6 +7103,19 @@ dependencies = [ "security-framework", ] +[[package]] +name = "rustls-native-certs" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5" +dependencies = [ + "openssl-probe", + "rustls-pemfile 2.2.0", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pemfile" version = "1.0.4" @@ -7105,19 +7127,48 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.1.3" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" dependencies = [ - "base64 0.22.1", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.8.0" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" +dependencies = [ + "web-time", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0" +checksum = "a4c7dc240fec5517e6c4eab3310438636cfe6391dfc345ba013109909a90d136" +dependencies = [ + "core-foundation", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls 0.23.21", + "rustls-native-certs 0.7.3", + "rustls-platform-verifier-android", + "rustls-webpki 0.102.8", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" [[package]] name = "rustls-webpki" @@ -7142,9 +7193,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.17" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" [[package]] name = "rusty-fork" @@ -7170,7 +7221,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213" dependencies = [ - "cipher 0.4.4", + "cipher", ] [[package]] @@ -7184,53 +7235,70 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.3" +version = "2.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" +checksum = "346a3b32eba2640d17a9cb5927056b08f3de90f65b72fe09402c2ad07d684d0b" dependencies = [ "cfg-if 1.0.0", - "derive_more 0.99.18", + "derive_more 1.0.0", "parity-scale-codec", "scale-info-derive", ] [[package]] name = "scale-info-derive" -version = "2.11.3" +version = "2.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" +checksum = "c6630024bf739e2179b91fb424b28898baf819414262c5d376677dbff1fe7ebf" dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.96", ] [[package]] name = "schannel" -version = "0.1.24" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "schnellru" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "356285bbf17bea63d9e52e96bd18f039672ac92b55b8cb997d6162a2a37d1649" +dependencies = [ + "ahash", + "cfg-if 1.0.0", + "hashbrown 0.13.2", +] + [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "scroll" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da" + [[package]] name = "scrypt" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f9e24d2b632954ded8ab2ef9fea0a0c769ea56ea98bddbafbad22caeeadf45d" dependencies = [ - "hmac", + "hmac 0.12.1", "pbkdf2 0.11.0", "salsa20", - "sha2", + "sha2 0.10.8", ] [[package]] @@ -7243,12 +7311,6 @@ dependencies = [ "untrusted 0.9.0", ] -[[package]] -name = "seahash" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" - [[package]] name = "sec1" version = "0.3.0" @@ -7257,7 +7319,7 @@ checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" dependencies = [ "base16ct 0.1.1", "der 0.6.1", - "generic-array 0.14.7", + "generic-array", "pkcs8 0.9.0", "subtle", "zeroize", @@ -7271,7 +7333,7 @@ checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct 0.2.0", "der 0.7.9", - "generic-array 0.14.7", + "generic-array", "pkcs8 0.10.2", "subtle", "zeroize", @@ -7302,61 +7364,47 @@ version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "core-foundation-sys", "libc", + "num-bigint 0.4.6", "security-framework-sys", ] [[package]] name = "security-framework-sys" -version = "2.12.0" +version = "2.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" dependencies = [ "core-foundation-sys", "libc", ] -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser 0.7.0", -] - [[package]] name = "semver" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ - "semver-parser 0.10.2", + "semver-parser", ] [[package]] name = "semver" -version = "1.0.23" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" +checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" dependencies = [ "serde", ] [[package]] name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - -[[package]] -name = "semver-parser" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +checksum = "9900206b54a3527fdc7b8a938bffd94a568bac4f4aa8113b209df75a09c0dec2" dependencies = [ "pest", ] @@ -7375,23 +7423,13 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" -version = "1.0.210" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" dependencies = [ "serde_derive", ] -[[package]] -name = "serde-bench" -version = "0.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d733da87e79faaac25616e33d26299a41143fd4cd42746cbb0e91d8feea243fd" -dependencies = [ - "byteorder", - "serde", -] - [[package]] name = "serde_bytes" version = "0.11.15" @@ -7403,20 +7441,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.217" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "930cfb6e6abf99298aaad7d29abbef7a9999a9a8806a40088f55f0dcec03146b" dependencies = [ "itoa", "memchr", @@ -7432,7 +7470,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -7458,15 +7496,15 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.9.0" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cecfa94848272156ea67b2b1a53f20fc7bc638c4a46d2f8abde08f05f4b857" +checksum = "d6b6f7f2fcb69f747921f79f3926bd1e203fce4fef62c268dd3abfb6d86029aa" dependencies = [ "base64 0.22.1", "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.5.0", + "indexmap 2.7.1", "serde", "serde_derive", "serde_json", @@ -7476,14 +7514,14 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.9.0" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8fee4991ef4f274617a51ad4af30519438dacb2f56ac773b08a1922ff743350" +checksum = "8d00caa5193a3c8362ac2b73be6b9e768aa5a4b2f721d8f4b339600c3cb51f8e" dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -7492,7 +7530,7 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "itoa", "ryu", "serde", @@ -7516,6 +7554,19 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if 1.0.0", + "cpufeatures", + "digest 0.9.0", + "opaque-debug", +] + [[package]] name = "sha2" version = "0.10.8" @@ -7547,15 +7598,6 @@ dependencies = [ "cfg-if 1.0.0", ] -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - [[package]] name = "shlex" version = "1.3.0" @@ -7591,21 +7633,15 @@ dependencies = [ "rand_core 0.6.4", ] -[[package]] -name = "simdutf8" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" - [[package]] name = "simple_asn1" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" +checksum = "297f631f50729c8c99b84667867963997ec0b50f32b2a7dbcab828ef0541e8bb" dependencies = [ "num-bigint 0.4.6", "num-traits", - "thiserror", + "thiserror 2.0.11", "time", ] @@ -7615,6 +7651,12 @@ version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" +[[package]] +name = "siphasher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" + [[package]] name = "slab" version = "0.4.9" @@ -7624,17 +7666,14 @@ dependencies = [ "autocfg", ] -[[package]] -name = "slice-group-by" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" - [[package]] name = "smallvec" version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +dependencies = [ + "serde", +] [[package]] name = "smart-default" @@ -7649,234 +7688,2078 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.7" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" dependencies = [ "libc", "windows-sys 0.52.0", ] [[package]] -name = "solang-parser" -version = "0.3.3" +name = "solana-account" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c425ce1c59f4b154717592f0bdf4715c3a1d55058883622d3157e1f0908a5b26" +checksum = "8557558040a6bf34101ea0ded1647bafc21c2a9ea0913034fa6794a304ba6791" dependencies = [ - "itertools 0.11.0", - "lalrpop", - "lalrpop-util", - "phf", - "thiserror", - "unicode-xid", + "bincode", + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-program", ] [[package]] -name = "spin" -version = "0.5.2" +name = "solana-account-decoder" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +checksum = "2353887223851d07071e790a6508d8df61032a5e01bb6f990d7abe7f58dde3aa" +dependencies = [ + "Inflector", + "base64 0.22.1", + "bincode", + "bs58 0.5.1", + "bv", + "lazy_static", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-config-program", + "solana-sdk", + "spl-token 6.0.0", + "spl-token-2022 4.0.0", + "spl-token-group-interface 0.3.0", + "spl-token-metadata-interface 0.4.0", + "thiserror 1.0.69", + "zstd 0.13.2", +] [[package]] -name = "spin" -version = "0.9.8" +name = "solana-account-decoder-client-types" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +checksum = "435bb722c456f78dd3ac33a1b4641c46d5d41de5b072422ae5b0dc9f486c0928" +dependencies = [ + "base64 0.22.1", + "bs58 0.5.1", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-pubkey", + "zstd 0.13.2", +] [[package]] -name = "spki" -version = "0.6.0" +name = "solana-account-info" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" +checksum = "abeb32e8dbead1f920a919d8c781fe058cf657313aa237566fa812d2288f2aab" dependencies = [ - "base64ct", - "der 0.6.1", + "bincode", + "serde", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", ] [[package]] -name = "spki" -version = "0.7.3" +name = "solana-atomic-u64" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +checksum = "70ceb7242711300b8d67933a3cd1c9b2cd7c4e98de529356ecddf340c98c457d" dependencies = [ - "base64ct", - "der 0.7.9", + "parking_lot", ] [[package]] -name = "sptr" -version = "0.3.2" +name = "solana-bincode" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" +checksum = "e154567b6846f4721c713afdd14c56892800fb940793ef529a68d6db6cf1beef" +dependencies = [ + "bincode", + "serde", + "solana-instruction", +] [[package]] -name = "stable_deref_trait" -version = "1.2.0" +name = "solana-bn254" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +checksum = "44c42ad3282999ef7df859e7ed03a6e6a4187ff4931f9814ddcd0477dba2be15" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff 0.4.2", + "ark-serialize 0.4.2", + "bytemuck", + "solana-program", + "thiserror 1.0.69", +] [[package]] -name = "static_assertions" -version = "1.1.0" +name = "solana-borsh" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +checksum = "5b2428671e99134c97990d2b466c33779f785376b7934e6bddb635929c54208f" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.5", +] [[package]] -name = "string_cache" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" +name = "solana-bridge-client" +version = "0.1.0" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" dependencies = [ - "new_debug_unreachable", - "once_cell", - "parking_lot 0.12.3", - "phf_shared 0.10.0", - "precomputed-hash", + "borsh 1.5.5", + "derive_builder 0.20.2", + "mpl-token-metadata", + "sha2 0.10.8", + "solana-client", + "solana-sdk", + "spl-associated-token-account 6.0.0", + "spl-token 7.0.0", + "thiserror 2.0.11", ] [[package]] -name = "strsim" -version = "0.10.0" +name = "solana-client" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "73d3a06371c4b63efa8d2dde9890b658891943807c529144eac6d2345538077d" +dependencies = [ + "async-trait", + "bincode", + "dashmap 5.5.3", + "futures", + "futures-util", + "indexmap 2.7.1", + "indicatif", + "log", + "quinn", + "rayon", + "solana-connection-cache", + "solana-measure", + "solana-pubsub-client", + "solana-quic-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-rpc-client-nonce-utils", + "solana-sdk", + "solana-streamer", + "solana-thin-client", + "solana-tpu-client", + "solana-udp-client", + "thiserror 1.0.69", + "tokio", +] [[package]] -name = "strsim" -version = "0.11.1" +name = "solana-clock" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +checksum = "1d639043cefcd061c31a342364adcb204406ebbd91ef86dfde88b74352b688cf" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] [[package]] -name = "strum" -version = "0.24.1" +name = "solana-compute-budget" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +checksum = "a6c885192c0afe6f7beac13e1c8eb51ce36bc60e8f0b7631f9cbf72d8ca6aa03" dependencies = [ - "strum_macros 0.24.3", + "solana-sdk", ] [[package]] -name = "strum" -version = "0.26.3" +name = "solana-config-program" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +checksum = "056ce3a28f5e22677e0db1fc976294041571c4d471a752bfc9f1b06f8828c488" dependencies = [ - "strum_macros 0.26.4", + "bincode", + "chrono", + "serde", + "serde_derive", + "solana-log-collector", + "solana-program-runtime", + "solana-sdk", + "solana-short-vec", ] [[package]] -name = "strum_macros" -version = "0.24.3" +name = "solana-connection-cache" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" +checksum = "52912ec1eb7b40af2a81269d0bb2cefba01f303383cba32067d0dc5020556e38" dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "rustversion", - "syn 1.0.109", + "async-trait", + "bincode", + "crossbeam-channel", + "futures-util", + "indexmap 2.7.1", + "log", + "rand 0.8.5", + "rayon", + "solana-measure", + "solana-metrics", + "solana-sdk", + "thiserror 1.0.69", + "tokio", ] [[package]] -name = "strum_macros" -version = "0.26.4" +name = "solana-cpi" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +checksum = "5b87b387931f41422be3d82190e29c8414bbb4e8517dd94afb838012260d7a60" dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "rustversion", - "syn 2.0.77", + "solana-account-info", + "solana-define-syscall", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-stable-layout", ] [[package]] -name = "subtle" -version = "2.6.1" +name = "solana-curve25519" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +checksum = "71b91a6c7db7874ab0721ba2ad49c34614c6af5bfa1a02f18ee471d28416b1fc" +dependencies = [ + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "solana-program", + "thiserror 1.0.69", +] [[package]] -name = "svm-rs" -version = "0.3.5" +name = "solana-decode-error" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11297baafe5fa0c99d5722458eac6a5e25c01eb1b8e5cd137f54079093daa7a4" +checksum = "64b93163519c0b7419d3ac206207594d4b43e00267496996b898345ff3b31ed1" dependencies = [ - "dirs", - "fs2", - "hex", - "once_cell", - "reqwest 0.11.27", - "semver 1.0.23", - "serde", - "serde_json", - "sha2", - "thiserror", - "url", - "zip", + "num-traits", ] [[package]] -name = "syn" -version = "1.0.109" +name = "solana-define-syscall" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] +checksum = "88d1b215d56d29f71782df6880d71b5a46cf9a4035046414488c7de6906899ba" [[package]] -name = "syn" -version = "2.0.77" +name = "solana-derivation-path" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +checksum = "a31edf5d285689b469471a1a0200f0c9196be7df155860bd83dfd735439172bd" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "derivation-path", + "qstring", + "uriparse", ] [[package]] -name = "syn-solidity" -version = "0.8.5" +name = "solana-epoch-schedule" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ab661c8148c2261222a4d641ad5477fd4bea79406a99056096a0b41b35617a5" +checksum = "88aa6588f178c32258eb616ef1428f2c86beae370d6486843313f6320e055190" dependencies = [ - "paste", - "proc-macro2", - "quote", - "syn 2.0.77", + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", ] [[package]] -name = "syn_derive" -version = "0.1.8" +name = "solana-feature-set" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b" +checksum = "1736c5f6cb5d65e684a1daf425dd1479849e0793ffe877feedb602642ee5deb0" dependencies = [ - "proc-macro-error", - "proc-macro2", - "quote", - "syn 2.0.77", + "lazy_static", + "solana-clock", + "solana-epoch-schedule", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", ] [[package]] -name = "sync_wrapper" -version = "0.1.2" +name = "solana-fee-calculator" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +checksum = "d2ef28a47c3fcfd4ef8b19468531e32a431f6589f359cdbb927fc5e7fb859413" +dependencies = [ + "log", + "serde", + "serde_derive", +] [[package]] -name = "sync_wrapper" -version = "1.0.1" +name = "solana-hash" +version = "2.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" +checksum = "ad865143587f6173d0bd15ec66b749fd2682c865467ffd2bb725705e33f0c8fa" +dependencies = [ + "borsh 1.5.5", + "bs58 0.5.1", + "bytemuck", + "bytemuck_derive", + "js-sys", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-sanitize", + "wasm-bindgen", +] + +[[package]] +name = "solana-inflation" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a205cb59db7fa1afc89ad5d960ac5afb997ba231cdc943451811746c84b7776d" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-inline-spl" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a47d825ad3f7d3eede036d2c3b11eb385912eb3e01872bc98901802f942eab8a" +dependencies = [ + "bytemuck", + "solana-pubkey", +] + +[[package]] +name = "solana-instruction" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af795f16bef3ae76e97978e35724ea88d2b9eba67a9e233adf48ccefeaa6e6b8" +dependencies = [ + "bincode", + "borsh 1.5.5", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-define-syscall", + "solana-pubkey", + "wasm-bindgen", +] + +[[package]] +name = "solana-last-restart-slot" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f88c8171167f1fd4ef1e5a083fd0e8f35ac60aacd1ffe163a1ef7053a28524be" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-log-collector" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7922b879e4c03e00bf6ed21b1f8579ac71f6743d95c22306bd1ba8994e4f90e8" +dependencies = [ + "log", +] + +[[package]] +name = "solana-measure" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13208871c6d000a0c7b7546ae605934f5eda3745f80f6926da1b6097c08f2de2" + +[[package]] +name = "solana-metrics" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "555986e126fe32ad94217c5d87c94f79b7f13abf96ef9d8de20dacbcf1c407e5" +dependencies = [ + "crossbeam-channel", + "gethostname", + "lazy_static", + "log", + "reqwest 0.11.27", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-msg" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aefec09cb47fb67b8f8c448e03491d4148c1749f27dcb74d1cfae6337695f94" +dependencies = [ + "solana-define-syscall", +] + +[[package]] +name = "solana-native-token" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81520eff9f776e62faa36a07250fcc467e54ca31ca9c87ab566a88b2f2691c05" + +[[package]] +name = "solana-net-utils" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b409b10fee2d0cbb2a721fa3ce7d7f6f32e0d3ae1f5807b1d6bc91d75970c72" +dependencies = [ + "bincode", + "crossbeam-channel", + "log", + "nix", + "rand 0.8.5", + "serde", + "serde_derive", + "socket2", + "solana-sdk", + "tokio", + "url", +] + +[[package]] +name = "solana-packet" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1f8c6e8a2cb0839ef49d8c6e34e89a5bc5ed97da855bf49528bae8c57eb39ed" +dependencies = [ + "bincode", + "bitflags 2.8.0", + "cfg_eval", + "serde", + "serde_derive", + "serde_with", +] + +[[package]] +name = "solana-perf" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fa10dd492bee710d0e231a3ff48c52d6e24f5339d97decaf1f0ddbde996f834" +dependencies = [ + "ahash", + "bincode", + "bv", + "caps", + "curve25519-dalek 4.1.3", + "dlopen2", + "fnv", + "lazy_static", + "libc", + "log", + "nix", + "rand 0.8.5", + "rayon", + "serde", + "solana-metrics", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-short-vec", + "solana-vote-program", +] + +[[package]] +name = "solana-precompile-error" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83c01aefc15c451b4f573c1e4552f34ee8af53db285ee2f7ece17ef8b70d6c0a" +dependencies = [ + "num-traits", + "solana-decode-error", +] + +[[package]] +name = "solana-program" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d3a72c5eafd348bc5e5b731b40ad8dfde3023632e34e5ca9e52a655266ffae7" +dependencies = [ + "base64 0.22.1", + "bincode", + "bitflags 2.8.0", + "blake3", + "borsh 0.10.4", + "borsh 1.5.5", + "bs58 0.5.1", + "bv", + "bytemuck", + "bytemuck_derive", + "console_error_panic_hook", + "console_log", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "lazy_static", + "log", + "memoffset", + "num-bigint 0.4.6", + "num-derive 0.4.2", + "num-traits", + "parking_lot", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "sha2 0.10.8", + "sha3", + "solana-account-info", + "solana-atomic-u64", + "solana-bincode", + "solana-borsh", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-define-syscall", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-last-restart-slot", + "solana-msg", + "solana-native-token", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-program-option", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-macro", + "solana-secp256k1-recover", + "solana-serde-varint", + "solana-serialize-utils", + "solana-sha256-hasher", + "solana-short-vec", + "solana-slot-hashes", + "solana-slot-history", + "solana-stable-layout", + "solana-sysvar-id", + "solana-transaction-error", + "thiserror 1.0.69", + "wasm-bindgen", +] + +[[package]] +name = "solana-program-entrypoint" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "269ccabf1f3aff504a97aca0f8b72e6d3e1b7fb621cc18a2d21a28b17d52e112" +dependencies = [ + "solana-account-info", + "solana-msg", + "solana-program-error", + "solana-pubkey", +] + +[[package]] +name = "solana-program-error" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02f7a81eeb5c3d44b2953c46215af390ca2951a0b8069836ffbf3d368b012b35" +dependencies = [ + "borsh 1.5.5", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-pubkey", +] + +[[package]] +name = "solana-program-memory" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1debcdd14cee4dbc2761c1e267e8888188fb469956df0e2144cd6e2962c2532a" +dependencies = [ + "num-traits", + "solana-define-syscall", +] + +[[package]] +name = "solana-program-option" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b49ce216cce72eb0607610d2040b1979d999fe204f73ae2a669c2f4480d3c0" + +[[package]] +name = "solana-program-pack" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88ff47a5dd9881187e85a45641405d9d1c57e9ebdc813e2ff74a1aa1f1ec9042" +dependencies = [ + "solana-program-error", +] + +[[package]] +name = "solana-program-runtime" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d4647f4dfed31aaa307d8c4924fec3fc981e88dd340eec45273afa84f3d01a4" +dependencies = [ + "base64 0.22.1", + "bincode", + "enum-iterator", + "itertools 0.12.1", + "libc", + "log", + "num-derive 0.4.2", + "num-traits", + "percentage", + "rand 0.8.5", + "serde", + "solana-compute-budget", + "solana-feature-set", + "solana-log-collector", + "solana-measure", + "solana-metrics", + "solana-sdk", + "solana-timings", + "solana-type-overrides", + "solana-vote", + "solana_rbpf", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-pubkey" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02016ff5f98314c886e219c023bffba188ad8d70dec007247bd7a9da50423ac0" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.5", + "bs58 0.5.1", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-decode-error", + "solana-define-syscall", + "solana-sanitize", + "solana-sha256-hasher", + "wasm-bindgen", +] + +[[package]] +name = "solana-pubsub-client" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af610bc169985b016e1f66bc9f0cc19559c9da5fb6ee0b8984ea69b1302e6619" +dependencies = [ + "crossbeam-channel", + "futures-util", + "log", + "reqwest 0.11.27", + "semver 1.0.25", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-rpc-client-api", + "solana-sdk", + "thiserror 1.0.69", + "tokio", + "tokio-stream", + "tokio-tungstenite 0.20.1", + "tungstenite 0.20.1", + "url", +] + +[[package]] +name = "solana-quic-client" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fa9aed25872d9af165499a9a2167d489ceb832d5e6eaa1aafa982286f62e06d" +dependencies = [ + "async-lock", + "async-trait", + "futures", + "itertools 0.12.1", + "lazy_static", + "log", + "quinn", + "quinn-proto", + "rustls 0.23.21", + "solana-connection-cache", + "solana-measure", + "solana-metrics", + "solana-net-utils", + "solana-rpc-client-api", + "solana-sdk", + "solana-streamer", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-rayon-threadlimit" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d0ea6818ea3ae2067b18ba8f82577de19094d7abbb918ffb5cf5d7b0a6ffe88" +dependencies = [ + "lazy_static", + "num_cpus", +] + +[[package]] +name = "solana-rent" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "544fab48aacd3b9c740ef5206f30e8a44ef8bfe5676a9d7b1eed385265ec1265" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-rpc-client" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ff2d4562f555ed4ca406d88483f2b8ad0248e41ea19721227ffb5c64529bff2" +dependencies = [ + "async-trait", + "base64 0.22.1", + "bincode", + "bs58 0.5.1", + "indicatif", + "log", + "reqwest 0.11.27", + "reqwest-middleware", + "semver 1.0.25", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-rpc-client-api", + "solana-sdk", + "solana-transaction-status-client-types", + "solana-version", + "solana-vote-program", + "tokio", +] + +[[package]] +name = "solana-rpc-client-api" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a50f6a180457400c9843980f1dd5db32b1153c295005ca85edb84bb7625acae" +dependencies = [ + "anyhow", + "base64 0.22.1", + "bs58 0.5.1", + "jsonrpc-core", + "reqwest 0.11.27", + "reqwest-middleware", + "semver 1.0.25", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-inline-spl", + "solana-sdk", + "solana-transaction-status-client-types", + "solana-version", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-rpc-client-nonce-utils" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fa3be2840d3b8ebbdab96f62f59e0a9e6f9ba10f27b96a7d80d6897b15ff21a" +dependencies = [ + "solana-rpc-client", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-sanitize" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9677531dd4098d078515c66d69a04bfa0389d364a5c768561c719030b368a9db" + +[[package]] +name = "solana-sdk" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf93cfd5f5af23b59789eba96b6a6afd92a3a18a3fc6652259bfa1f32743caf4" +dependencies = [ + "bincode", + "bitflags 2.8.0", + "borsh 1.5.5", + "bs58 0.5.1", + "bytemuck", + "bytemuck_derive", + "byteorder", + "chrono", + "digest 0.10.7", + "ed25519-dalek 1.0.1", + "ed25519-dalek-bip32", + "getrandom 0.1.16", + "hmac 0.12.1", + "itertools 0.12.1", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive 0.4.2", + "num-traits", + "num_enum", + "pbkdf2 0.11.0", + "rand 0.7.3", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "serde_with", + "sha2 0.10.8", + "sha3", + "siphasher 0.3.11", + "solana-account", + "solana-bn254", + "solana-decode-error", + "solana-derivation-path", + "solana-feature-set", + "solana-inflation", + "solana-instruction", + "solana-native-token", + "solana-packet", + "solana-precompile-error", + "solana-program", + "solana-program-memory", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-macro", + "solana-secp256k1-recover", + "solana-secp256r1-program", + "solana-serde-varint", + "solana-short-vec", + "solana-signature", + "solana-transaction-error", + "thiserror 1.0.69", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk-macro" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bded40f70accbe97030e5f7163017605e51a2631425229ec2b0a4339bd1163a" +dependencies = [ + "bs58 0.5.1", + "proc-macro2", + "quote", + "syn 2.0.96", +] + +[[package]] +name = "solana-secp256k1-recover" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee25b962814dec3c141e8182474046bae231f0521ed62c9bfdfb6722999ddc18" +dependencies = [ + "borsh 1.5.5", + "libsecp256k1", + "solana-define-syscall", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-secp256r1-program" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ec53eff8861ab398b9ca4da7ef8c8da5d4170f8ea26557fc1581638b56326c1" +dependencies = [ + "bytemuck", + "openssl", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-pubkey", +] + +[[package]] +name = "solana-security-txt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" + +[[package]] +name = "solana-serde-varint" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ff77c37cb995cc53ce1a4b78e5e9961957098677de6fdc6a4783ed37a8b0fcd" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-serialize-utils" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57a10eb6e3177828145beaba85d352a4dbc47798fd95c5f86145e1a732684d6d" +dependencies = [ + "solana-instruction", + "solana-pubkey", + "solana-sanitize", +] + +[[package]] +name = "solana-sha256-hasher" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98c4229293979bf8bda7db2243ae75e13695341375577a4c44b07e4f0b7a5d9e" +dependencies = [ + "sha2 0.10.8", + "solana-define-syscall", + "solana-hash", +] + +[[package]] +name = "solana-short-vec" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a2a88d56e6771329970059bcab0fde9a719c8edae173fb26b2c08e427495a" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-signature" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1e8a078879d8430cdfbee8e3c1cdf17da74c19d304662580fc463dc91e17699" +dependencies = [ + "bs58 0.5.1", + "ed25519-dalek 1.0.1", + "generic-array", + "rand 0.8.5", + "serde", + "serde_derive", + "solana-sanitize", +] + +[[package]] +name = "solana-slot-hashes" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88fa2a6e60f2d7016cf95429e0f60cf4a04d4eed167abd1a5f8b08cbda695893" +dependencies = [ + "serde", + "serde_derive", + "solana-hash", + "solana-sysvar-id", +] + +[[package]] +name = "solana-slot-history" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fa66272c308c39a3ce1ca2a9c422de4bdedc28cfe706d6f2c68727bb626eb7" +dependencies = [ + "bv", + "serde", + "serde_derive", + "solana-sysvar-id", +] + +[[package]] +name = "solana-stable-layout" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2243571ebf8c0c9915c7e71b17469e173c6755fa58af8eb529db3dda84e3e19a" +dependencies = [ + "solana-instruction", + "solana-pubkey", +] + +[[package]] +name = "solana-streamer" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fddc2b38975c25199456ff46307c484affb459b84aedefe9618aece2a92326a9" +dependencies = [ + "async-channel", + "bytes", + "crossbeam-channel", + "dashmap 5.5.3", + "futures", + "futures-util", + "governor", + "histogram", + "indexmap 2.7.1", + "itertools 0.12.1", + "libc", + "log", + "nix", + "pem", + "percentage", + "quinn", + "quinn-proto", + "rand 0.8.5", + "rustls 0.23.21", + "smallvec", + "socket2", + "solana-measure", + "solana-metrics", + "solana-perf", + "solana-sdk", + "solana-transaction-metrics-tracker", + "thiserror 1.0.69", + "tokio", + "tokio-util", + "x509-parser", +] + +[[package]] +name = "solana-sysvar-id" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5822b63dd59f124e4920df8d87640a288bb40f4016fd275d028fee0b94a5a51e" +dependencies = [ + "solana-pubkey", +] + +[[package]] +name = "solana-thin-client" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1915dcb44dd5763a30aa32a687057e6a3b16781eb9f5db2800548990560272c3" +dependencies = [ + "bincode", + "log", + "rayon", + "solana-connection-cache", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", +] + +[[package]] +name = "solana-timings" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "088c4507c8fd4f81c4039d78baf1ea7d68c8b80b2a973ba60838d33d2f7e752d" +dependencies = [ + "eager", + "enum-iterator", + "solana-sdk", +] + +[[package]] +name = "solana-tpu-client" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f944cd29eb540ca7e8df03c4e6043d5b8042eadab29b1848245c847a7c7c555" +dependencies = [ + "async-trait", + "bincode", + "futures-util", + "indexmap 2.7.1", + "indicatif", + "log", + "rayon", + "solana-connection-cache", + "solana-measure", + "solana-pubsub-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-transaction-error" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bd92caae17b4b828864b85cecf6dba6a87ad0ac433606b8bbd58334c74d0251" +dependencies = [ + "serde", + "serde_derive", + "solana-instruction", + "solana-sanitize", +] + +[[package]] +name = "solana-transaction-metrics-tracker" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "551dc5dad276919d24287e14e410759e93b801f2ca47dd9ad6c75eb49af26607" +dependencies = [ + "base64 0.22.1", + "bincode", + "lazy_static", + "log", + "rand 0.8.5", + "solana-perf", + "solana-sdk", + "solana-short-vec", +] + +[[package]] +name = "solana-transaction-status" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f73cd35a23e9d6e289a9bf7bf32c1e972bb88bbb5ec434f43b445286b6ea3079" +dependencies = [ + "Inflector", + "base64 0.22.1", + "bincode", + "borsh 1.5.5", + "bs58 0.5.1", + "lazy_static", + "log", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-sdk", + "solana-transaction-status-client-types", + "spl-associated-token-account 4.0.0", + "spl-memo 5.0.0", + "spl-token 6.0.0", + "spl-token-2022 4.0.0", + "spl-token-group-interface 0.3.0", + "spl-token-metadata-interface 0.4.0", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-transaction-status-client-types" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897c0015c246cb9b98cfaee15921c89cd7c1503bd368e9a3fd9336c17cd6be25" +dependencies = [ + "base64 0.22.1", + "bincode", + "bs58 0.5.1", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-sdk", + "solana-signature", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-type-overrides" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f8e0b8916e7d78678428ca5d669950f6259ac332eab953ed0c8c2c88eebd3d2" +dependencies = [ + "lazy_static", + "rand 0.8.5", +] + +[[package]] +name = "solana-udp-client" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f5c6096b155fb1fb73d03fec2264a9671cbe208f71c4c32521ee9c979d91c75" +dependencies = [ + "async-trait", + "solana-connection-cache", + "solana-net-utils", + "solana-sdk", + "solana-streamer", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-version" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae093290bf86006e323e883b9df845e4bdf84f23c37067cfa9837918ed04c87d" +dependencies = [ + "semver 1.0.25", + "serde", + "serde_derive", + "solana-feature-set", + "solana-sanitize", + "solana-serde-varint", +] + +[[package]] +name = "solana-vote" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8421891f95fe3b8291205e37043396c0fb26c2896cc94d53b153e1ba180992fa" +dependencies = [ + "itertools 0.12.1", + "log", + "serde", + "serde_derive", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-vote-program" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcf72a022dbb24dcfe1588aa09679042866eb7c0796ea479500ebe9355a7017f" +dependencies = [ + "bincode", + "log", + "num-derive 0.4.2", + "num-traits", + "serde", + "serde_derive", + "solana-feature-set", + "solana-metrics", + "solana-program", + "solana-program-runtime", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-zk-sdk" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c19f36d9e5227b4d94e651501a1ab15d58480d93e03d8340cc8593758e50530" +dependencies = [ + "aes-gcm-siv", + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "itertools 0.12.1", + "js-sys", + "lazy_static", + "merlin", + "num-derive 0.4.2", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "serde_json", + "sha3", + "solana-derivation-path", + "solana-program", + "solana-sdk", + "subtle", + "thiserror 1.0.69", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "solana-zk-token-sdk" +version = "2.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b8cc94d7eddf6606c22504889b6528734db56ed3c2f651641453d13c9b233d7" +dependencies = [ + "aes-gcm-siv", + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "byteorder", + "curve25519-dalek 4.1.3", + "itertools 0.12.1", + "lazy_static", + "merlin", + "num-derive 0.4.2", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "serde_json", + "sha3", + "solana-curve25519", + "solana-derivation-path", + "solana-program", + "solana-sdk", + "subtle", + "thiserror 1.0.69", + "zeroize", +] + +[[package]] +name = "solana_rbpf" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c1941b5ef0c3ce8f2ac5dd984d0fb1a97423c4ff2a02eec81e3913f02e2ac2b" +dependencies = [ + "byteorder", + "combine 3.8.1", + "hash32", + "libc", + "log", + "rand 0.8.5", + "rustc-demangle", + "scroll", + "thiserror 1.0.69", + "winapi", +] + +[[package]] +name = "solang-parser" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c425ce1c59f4b154717592f0bdf4715c3a1d55058883622d3157e1f0908a5b26" +dependencies = [ + "itertools 0.11.0", + "lalrpop", + "lalrpop-util", + "phf", + "thiserror 1.0.69", + "unicode-xid", +] + +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" + +[[package]] +name = "spinning_top" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spki" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" +dependencies = [ + "base64ct", + "der 0.6.1", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der 0.7.9", +] + +[[package]] +name = "spl-associated-token-account" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68034596cf4804880d265f834af1ff2f821ad5293e41fa0f8f59086c181fc38e" +dependencies = [ + "assert_matches", + "borsh 1.5.5", + "num-derive 0.4.2", + "num-traits", + "solana-program", + "spl-token 6.0.0", + "spl-token-2022 4.0.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-associated-token-account" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76fee7d65013667032d499adc3c895e286197a35a0d3a4643c80e7fd3e9969e3" +dependencies = [ + "borsh 1.5.5", + "num-derive 0.4.2", + "num-traits", + "solana-program", + "spl-associated-token-account-client", + "spl-token 7.0.0", + "spl-token-2022 6.0.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-associated-token-account-client" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f8349dbcbe575f354f9a533a21f272f3eb3808a49e2fdc1c34393b88ba76cb" +dependencies = [ + "solana-instruction", + "solana-pubkey", +] + +[[package]] +name = "spl-discriminator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a38ea8b6dedb7065887f12d62ed62c1743aa70749e8558f963609793f6fb12bc" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator-derive", +] + +[[package]] +name = "spl-discriminator" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7398da23554a31660f17718164e31d31900956054f54f52d5ec1be51cb4f4b3" +dependencies = [ + "bytemuck", + "solana-program-error", + "solana-sha256-hasher", + "spl-discriminator-derive", +] + +[[package]] +name = "spl-discriminator-derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9e8418ea6269dcfb01c712f0444d2c75542c04448b480e87de59d2865edc750" +dependencies = [ + "quote", + "spl-discriminator-syn", + "syn 2.0.96", +] + +[[package]] +name = "spl-discriminator-syn" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c1f05593b7ca9eac7caca309720f2eafb96355e037e6d373b909a80fe7b69b9" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.96", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-elgamal-registry" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce0f668975d2b0536e8a8fd60e56a05c467f06021dae037f1d0cfed0de2e231d" +dependencies = [ + "bytemuck", + "solana-program", + "solana-zk-sdk", + "spl-pod 0.5.0", + "spl-token-confidential-transfer-proof-extraction", +] + +[[package]] +name = "spl-memo" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0dba2f2bb6419523405d21c301a32c9f9568354d4742552e7972af801f4bdb3" +dependencies = [ + "solana-program", +] + +[[package]] +name = "spl-memo" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f09647c0974e33366efeb83b8e2daebb329f0420149e74d3a4bd2c08cf9f7cb" +dependencies = [ + "solana-account-info", + "solana-instruction", + "solana-msg", + "solana-program-entrypoint", + "solana-program-error", + "solana-pubkey", +] + +[[package]] +name = "spl-pod" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c704c88fc457fa649ba3aabe195c79d885c3f26709efaddc453c8de352c90b87" +dependencies = [ + "borsh 1.5.5", + "bytemuck", + "bytemuck_derive", + "solana-program", + "solana-zk-token-sdk", + "spl-program-error 0.5.0", +] + +[[package]] +name = "spl-pod" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a7d5950993e1ff2680bd989df298eeb169367fb2f9deeef1f132de6e4e8016" +dependencies = [ + "borsh 1.5.5", + "bytemuck", + "bytemuck_derive", + "num-derive 0.4.2", + "num-traits", + "solana-decode-error", + "solana-msg", + "solana-program-error", + "solana-program-option", + "solana-pubkey", + "solana-zk-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-program-error" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7b28bed65356558133751cc32b48a7a5ddfc59ac4e941314630bbed1ac10532" +dependencies = [ + "num-derive 0.4.2", + "num-traits", + "solana-program", + "spl-program-error-derive", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-program-error" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d39b5186f42b2b50168029d81e58e800b690877ef0b30580d107659250da1d1" +dependencies = [ + "num-derive 0.4.2", + "num-traits", + "solana-program", + "spl-program-error-derive", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-program-error-derive" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d375dd76c517836353e093c2dbb490938ff72821ab568b545fd30ab3256b3e" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.96", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37a75a5f0fcc58126693ed78a17042e9dc53f07e357d6be91789f7d62aff61a4" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator 0.3.0", + "spl-pod 0.3.1", + "spl-program-error 0.5.0", + "spl-type-length-value 0.5.0", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd99ff1e9ed2ab86e3fd582850d47a739fec1be9f4661cba1782d3a0f26805f3" +dependencies = [ + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "solana-account-info", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator 0.4.1", + "spl-pod 0.5.0", + "spl-program-error 0.6.0", + "spl-type-length-value 0.7.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a0f06ac7f23dc0984931b1fe309468f14ea58e32660439c1cef19456f5d0e3" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed320a6c934128d4f7e54fe00e16b8aeaecf215799d060ae14f93378da6dc834" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-2022" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c10f3483e48679619c76598d4e4aebb955bc49b0a5cc63323afbf44135c9bf" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum", + "solana-program", + "solana-security-txt", + "solana-zk-token-sdk", + "spl-memo 5.0.0", + "spl-pod 0.3.1", + "spl-token 6.0.0", + "spl-token-group-interface 0.3.0", + "spl-token-metadata-interface 0.4.0", + "spl-transfer-hook-interface 0.7.0", + "spl-type-length-value 0.5.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-2022" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b27f7405010ef816587c944536b0eafbcc35206ab6ba0f2ca79f1d28e488f4f" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "num_enum", + "solana-program", + "solana-security-txt", + "solana-zk-sdk", + "spl-elgamal-registry", + "spl-memo 6.0.0", + "spl-pod 0.5.0", + "spl-token 7.0.0", + "spl-token-confidential-transfer-ciphertext-arithmetic", + "spl-token-confidential-transfer-proof-extraction", + "spl-token-confidential-transfer-proof-generation", + "spl-token-group-interface 0.5.0", + "spl-token-metadata-interface 0.6.0", + "spl-transfer-hook-interface 0.9.0", + "spl-type-length-value 0.7.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-confidential-transfer-ciphertext-arithmetic" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170378693c5516090f6d37ae9bad2b9b6125069be68d9acd4865bbe9fc8499fd" +dependencies = [ + "base64 0.22.1", + "bytemuck", + "solana-curve25519", + "solana-zk-sdk", +] + +[[package]] +name = "spl-token-confidential-transfer-proof-extraction" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eff2d6a445a147c9d6dd77b8301b1e116c8299601794b558eafa409b342faf96" +dependencies = [ + "bytemuck", + "solana-curve25519", + "solana-program", + "solana-zk-sdk", + "spl-pod 0.5.0", + "thiserror 2.0.11", +] + +[[package]] +name = "spl-token-confidential-transfer-proof-generation" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8627184782eec1894de8ea26129c61303f1f0adeed65c20e0b10bc584f09356d" +dependencies = [ + "curve25519-dalek 4.1.3", + "solana-zk-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-group-interface" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df8752b85a5ecc1d9f3a43bce3dd9a6a053673aacf5deb513d1cbb88d3534ffd" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator 0.3.0", + "spl-pod 0.3.1", + "spl-program-error 0.5.0", +] + +[[package]] +name = "spl-token-group-interface" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d595667ed72dbfed8c251708f406d7c2814a3fa6879893b323d56a10bedfc799" +dependencies = [ + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator 0.4.1", + "spl-pod 0.5.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-metadata-interface" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6c2318ddff97e006ed9b1291ebec0750a78547f870f62a69c56fe3b46a5d8fc" +dependencies = [ + "borsh 1.5.5", + "solana-program", + "spl-discriminator 0.3.0", + "spl-pod 0.3.1", + "spl-program-error 0.5.0", + "spl-type-length-value 0.5.0", +] + +[[package]] +name = "spl-token-metadata-interface" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfb9c89dbc877abd735f05547dcf9e6e12c00c11d6d74d8817506cab4c99fdbb" +dependencies = [ + "borsh 1.5.5", + "num-derive 0.4.2", + "num-traits", + "solana-borsh", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator 0.4.1", + "spl-pod 0.5.0", + "spl-type-length-value 0.7.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a110f33d941275d9f868b96daaa993f1e73b6806cc8836e43075b4d3ad8338a7" +dependencies = [ + "arrayref", + "bytemuck", + "solana-program", + "spl-discriminator 0.3.0", + "spl-pod 0.3.1", + "spl-program-error 0.5.0", + "spl-tlv-account-resolution 0.7.0", + "spl-type-length-value 0.5.0", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aa7503d52107c33c88e845e1351565050362c2314036ddf19a36cd25137c043" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "solana-account-info", + "solana-cpi", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-program-error", + "solana-pubkey", + "spl-discriminator 0.4.1", + "spl-pod 0.5.0", + "spl-program-error 0.6.0", + "spl-tlv-account-resolution 0.9.0", + "spl-type-length-value 0.7.0", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-type-length-value" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdcd73ec187bc409464c60759232e309f83b52a18a9c5610bf281c9c6432918c" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator 0.3.0", + "spl-pod 0.3.1", + "spl-program-error 0.5.0", +] + +[[package]] +name = "spl-type-length-value" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba70ef09b13af616a4c987797870122863cba03acc4284f226a4473b043923f9" +dependencies = [ + "bytemuck", + "num-derive 0.4.2", + "num-traits", + "solana-account-info", + "solana-decode-error", + "solana-msg", + "solana-program-error", + "spl-discriminator 0.4.1", + "spl-pod 0.5.0", + "thiserror 1.0.69", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "string_cache" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "parking_lot", + "phf_shared 0.10.0", + "precomputed-hash", +] + +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +dependencies = [ + "strum_macros 0.24.3", +] + +[[package]] +name = "strum" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +dependencies = [ + "strum_macros 0.26.4", +] + +[[package]] +name = "strum_macros" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "rustversion", + "syn 1.0.109", +] + +[[package]] +name = "strum_macros" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.96", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "svm-rs" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11297baafe5fa0c99d5722458eac6a5e25c01eb1b8e5cd137f54079093daa7a4" +dependencies = [ + "dirs", + "fs2", + "hex", + "once_cell", + "reqwest 0.11.27", + "semver 1.0.25", + "serde", + "serde_json", + "sha2 0.10.8", + "thiserror 1.0.69", + "url", + "zip", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.96" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5d0adab1ae378d7f53bdebc67a39f1f151407ef230f0ce2883572f5d8985c80" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn-solidity" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b84e4d83a0a6704561302b917a932484e1cae2d8c6354c64be8b7bac1c1fe057" +dependencies = [ + "paste", + "proc-macro2", + "quote", + "syn 2.0.96", +] + +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" dependencies = [ "futures-core", ] +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "unicode-xid", +] + +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -7894,7 +9777,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "system-configuration-sys 0.6.0", ] @@ -7926,25 +9809,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] -name = "target-lexicon" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab0e7238dcc7b40a7be719a25365910f6807bd864f4cce6b2e6b873658e2b19d" - -[[package]] -name = "target-lexicon" -version = "0.12.16" +name = "task-local-extensions" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" +checksum = "ba323866e5d033818e3240feeb9f7db2c4296674e4d9e16b97b7bf8f490434e8" +dependencies = [ + "pin-utils", +] [[package]] name = "tempfile" -version = "3.12.0" +version = "3.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" +checksum = "9a8a559c81686f576e8cd0290cd2a24a2a9ad80c98b3478856500fcbd7acd704" dependencies = [ "cfg-if 1.0.0", "fastrand", + "getrandom 0.2.15", "once_cell", "rustix", "windows-sys 0.59.0", @@ -7972,32 +9853,42 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" dependencies = [ - "thiserror-impl", + "thiserror-impl 2.0.11", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] -name = "thread_local" -version = "1.1.8" +name = "thiserror-impl" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" dependencies = [ - "cfg-if 1.0.0", - "once_cell", + "proc-macro2", + "quote", + "syn 2.0.96", ] [[package]] @@ -8011,9 +9902,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.36" +version = "0.3.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" +checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" dependencies = [ "deranged", "itoa", @@ -8032,9 +9923,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" +checksum = "2834e6017e3e5e4b9834939793b282bc03b37a3336245fa820e35e233e2a85de" dependencies = [ "num-conv", "time-core", @@ -8049,11 +9940,21 @@ dependencies = [ "crunchy", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" dependencies = [ "tinyvec_macros", ] @@ -8066,15 +9967,15 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.40.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" dependencies = [ "backtrace", "bytes", "libc", "mio", - "parking_lot 0.12.3", + "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2", @@ -8082,25 +9983,15 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "tokio-io-timeout" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" -dependencies = [ - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-macros" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] @@ -8125,25 +10016,24 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.26.0" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" +checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" dependencies = [ - "rustls 0.23.13", - "rustls-pki-types", + "rustls 0.23.21", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.16" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" dependencies = [ "futures-core", "pin-project-lite", "tokio", - "tokio-util 0.7.12", + "tokio-util", ] [[package]] @@ -8163,39 +10053,25 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.23.1" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6989540ced10490aaf14e6bad2e3d33728a2813310a0c71d1574304c49631cd" +checksum = "edc5f74e248dc973e0dbb7b74c7e0d6fcc301c694ff50049504004ef4d0cdcd9" dependencies = [ "futures-util", "log", - "rustls 0.23.13", + "rustls 0.23.21", "rustls-pki-types", "tokio", - "tokio-rustls 0.26.0", - "tungstenite 0.23.0", - "webpki-roots 0.26.6", -] - -[[package]] -name = "tokio-util" -version = "0.6.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507" -dependencies = [ - "bytes", - "futures-core", - "futures-sink", - "log", - "pin-project-lite", - "tokio", + "tokio-rustls 0.26.1", + "tungstenite 0.24.0", + "webpki-roots 0.26.7", ] [[package]] name = "tokio-util" -version = "0.7.12" +version = "0.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" dependencies = [ "bytes", "futures-core", @@ -8240,86 +10116,24 @@ version = "0.22.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "serde", "serde_spanned", "toml_datetime", "winnow", ] -[[package]] -name = "tonic" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff08f4649d10a70ffa3522ca559031285d8e421d727ac85c60825761818f5d0a" -dependencies = [ - "async-stream", - "async-trait", - "base64 0.13.1", - "bytes", - "futures-core", - "futures-util", - "h2 0.3.26", - "http 0.2.12", - "http-body 0.4.6", - "hyper 0.14.30", - "hyper-timeout", - "percent-encoding", - "pin-project", - "prost", - "prost-derive", - "tokio", - "tokio-stream", - "tokio-util 0.6.10", - "tower 0.4.13", - "tower-layer", - "tower-service", - "tracing", - "tracing-futures", -] - -[[package]] -name = "tonic-build" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9403f1bafde247186684b230dc6f38b5cd514584e8bec1dd32514be4745fa757" -dependencies = [ - "proc-macro2", - "prost-build", - "quote", - "syn 1.0.109", -] - [[package]] name = "tower" -version = "0.4.13" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" dependencies = [ "futures-core", "futures-util", - "indexmap 1.9.3", - "pin-project", "pin-project-lite", - "rand 0.8.5", - "slab", + "sync_wrapper 1.0.2", "tokio", - "tokio-util 0.7.12", - "tower-layer", - "tower-service", - "tracing", -] - -[[package]] -name = "tower" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2873938d487c3cfb9aed7546dc9f2711d867c9f90c46b889989a2cb84eba6b4f" -dependencies = [ - "futures-core", - "futures-util", - "pin-project-lite", - "sync_wrapper 0.1.2", "tower-layer", "tower-service", ] @@ -8332,117 +10146,50 @@ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" - -[[package]] -name = "tracing" -version = "0.1.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" -dependencies = [ - "log", - "pin-project-lite", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-appender" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3566e8ce28cc0a3fe42519fc80e6b4c943cc4c8cef275620eb8dac2d3d4e06cf" -dependencies = [ - "crossbeam-channel", - "thiserror", - "time", - "tracing-subscriber", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.77", -] - -[[package]] -name = "tracing-core" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" -dependencies = [ - "once_cell", - "valuable", -] - -[[package]] -name = "tracing-futures" -version = "0.2.5" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" -dependencies = [ - "pin-project", - "tracing", -] +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] -name = "tracing-log" -version = "0.1.4" +name = "tracing" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "log", - "once_cell", + "pin-project-lite", + "tracing-attributes", "tracing-core", ] [[package]] -name = "tracing-log" -version = "0.2.0" +name = "tracing-attributes" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ - "log", - "once_cell", - "tracing-core", + "proc-macro2", + "quote", + "syn 2.0.96", ] [[package]] -name = "tracing-opentelemetry" -version = "0.17.4" +name = "tracing-core" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbbe89715c1dbbb790059e2565353978564924ee85017b5fff365c872ff6721f" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", - "opentelemetry", - "tracing", - "tracing-core", - "tracing-log 0.1.4", - "tracing-subscriber", ] [[package]] -name = "tracing-subscriber" -version = "0.3.18" +name = "tracing-futures" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex", - "sharded-slab", - "smallvec", - "thread_local", + "pin-project", "tracing", - "tracing-core", - "tracing-log 0.2.0", ] [[package]] @@ -8466,28 +10213,29 @@ dependencies = [ "rand 0.8.5", "rustls 0.21.12", "sha1", - "thiserror", + "thiserror 1.0.69", "url", "utf-8", + "webpki-roots 0.24.0", ] [[package]] name = "tungstenite" -version = "0.23.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e2e2ce1e47ed2994fd43b04c8f618008d4cabdd5ee34027cf14f9d918edd9c8" +checksum = "18e5b8366ee7a95b16d32197d0b2604b43a0be89dc5fac9f8e96ccafbaedda8a" dependencies = [ "byteorder", "bytes", "data-encoding", - "http 1.1.0", + "http 1.2.0", "httparse", "log", "rand 0.8.5", - "rustls 0.23.13", + "rustls 0.23.21", "rustls-pki-types", "sha1", - "thiserror", + "thiserror 1.0.69", "utf-8", ] @@ -8499,9 +10247,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "ucd-trie" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" [[package]] name = "uint" @@ -8515,6 +10263,18 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "uint" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "909988d098b2f738727b161a106cfc7cab00c539c2687a8836f8e565976fb53e" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + [[package]] name = "unarray" version = "0.1.4" @@ -8522,31 +10282,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" [[package]] -name = "unicode-bidi" -version = "0.3.15" +name = "unicase" +version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" +checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" [[package]] name = "unicode-ident" -version = "1.0.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" - -[[package]] -name = "unicode-normalization" -version = "0.1.24" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" -dependencies = [ - "tinyvec", -] +checksum = "11cd88e12b17c6494200a9c1b683a04fcac9573ed74cd1b62aeb2727c5592243" [[package]] -name = "unicode-segmentation" -version = "1.12.0" +name = "unicode-width" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" [[package]] name = "unicode-xid" @@ -8554,6 +10305,25 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", + "subtle", +] + +[[package]] +name = "unreachable" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" +dependencies = [ + "void", +] + [[package]] name = "unsafe-libyaml" version = "0.2.11" @@ -8572,11 +10342,21 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" +[[package]] +name = "uriparse" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" +dependencies = [ + "fnv", + "lazy_static", +] + [[package]] name = "url" -version = "2.5.2" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -8596,615 +10376,230 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" [[package]] -name = "utf8parse" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" - -[[package]] -name = "uuid" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" -dependencies = [ - "getrandom 0.2.15", - "serde", -] - -[[package]] -name = "uuid" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" - -[[package]] -name = "valuable" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" - -[[package]] -name = "vcpkg" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" - -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - -[[package]] -name = "vsimd" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" - -[[package]] -name = "wait-timeout" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" -dependencies = [ - "libc", -] - -[[package]] -name = "walkdir" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] - -[[package]] -name = "want" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" -dependencies = [ - "try-lock", -] - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - -[[package]] -name = "wasm-bindgen" -version = "0.2.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" -dependencies = [ - "cfg-if 1.0.0", - "once_cell", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" -dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.77", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" -dependencies = [ - "cfg-if 1.0.0", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.77", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" - -[[package]] -name = "wasm-encoder" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e77053dc709db790691d3732cfc458adc5acc881dec524965c608effdcd9c581" -dependencies = [ - "leb128", -] - -[[package]] -name = "wasm-encoder" -version = "0.35.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ca90ba1b5b0a70d3d49473c5579951f3bddc78d47b59256d2f9d4922b150aca" -dependencies = [ - "leb128", -] - -[[package]] -name = "wasmer-compiler-near" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fdae7245128f284476e6db9653ef0a15b011975091bcd7f9d7303132409662" -dependencies = [ - "enumset", - "rkyv", - "smallvec", - "target-lexicon 0.12.16", - "thiserror", - "wasmer-types-near", - "wasmer-vm-near", - "wasmparser 0.78.2", -] - -[[package]] -name = "wasmer-compiler-singlepass-near" -version = "2.4.1" +name = "utf16_iter" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac4af0e438015585eb27b2c6f6869c58c540bfe27408b686b1778470bf301050" -dependencies = [ - "byteorder", - "dynasm 1.2.3", - "dynasmrt 1.2.3", - "lazy_static", - "memoffset 0.6.5", - "more-asserts", - "rayon", - "smallvec", - "wasmer-compiler-near", - "wasmer-types-near", - "wasmer-vm-near", -] +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" [[package]] -name = "wasmer-engine-near" -version = "2.4.1" +name = "utf8_iter" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4048411cabb2c94c7d8d11d9d0282cc6b15308b61ebc1e122c40e89865ebb5c5" -dependencies = [ - "backtrace", - "enumset", - "lazy_static", - "memmap2", - "more-asserts", - "rustc-demangle", - "target-lexicon 0.12.16", - "thiserror", - "wasmer-compiler-near", - "wasmer-types-near", - "wasmer-vm-near", -] +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] -name = "wasmer-engine-universal-near" -version = "2.4.1" +name = "utf8parse" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f31c3d2850ac7957406d3c9581d9435ea8126a26478709fa7e931b6f562b4d" -dependencies = [ - "cfg-if 1.0.0", - "enumset", - "leb128", - "region", - "rkyv", - "thiserror", - "wasmer-compiler-near", - "wasmer-engine-near", - "wasmer-types-near", - "wasmer-vm-near", - "winapi", -] +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] -name = "wasmer-runtime-core-near" -version = "0.18.3" +name = "uuid" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3fac37da3c625e98708c5dd92d3f642aaf700fd077168d3d0fff277ec6a165" +checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "bincode", - "blake3", - "borsh 0.9.3", - "cc", - "digest 0.8.1", - "errno 0.2.8", - "hex", - "indexmap 1.9.3", - "lazy_static", - "libc", - "nix", - "page_size", - "parking_lot 0.10.2", - "rustc_version 0.2.3", + "getrandom 0.2.15", "serde", - "serde-bench", - "serde_bytes", - "serde_derive", - "smallvec", - "target-lexicon 0.10.0", - "wasmparser 0.51.4", - "winapi", ] [[package]] -name = "wasmer-runtime-near" -version = "0.18.0" +name = "uuid" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "158e6fff11e5e1ef805af50637374d5bd43d92017beafa18992cdf7f3f7ae3e4" -dependencies = [ - "lazy_static", - "memmap", - "serde", - "serde_derive", - "wasmer-runtime-core-near", - "wasmer-singlepass-backend-near", -] +checksum = "b3758f5e68192bb96cc8f9b7e2c2cfdabb435499a28499a42f8f984092adad4b" [[package]] -name = "wasmer-singlepass-backend-near" -version = "0.18.1" +name = "valuable" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6edd0ba6c0bcf9b279186d4dbe81649dda3e5ef38f586865943de4dcd653f8" -dependencies = [ - "bincode", - "borsh 0.9.3", - "byteorder", - "dynasm 1.2.3", - "dynasmrt 1.2.3", - "lazy_static", - "libc", - "nix", - "serde", - "serde_derive", - "smallvec", - "wasmer-runtime-core-near", -] +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] -name = "wasmer-types-near" -version = "2.4.1" +name = "vcpkg" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ba154adffb0fbd33f5dabd3788a1744d846b43e6e090d44269c7ee8fa5743e4" -dependencies = [ - "indexmap 1.9.3", - "rkyv", - "thiserror", -] +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] -name = "wasmer-vm-near" -version = "2.4.1" +name = "version_check" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a5585596f6e9915d606de944aece51626736fb1191aefb5b2ef108c6f7604a" -dependencies = [ - "backtrace", - "cc", - "cfg-if 1.0.0", - "indexmap 1.9.3", - "libc", - "memoffset 0.6.5", - "more-asserts", - "region", - "rkyv", - "thiserror", - "wasmer-types-near", - "winapi", -] +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] -name = "wasmparser" -version = "0.51.4" +name = "void" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aeb1956b19469d1c5e63e459d29e7b5aa0f558d9f16fcef09736f8a265e6c10a" +checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] -name = "wasmparser" -version = "0.78.2" +name = "vsimd" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52144d4c78e5cf8b055ceab8e5fa22814ce4315d6002ad32cfd914f37c12fd65" +checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" [[package]] -name = "wasmparser" -version = "0.99.0" +name = "wait-timeout" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ef3b717afc67f848f412d4f02c127dd3e35a0eecd58c684580414df4fde01d3" +checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" dependencies = [ - "indexmap 1.9.3", - "url", + "libc", ] [[package]] -name = "wasmparser" -version = "0.105.0" +name = "walkdir" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83be9e0b3f9570dc1979a33ae7b89d032c73211564232b99976553e5c155ec32" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ - "indexmap 1.9.3", - "url", + "same-file", + "winapi-util", ] [[package]] -name = "wasmparser" -version = "0.115.0" +name = "want" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e06c0641a4add879ba71ccb3a1e4278fd546f76f1eafb21d8f7b07733b547cd5" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "indexmap 2.5.0", - "semver 1.0.23", + "try-lock", ] [[package]] -name = "wasmprinter" -version = "0.2.57" +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50b0e5ed7a74a065637f0d7798ce5f29cadb064980d24b0c82af5200122fa0d8" -dependencies = [ - "anyhow", - "wasmparser 0.105.0", -] +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] -name = "wasmtime" -version = "14.0.4" +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca54f6090ce46973f33a79f265924b204f248f91aec09229bce53d19d567c1a6" -dependencies = [ - "anyhow", - "bincode", - "bumpalo", - "cfg-if 1.0.0", - "fxprof-processed-profile", - "indexmap 2.5.0", - "libc", - "log", - "object 0.32.2", - "once_cell", - "paste", - "psm", - "serde", - "serde_derive", - "serde_json", - "target-lexicon 0.12.16", - "wasm-encoder 0.35.0", - "wasmparser 0.115.0", - "wasmtime-cranelift", - "wasmtime-environ", - "wasmtime-jit", - "wasmtime-runtime", - "windows-sys 0.48.0", -] +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] -name = "wasmtime-asm-macros" -version = "14.0.4" +name = "wasm-bindgen" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54984bc0b5689da87a43d7c181d23092b4d5cfcbb7ae3eb6b917dd55865d95e6" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if 1.0.0", + "once_cell", + "rustversion", + "wasm-bindgen-macro", ] [[package]] -name = "wasmtime-cranelift" -version = "14.0.4" +name = "wasm-bindgen-backend" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cf3cee8be02f5006d21b773ffd6802f96a0b7d661ff2ad8a01fb93df458b1aa" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ - "anyhow", - "cfg-if 1.0.0", - "cranelift-codegen", - "cranelift-control", - "cranelift-entity", - "cranelift-frontend", - "cranelift-native", - "cranelift-wasm", - "gimli 0.28.1", + "bumpalo", "log", - "object 0.32.2", - "target-lexicon 0.12.16", - "thiserror", - "wasmparser 0.115.0", - "wasmtime-cranelift-shared", - "wasmtime-environ", - "wasmtime-versioned-export-macros", + "proc-macro2", + "quote", + "syn 2.0.96", + "wasm-bindgen-shared", ] [[package]] -name = "wasmtime-cranelift-shared" -version = "14.0.4" +name = "wasm-bindgen-futures" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "420fd2a69bc162957f4c94f21c7fa08ecf60d916f4e87b56332507c555da381d" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ - "anyhow", - "cranelift-codegen", - "cranelift-control", - "cranelift-native", - "gimli 0.28.1", - "object 0.32.2", - "target-lexicon 0.12.16", - "wasmtime-environ", + "cfg-if 1.0.0", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", ] [[package]] -name = "wasmtime-environ" -version = "14.0.4" +name = "wasm-bindgen-macro" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb6a445ce2b2810127caee6c1b79b8da4ae57712b05556a674592c18b7500a14" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ - "anyhow", - "cranelift-entity", - "gimli 0.28.1", - "indexmap 2.5.0", - "log", - "object 0.32.2", - "serde", - "serde_derive", - "target-lexicon 0.12.16", - "thiserror", - "wasmparser 0.115.0", - "wasmtime-types", + "quote", + "wasm-bindgen-macro-support", ] [[package]] -name = "wasmtime-jit" -version = "14.0.4" +name = "wasm-bindgen-macro-support" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f0f6586c61125fbfc13c3108c3dd565d21f314dd5bac823b9a5b7ab576d21f1" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ - "addr2line 0.21.0", - "anyhow", - "bincode", - "cfg-if 1.0.0", - "cpp_demangle", - "gimli 0.28.1", - "log", - "object 0.32.2", - "rustc-demangle", - "rustix", - "serde", - "serde_derive", - "target-lexicon 0.12.16", - "wasmtime-environ", - "wasmtime-jit-icache-coherence", - "wasmtime-runtime", - "windows-sys 0.48.0", + "proc-macro2", + "quote", + "syn 2.0.96", + "wasm-bindgen-backend", + "wasm-bindgen-shared", ] [[package]] -name = "wasmtime-jit-debug" -version = "14.0.4" +name = "wasm-bindgen-shared" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "109a9e46afe33580b952b14a4207354355f19bcdf0b47485b397b68409eaf553" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" dependencies = [ - "once_cell", - "wasmtime-versioned-export-macros", + "unicode-ident", ] [[package]] -name = "wasmtime-jit-icache-coherence" -version = "14.0.4" +name = "wasmtimer" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f67e6be36375c39cff57ed3b137ab691afbf2d9ba8ee1c01f77888413f218749" +checksum = "0048ad49a55b9deb3953841fa1fc5858f0efbcb7a18868c899a360269fac1b23" dependencies = [ - "cfg-if 1.0.0", - "libc", - "windows-sys 0.48.0", + "futures", + "js-sys", + "parking_lot", + "pin-utils", + "slab", + "wasm-bindgen", ] [[package]] -name = "wasmtime-runtime" -version = "14.0.4" +name = "web-sys" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d07986b2327b5e7f535ed638fbde25990fc8f85400194fda0d26db71c7b685e" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ - "anyhow", - "cc", - "cfg-if 1.0.0", - "indexmap 2.5.0", - "libc", - "log", - "mach", - "memfd", - "memoffset 0.9.1", - "paste", - "rand 0.8.5", - "rustix", - "sptr", - "wasm-encoder 0.35.0", - "wasmtime-asm-macros", - "wasmtime-environ", - "wasmtime-jit-debug", - "wasmtime-versioned-export-macros", - "wasmtime-wmemcheck", - "windows-sys 0.48.0", + "js-sys", + "wasm-bindgen", ] [[package]] -name = "wasmtime-types" -version = "14.0.4" +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e810a0d2e869abd1cb42bd232990f6bd211672b3d202d2ae7e70ffb97ed70ea3" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ - "cranelift-entity", - "serde", - "serde_derive", - "thiserror", - "wasmparser 0.115.0", + "js-sys", + "wasm-bindgen", ] [[package]] -name = "wasmtime-versioned-export-macros" -version = "14.0.4" +name = "webpki-root-certs" +version = "0.26.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09b5575a75e711ca6c36bb9ad647c93541cdc8e34218031acba5da3f35919dd3" +checksum = "9cd5da49bdf1f30054cfe0b8ce2958b8fbeb67c4d82c8967a598af481bef255c" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.77", + "rustls-pki-types", ] [[package]] -name = "wasmtime-wmemcheck" -version = "14.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dafab2db172a53e23940e0fa3078c202f567ee5f13f4b42f66b694fab43c658" - -[[package]] -name = "web-sys" -version = "0.3.70" +name = "webpki-roots" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" +checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888" dependencies = [ - "js-sys", - "wasm-bindgen", + "rustls-webpki 0.101.7", ] [[package]] @@ -9215,9 +10610,9 @@ checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" [[package]] name = "webpki-roots" -version = "0.26.6" +version = "0.26.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841c67bff177718f1d4dfefde8d8f0e78f9b6589319ba88312f567fc5841a958" +checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" dependencies = [ "rustls-pki-types", ] @@ -9234,18 +10629,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "which" -version = "4.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" -dependencies = [ - "either", - "home", - "once_cell", - "rustix", -] - [[package]] name = "winapi" version = "0.3.9" @@ -9466,9 +10849,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.6.20" +version = "0.6.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +checksum = "c8d71a593cc5c42ad7876e2c1fda56f314f3754c084128833e64f1345ff8a03a" dependencies = [ "memchr", ] @@ -9483,6 +10866,32 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "wormhole-bridge-client" +version = "0.1.0" +source = "git+https://github.com/Near-One/bridge-sdk-rs#b205ad874cab977864e10290e9c14a01778a39e1" +dependencies = [ + "bridge-connector-common", + "derive_builder 0.20.2", + "hex", + "near-primitives 0.28.0", + "reqwest 0.12.12", + "serde", + "serde_json", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "ws_stream_wasm" version = "0.7.4" @@ -9496,7 +10905,7 @@ dependencies = [ "pharos", "rustc_version 0.4.1", "send_wrapper 0.6.0", - "thiserror", + "thiserror 1.0.69", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -9511,6 +10920,24 @@ dependencies = [ "tap", ] +[[package]] +name = "x509-parser" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" +dependencies = [ + "asn1-rs", + "base64 0.13.1", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + [[package]] name = "xmlparser" version = "0.13.6" @@ -9523,6 +10950,30 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", + "synstructure 0.13.1", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -9541,7 +10992,28 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", + "synstructure 0.13.1", ] [[package]] @@ -9561,20 +11033,29 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.96", ] [[package]] -name = "zeropool-bn" -version = "0.5.11" +name = "zerovec" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71e61de68ede9ffdd69c01664f65a178c5188b73f78faa21f0936016a888ff7c" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" dependencies = [ - "byteorder", - "crunchy", - "lazy_static", - "rand 0.8.5", - "rustc-hex", + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.96", ] [[package]] @@ -9586,11 +11067,11 @@ dependencies = [ "aes", "byteorder", "bzip2", - "constant_time_eq", + "constant_time_eq 0.1.5", "crc32fast", "crossbeam-utils", "flate2", - "hmac", + "hmac 0.12.1", "pbkdf2 0.11.0", "sha1", "time", diff --git a/omni-relayer/Cargo.toml b/omni-relayer/Cargo.toml index 685508b2..9127aa93 100644 --- a/omni-relayer/Cargo.toml +++ b/omni-relayer/Cargo.toml @@ -2,35 +2,55 @@ name = "omni-relayer" version = "0.1.0" edition = "2021" +resolver = "2" [dependencies] log = "0.4" pretty_env_logger = "0.5" +chrono = "0.4" anyhow = "1" futures = "0.3.5" -clap = "4.5" +clap = { version = "4.5", features = ["derive"] } dotenv = "0.15" toml = "0.8.19" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" +borsh = "1.5.1" tokio = { version = "1", features = ["sync", "time", "macros", "rt-multi-thread"] } tokio-stream = { version = "0.1" } +solana-sdk = "2.1.9" +solana-client = "2.1.9" +solana-transaction-status = "2.1.9" + ethereum-types = "0.14.1" -omni-types = { git = "https://github.com/near-one/omni-bridge", package = "omni-types", rev = "8371f5651be317b601703642903a136e8c8c4f13" } +omni-types = { git = "https://github.com/near-one/omni-bridge", package = "omni-types", rev = "b0ca4e1fb6a34086076511d1162747b154fa8a55" } near-lake-framework = "0.7.9" -near-jsonrpc-client = "0.13.0" -near-jsonrpc-primitives = "0.26.0" -near-primitives = "0.26.0" -near-crypto = "0.26.0" -eth-proof = { git = "https://github.com/Near-One/rainbow-bridge-sdk-rs", branch = "omni-token-support", package = "eth-proof" } -omni-connector = { git = "https://github.com/Near-One/rainbow-bridge-sdk-rs", branch = "omni-token-support", package = "omni-connector" } +near-jsonrpc-client = "0.15.1" +near-jsonrpc-primitives = "0.28.0" +near-primitives = "0.28.0" +near-crypto = "0.28.0" -alloy = { version = "0.3", features = ["node-bindings", "providers", "rpc-types", "sol-types", "provider-ws"] } +hex = "0.4.3" +alloy = { version = "0.9", features = ["node-bindings", "providers", "rpc-types", "sol-types", "provider-ws", "signers", "signer-local"] } -redis = { version = "0.27.0", features = ["aio", "tokio-comp"] } +redis = { version = "0.28.1", features = ["aio", "tokio-comp"] } reqwest = "0.12" + +eth-proof = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "eth-proof" } + +bridge-connector-common = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "bridge-connector-common" } + +near-bridge-client = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "near-bridge-client" } +evm-bridge-client = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "evm-bridge-client" } +solana-bridge-client = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "solana-bridge-client" } +wormhole-bridge-client = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "wormhole-bridge-client" } + +omni-connector = { git = "https://github.com/Near-One/bridge-sdk-rs", package = "omni-connector" } + +[features] +disable_fee_check = [] diff --git a/omni-relayer/clippy.toml b/omni-relayer/clippy.toml new file mode 100644 index 00000000..f5522e67 --- /dev/null +++ b/omni-relayer/clippy.toml @@ -0,0 +1 @@ +too-many-lines-threshold = 200 diff --git a/omni-relayer/config.toml b/omni-relayer/config.toml deleted file mode 100644 index b1e3d70e..00000000 --- a/omni-relayer/config.toml +++ /dev/null @@ -1,14 +0,0 @@ -[redis] -url = "redis://127.0.0.1/" - -[near] -network = "testnet" -rpc_url = "https://rpc.testnet.near.org/" -token_locker_id = "omni-locker.testnet" - -[eth] -rpc_http_url = "https://eth-sepolia.g.alchemy.com/v2/API-KEY" -rpc_ws_url = "wss://eth-sepolia.g.alchemy.com/v2/API-KEY" -chain_id = 11_155_111 -bridge_token_factory_address = "0xAD167CA3A900c977d9edDf6Ec80d6095381DFD33" -block_processing_batch_size = 10_000 diff --git a/omni-relayer/example-mainnet-config.toml b/omni-relayer/example-mainnet-config.toml new file mode 100644 index 00000000..949272ea --- /dev/null +++ b/omni-relayer/example-mainnet-config.toml @@ -0,0 +1,73 @@ +[redis] +url = "redis://127.0.0.1/" + +[bridge_indexer] +api_url = "http://127.0.0.1:8080" + +[near] +network = "mainnet" +rpc_url = "https://rpc.mainnet.near.org/" +token_locker_id = "omni.bridge.near" +# Either provide a path to a credentials file or set it in the environment +# Note: the path must be absolute +# credentials_path = "/Users/username/.near-credentials/mainnet/omni-relayer.bridge.near.json" + +[eth] +rpc_http_url = "https://mainnet.infura.io/v3/INFURA_API_KEY" +rpc_ws_url = "wss://mainnet.infura.io/ws/v3/INFURA_API_KEY" +chain_id = 1 +bridge_token_factory_address = "" +light_client = "" +block_processing_batch_size = 10_000 +# https://wormhole.com/docs/build/reference/consistency-levels/ +expected_finalization_time = 1095 + +[base] +rpc_http_url = "https://base-mainnet.infura.io/v3/INFURA_API_KEY" +rpc_ws_url = "wss://base-mainnet.infura.io/ws/v3/INFURA_API_KEY" +chain_id = 8453 +bridge_token_factory_address = "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989" +block_processing_batch_size = 10_000 +# https://wormhole.com/docs/build/reference/consistency-levels/ +expected_finalization_time = 1026 + +[arb] +rpc_http_url = "https://arbitrum-mainnet.infura.io/v3/INFURA_API_KEY" +rpc_ws_url = "wss://arbitrum-mainnet.infura.io/ws/v3/INFURA_API_KEY" +chain_id = 42_161 +bridge_token_factory_address = "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989" +block_processing_batch_size = 10_000 +# https://wormhole.com/docs/build/reference/consistency-levels/ +expected_finalization_time = 1066 + +[solana] +rpc_http_url = "https://api.mainnet-beta.solana.com" +rpc_ws_url = "wss://api.mainnet-beta.solana.com" +# Program ID on Solana is an account ID whitch the bridge contract (basically bridge_token_factory_address on Solana) +program_id = "dahPEoZGXfyV58JqqH85okdHmpN8U2q8owgPUXSCPxe" +# This is the wormhole contract ID on Solana (can be found here https://wormhole.com/docs/build/reference/contract-addresses/#__tabbed_1_2) +wormhole_id = "worm2ZoG2kUd4vFXhvjh93UUH596ayRfgQ2MgjNMTth" +# There's a list of account keys and they are store in a strict order. We need indexes to get the right key +init_transfer_sender_index = 5 +init_transfer_token_index = 1 +init_transfer_emitter_index = 6 +init_transfer_sol_sender_index = 1 +init_transfer_sol_emitter_index = 3 +# Discriminators are used to identify the type of the event (can be found during the building process of solana's contract) +init_transfer_discriminator = [174, 50, 134, 99, 122, 243, 243, 224] +init_transfer_sol_discriminator = [124, 167, 164, 191, 81, 140, 108, 30] +finalize_transfer_emitter_index = 6 +finalize_transfer_sol_emitter_index = 5 +finalize_transfer_discriminator = [124, 126, 103, 188, 144, 65, 135, 51] +finalize_transfer_sol_discriminator = [104, 27, 121, 69, 3, 70, 217, 66] +# Either provide a path to a keypair file or set it in the environment +# Note: the path must be absolute +# credentials_path = "/Users/username/my-solana-keypair.json" + +[wormhole] +api_url = "https://api.wormholescan.io/" +solana_chain_id = 1 +near_chain_id = 15 +eth_chain_id = 2 +arb_chain_id = 23 +base_chain_id = 30 diff --git a/omni-relayer/example-testnet-config.toml b/omni-relayer/example-testnet-config.toml new file mode 100644 index 00000000..6bcb0074 --- /dev/null +++ b/omni-relayer/example-testnet-config.toml @@ -0,0 +1,73 @@ +[redis] +url = "redis://127.0.0.1/" + +[bridge_indexer] +api_url = "http://127.0.0.1:8080" + +[near] +network = "testnet" +rpc_url = "https://rpc.testnet.near.org/" +token_locker_id = "omni-locker.testnet" +# Either provide a path to a credentials file or set it in the environment +# Note: the path must be absolute +# credentials_path = "/Users/username/.near-credentials/testnet/omni-relayer.testnet.json" + +[eth] +rpc_http_url = "https://sepolia.infura.io/v3/INFURA_API_KEY" +rpc_ws_url = "wss://sepolia.infura.io/ws/v3/INFURA_API_KEY" +chain_id = 11_155_111 +bridge_token_factory_address = "0x3701B9859Dbb9a4333A3dd933ab18e9011ddf2C8" +light_client = "client-eth2.sepolia.testnet" +block_processing_batch_size = 10_000 +# https://wormhole.com/docs/build/reference/consistency-levels/ +expected_finalization_time = 1095 + +[base] +rpc_http_url = "https://base-sepolia.infura.io/v3/INFURA_API_KEY" +rpc_ws_url = "wss://base-sepolia.infura.io/ws/v3/INFURA_API_KEY" +chain_id = 84_532 +bridge_token_factory_address = "0x0C981337fFe39a555d3A40dbb32f21aD0eF33FFA" +block_processing_batch_size = 10_000 +# https://wormhole.com/docs/build/reference/consistency-levels/ +expected_finalization_time = 1026 + +[arb] +rpc_http_url = "https://arbitrum-sepolia.infura.io/v3/INFURA_API_KEY" +rpc_ws_url = "wss://arbitrum-sepolia.infura.io/ws/v3/INFURA_API_KEY" +chain_id = 421_614 +bridge_token_factory_address = "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989" +block_processing_batch_size = 10_000 +# https://wormhole.com/docs/build/reference/consistency-levels/ +expected_finalization_time = 1066 + +[solana] +rpc_http_url = "https://api.devnet.solana.com" +rpc_ws_url = "wss://api.devnet.solana.com" +# Program ID on Solana is an account ID whitch the bridge contract (basically bridge_token_factory_address on Solana) +program_id = "Gy1XPwYZURfBzHiGAxnw3SYC33SfqsEpGSS5zeBge28p" +# This is the wormhole contract ID on Solana (can be found here https://wormhole.com/docs/build/reference/contract-addresses/#__tabbed_1_2) +wormhole_id = "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5" +# There's a list of account keys and they are store in a strict order. We need indexes to get the right key +init_transfer_sender_index = 5 +init_transfer_token_index = 1 +init_transfer_emitter_index = 6 +init_transfer_sol_sender_index = 1 +init_transfer_sol_emitter_index = 3 +# Discriminators are used to identify the type of the event (can be found during the building process of solana's contract) +init_transfer_discriminator = [174, 50, 134, 99, 122, 243, 243, 224] +init_transfer_sol_discriminator = [124, 167, 164, 191, 81, 140, 108, 30] +finalize_transfer_emitter_index = 6 +finalize_transfer_sol_emitter_index = 5 +finalize_transfer_discriminator = [124, 126, 103, 188, 144, 65, 135, 51] +finalize_transfer_sol_discriminator = [104, 27, 121, 69, 3, 70, 217, 66] +# Either provide a path to a keypair file or set it in the environment +# Note: the path must be absolute +# credentials_path = "/Users/username/my-solana-keypair.json" + +[wormhole] +api_url = "https://api.testnet.wormholescan.io/" +solana_chain_id = 1 +near_chain_id = 15 +eth_chain_id = 10_002 +arb_chain_id = 10_003 +base_chain_id = 10_004 diff --git a/omni-relayer/src/config.rs b/omni-relayer/src/config.rs index 9d79cec9..dabb5451 100644 --- a/omni-relayer/src/config.rs +++ b/omni-relayer/src/config.rs @@ -1,26 +1,63 @@ use alloy::primitives::Address; use near_primitives::types::AccountId; +use omni_types::ChainKind; +use serde::Deserialize; -#[derive(Debug, Clone, serde::Deserialize)] +pub fn get_private_key(chain_kind: ChainKind) -> String { + let env_var = match chain_kind { + ChainKind::Near => "NEAR_PRIVATE_KEY", + ChainKind::Eth => "ETH_PRIVATE_KEY", + ChainKind::Base => "BASE_PRIVATE_KEY", + ChainKind::Arb => "ARB_PRIVATE_KEY", + ChainKind::Sol => "SOLANA_PRIVATE_KEY", + }; + + std::env::var(env_var).unwrap_or_else(|_| panic!("Failed to get `{env_var}` env variable")) +} + +fn replace_rpc_api_key<'de, D>(deserializer: D) -> Result +where + D: serde::Deserializer<'de>, +{ + let url = String::deserialize(deserializer)?; + + let api_key = std::env::var("INFURA_API_KEY").map_err(serde::de::Error::custom)?; + + Ok(url.replace("INFURA_API_KEY", &api_key)) +} + +#[derive(Debug, Clone, Deserialize)] pub struct Config { pub redis: Redis, + #[cfg(not(feature = "disable_fee_check"))] + pub bridge_indexer: BridgeIndexer, pub near: Near, - pub eth: Eth, + pub eth: Option, + pub base: Option, + pub arb: Option, + pub solana: Option, + pub wormhole: Wormhole, } -#[derive(Debug, Clone, serde::Deserialize)] +#[derive(Debug, Clone, Deserialize)] pub struct Redis { pub url: String, } -#[derive(Debug, Clone, serde::Deserialize)] +#[cfg(not(feature = "disable_fee_check"))] +#[derive(Debug, Clone, Deserialize)] +pub struct BridgeIndexer { + pub api_url: String, +} + +#[derive(Debug, Clone, Deserialize)] #[serde(rename_all = "lowercase")] pub enum Network { Testnet, Mainnet, } -#[derive(Debug, Clone, serde::Deserialize)] +#[derive(Debug, Clone, Deserialize)] pub struct Near { pub network: Network, pub rpc_url: String, @@ -28,11 +65,46 @@ pub struct Near { pub credentials_path: Option, } -#[derive(Debug, Clone, serde::Deserialize)] -pub struct Eth { +#[derive(Debug, Clone, Deserialize)] +pub struct Evm { + #[serde(deserialize_with = "replace_rpc_api_key")] pub rpc_http_url: String, + #[serde(deserialize_with = "replace_rpc_api_key")] pub rpc_ws_url: String, pub chain_id: u64, pub bridge_token_factory_address: Address, + pub light_client: Option, pub block_processing_batch_size: u64, + pub expected_finalization_time: i64, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct Solana { + #[serde(deserialize_with = "replace_rpc_api_key")] + pub rpc_http_url: String, + #[serde(deserialize_with = "replace_rpc_api_key")] + pub rpc_ws_url: String, + pub program_id: String, + pub wormhole_id: String, + pub init_transfer_sender_index: usize, + pub init_transfer_token_index: usize, + pub init_transfer_emitter_index: usize, + pub init_transfer_sol_sender_index: usize, + pub init_transfer_sol_emitter_index: usize, + pub init_transfer_discriminator: Vec, + pub init_transfer_sol_discriminator: Vec, + pub finalize_transfer_emitter_index: usize, + pub finalize_transfer_sol_emitter_index: usize, + pub finalize_transfer_discriminator: Vec, + pub finalize_transfer_sol_discriminator: Vec, + pub credentials_path: Option, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct Wormhole { + pub api_url: String, + pub eth_chain_id: u64, + pub base_chain_id: u64, + pub arb_chain_id: u64, + pub solana_chain_id: u64, } diff --git a/omni-relayer/src/main.rs b/omni-relayer/src/main.rs index ce928c73..2569e1e8 100644 --- a/omni-relayer/src/main.rs +++ b/omni-relayer/src/main.rs @@ -1,8 +1,9 @@ use std::sync::Arc; -use anyhow::Result; +use anyhow::{Context, Result}; use clap::Parser; use log::{error, info}; +use omni_types::ChainKind; mod config; mod startup; @@ -14,58 +15,164 @@ struct CliArgs { /// Path to the configuration file #[clap(short, long, default_value = "config.toml")] config: String, + /// Start block for Near indexer + #[clap(long)] + near_start_block: Option, + /// Start block for Ethereum indexer + #[clap(long)] + eth_start_block: Option, + /// Start block for Base indexer + #[clap(long)] + base_start_block: Option, + /// Start block for Arbitrum indexer + #[clap(long)] + arb_start_block: Option, + /// Start signature for Solana indexer + #[clap(long)] + solana_start_signature: Option, } #[tokio::main] async fn main() -> Result<()> { - pretty_env_logger::init(); dotenv::dotenv().ok(); + pretty_env_logger::init_timed(); let args = CliArgs::parse(); - let config = toml::from_str::(&std::fs::read_to_string(args.config)?)?; + let config = toml::from_str::( + &std::fs::read_to_string(args.config).context("Config file doesn't exist")?, + ) + .context("Failed to parse config file")?; let redis_client = redis::Client::open(config.redis.url.clone())?; let jsonrpc_client = near_jsonrpc_client::JsonRpcClient::connect(config.near.rpc_url.clone()); - let near_signer = startup::near::create_signer(config.near.credentials_path.clone())?; + let near_signer = startup::near::get_signer(config.near.credentials_path.as_ref())?; - let connector = Arc::new(startup::build_connector(&config, &near_signer)?); + let connector = Arc::new(startup::build_omni_connector(&config, &near_signer)?); let mut handles = Vec::new(); handles.push(tokio::spawn({ let config = config.clone(); let redis_client = redis_client.clone(); - let connector = connector.clone(); - async move { workers::near::sign_transfer(config, redis_client, connector).await } - })); - handles.push(tokio::spawn({ - let redis_client = redis_client.clone(); - let connector = connector.clone(); - async move { workers::near::finalize_transfer(redis_client, connector).await } + let jsonrpc_client = jsonrpc_client.clone(); + async move { + startup::near::start_indexer( + config, + redis_client, + jsonrpc_client, + args.near_start_block, + ) + .await + } })); handles.push(tokio::spawn({ + #[cfg(not(feature = "disable_fee_check"))] + let config = config.clone(); let redis_client = redis_client.clone(); let connector = connector.clone(); - async move { workers::near::claim_fee(redis_client, connector).await } + async move { + workers::near::sign_transfer( + #[cfg(not(feature = "disable_fee_check"))] + config, + redis_client, + connector, + ) + .await + } })); handles.push(tokio::spawn({ let redis_client = redis_client.clone(); let connector = connector.clone(); - async move { workers::eth::finalize_withdraw(redis_client, connector).await } + async move { workers::near::finalize_transfer(redis_client, connector).await } })); + if config.eth.is_some() { + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + async move { + startup::evm::start_indexer( + config, + redis_client, + ChainKind::Eth, + args.eth_start_block, + ) + .await + } + })); + } + if config.base.is_some() { + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + async move { + startup::evm::start_indexer( + config, + redis_client, + ChainKind::Base, + args.base_start_block, + ) + .await + } + })); + } + if config.arb.is_some() { + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + async move { + startup::evm::start_indexer( + config, + redis_client, + ChainKind::Arb, + args.arb_start_block, + ) + .await + } + })); + } + if config.solana.is_some() { + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + async move { + startup::solana::start_indexer(config, redis_client, args.solana_start_signature) + .await + } + })); + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + async move { workers::solana::process_signature(config, redis_client).await } + })); + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + let connector = connector.clone(); + async move { workers::solana::finalize_transfer(config, redis_client, connector).await } + })); + } + + if config.eth.is_some() || config.base.is_some() || config.arb.is_some() { + handles.push(tokio::spawn({ + let config = config.clone(); + let redis_client = redis_client.clone(); + let connector = connector.clone(); + let jsonrpc_client = jsonrpc_client.clone(); + async move { + workers::evm::finalize_transfer(config, redis_client, connector, jsonrpc_client) + .await + } + })); + } + handles.push(tokio::spawn({ let config = config.clone(); let redis_client = redis_client.clone(); + let connector = connector.clone(); let jsonrpc_client = jsonrpc_client.clone(); - async move { startup::near::start_indexer(config, redis_client, jsonrpc_client).await } - })); - handles.push(tokio::spawn({ - let config = config.clone(); - let redis_client = redis_client.clone(); - let jsonrpc_client = jsonrpc_client.clone(); - async move { startup::eth::start_indexer(config, redis_client, jsonrpc_client).await } + async move { workers::near::claim_fee(config, redis_client, connector, jsonrpc_client).await } })); tokio::select! { diff --git a/omni-relayer/src/startup/eth.rs b/omni-relayer/src/startup/eth.rs deleted file mode 100644 index 985406d7..00000000 --- a/omni-relayer/src/startup/eth.rs +++ /dev/null @@ -1,311 +0,0 @@ -use anyhow::{Context, Result}; -use log::{info, warn}; -use tokio_stream::StreamExt; - -use near_jsonrpc_client::JsonRpcClient; -use near_primitives::{borsh::BorshSerialize, types::AccountId}; -use omni_types::{ - locker_args::{ClaimFeeArgs, FinTransferArgs, StorageDepositArgs}, - prover_args::{EvmVerifyProofArgs, WormholeVerifyProofArgs}, - prover_result::ProofKind, - ChainKind, -}; - -use alloy::{ - providers::{Provider, ProviderBuilder, WsConnect}, - rpc::types::{Filter, Log, TransactionReceipt}, - sol, - sol_types::SolEvent, -}; -use ethereum_types::H256; - -use crate::{config, utils}; - -const WORMHOLE_CHAIN_ID: u64 = 2; - -sol!( - #[derive(Debug, serde::Serialize, serde::Deserialize)] - event InitTransfer( - address indexed sender, - address indexed tokenAddress, - uint128 indexed nonce, - string token, - uint128 amount, - uint128 fee, - string recipient - ); - - #[derive(Debug, serde::Serialize, serde::Deserialize)] - event FinTransfer( - uint128 indexed nonce, - string token, - uint128 amount, - address recipient, - string feeRecipient - ); - - #[derive(Debug, serde::Serialize, serde::Deserialize)] - event LogMessagePublished( - uint64 sequence, - uint32 nonce, - uint8 consistencyLevel - ); -); - -pub async fn start_indexer( - config: config::Config, - redis_client: redis::Client, - jsonrpc_client: JsonRpcClient, -) -> Result<()> { - let mut redis_connection = redis_client.get_multiplexed_tokio_connection().await?; - - let http_provider = ProviderBuilder::new().on_http( - config - .eth - .rpc_http_url - .parse() - .context("Failed to parse ETH rpc provider as url")?, - ); - - let ws_provider = ProviderBuilder::new() - .on_ws(WsConnect::new(config.eth.rpc_ws_url.clone())) - .await - .context("Failed to initialize WS provider")?; - - let latest_block = http_provider.get_block_number().await?; - let from_block = - utils::redis::get_last_processed_block(&mut redis_connection, "eth_last_processed_block") - .await - .map_or_else( - || latest_block.saturating_sub(config.eth.block_processing_batch_size), - |block| block, - ); - - let filter = Filter::new() - .address(config.eth.bridge_token_factory_address) - .event_signature([FinTransfer::SIGNATURE_HASH, InitTransfer::SIGNATURE_HASH].to_vec()); - - for current_block in - (from_block..latest_block).step_by(config.eth.block_processing_batch_size as usize) - { - let logs = http_provider - .get_logs(&filter.clone().from_block(current_block).to_block( - (current_block + config.eth.block_processing_batch_size).min(latest_block), - )) - .await?; - - for log in logs { - let Some(tx_hash) = log.transaction_hash else { - warn!("No transaction hash in log: {:?}", log); - continue; - }; - - let Ok(tx_logs) = http_provider.get_transaction_receipt(tx_hash).await else { - warn!("Failed to get transaction receipt for tx: {:?}", tx_hash); - continue; - }; - - let Some(log_index) = log.log_index else { - warn!("No log index in log: {:?}", log); - continue; - }; - - process_log( - &config, - &mut redis_connection, - &jsonrpc_client, - H256::from_slice(tx_hash.as_slice()), - tx_logs, - log, - log_index, - ) - .await; - } - } - - info!("All historical logs processed, starting WS subscription"); - - let mut stream = ws_provider.subscribe_logs(&filter).await?.into_stream(); - while let Some(log) = stream.next().await { - let Some(tx_hash) = log.transaction_hash else { - warn!("No transaction hash in log: {:?}", log); - continue; - }; - - let Ok(tx_logs) = http_provider.get_transaction_receipt(tx_hash).await else { - warn!("Failed to get transaction receipt for tx: {:?}", tx_hash); - continue; - }; - - let Some(log_index) = log.log_index else { - warn!("No log index in log: {:?}", log); - continue; - }; - - process_log( - &config, - &mut redis_connection, - &jsonrpc_client, - H256::from_slice(tx_hash.as_slice()), - tx_logs, - log, - log_index, - ) - .await; - } - - Ok(()) -} - -async fn process_log( - config: &config::Config, - redis_connection: &mut redis::aio::MultiplexedConnection, - jsonrpc_client: &JsonRpcClient, - tx_hash: H256, - tx_logs: Option, - log: Log, - log_index: u64, -) { - if let Some(block_height) = log.block_number { - utils::redis::update_last_processed_block( - redis_connection, - utils::redis::ETH_LAST_PROCESSED_BLOCK, - block_height, - ) - .await; - } - - let vaa = if let Some(tx_logs) = tx_logs { - let mut vaa = None; - - for log in tx_logs.inner.logs() { - if let Ok(log) = log.log_decode::() { - vaa = utils::wormhole::get_vaa( - WORMHOLE_CHAIN_ID, - config.eth.bridge_token_factory_address, - log.inner.sequence, - ) - .await - .ok(); - } - } - - vaa - } else { - None - }; - - let prover_args = - if let Some(vaa) = vaa { - let wormhole_proof_args = WormholeVerifyProofArgs { - proof_kind: ProofKind::InitTransfer, - vaa, - }; - - let mut prover_args = Vec::new(); - if let Err(err) = wormhole_proof_args.serialize(&mut prover_args) { - warn!("Failed to serialize wormhole proof: {}", err); - } - - prover_args - } else { - let evm_proof_args = - match eth_proof::get_proof_for_event(tx_hash, log_index, &config.eth.rpc_http_url) - .await - { - Ok(proof) => proof, - Err(err) => { - warn!("Failed to get proof: {}", err); - return; - } - }; - - let evm_proof_args = EvmVerifyProofArgs { - proof_kind: ProofKind::InitTransfer, - proof: evm_proof_args, - }; - - let mut prover_args = Vec::new(); - if let Err(err) = evm_proof_args.serialize(&mut prover_args) { - warn!("Failed to serialize evm proof: {}", err); - return; - } - - prover_args - }; - - if let Ok(withdraw_log) = log.log_decode::() { - let Ok(token) = withdraw_log.inner.token.parse::() else { - warn!( - "Failed to parse token as AccountId: {:?}", - withdraw_log.inner.token - ); - return; - }; - - let Ok(recipient) = withdraw_log.inner.recipient.parse::() else { - warn!( - "Failed to parse recipient as AccountId: {:?}", - withdraw_log.inner.recipient - ); - return; - }; - - let sender = config.near.token_locker_id.clone(); - - // If storage is sufficient, then flag should be false, otherwise true - let sender_is_storage_deposit = - !utils::storage::is_storage_sufficient(jsonrpc_client, &token, &sender) - .await - .unwrap_or_default(); - let recipient_is_storage_deposit = - !utils::storage::is_storage_sufficient(jsonrpc_client, &token, &recipient) - .await - .unwrap_or_default(); - - let fin_transfer_args = FinTransferArgs { - chain_kind: ChainKind::Eth, - storage_deposit_args: StorageDepositArgs { - token, - accounts: vec![ - (sender, sender_is_storage_deposit), - (recipient, recipient_is_storage_deposit), - ], - }, - prover_args, - }; - - let mut serialized_fin_transfer_args = Vec::new(); - if let Err(err) = fin_transfer_args.serialize(&mut serialized_fin_transfer_args) { - warn!("Failed to serialize fin transfer args: {}", err); - return; - } - - utils::redis::add_event( - redis_connection, - utils::redis::ETH_WITHDRAW_EVENTS, - tx_hash.to_string(), - serialized_fin_transfer_args, - ) - .await; - } else if log.log_decode::().is_ok() { - let claim_fee_args = ClaimFeeArgs { - chain_kind: ChainKind::Eth, - prover_args, - }; - - let mut serialized_claim_fee_args = Vec::new(); - if let Err(err) = claim_fee_args.serialize(&mut serialized_claim_fee_args) { - warn!("Failed to serialize claim fee args: {}", err); - return; - } - - utils::redis::add_event( - redis_connection, - utils::redis::FINALIZED_TRANSFERS, - tx_hash.to_string(), - serialized_claim_fee_args, - ) - .await; - } -} diff --git a/omni-relayer/src/startup/evm.rs b/omni-relayer/src/startup/evm.rs new file mode 100644 index 00000000..c4904d3b --- /dev/null +++ b/omni-relayer/src/startup/evm.rs @@ -0,0 +1,187 @@ +use anyhow::{Context, Result}; +use log::{info, warn}; +use omni_types::ChainKind; +use reqwest::Client; +use tokio_stream::StreamExt; + +use alloy::{ + primitives::Address, + providers::{Provider, ProviderBuilder, RootProvider, WsConnect}, + rpc::types::{Filter, Log}, + sol_types::SolEvent, + transports::http::Http, +}; +use ethereum_types::H256; + +use crate::{config, utils, workers::near::FinTransfer}; + +fn extract_evm_config(evm: config::Evm) -> (String, String, Address, u64, i64) { + ( + evm.rpc_http_url, + evm.rpc_ws_url, + evm.bridge_token_factory_address, + evm.block_processing_batch_size, + evm.expected_finalization_time, + ) +} + +pub async fn start_indexer( + config: config::Config, + redis_client: redis::Client, + chain_kind: ChainKind, + start_block: Option, +) -> Result<()> { + let mut redis_connection = redis_client.get_multiplexed_tokio_connection().await?; + + let ( + rpc_http_url, + rpc_ws_url, + bridge_token_factory_address, + block_processing_batch_size, + expected_finalization_time, + ) = match chain_kind { + ChainKind::Eth => extract_evm_config(config.eth.context("Failed to get Eth config")?), + ChainKind::Base => extract_evm_config(config.base.context("Failed to get Base config")?), + ChainKind::Arb => extract_evm_config(config.arb.context("Failed to get Arb config")?), + _ => anyhow::bail!("Unsupported chain kind: {chain_kind:?}"), + }; + + let http_provider = ProviderBuilder::new().on_http(rpc_http_url.parse().context(format!( + "Failed to parse {chain_kind:?} rpc provider as url", + ))?); + + let ws_provider = ProviderBuilder::new() + .on_ws(WsConnect::new(rpc_ws_url)) + .await + .context(format!("Failed to initialize {chain_kind:?} WS provider"))?; + + let last_processed_block_key = utils::redis::get_last_processed_key(chain_kind); + let latest_block = http_provider.get_block_number().await?; + let from_block = match start_block { + Some(block) => block, + None => { + utils::redis::get_last_processed(&mut redis_connection, &last_processed_block_key) + .await + .unwrap_or(latest_block) + + 1 + } + }; + + let filter = Filter::new() + .address(bridge_token_factory_address) + .event_signature( + [ + utils::evm::InitTransfer::SIGNATURE_HASH, + utils::evm::FinTransfer::SIGNATURE_HASH, + ] + .to_vec(), + ); + + for current_block in + (from_block..latest_block).step_by(usize::try_from(block_processing_batch_size)?) + { + let logs = http_provider + .get_logs( + &filter + .clone() + .from_block(current_block) + .to_block((current_block + block_processing_batch_size).min(latest_block)), + ) + .await?; + + for log in logs { + process_log( + chain_kind, + &mut redis_connection, + &http_provider, + log, + expected_finalization_time, + ) + .await; + } + } + + info!( + "All historical logs processed, starting {:?} WS subscription", + chain_kind + ); + + let mut stream = ws_provider.subscribe_logs(&filter).await?.into_stream(); + while let Some(log) = stream.next().await { + process_log( + chain_kind, + &mut redis_connection, + &http_provider, + log, + expected_finalization_time, + ) + .await; + } + + Ok(()) +} + +async fn process_log( + chain_kind: ChainKind, + redis_connection: &mut redis::aio::MultiplexedConnection, + http_provider: &RootProvider>, + log: Log, + expected_finalization_time: i64, +) { + let Some(tx_hash) = log.transaction_hash else { + warn!("No transaction hash in log: {:?}", log); + return; + }; + + let Ok(tx_logs) = http_provider.get_transaction_receipt(tx_hash).await else { + warn!("Failed to get transaction receipt for tx: {:?}", tx_hash); + return; + }; + + let tx_hash = H256::from_slice(tx_hash.as_slice()); + + let Some(block_number) = log.block_number else { + warn!("No block number in log: {:?}", log); + return; + }; + + if log.log_decode::().is_ok() { + utils::redis::add_event( + redis_connection, + utils::redis::EVM_INIT_TRANSFER_EVENTS, + tx_hash.to_string(), + crate::workers::evm::InitTransferWithTimestamp { + chain_kind, + block_number, + log, + tx_logs: tx_logs.map(Box::new), + creation_timestamp: chrono::Utc::now().timestamp(), + last_update_timestamp: None, + expected_finalization_time, + }, + ) + .await; + } else if log.log_decode::().is_ok() { + utils::redis::add_event( + redis_connection, + utils::redis::FINALIZED_TRANSFERS, + tx_hash.to_string(), + FinTransfer::Evm { + chain_kind, + block_number, + log, + tx_logs: tx_logs.map(Box::new), + creation_timestamp: chrono::Utc::now().timestamp(), + expected_finalization_time, + }, + ) + .await; + } + + utils::redis::update_last_processed( + redis_connection, + &utils::redis::get_last_processed_key(chain_kind), + block_number, + ) + .await; +} diff --git a/omni-relayer/src/startup/mod.rs b/omni-relayer/src/startup/mod.rs index ce2a9878..8c5c7e6c 100644 --- a/omni-relayer/src/startup/mod.rs +++ b/omni-relayer/src/startup/mod.rs @@ -2,31 +2,91 @@ use anyhow::{Context, Result}; use log::info; use near_crypto::InMemorySigner; + +use evm_bridge_client::{EvmBridgeClient, EvmBridgeClientBuilder}; +use near_bridge_client::NearBridgeClientBuilder; use omni_connector::{OmniConnector, OmniConnectorBuilder}; +use omni_types::ChainKind; +use solana_bridge_client::SolanaBridgeClientBuilder; +use solana_client::nonblocking::rpc_client::RpcClient; +use wormhole_bridge_client::WormholeBridgeClientBuilder; -use crate::config; +use crate::{config, startup}; -pub mod eth; +pub mod evm; pub mod near; +pub mod solana; -pub fn build_connector( +fn build_evm_bridge_client( + config: &config::Config, + chain_kind: ChainKind, +) -> Result> { + let evm = match chain_kind { + ChainKind::Eth => &config.eth, + ChainKind::Base => &config.base, + ChainKind::Arb => &config.arb, + _ => unreachable!("Function `build_evm_bridge_client` supports only EVM chains"), + }; + + evm.as_ref() + .map(|evm| { + EvmBridgeClientBuilder::default() + .endpoint(Some(evm.rpc_http_url.clone())) + .chain_id(Some(evm.chain_id)) + .private_key(Some(crate::config::get_private_key(chain_kind))) + .bridge_token_factory_address(Some(evm.bridge_token_factory_address.to_string())) + .build() + .context(format!("Failed to build EvmBridgeClient ({chain_kind:?})")) + }) + .transpose() +} + +pub fn build_omni_connector( config: &config::Config, near_signer: &InMemorySigner, ) -> Result { info!("Building Omni connector"); - OmniConnectorBuilder::default() - .eth_endpoint(Some(config.eth.rpc_http_url.clone())) - .eth_chain_id(Some(config.eth.chain_id)) - .near_endpoint(Some(config.near.rpc_url.clone())) + let near_bridge_client = NearBridgeClientBuilder::default() + .endpoint(Some(config.near.rpc_url.clone())) + .private_key(Some(near_signer.secret_key.to_string())) + .signer(Some(near_signer.account_id.to_string())) .token_locker_id(Some(config.near.token_locker_id.to_string())) - .bridge_token_factory_address(Some(config.eth.bridge_token_factory_address.to_string())) - .eth_private_key(Some( - std::env::var("ETH_PRIVATE_KEY") - .context("Failed to get `ETH_PRIVATE_KEY` env variable")?, - )) - .near_signer(Some(near_signer.account_id.to_string())) - .near_private_key(Some(near_signer.secret_key.to_string())) + .build() + .context("Failed to build NearBridgeClient")?; + + let eth_bridge_client = build_evm_bridge_client(config, ChainKind::Eth)?; + let base_bridge_client = build_evm_bridge_client(config, ChainKind::Base)?; + let arb_bridge_client = build_evm_bridge_client(config, ChainKind::Arb)?; + + let solana_bridge_client = config + .solana + .as_ref() + .map(|solana| { + SolanaBridgeClientBuilder::default() + .client(Some(RpcClient::new(solana.rpc_http_url.clone()))) + .program_id(Some(solana.program_id.parse()?)) + .wormhole_core(Some(solana.wormhole_id.parse()?)) + .keypair(Some(startup::solana::get_keypair( + solana.credentials_path.as_ref(), + ))) + .build() + .context("Failed to build SolanaBridgeClient") + }) + .transpose()?; + + let wormhole_bridge_client = WormholeBridgeClientBuilder::default() + .endpoint(Some(config.wormhole.api_url.clone())) + .build() + .context("Failed to build WormholeBridgeClient")?; + + OmniConnectorBuilder::default() + .near_bridge_client(Some(near_bridge_client)) + .eth_bridge_client(eth_bridge_client) + .base_bridge_client(base_bridge_client) + .arb_bridge_client(arb_bridge_client) + .solana_bridge_client(solana_bridge_client) + .wormhole_bridge_client(Some(wormhole_bridge_client)) .build() .context("Failed to build OmniConnector") } diff --git a/omni-relayer/src/startup/near.rs b/omni-relayer/src/startup/near.rs index f85bcfde..d2880a6c 100644 --- a/omni-relayer/src/startup/near.rs +++ b/omni-relayer/src/startup/near.rs @@ -1,65 +1,36 @@ -use std::{collections::HashMap, path::Path}; +use std::path::Path; use anyhow::{Context, Result}; use futures::StreamExt; use log::info; -use near_crypto::{InMemorySigner, SecretKey}; +use near_crypto::InMemorySigner; use near_jsonrpc_client::JsonRpcClient; use near_lake_framework::{LakeConfig, LakeConfigBuilder}; -use near_primitives::types::AccountId; +use omni_types::ChainKind; use crate::{config, utils}; -fn get_account_id(file: Option<&String>) -> Result { - if let Some(file) = file { - if let Some(file_stem) = Path::new(file).file_stem().and_then(|s| s.to_str()) { - if let Ok(account_id) = file_stem.parse::() { - info!("Retrieved account_id from filename: {}", account_id); - return Ok(account_id); - } - } - } - - let account_id = std::env::var("NEAR_ACCOUNT_ID") - .context("Failed to get `NEAR_ACCOUNT_ID` environment variable")?; - - info!("Retrieved account_id from env: {}", account_id); - - account_id - .parse() - .context("Failed to parse `NEAR_ACCOUNT_ID`") -} +pub fn get_signer(file: Option<&String>) -> Result { + info!("Creating NEAR signer"); -fn get_private_key(file: Option) -> Result { if let Some(file) = file { - if let Ok(file_content) = std::fs::read_to_string(file) { - if let Ok(key_data) = serde_json::from_str::>(&file_content) { - if let Some(private_key_str) = key_data.get("private_key") { - if let Ok(private_key) = private_key_str.parse::() { - info!("Retrieved private key from file"); - return Ok(private_key); - } - } - } + info!("Using NEAR credentials file: {}", file); + if let Ok(signer) = InMemorySigner::from_file(Path::new(file)) { + return Ok(signer); } } - let private_key_str = std::env::var("NEAR_PRIVATE_KEY") - .context("Failed to get `NEAR_PRIVATE_KEY` environment variable")?; + info!("Retrieving NEAR credentials from env"); - info!("Retrieved private key from env"); - - private_key_str + let account_id = std::env::var("NEAR_ACCOUNT_ID") + .context("Failed to get `NEAR_ACCOUNT_ID` environment variable")? .parse() - .context("Failed to parse private key") -} - -pub fn create_signer(file: Option) -> Result { - info!("Creating NEAR signer"); + .context("Failed to parse `NEAR_ACCOUNT_ID`")?; - let account_id = get_account_id(file.as_ref())?; - let private_key = get_private_key(file)?; + let private_key = config::get_private_key(ChainKind::Near) + .parse() + .context("Failed to parse private key")?; Ok(InMemorySigner::from_secret_key(account_id, private_key)) } @@ -68,15 +39,19 @@ async fn create_lake_config( config: &config::Config, redis_connection: &mut redis::aio::MultiplexedConnection, jsonrpc_client: &JsonRpcClient, + start_block: Option, ) -> Result { - let start_block_height = match utils::redis::get_last_processed_block( - redis_connection, - utils::redis::NEAR_LAST_PROCESSED_BLOCK, - ) - .await - { - Some(block_height) => block_height, - None => utils::near::get_final_block(jsonrpc_client).await?, + let start_block_height = match start_block { + Some(block) => block, + None => utils::redis::get_last_processed::<&str, u64>( + redis_connection, + &utils::redis::get_last_processed_key(ChainKind::Near), + ) + .await + .map_or( + utils::near::get_final_block(jsonrpc_client).await?, + |block_height| block_height + 1, + ), }; info!("NEAR Lake will start from block: {}", start_block_height); @@ -99,12 +74,14 @@ pub async fn start_indexer( config: config::Config, redis_client: redis::Client, jsonrpc_client: JsonRpcClient, + start_block: Option, ) -> Result<()> { info!("Starting NEAR indexer"); let mut redis_connection = redis_client.get_multiplexed_tokio_connection().await?; - let lake_config = create_lake_config(&config, &mut redis_connection, &jsonrpc_client).await?; + let lake_config = + create_lake_config(&config, &mut redis_connection, &jsonrpc_client, start_block).await?; let (_, stream) = near_lake_framework::streamer(lake_config); let stream = tokio_stream::wrappers::ReceiverStream::new(stream); @@ -112,20 +89,18 @@ pub async fn start_indexer( .map(move |streamer_message| { let config = config.clone(); let mut redis_connection = redis_connection.clone(); - let jsonrpc_client = jsonrpc_client.clone(); async move { utils::near::handle_streamer_message( &config, &mut redis_connection, - &jsonrpc_client, &streamer_message, ) .await; - utils::redis::update_last_processed_block( + utils::redis::update_last_processed( &mut redis_connection, - utils::redis::NEAR_LAST_PROCESSED_BLOCK, + &utils::redis::get_last_processed_key(ChainKind::Near), streamer_message.block.header.height, ) .await; diff --git a/omni-relayer/src/startup/solana.rs b/omni-relayer/src/startup/solana.rs new file mode 100644 index 00000000..25d5af43 --- /dev/null +++ b/omni-relayer/src/startup/solana.rs @@ -0,0 +1,151 @@ +use std::str::FromStr; + +use anyhow::Result; +use log::{info, warn}; +use solana_sdk::signer::EncodableKey; +use tokio_stream::StreamExt; + +use omni_types::ChainKind; +use solana_client::nonblocking::{pubsub_client::PubsubClient, rpc_client::RpcClient}; +use solana_client::rpc_client::GetConfirmedSignaturesForAddress2Config; +use solana_client::rpc_config::{RpcTransactionLogsConfig, RpcTransactionLogsFilter}; +use solana_client::rpc_response::RpcConfirmedTransactionStatusWithSignature; +use solana_sdk::signature::{Keypair, Signature}; +use solana_sdk::{commitment_config::CommitmentConfig, pubkey::Pubkey}; + +use crate::{config, utils}; + +pub fn get_keypair(file: Option<&String>) -> Keypair { + if let Some(file) = file { + if let Ok(keypair) = Keypair::read_from_file(file) { + info!("Retrieved keypair from file"); + return keypair; + } + } + + info!("Retrieving Solana keypair from env"); + + Keypair::from_base58_string(&config::get_private_key(ChainKind::Sol)) +} + +pub async fn start_indexer( + config: config::Config, + redis_client: redis::Client, + start_signature: Option, +) -> Result<()> { + let Some(solana_config) = config.solana else { + anyhow::bail!("Failed to get Solana config"); + }; + + let mut redis_connection = redis_client.get_multiplexed_tokio_connection().await?; + + let rpc_http_url = &solana_config.rpc_http_url; + let rpc_ws_url = &solana_config.rpc_ws_url; + let program_id = Pubkey::from_str(&solana_config.program_id)?; + + let http_client = RpcClient::new(rpc_http_url.to_string()); + + if let Err(e) = process_recent_signatures( + &mut redis_connection, + &http_client, + &program_id, + start_signature, + ) + .await + { + warn!("Failed to fetch recent logs: {}", e); + } + + info!("All historical logs processed, starting Solana WS subscription"); + + let Ok(ws_client) = PubsubClient::new(rpc_ws_url).await else { + anyhow::bail!("Failed to connect to Solana WebSocket"); + }; + + let filter = RpcTransactionLogsFilter::Mentions(vec![program_id.to_string()]); + let config = RpcTransactionLogsConfig { + commitment: Some(CommitmentConfig::processed()), + }; + + let Ok((mut log_stream, _)) = ws_client.logs_subscribe(filter, config).await else { + anyhow::bail!("Failed to subscribe to Solana logs"); + }; + + info!("Subscribed to live Solana logs"); + + while let Some(log) = log_stream.next().await { + let Ok(signature) = Signature::from_str(&log.value.signature) else { + warn!("Failed to parse signature: {:?}", log.value.signature); + continue; + }; + + info!("Found a signature on Solana: {:?}", signature); + + utils::redis::add_event( + &mut redis_connection, + utils::redis::SOLANA_EVENTS, + signature.to_string(), + // TODO: It's better to come up with a solution that wouldn't require storing `Null` value + serde_json::Value::Null, + ) + .await; + } + + Ok(()) +} + +async fn process_recent_signatures( + redis_connection: &mut redis::aio::MultiplexedConnection, + http_client: &RpcClient, + program_id: &Pubkey, + start_signature: Option, +) -> Result<()> { + let from_signature = if let Some(signature) = start_signature { + utils::redis::add_event( + redis_connection, + utils::redis::SOLANA_EVENTS, + signature.clone(), + // TODO: It's better to come up with a solution that wouldn't require storing `Null` value + serde_json::Value::Null, + ) + .await; + + Signature::from_str(&signature)? + } else { + let Some(signature) = utils::redis::get_last_processed::<&str, String>( + redis_connection, + &utils::redis::get_last_processed_key(ChainKind::Sol), + ) + .await + .and_then(|s| Signature::from_str(&s).ok()) else { + return Ok(()); + }; + + signature + }; + + let signatures: Vec = http_client + .get_signatures_for_address_with_config( + program_id, + GetConfirmedSignaturesForAddress2Config { + limit: None, + before: None, + until: Some(from_signature), + commitment: Some(CommitmentConfig::confirmed()), + }, + ) + .await?; + + for signature_status in &signatures { + utils::redis::add_event( + redis_connection, + utils::redis::SOLANA_EVENTS, + signature_status.signature.clone(), + // TODO: It's better to come up with a solution that wouldn't require storing `Null` value + serde_json::Value::Null, + ) + .await; + } + + Ok(()) +} diff --git a/omni-relayer/src/utils/evm.rs b/omni-relayer/src/utils/evm.rs new file mode 100644 index 00000000..66674c1b --- /dev/null +++ b/omni-relayer/src/utils/evm.rs @@ -0,0 +1,153 @@ +use std::{str::FromStr, sync::Arc}; + +use log::warn; + +use anyhow::Result; +use omni_connector::OmniConnector; +use omni_types::{ + prover_args::{EvmVerifyProofArgs, WormholeVerifyProofArgs}, + prover_result::ProofKind, + ChainKind, OmniAddress, H160, +}; + +use alloy::sol; +use ethereum_types::H256; + +use crate::config; + +sol!( + #[derive(Debug, serde::Serialize, serde::Deserialize)] + event InitTransfer( + address indexed sender, + address indexed tokenAddress, + uint64 indexed originNonce, + uint128 amount, + uint128 fee, + uint128 nativeFee, + string recipient, + string message + ); + + #[derive(Debug, serde::Serialize, serde::Deserialize)] + event FinTransfer( + uint8 indexed originChain, + uint64 indexed originNonce, + address tokenAddress, + uint128 amount, + address recipient, + string feeRecipient + ); + + #[derive(Debug, serde::Serialize, serde::Deserialize)] + event LogMessagePublished( + address sender, + uint64 sequence, + uint32 nonce, + bytes payload, + uint8 consistencyLevel + ); +); + +pub async fn get_vaa_from_evm_log( + connector: Arc, + chain_kind: ChainKind, + tx_logs: Option>, + config: &config::Config, +) -> Option { + let Some(tx_logs) = tx_logs else { + warn!("Tx logs are empty"); + return None; + }; + + let (chain_id, bridge_token_factory) = match chain_kind { + ChainKind::Eth => ( + config.wormhole.eth_chain_id, + if let Some(eth) = &config.eth { + eth.bridge_token_factory_address + } else { + return None; + }, + ), + ChainKind::Base => ( + config.wormhole.base_chain_id, + if let Some(base) = &config.base { + base.bridge_token_factory_address + } else { + return None; + }, + ), + ChainKind::Arb => ( + config.wormhole.arb_chain_id, + if let Some(arb) = &config.arb { + arb.bridge_token_factory_address + } else { + return None; + }, + ), + _ => unreachable!( + "Function `get_vaa_from_evm_log` supports getting VAA from only EVM chains" + ), + }; + + for log in tx_logs.inner.logs() { + let Ok(log) = log.log_decode::() else { + continue; + }; + + let Ok(vaa) = connector + .wormhole_get_vaa(chain_id, bridge_token_factory, log.inner.sequence) + .await + else { + continue; + }; + + return Some(vaa); + } + + None +} + +pub async fn construct_prover_args( + config: &config::Config, + vaa: Option, + tx_hash: H256, + topic: H256, + proof_kind: ProofKind, +) -> Option> { + if let Some(vaa) = vaa { + let wormhole_proof_args = WormholeVerifyProofArgs { proof_kind, vaa }; + + return borsh::to_vec(&wormhole_proof_args).ok(); + } + + // For now only Eth chain is supported since it has a light client + let Some(ref eth) = config.eth else { + warn!("Eth chain is not configured"); + return None; + }; + + let evm_proof_args = + match eth_proof::get_proof_for_event(tx_hash, topic, ð.rpc_http_url).await { + Ok(proof) => proof, + Err(err) => { + warn!("Failed to get proof: {}", err); + return None; + } + }; + + let evm_proof_args = EvmVerifyProofArgs { + proof_kind, + proof: evm_proof_args, + }; + + borsh::to_vec(&evm_proof_args).ok() +} + +pub fn string_to_evm_omniaddress(chain_kind: ChainKind, address: &str) -> Result { + OmniAddress::new_from_evm_address( + chain_kind, + H160::from_str(address) + .map_err(|err| anyhow::anyhow!("Failed to parse as H160 address: {:?}", err))?, + ) + .map_err(|err| anyhow::anyhow!("Failed to parse as EvmOmniAddress address: {:?}", err)) +} diff --git a/omni-relayer/src/utils/fee.rs b/omni-relayer/src/utils/fee.rs index 791d265f..23f3edd3 100644 --- a/omni-relayer/src/utils/fee.rs +++ b/omni-relayer/src/utils/fee.rs @@ -1,78 +1,41 @@ -use std::collections::HashMap; - +use alloy::primitives::U256; use anyhow::Result; +use omni_types::{Fee, OmniAddress}; -use near_jsonrpc_client::{methods, JsonRpcClient}; -use near_jsonrpc_primitives::types::query::QueryResponseKind; -use near_primitives::{types::{AccountId, BlockReference}, views::QueryRequest}; -use omni_types::OmniAddress; -use serde_json::from_slice; +use crate::config; #[derive(Debug, serde::Deserialize)] -pub struct Metadata { - pub decimals: u32, +struct TransferFeeResponse { + native_token_fee: Option, + transferred_token_fee: Option, } -pub async fn get_token_decimals(jsonrpc_client: &JsonRpcClient, token: &AccountId) -> Result { - let request = methods::query::RpcQueryRequest { - block_reference: BlockReference::latest(), - request: QueryRequest::CallFunction { - account_id: token.clone(), - method_name: "ft_metadata".to_string(), - args: Vec::new().into() - }, - }; - - let response = jsonrpc_client.call(request).await?; - - if let QueryResponseKind::CallResult(result) = response.kind { - Ok(from_slice::(&result.result)?.decimals) - } else { - anyhow::bail!("Failed to get token decimals") +pub async fn is_fee_sufficient( + config: &config::Config, + provided_fee: Fee, + sender: &OmniAddress, + recipient: &OmniAddress, + token: &OmniAddress, +) -> Result { + let url = format!( + "{}/api/v1/transfer-fee?sender={}&recipient={}&token={}", + config.bridge_indexer.api_url, sender, recipient, token + ); + + let response = reqwest::get(&url) + .await? + .json::() + .await?; + + let native_fee = response.native_token_fee.unwrap_or_default(); + let transferred_fee = response.transferred_token_fee.unwrap_or_default(); + + match (native_fee, transferred_fee) { + (0, 0) => anyhow::bail!("No fee information found"), + (0, fee) if fee > 0 => Ok(provided_fee.fee.0 >= fee), + (native_fee, 0) if native_fee > 0 => Ok(provided_fee.native_fee.0 >= native_fee), + (native_fee, fee) => Ok(U256::from(provided_fee.fee.0) * U256::from(native_fee) + + U256::from(provided_fee.native_fee.0) * U256::from(fee) + >= U256::from(fee) * U256::from(native_fee)), } } - -pub async fn get_price_by_symbol(symbol: &str) -> Result { - let url = - format!("https://api.coingecko.com/api/v3/simple/price?ids={symbol}&vs_currencies=usd"); - - let response = reqwest::get(&url).await?; - let json = response.json::>>().await?; - - json.get(symbol) - .and_then(|inner_map| inner_map.get("usd").copied()) - .ok_or_else(|| anyhow::anyhow!("Failed to get price for symbol: {}", symbol)) -} - -pub async fn get_price_by_contract_address(platform: &str, address: &str) -> Result { - let url = - format!("https://api.coingecko.com/api/v3/simple/token_price/{platform}?contract_addresses={address}&vs_currencies=usd"); - - let response = reqwest::get(&url).await?; - let json = response.json::>>().await?; - - json.get(address) - .and_then(|inner_map| inner_map.get("usd").copied()) - .ok_or_else(|| anyhow::anyhow!("Failed to get price for address: {}", address)) -} - -pub async fn is_fee_sufficient(jsonrpc_client: &JsonRpcClient, sender: &OmniAddress, recipient: &OmniAddress, token: &AccountId, fee: u128) -> Result { - let token_price = get_price_by_contract_address("near-protocol", token.as_ref()).await?; - let token_decimals = get_token_decimals(jsonrpc_client, token).await?; - - let given_fee = fee as f64 / 10u128.pow(token_decimals) as f64 * token_price; - - // TODO: Right now I chose a random fee (around 0.10 USD), but it should be calculated based on the chain in the future - let sender_fee = match sender { - OmniAddress::Near(_) => 0.03 * get_price_by_symbol("near").await?, - OmniAddress::Eth(_) => 0.00005 * get_price_by_symbol("ethereum").await?, - OmniAddress::Sol(_) => 0.001 * get_price_by_symbol("solana").await? - }; - let recipient_fee = match recipient { - OmniAddress::Near(_) => 0.03 * get_price_by_symbol("near").await?, - OmniAddress::Eth(_) => 0.00005 * get_price_by_symbol("ethereum").await?, - OmniAddress::Sol(_) => 0.001 * get_price_by_symbol("solana").await? - }; - - Ok(sender_fee + recipient_fee <= given_fee) -} diff --git a/omni-relayer/src/utils/mod.rs b/omni-relayer/src/utils/mod.rs index 5bdec141..4dbf5190 100644 --- a/omni-relayer/src/utils/mod.rs +++ b/omni-relayer/src/utils/mod.rs @@ -1,5 +1,7 @@ +pub mod evm; +#[cfg(not(feature = "disable_fee_check"))] pub mod fee; pub mod near; pub mod redis; +pub mod solana; pub mod storage; -pub mod wormhole; diff --git a/omni-relayer/src/utils/near.rs b/omni-relayer/src/utils/near.rs index 3b617894..f1d56196 100644 --- a/omni-relayer/src/utils/near.rs +++ b/omni-relayer/src/utils/near.rs @@ -1,12 +1,21 @@ -use anyhow::Result; -use log::{info, warn}; +use anyhow::{Context, Result}; +use log::info; -use near_jsonrpc_client::{methods::block::RpcBlockRequest, JsonRpcClient}; +use near_jsonrpc_client::{ + methods::{self, block::RpcBlockRequest}, + JsonRpcClient, +}; +use near_jsonrpc_primitives::types::query::QueryResponseKind; use near_lake_framework::near_indexer_primitives::{ views::{ActionView, ReceiptEnumView, ReceiptView}, IndexerExecutionOutcomeWithReceipt, StreamerMessage, }; -use omni_types::near_events::Nep141LockerEvent; +use near_primitives::{ + borsh::{from_slice, BorshDeserialize}, + types::BlockReference, + views::QueryRequest, +}; +use omni_types::{near_events::OmniBridgeEvent, ChainKind}; use crate::{config, utils}; @@ -25,10 +34,43 @@ pub async fn get_final_block(jsonrpc_client: &JsonRpcClient) -> Result { .map_err(Into::into) } +#[derive(BorshDeserialize)] +struct EthLightClientResponse { + last_block_number: u64, +} + +pub async fn get_eth_light_client_last_block_number( + config: &config::Config, + jsonrpc_client: &JsonRpcClient, +) -> Result { + let Some(ref eth) = config.eth else { + anyhow::bail!("Failed to get ETH light client"); + }; + + let request = methods::query::RpcQueryRequest { + block_reference: BlockReference::latest(), + request: QueryRequest::CallFunction { + account_id: eth + .light_client + .clone() + .context("Failed to get ETH light client")?, + method_name: "last_block_number".to_string(), + args: Vec::new().into(), + }, + }; + + let response = jsonrpc_client.call(request).await?; + + if let QueryResponseKind::CallResult(result) = response.kind { + Ok(from_slice::(&result.result)?.last_block_number) + } else { + anyhow::bail!("Failed to get token decimals") + } +} + pub async fn handle_streamer_message( config: &config::Config, redis_connection: &mut redis::aio::MultiplexedConnection, - jsonrpc_client: &JsonRpcClient, streamer_message: &StreamerMessage, ) { let nep_locker_event_outcomes = find_nep_locker_event_outcomes(config, streamer_message); @@ -36,64 +78,61 @@ pub async fn handle_streamer_message( let nep_locker_event_logs = nep_locker_event_outcomes .iter() .flat_map(|outcome| outcome.execution_outcome.outcome.logs.clone()) - .filter_map(|log| serde_json::from_str::(&log).ok()) + .filter_map(|log| serde_json::from_str::(&log).ok()) .collect::>(); for log in nep_locker_event_logs { - info!("Processing Nep141LockerEvent: {:?}", log); + info!("Processing OmniBridgeEvent: {:?}", log); match log { - Nep141LockerEvent::InitTransferEvent { + OmniBridgeEvent::InitTransferEvent { ref transfer_message, } - // TODO: Later it's better to add a separate key in db for storing events with any - // troubles there. For now we just update whole event with a new fee for the same nonce - | Nep141LockerEvent::UpdateFeeEvent { + | OmniBridgeEvent::UpdateFeeEvent { ref transfer_message, } => { - // TODO: If fee is insufficient, it should be handled later. For example, - // add to redis and try again in 1 hour - match utils::fee::is_fee_sufficient( - jsonrpc_client, - &transfer_message.sender, - &transfer_message.recipient, - &transfer_message.token, - transfer_message.fee.into(), - ) - .await - { - Ok(res) => { - if !res { - warn!("Fee is insufficient"); - } - } - Err(err) => { - warn!("Failed to check fee: {}", err); - } - } - utils::redis::add_event( redis_connection, - utils::redis::NEAR_INIT_TRANSFER_EVENTS, - transfer_message.origin_nonce.0.to_string(), - log, + utils::redis::NEAR_INIT_TRANSFER_QUEUE, + transfer_message.origin_nonce.to_string(), + crate::workers::near::InitTransferWithTimestamp { + event: log, + creation_timestamp: chrono::Utc::now().timestamp(), + last_update_timestamp: None, + }, ) .await; } - Nep141LockerEvent::SignTransferEvent { + OmniBridgeEvent::SignTransferEvent { ref message_payload, .. } => { utils::redis::add_event( redis_connection, utils::redis::NEAR_SIGN_TRANSFER_EVENTS, - message_payload.nonce.0.to_string(), + message_payload.destination_nonce.to_string(), log, ) .await; } - Nep141LockerEvent::FinTransferEvent { .. } - | Nep141LockerEvent::LogMetadataEvent { .. } => {} + OmniBridgeEvent::FinTransferEvent { + ref transfer_message, + } => { + if transfer_message.recipient.get_chain() != ChainKind::Near { + utils::redis::add_event( + redis_connection, + utils::redis::NEAR_INIT_TRANSFER_QUEUE, + transfer_message.origin_nonce.to_string(), + crate::workers::near::InitTransferWithTimestamp { + event: log, + creation_timestamp: chrono::Utc::now().timestamp(), + last_update_timestamp: None, + }, + ) + .await; + } + } + OmniBridgeEvent::ClaimFeeEvent { .. } | OmniBridgeEvent::LogMetadataEvent { .. } => {} } } } diff --git a/omni-relayer/src/utils/redis.rs b/omni-relayer/src/utils/redis.rs index 728e3179..eea9c83e 100644 --- a/omni-relayer/src/utils/redis.rs +++ b/omni-relayer/src/utils/redis.rs @@ -1,48 +1,66 @@ use log::warn; +use omni_types::ChainKind; use redis::{aio::MultiplexedConnection, AsyncCommands}; -pub const NEAR_LAST_PROCESSED_BLOCK: &str = "near_last_processed_block"; -pub const NEAR_INIT_TRANSFER_EVENTS: &str = "near_init_transfer_events"; +pub const NEAR_INIT_TRANSFER_QUEUE: &str = "near_init_transfer_queue"; pub const NEAR_SIGN_TRANSFER_EVENTS: &str = "near_sign_transfer_events"; -pub const ETH_LAST_PROCESSED_BLOCK: &str = "eth_last_processed_block"; -pub const ETH_WITHDRAW_EVENTS: &str = "eth_withdraw_events"; + +pub const EVM_INIT_TRANSFER_EVENTS: &str = "evm_init_tranfer_events"; + +pub const SOLANA_EVENTS: &str = "solana_events"; +pub const SOLANA_INIT_TRANSFER_EVENTS: &str = "solana_init_transfer_events"; + pub const FINALIZED_TRANSFERS: &str = "finalized_transfers"; + +pub const KEEP_INSUFFICIENT_FEE_TRANSFERS_FOR: i64 = 60 * 60 * 24 * 14; // 14 days +pub const CHECK_INSUFFICIENT_FEE_TRANSFERS_EVERY_SECS: i64 = 60 * 30; // 30 minutes + pub const SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS: u64 = 10; -const RETRY_ATTEMPTS: u64 = 10; -const RETRY_SLEEP_SECS: u64 = 1; +const QUERY_RETRY_ATTEMPTS: u64 = 10; +const QUERY_RETRY_SLEEP_SECS: u64 = 1; -pub async fn get_last_processed_block( +pub fn get_last_processed_key(chain_kind: ChainKind) -> String { + match chain_kind { + ChainKind::Sol => "SOLANA_LAST_PROCESSED_SIGNATURE".to_string(), + _ => format!("{chain_kind:?}_LAST_PROCESSED_BLOCK"), + } +} + +pub async fn get_last_processed( redis_connection: &mut MultiplexedConnection, - key: &str, -) -> Option { - for _ in 0..RETRY_ATTEMPTS { - if let Ok(res) = redis_connection.get::<&str, u64>(key).await { + key: K, +) -> Option +where + K: redis::ToRedisArgs + Copy + Send + Sync, + V: redis::FromRedisValue + Send + Sync, +{ + for _ in 0..QUERY_RETRY_ATTEMPTS { + if let Ok(res) = redis_connection.get::(key).await { return Some(res); } - tokio::time::sleep(tokio::time::Duration::from_secs(RETRY_SLEEP_SECS)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(QUERY_RETRY_SLEEP_SECS)).await; } warn!("Failed to get last processed block from redis db"); None } -pub async fn update_last_processed_block( +pub async fn update_last_processed( redis_connection: &mut MultiplexedConnection, - key: &str, - value: u64, -) { - for _ in 0..RETRY_ATTEMPTS { - if redis_connection - .set::<&str, u64, ()>(key, value) - .await - .is_ok() - { + key: K, + value: V, +) where + K: redis::ToRedisArgs + Copy + Send + Sync, + V: redis::ToRedisArgs + Copy + Send + Sync, +{ + for _ in 0..QUERY_RETRY_ATTEMPTS { + if redis_connection.set::(key, value).await.is_ok() { return; } - tokio::time::sleep(tokio::time::Duration::from_secs(RETRY_SLEEP_SECS)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(QUERY_RETRY_SLEEP_SECS)).await; } warn!("Failed to update last processed block in redis db"); @@ -52,7 +70,7 @@ pub async fn get_events( redis_connection: &mut MultiplexedConnection, key: String, ) -> Option> { - for _ in 0..RETRY_ATTEMPTS { + for _ in 0..QUERY_RETRY_ATTEMPTS { if let Ok(mut iter) = redis_connection .hscan::(key.clone()) .await @@ -66,7 +84,7 @@ pub async fn get_events( return Some(events); } - tokio::time::sleep(tokio::time::Duration::from_secs(RETRY_SLEEP_SECS)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(QUERY_RETRY_SLEEP_SECS)).await; } warn!("Failed to get events from redis db"); @@ -87,7 +105,7 @@ pub async fn add_event( return; }; - for _ in 0..RETRY_ATTEMPTS { + for _ in 0..QUERY_RETRY_ATTEMPTS { if redis_connection .hset::<&str, F, String, ()>(key, field.clone(), serialized_event.clone()) .await @@ -96,7 +114,7 @@ pub async fn add_event( return; } - tokio::time::sleep(tokio::time::Duration::from_secs(RETRY_SLEEP_SECS)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(QUERY_RETRY_SLEEP_SECS)).await; } warn!("Failed to add event to redis db"); @@ -106,7 +124,7 @@ pub async fn remove_event(redis_connection: &mut MultiplexedConnection, key: where F: redis::ToRedisArgs + Clone + Send + Sync, { - for _ in 0..RETRY_ATTEMPTS { + for _ in 0..QUERY_RETRY_ATTEMPTS { if redis_connection .hdel::<&str, F, ()>(key, field.clone()) .await @@ -115,7 +133,7 @@ where return; } - tokio::time::sleep(tokio::time::Duration::from_secs(RETRY_SLEEP_SECS)).await; + tokio::time::sleep(tokio::time::Duration::from_secs(QUERY_RETRY_SLEEP_SECS)).await; } warn!("Failed to remove event from redis db"); diff --git a/omni-relayer/src/utils/solana.rs b/omni-relayer/src/utils/solana.rs new file mode 100644 index 00000000..0aa7511d --- /dev/null +++ b/omni-relayer/src/utils/solana.rs @@ -0,0 +1,214 @@ +use anyhow::{Context, Result}; +use log::{info, warn}; + +use borsh::BorshDeserialize; +use solana_sdk::{bs58, pubkey::Pubkey, signature::Signature}; +use solana_transaction_status::{ + option_serializer::OptionSerializer, EncodedTransactionWithStatusMeta, UiRawMessage, +}; + +use crate::workers::near::FinTransfer; +use crate::workers::solana::InitTransferWithTimestamp; +use crate::{config, utils}; + +#[derive(Debug, BorshDeserialize)] +struct InitTransferPayload { + pub amount: u128, + pub recipient: String, + pub fee: u128, + pub native_fee: u64, +} + +pub async fn process_message( + redis_connection: &mut redis::aio::MultiplexedConnection, + solana: &config::Solana, + transaction: &EncodedTransactionWithStatusMeta, + message: &UiRawMessage, + signature: Signature, +) { + for instruction in message.instructions.clone() { + let account_keys = instruction + .accounts + .into_iter() + .map(|i| message.account_keys.get(usize::from(i)).cloned()) + .collect::>(); + + if let Err(err) = decode_instruction( + redis_connection, + solana, + signature, + transaction, + &instruction.data, + account_keys, + ) + .await + { + warn!("Failed to decode instruction: {}", err); + } + } +} + +async fn decode_instruction( + redis_connection: &mut redis::aio::MultiplexedConnection, + solana: &config::Solana, + signature: Signature, + transaction: &EncodedTransactionWithStatusMeta, + data: &str, + account_keys: Vec>, +) -> Result<()> { + let decoded_data = bs58::decode(data).into_vec()?; + + if let Some((discriminator, offset)) = [ + ( + &solana.init_transfer_discriminator, + solana.init_transfer_discriminator.len(), + ), + ( + &solana.init_transfer_sol_discriminator, + solana.init_transfer_sol_discriminator.len(), + ), + ] + .into_iter() + .find_map(|(discriminator, len)| { + decoded_data + .starts_with(discriminator) + .then_some((discriminator, len)) + }) { + info!("Received InitTransfer on Solana"); + + let mut payload_data = decoded_data + .get(offset..) + .context("Decoded data is too short")?; + + if let Ok(payload) = InitTransferPayload::deserialize(&mut payload_data) { + let (sender, token, emitter) = if discriminator == &solana.init_transfer_discriminator { + let sender = account_keys + .get(solana.init_transfer_sender_index) + .context("Missing sender account key")? + .as_ref() + .context("Sender account key is None")?; + let token = account_keys + .get(solana.init_transfer_token_index) + .context("Missing token account key")? + .as_ref() + .context("Sender account key is None")?; + let emitter = account_keys + .get(solana.init_transfer_emitter_index) + .context("Missing emitter account key")? + .as_ref() + .context("Emitter key is None")?; + (sender, token, emitter) + } else { + let sender = account_keys + .get(solana.init_transfer_sol_sender_index) + .context("Missing SOL sender account key")? + .as_ref() + .context("SOL sender account key is None")?; + let emitter = account_keys + .get(solana.init_transfer_sol_emitter_index) + .context("Missing SOL emitter account key")? + .as_ref() + .context("Sol emitter key is None")?; + (sender, &Pubkey::default().to_string(), emitter) + }; + + if let Some(OptionSerializer::Some(logs)) = + transaction.clone().meta.map(|meta| meta.log_messages) + { + for log in logs { + if log.contains("Sequence") { + let Some(sequence) = log + .split_ascii_whitespace() + .last() + .map(std::string::ToString::to_string) + else { + warn!("Failed to parse sequence number from log: {:?}", log); + continue; + }; + + let Ok(sequence) = sequence.parse() else { + warn!("Failed to parse sequence as a number: {:?}", sequence); + continue; + }; + + utils::redis::add_event( + redis_connection, + utils::redis::SOLANA_INIT_TRANSFER_EVENTS, + signature.to_string(), + InitTransferWithTimestamp { + amount: payload.amount, + token: token.clone(), + sender: sender.clone(), + recipient: payload.recipient.clone(), + fee: payload.fee, + native_fee: payload.native_fee, + emitter: emitter.clone(), + sequence, + creation_timestamp: chrono::Utc::now().timestamp(), + last_update_timestamp: None, + }, + ) + .await; + } + } + } + } + } else if let Some(discriminator) = [ + &solana.finalize_transfer_discriminator, + &solana.finalize_transfer_sol_discriminator, + ] + .into_iter() + .find(|discriminator| decoded_data.starts_with(discriminator)) + { + info!("Received FinTransfer on Solana"); + + let emitter = if discriminator == &solana.finalize_transfer_discriminator { + account_keys + .get(solana.finalize_transfer_emitter_index) + .context("Missing emitter account key")? + .as_ref() + .context("Emitter account key is None")? + } else { + account_keys + .get(solana.finalize_transfer_sol_emitter_index) + .context("Missing SOL emitter account key")? + .as_ref() + .context("SOL emitter account key is None")? + }; + + if let Some(OptionSerializer::Some(logs)) = + transaction.clone().meta.map(|meta| meta.log_messages) + { + for log in logs { + if log.contains("Sequence") { + let Some(sequence) = log + .split_ascii_whitespace() + .last() + .map(std::string::ToString::to_string) + else { + warn!("Failed to parse sequence number from log: {:?}", log); + continue; + }; + + let Ok(sequence) = sequence.parse() else { + warn!("Failed to parse sequence as a number: {:?}", sequence); + continue; + }; + + utils::redis::add_event( + redis_connection, + utils::redis::FINALIZED_TRANSFERS, + signature.to_string(), + FinTransfer::Solana { + emitter: emitter.clone(), + sequence, + }, + ) + .await; + } + } + } + } + + Ok(()) +} diff --git a/omni-relayer/src/utils/storage.rs b/omni-relayer/src/utils/storage.rs index a4ac82aa..f8994b52 100644 --- a/omni-relayer/src/utils/storage.rs +++ b/omni-relayer/src/utils/storage.rs @@ -1,45 +1,121 @@ +use std::str::FromStr; + use anyhow::Result; -use near_jsonrpc_client::{methods::query::RpcQueryRequest, JsonRpcClient}; -use near_jsonrpc_primitives::types::query::QueryResponseKind; -use near_primitives::{ - types::{AccountId, BlockReference, Finality}, - views::QueryRequest, -}; +use near_primitives::types::AccountId; +use omni_connector::OmniConnector; +use omni_types::{locker_args::StorageDepositAction, ChainKind, OmniAddress}; +use solana_sdk::pubkey::Pubkey; + +use crate::utils; + +async fn get_token_id( + connector: &OmniConnector, + chain_kind: ChainKind, + token_address: &str, +) -> Result { + let omni_token_address = match chain_kind { + ChainKind::Near => { + let token = AccountId::from_str(token_address).map_err(|_| { + format!("Failed to parse token address as AccountId: {token_address:?}",) + })?; + Ok(OmniAddress::Near(token)) + } + ChainKind::Eth | ChainKind::Base | ChainKind::Arb => { + utils::evm::string_to_evm_omniaddress(chain_kind, token_address) + .map_err(|err| err.to_string()) + } + ChainKind::Sol => { + let token = Pubkey::from_str(token_address).map_err(|_| { + format!("Failed to parse token address as Pubkey: {token_address:?}",) + })?; + OmniAddress::new_from_slice(ChainKind::Sol, &token.to_bytes()) + } + } + .map_err(|_| format!("Failed to convert token address to OmniAddress: {token_address:?}",))?; -const NEP141_STORAGE_DEPOSIT: u128 = 1_250_000_000_000_000_000_000; + let token_id = connector + .near_get_token_id(omni_token_address.clone()) + .await + .map_err(|_| { + format!("Failed to get token id by omni token address: {omni_token_address:?}",) + })?; -#[derive(Debug, serde::Deserialize)] -struct StorageBalance { - total: String, + Ok(token_id) } -pub async fn is_storage_sufficient( - jsonrpc_client: &JsonRpcClient, - token: &AccountId, - accound_id: &AccountId, -) -> Result { - let request = RpcQueryRequest { - block_reference: BlockReference::Finality(Finality::Final), - request: QueryRequest::CallFunction { - account_id: token.clone(), - method_name: "storage_balance_of".to_string(), - args: serde_json::json!({ "account_id": accound_id }) - .to_string() - .into_bytes() - .into(), - }, +async fn add_storage_deposit_action( + connector: &OmniConnector, + storage_deposit_actions: &mut Vec, + token_id: AccountId, + account_id: AccountId, +) -> Result<(), String> { + let storage_deposit_amount = match connector + .near_get_required_storage_deposit(token_id.clone(), account_id.clone()) + .await + .map_err(|_| { + format!("Failed to get required storage deposit for account: {account_id:?}",) + })? { + amount if amount > 0 => Some(amount), + _ => None, }; - if let QueryResponseKind::CallResult(result) = jsonrpc_client.call(request).await?.kind { - if let Ok(storage) = serde_json::from_slice::(&result.result) { - if let Ok(parsed_total) = storage.total.parse::() { - return Ok(parsed_total >= NEP141_STORAGE_DEPOSIT); - } - } + storage_deposit_actions.push(StorageDepositAction { + token_id, + account_id, + storage_deposit_amount, + }); + + Ok(()) +} - Ok(false) - } else { - anyhow::bail!("Failed to get storage balance") +pub async fn get_storage_deposit_actions( + connector: &OmniConnector, + chain_kind: ChainKind, + recipient: &OmniAddress, + token_address: &str, + fee: u128, + native_fee: u128, +) -> Result, String> { + let mut storage_deposit_actions = Vec::new(); + + if let OmniAddress::Near(near_recipient) = recipient { + let token_id = get_token_id(connector, chain_kind, token_address).await?; + add_storage_deposit_action( + connector, + &mut storage_deposit_actions, + token_id, + near_recipient.clone(), + ) + .await?; + } + + if fee > 0 { + let token_id = get_token_id(connector, chain_kind, token_address).await?; + + let relayer = connector + .near_bridge_client() + .and_then(|client| client.signer().map(|signer| signer.account_id)) + .map_err(|_| "Failed to get relayer account id".to_string())?; + + add_storage_deposit_action(connector, &mut storage_deposit_actions, token_id, relayer) + .await?; } + + if native_fee > 0 { + let token_id = connector + .near_get_native_token_id(chain_kind) + .await + .map_err(|_| format!("Failed to get native token id by chain kind: {chain_kind:?}",))?; + + let relayer = connector + .near_bridge_client() + .and_then(|client| client.signer().map(|signer| signer.account_id)) + .map_err(|_| "Failed to get relayer account id".to_string())?; + + add_storage_deposit_action(connector, &mut storage_deposit_actions, token_id, relayer) + .await?; + } + + Ok(storage_deposit_actions) } diff --git a/omni-relayer/src/utils/wormhole.rs b/omni-relayer/src/utils/wormhole.rs deleted file mode 100644 index 2ed578dd..00000000 --- a/omni-relayer/src/utils/wormhole.rs +++ /dev/null @@ -1,20 +0,0 @@ -use anyhow::Result; - -use alloy::primitives::Address; - -#[derive(Debug, serde::Deserialize)] -struct WormholeApiResponse { - data: WormholeApiData, -} - -#[derive(Debug, serde::Deserialize)] -struct WormholeApiData { - vaa: String, -} - -pub async fn get_vaa(chain_id: u64, emitter: Address, sequence: u64) -> Result { - let url = format!("https://api.wormholescan.io/api/v1/vaas/{chain_id}/{emitter}/{sequence}"); - - let response = reqwest::get(url).await?; - Ok(response.json::().await?.data.vaa) -} diff --git a/omni-relayer/src/workers/eth.rs b/omni-relayer/src/workers/eth.rs deleted file mode 100644 index 89549bbc..00000000 --- a/omni-relayer/src/workers/eth.rs +++ /dev/null @@ -1,75 +0,0 @@ -use std::sync::Arc; - -use anyhow::Result; -use futures::future::join_all; -use log::warn; - -use near_primitives::borsh; -use omni_connector::OmniConnector; -use omni_types::locker_args::FinTransferArgs; - -use crate::utils; - -pub async fn finalize_withdraw( - redis_client: redis::Client, - connector: Arc, -) -> Result<()> { - let redis_connection = redis_client.get_multiplexed_tokio_connection().await?; - - loop { - let mut redis_connection_clone = redis_connection.clone(); - let Some(events) = utils::redis::get_events( - &mut redis_connection_clone, - utils::redis::ETH_WITHDRAW_EVENTS.to_string(), - ) - .await - else { - tokio::time::sleep(tokio::time::Duration::from_secs( - utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, - )) - .await; - continue; - }; - - let mut handlers = Vec::new(); - for (key, event) in events { - if let Ok(withdraw_log) = serde_json::from_str::>(&event) { - handlers.push(tokio::spawn({ - let mut redis_connection = redis_connection.clone(); - let connector = connector.clone(); - - async move { - log::info!("Received FinTransfer log"); - - let Ok(fin_transfer_args) = - borsh::from_slice::(&withdraw_log) - else { - warn!("Failed to decode log: {:?}", withdraw_log); - return; - }; - - match connector.near_fin_transfer(fin_transfer_args).await { - Ok(tx_hash) => { - log::info!("Finalized withdraw: {:?}", tx_hash); - utils::redis::remove_event( - &mut redis_connection, - utils::redis::ETH_WITHDRAW_EVENTS, - key, - ) - .await; - } - Err(err) => log::error!("Failed to finalize withdraw: {}", err), - } - } - })); - } - } - - join_all(handlers).await; - - tokio::time::sleep(tokio::time::Duration::from_secs( - utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, - )) - .await; - } -} diff --git a/omni-relayer/src/workers/evm.rs b/omni-relayer/src/workers/evm.rs new file mode 100644 index 00000000..0468ff71 --- /dev/null +++ b/omni-relayer/src/workers/evm.rs @@ -0,0 +1,279 @@ +use std::sync::Arc; + +use anyhow::Result; +use futures::future::join_all; +use log::{info, warn}; + +use alloy::rpc::types::{Log, TransactionReceipt}; +use ethereum_types::H256; +use omni_connector::OmniConnector; +#[cfg(not(feature = "disable_fee_check"))] +use omni_types::Fee; +use omni_types::{ChainKind, OmniAddress}; + +use crate::{config, utils}; + +#[derive(Debug, serde::Serialize, serde::Deserialize)] +pub struct InitTransferWithTimestamp { + pub chain_kind: ChainKind, + pub block_number: u64, + pub log: Log, + pub tx_logs: Option>, + pub creation_timestamp: i64, + pub last_update_timestamp: Option, + pub expected_finalization_time: i64, +} + +pub async fn finalize_transfer( + config: config::Config, + redis_client: redis::Client, + connector: Arc, + jsonrpc_client: near_jsonrpc_client::JsonRpcClient, +) -> Result<()> { + let redis_connection = redis_client.get_multiplexed_tokio_connection().await?; + + loop { + let mut redis_connection = redis_connection.clone(); + + let Some(events) = utils::redis::get_events( + &mut redis_connection, + utils::redis::EVM_INIT_TRANSFER_EVENTS.to_string(), + ) + .await + else { + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + continue; + }; + + let mut handlers = Vec::new(); + + for (key, event) in events { + if let Ok(init_transfer_with_timestamp) = + serde_json::from_str::(&event) + { + let handler = handle_init_transfer_event( + config.clone(), + connector.clone(), + jsonrpc_client.clone(), + redis_connection.clone(), + key.clone(), + init_transfer_with_timestamp, + ); + handlers.push(tokio::spawn(handler)); + } + } + + join_all(handlers).await; + + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + } +} + +async fn handle_init_transfer_event( + config: config::Config, + connector: Arc, + jsonrpc_client: near_jsonrpc_client::JsonRpcClient, + mut redis_connection: redis::aio::MultiplexedConnection, + key: String, + init_transfer_with_timestamp: InitTransferWithTimestamp, +) { + let current_timestamp = chrono::Utc::now().timestamp(); + + if current_timestamp + < init_transfer_with_timestamp.creation_timestamp + + init_transfer_with_timestamp.expected_finalization_time + { + return; + } + + if current_timestamp + - init_transfer_with_timestamp + .last_update_timestamp + .unwrap_or_default() + < utils::redis::CHECK_INSUFFICIENT_FEE_TRANSFERS_EVERY_SECS + { + return; + } + + let Ok(init_log) = init_transfer_with_timestamp + .log + .log_decode::() + else { + warn!( + "Failed to decode log as InitTransfer: {:?}", + init_transfer_with_timestamp.log + ); + return; + }; + + info!( + "Trying to process InitTransfer log on {:?}", + init_transfer_with_timestamp.chain_kind + ); + + let Some(tx_hash) = init_transfer_with_timestamp.log.transaction_hash else { + warn!("No transaction hash in log: {:?}", init_log); + return; + }; + + let Ok(recipient) = init_log.inner.recipient.parse::() else { + warn!( + "Failed to parse recipient as OmniAddress: {:?}", + init_log.inner.recipient + ); + return; + }; + + #[cfg(not(feature = "disable_fee_check"))] + { + let sender = match utils::evm::string_to_evm_omniaddress( + init_transfer_with_timestamp.chain_kind, + &init_log.inner.sender.to_string(), + ) { + Ok(sender) => sender, + Err(err) => { + warn!("{}", err); + return; + } + }; + + let token = match utils::evm::string_to_evm_omniaddress( + init_transfer_with_timestamp.chain_kind, + &init_log.inner.tokenAddress.to_string(), + ) { + Ok(token) => token, + Err(err) => { + warn!("{}", err); + return; + } + }; + + match utils::fee::is_fee_sufficient( + &config, + Fee { + fee: init_log.inner.fee.into(), + native_fee: init_log.inner.nativeFee.into(), + }, + &sender, + &recipient, + &token, + ) + .await + { + Ok(true) => {} + Ok(false) => { + warn!( + "Insufficient fee for transfer: {:?}", + init_transfer_with_timestamp + ); + return; + } + Err(err) => { + warn!("Failed to check fee sufficiency: {}", err); + return; + } + } + } + + let vaa = utils::evm::get_vaa_from_evm_log( + connector.clone(), + init_transfer_with_timestamp.chain_kind, + init_transfer_with_timestamp.tx_logs.clone(), + &config, + ) + .await; + + if vaa.is_none() { + if init_transfer_with_timestamp.chain_kind == ChainKind::Eth { + let Ok(light_client_latest_block_number) = + utils::near::get_eth_light_client_last_block_number(&config, &jsonrpc_client).await + else { + warn!("Failed to get eth light client last block number"); + return; + }; + + if init_transfer_with_timestamp.block_number > light_client_latest_block_number { + warn!("ETH light client is not synced yet"); + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + return; + } + } else { + warn!("VAA is not ready yet"); + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + return; + } + } + + let tx_hash = H256::from_slice(tx_hash.as_slice()); + + let storage_deposit_actions = match utils::storage::get_storage_deposit_actions( + &connector, + init_transfer_with_timestamp.chain_kind, + &recipient, + &init_log.inner.tokenAddress.to_string(), + init_log.inner.fee, + init_log.inner.nativeFee, + ) + .await + { + Ok(actions) => actions, + Err(err) => { + warn!("{}", err); + return; + } + }; + + let fin_transfer_args = if let Some(vaa) = vaa { + omni_connector::FinTransferArgs::NearFinTransferWithVaa { + chain_kind: init_transfer_with_timestamp.chain_kind, + storage_deposit_actions, + vaa, + } + } else { + omni_connector::FinTransferArgs::NearFinTransferWithEvmProof { + chain_kind: init_transfer_with_timestamp.chain_kind, + tx_hash, + storage_deposit_actions, + } + }; + + match connector.fin_transfer(fin_transfer_args).await { + Ok(tx_hash) => { + info!("Finalized InitTransfer: {:?}", tx_hash); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::EVM_INIT_TRANSFER_EVENTS, + &key, + ) + .await; + } + Err(err) => warn!("Failed to finalize InitTransfer: {}", err), + } + + if current_timestamp - init_transfer_with_timestamp.creation_timestamp + > utils::redis::KEEP_INSUFFICIENT_FEE_TRANSFERS_FOR + { + warn!( + "Removing an old InitTransfer: {:?}", + init_transfer_with_timestamp + ); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::EVM_INIT_TRANSFER_EVENTS, + &key, + ) + .await; + } +} diff --git a/omni-relayer/src/workers/mod.rs b/omni-relayer/src/workers/mod.rs index 745cd160..ed4e27a1 100644 --- a/omni-relayer/src/workers/mod.rs +++ b/omni-relayer/src/workers/mod.rs @@ -1,2 +1,3 @@ -pub mod eth; +pub mod evm; pub mod near; +pub mod solana; diff --git a/omni-relayer/src/workers/near.rs b/omni-relayer/src/workers/near.rs index 868517e7..7dfe0845 100644 --- a/omni-relayer/src/workers/near.rs +++ b/omni-relayer/src/workers/near.rs @@ -1,17 +1,32 @@ use std::sync::Arc; use anyhow::Result; +use bridge_connector_common::result::BridgeSdkError; use futures::future::join_all; use log::{error, info, warn}; -use near_primitives::borsh; +use alloy::rpc::types::{Log, TransactionReceipt}; +use ethereum_types::H256; + +use solana_sdk::pubkey::Pubkey; + use omni_connector::OmniConnector; -use omni_types::{locker_args::ClaimFeeArgs, near_events::Nep141LockerEvent}; +use omni_types::{ + locker_args::ClaimFeeArgs, near_events::OmniBridgeEvent, prover_args::WormholeVerifyProofArgs, + prover_result::ProofKind, ChainKind, OmniAddress, TransferId, +}; use crate::{config, utils}; +#[derive(Debug, serde::Serialize, serde::Deserialize)] +pub struct InitTransferWithTimestamp { + pub event: OmniBridgeEvent, + pub creation_timestamp: i64, + pub last_update_timestamp: Option, +} + pub async fn sign_transfer( - config: config::Config, + #[cfg(not(feature = "disable_fee_check"))] config: config::Config, redis_client: redis::Client, connector: Arc, ) -> Result<()> { @@ -21,7 +36,7 @@ pub async fn sign_transfer( let mut redis_connection_clone = redis_connection.clone(); let Some(events) = utils::redis::get_events( &mut redis_connection_clone, - utils::redis::NEAR_INIT_TRANSFER_EVENTS.to_string(), + utils::redis::NEAR_INIT_TRANSFER_QUEUE.to_string(), ) .await else { @@ -34,45 +49,113 @@ pub async fn sign_transfer( let mut handlers = Vec::new(); for (key, event) in events { - if let Ok(event) = serde_json::from_str::(&event) { + if let Ok(init_transfer_with_timestamp) = + serde_json::from_str::(&event) + { handlers.push(tokio::spawn({ + #[cfg(not(feature = "disable_fee_check"))] let config = config.clone(); let mut redis_connection = redis_connection.clone(); let connector = connector.clone(); async move { - let Nep141LockerEvent::InitTransferEvent { transfer_message } = event + let current_timestamp = chrono::Utc::now().timestamp(); + + if current_timestamp + - init_transfer_with_timestamp + .last_update_timestamp + .unwrap_or_default() + < utils::redis::CHECK_INSUFFICIENT_FEE_TRANSFERS_EVERY_SECS + { + return; + } + + let (OmniBridgeEvent::InitTransferEvent { + ref transfer_message, + } + | OmniBridgeEvent::FinTransferEvent { + ref transfer_message, + } + | OmniBridgeEvent::UpdateFeeEvent { + ref transfer_message, + }) = init_transfer_with_timestamp.event else { - warn!("Expected InitTransferEvent, got: {:?}", event); + warn!( + "Expected InitTransferEvent/FinTransferEvent/UpdateFeeEvent, got: {:?}", + event + ); return; }; info!( - "Received InitTransferEvent: {}", - transfer_message.origin_nonce.0 + "Received InitTransferEvent/FinTransferEvent/UpdateFeeEvent", ); + #[cfg(not(feature = "disable_fee_check"))] + match utils::fee::is_fee_sufficient( + &config, + transfer_message.fee.clone(), + &transfer_message.sender, + &transfer_message.recipient, + &transfer_message.token + ).await { + Ok(true) => {} + Ok(false) => { + warn!("Insufficient fee for transfer: {:?}", transfer_message); + return; + } + Err(err) => { + warn!("Failed to check fee sufficiency: {}", err); + return; + } + } + + let Ok(fee_recipient) = connector + .near_bridge_client() + .and_then(|connector| connector.signer().map(|signer| signer.account_id)) else { + warn!("Failed to set signer account id as fee recipient"); + return; + }; + match connector - .sign_transfer( - transfer_message.origin_nonce.into(), - Some(config.near.token_locker_id), - transfer_message.fee.into(), + .near_sign_transfer( + TransferId { + origin_chain: transfer_message.sender.get_chain(), + origin_nonce: transfer_message.origin_nonce, + }, + Some(fee_recipient), + Some(transfer_message.fee.clone()), ) .await { - Ok(outcome) => { - info!("Signed transfer: {:?}", outcome.transaction.hash); + Ok(tx_hash) => { + info!("Signed transfer: {:?}", tx_hash); utils::redis::remove_event( &mut redis_connection, - utils::redis::NEAR_INIT_TRANSFER_EVENTS, + utils::redis::NEAR_INIT_TRANSFER_QUEUE, &key, ) .await; } Err(err) => { - error!("Failed to sign transfer: {}", err); + warn!("Failed to sign transfer: {}", err); } } + + if current_timestamp - init_transfer_with_timestamp.creation_timestamp + > utils::redis::KEEP_INSUFFICIENT_FEE_TRANSFERS_FOR + { + warn!( + "Removing an old InitTransfer: {:?}", + init_transfer_with_timestamp + ); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::NEAR_INIT_TRANSFER_QUEUE, + &key, + ) + .await; + } } })); } @@ -110,18 +193,72 @@ pub async fn finalize_transfer( let mut handlers = Vec::new(); for (key, event) in events { - if let Ok(event) = serde_json::from_str::(&event) { + if let Ok(event) = serde_json::from_str::(&event) { handlers.push(tokio::spawn({ let mut redis_connection = redis_connection.clone(); let connector = connector.clone(); async move { - let Nep141LockerEvent::SignTransferEvent { .. } = &event else { + let OmniBridgeEvent::SignTransferEvent { + message_payload, .. + } = &event + else { error!("Expected SignTransferEvent, got: {:?}", event); return; }; - match connector.evm_fin_transfer_with_log(event).await { + info!("Received SignTransferEvent"); + + let fee_recipient = connector + .near_bridge_client() + .and_then(|connector| { + connector.signer().map(|signer| signer.account_id) + }) + .ok(); + + if message_payload.fee_recipient != fee_recipient { + warn!( + "Fee recipient mismatch: expected {:?}, got {:?}", + fee_recipient, message_payload.fee_recipient + ); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::NEAR_SIGN_TRANSFER_EVENTS, + &key, + ) + .await; + return; + } + + let fin_transfer_args = match message_payload.recipient.get_chain() { + ChainKind::Near => { + warn!("Near to Near transfers are not supported yet"); + return; + } + ChainKind::Eth | ChainKind::Base | ChainKind::Arb => { + omni_connector::FinTransferArgs::EvmFinTransfer { + chain_kind: message_payload.recipient.get_chain(), + event, + } + } + ChainKind::Sol => { + let OmniAddress::Sol(token) = message_payload.token_address.clone() + else { + warn!( + "Expected Sol token address, got: {:?}", + message_payload.token_address + ); + return; + }; + + omni_connector::FinTransferArgs::SolanaFinTransfer { + event, + solana_token: Pubkey::new_from_array(token.0), + } + } + }; + + match connector.fin_transfer(fin_transfer_args).await { Ok(tx_hash) => { info!("Finalized deposit: {}", tx_hash); utils::redis::remove_event( @@ -132,7 +269,16 @@ pub async fn finalize_transfer( .await; } Err(err) => { - error!("Failed to finalize deposit: {}", err); + if let BridgeSdkError::EvmGasEstimateError(_) = err { + utils::redis::remove_event( + &mut redis_connection, + utils::redis::NEAR_SIGN_TRANSFER_EVENTS, + &key, + ) + .await; + } + + warn!("Failed to finalize deposit: {}", err); } } } @@ -149,7 +295,28 @@ pub async fn finalize_transfer( } } -pub async fn claim_fee(redis_client: redis::Client, connector: Arc) -> Result<()> { +#[derive(Debug, serde::Serialize, serde::Deserialize)] +pub enum FinTransfer { + Evm { + chain_kind: ChainKind, + block_number: u64, + log: Log, + tx_logs: Option>, + creation_timestamp: i64, + expected_finalization_time: i64, + }, + Solana { + emitter: String, + sequence: u64, + }, +} + +pub async fn claim_fee( + config: config::Config, + redis_client: redis::Client, + connector: Arc, + jsonrpc_client: near_jsonrpc_client::JsonRpcClient, +) -> Result<()> { let redis_connection = redis_client.get_multiplexed_tokio_connection().await?; loop { @@ -170,31 +337,159 @@ pub async fn claim_fee(redis_client: redis::Client, connector: Arc>(&event) { - handlers.push(tokio::spawn({ - let mut redis_connection = redis_connection.clone(); - let connector = connector.clone(); + if let Ok(fin_transfer) = serde_json::from_str::(&event) { + if let FinTransfer::Evm { + chain_kind, + block_number, + log, + tx_logs, + creation_timestamp, + expected_finalization_time, + } = fin_transfer + { + handlers.push(tokio::spawn({ + let config = config.clone(); + let mut redis_connection = redis_connection.clone(); + let connector = connector.clone(); + let jsonrpc_client = jsonrpc_client.clone(); - async move { - info!("Received finalized transfer"); + async move { + let current_timestamp = chrono::Utc::now().timestamp(); - let Ok(claim_fee_args) = borsh::from_slice::(&deposit_log) - else { - warn!("Failed to decode claim fee args"); - return; - }; + if current_timestamp < creation_timestamp + expected_finalization_time { + return; + } - if let Ok(response) = connector.claim_fee(claim_fee_args).await { - info!("Claimed fee: {:?}", response); - utils::redis::remove_event( - &mut redis_connection, - utils::redis::FINALIZED_TRANSFERS, - &key, + info!("Trying to process FinTransfer log on {:?}", chain_kind); + + let vaa = utils::evm::get_vaa_from_evm_log( + connector.clone(), + chain_kind, + tx_logs, + &config, ) .await; + + if vaa.is_none() { + if chain_kind == ChainKind::Eth { + let Ok(light_client_latest_block_number) = + utils::near::get_eth_light_client_last_block_number( + &config, + &jsonrpc_client, + ) + .await + else { + warn!("Failed to get eth light client last block number"); + return; + }; + + if block_number > light_client_latest_block_number { + warn!("ETH light client is not synced yet"); + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + return; + } + } else { + warn!("VAA is not ready yet"); + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + return; + } + } + + let Some(tx_hash) = log.transaction_hash else { + warn!("No transaction hash in log: {:?}", log); + return; + }; + + let Some(topic) = log.topic0() else { + warn!("No topic0 in log: {:?}", log); + return; + }; + + let tx_hash = H256::from_slice(tx_hash.as_slice()); + + let Some(prover_args) = utils::evm::construct_prover_args( + &config, + vaa, + tx_hash, + H256::from_slice(topic.as_slice()), + ProofKind::FinTransfer, + ) + .await + else { + warn!("Failed to get prover args"); + return; + }; + + let claim_fee_args = ClaimFeeArgs { + chain_kind, + prover_args, + }; + + if let Ok(response) = connector.near_claim_fee(claim_fee_args).await { + info!("Claimed fee: {:?}", response); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::FINALIZED_TRANSFERS, + &key, + ) + .await; + } } - } - })); + })); + } else if let FinTransfer::Solana { emitter, sequence } = fin_transfer { + handlers.push(tokio::spawn({ + let mut redis_connection = redis_connection.clone(); + let connector = connector.clone(); + async move { + info!("Trying to process FinTransfer log on Solana"); + + let Ok(vaa) = connector + .wormhole_get_vaa( + config.wormhole.solana_chain_id, + emitter, + sequence, + ) + .await + else { + warn!("Failed to get VAA for sequence: {}", sequence); + return; + }; + + let Ok(prover_args) = borsh::to_vec(&WormholeVerifyProofArgs { + proof_kind: ProofKind::FinTransfer, + vaa, + }) else { + warn!("Failed to serialize prover args to finalize transfer from Solana"); + return; + }; + + let claim_fee_args = ClaimFeeArgs { + chain_kind: ChainKind::Sol, + prover_args, + }; + match connector.near_claim_fee(claim_fee_args).await { + Ok(tx_hash) => { + info!("Claimed fee: {:?}", tx_hash); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::FINALIZED_TRANSFERS, + &key, + ) + .await; + } + Err(err) => { + warn!("Failed to claim fee: {}", err); + } + }; + } + })); + } } } diff --git a/omni-relayer/src/workers/solana.rs b/omni-relayer/src/workers/solana.rs new file mode 100644 index 00000000..8370bcd2 --- /dev/null +++ b/omni-relayer/src/workers/solana.rs @@ -0,0 +1,331 @@ +use std::{str::FromStr, sync::Arc}; + +use anyhow::Result; +use futures::future::join_all; +use log::{info, warn}; + +use omni_connector::OmniConnector; +#[cfg(not(feature = "disable_fee_check"))] +use omni_types::Fee; +use omni_types::{ChainKind, OmniAddress}; +use solana_client::nonblocking::rpc_client::RpcClient; +#[cfg(not(feature = "disable_fee_check"))] +use solana_sdk::pubkey::Pubkey; +use solana_sdk::signature::Signature; +use solana_transaction_status::{UiMessage, UiTransactionEncoding}; + +use crate::{config, utils}; + +pub async fn process_signature(config: config::Config, redis_client: redis::Client) -> Result<()> { + let Some(solana_config) = config.solana else { + anyhow::bail!("Failed to get Solana config"); + }; + + let rpc_http_url = &solana_config.rpc_http_url; + let http_client = Arc::new(RpcClient::new(rpc_http_url.to_string())); + + let redis_connection = redis_client.get_multiplexed_tokio_connection().await?; + + loop { + let mut redis_connection = redis_connection.clone(); + + let Some(events) = utils::redis::get_events( + &mut redis_connection, + utils::redis::SOLANA_EVENTS.to_string(), + ) + .await + else { + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + continue; + }; + + let mut handlers = Vec::new(); + + for (key, _) in events { + handlers.push(tokio::spawn({ + let mut redis_connection = redis_connection.clone(); + let solana = solana_config.clone(); + let http_client = http_client.clone(); + + async move { + let Ok(signature) = Signature::from_str(&key) else { + warn!("Failed to parse signature: {:?}", key); + return; + }; + + info!("Trying to process signature: {:?}", signature); + + match http_client + .get_transaction(&signature, UiTransactionEncoding::Json) + .await + { + Ok(tx) => { + let transaction = tx.transaction; + + if let solana_transaction_status::EncodedTransaction::Json(ref tx) = + transaction.transaction + { + if let UiMessage::Raw(ref raw) = tx.message { + utils::solana::process_message( + &mut redis_connection, + &solana, + &transaction, + raw, + signature, + ) + .await; + } + } + + utils::redis::remove_event( + &mut redis_connection, + utils::redis::SOLANA_EVENTS, + &signature.to_string(), + ) + .await; + utils::redis::update_last_processed( + &mut redis_connection, + &utils::redis::get_last_processed_key(ChainKind::Sol), + &signature.to_string(), + ) + .await; + } + Err(err) => { + warn!("Failed to fetch transaction (probably signature wasn't finalized yet): {}", err); + } + }; + } + })); + } + + join_all(handlers).await; + + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + } +} + +#[derive(Debug, serde::Serialize, serde::Deserialize)] +pub struct InitTransferWithTimestamp { + pub amount: u128, + pub token: String, + pub sender: String, + pub recipient: String, + pub fee: u128, + pub native_fee: u64, + pub emitter: String, + pub sequence: u64, + pub creation_timestamp: i64, + pub last_update_timestamp: Option, +} + +pub async fn finalize_transfer( + config: config::Config, + redis_client: redis::Client, + connector: Arc, +) -> Result<()> { + let redis_connection = redis_client.get_multiplexed_tokio_connection().await?; + + loop { + let mut redis_connection = redis_connection.clone(); + + let Some(events) = utils::redis::get_events( + &mut redis_connection, + utils::redis::SOLANA_INIT_TRANSFER_EVENTS.to_string(), + ) + .await + else { + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + continue; + }; + + let mut handlers = Vec::new(); + + for (key, event) in events { + if let Ok(init_transfer_with_timestamp) = + serde_json::from_str::(&event) + { + let handler = handle_init_transfer_event( + config.clone(), + connector.clone(), + redis_connection.clone(), + key.clone(), + init_transfer_with_timestamp, + ); + handlers.push(tokio::spawn(handler)); + } + } + + join_all(handlers).await; + + tokio::time::sleep(tokio::time::Duration::from_secs( + utils::redis::SLEEP_TIME_AFTER_EVENTS_PROCESS_SECS, + )) + .await; + } +} + +async fn handle_init_transfer_event( + config: config::Config, + connector: Arc, + mut redis_connection: redis::aio::MultiplexedConnection, + key: String, + init_transfer_with_timestamp: InitTransferWithTimestamp, +) { + let current_timestamp = chrono::Utc::now().timestamp(); + + if current_timestamp + - init_transfer_with_timestamp + .last_update_timestamp + .unwrap_or_default() + < utils::redis::CHECK_INSUFFICIENT_FEE_TRANSFERS_EVERY_SECS + { + return; + } + + info!("Trying to process InitTransfer log on Solana"); + + let Ok(recipient) = init_transfer_with_timestamp + .recipient + .parse::() + else { + warn!( + "Failed to parse recipient as OmniAddress: {:?}", + init_transfer_with_timestamp.recipient + ); + return; + }; + + #[cfg(not(feature = "disable_fee_check"))] + { + let Ok(sender) = Pubkey::from_str(&init_transfer_with_timestamp.sender) else { + warn!( + "Failed to parse sender address as Pubkey: {:?}", + init_transfer_with_timestamp.sender + ); + return; + }; + let Ok(sender) = OmniAddress::new_from_slice(ChainKind::Sol, &sender.to_bytes()) else { + warn!( + "Failed to convert sender address to OmniAddress: {:?}", + init_transfer_with_timestamp.sender + ); + return; + }; + + let Ok(token) = Pubkey::from_str(&init_transfer_with_timestamp.token) else { + warn!( + "Failed to parse token address as Pubkey: {:?}", + init_transfer_with_timestamp.token + ); + return; + }; + let Ok(token) = OmniAddress::new_from_slice(ChainKind::Sol, &token.to_bytes()) else { + warn!( + "Failed to convert token address to OmniAddress: {:?}", + init_transfer_with_timestamp.token + ); + return; + }; + + match utils::fee::is_fee_sufficient( + &config, + Fee { + fee: init_transfer_with_timestamp.fee.into(), + native_fee: u128::from(init_transfer_with_timestamp.native_fee).into(), + }, + &sender, + &recipient, + &token, + ) + .await + { + Ok(true) => {} + Ok(false) => { + warn!( + "Insufficient fee for transfer: {:?}", + init_transfer_with_timestamp + ); + return; + } + Err(err) => { + warn!("Failed to check fee sufficiency: {}", err); + return; + } + } + } + + let Ok(vaa) = connector + .wormhole_get_vaa( + config.wormhole.solana_chain_id, + &init_transfer_with_timestamp.emitter, + init_transfer_with_timestamp.sequence, + ) + .await + else { + warn!( + "Failed to get VAA for sequence: {}", + init_transfer_with_timestamp.sequence + ); + return; + }; + + let storage_deposit_actions = match utils::storage::get_storage_deposit_actions( + &connector, + ChainKind::Sol, + &recipient, + &init_transfer_with_timestamp.token, + init_transfer_with_timestamp.fee, + u128::from(init_transfer_with_timestamp.native_fee), + ) + .await + { + Ok(actions) => actions, + Err(err) => { + warn!("{}", err); + return; + } + }; + + let fin_transfer_args = omni_connector::FinTransferArgs::NearFinTransferWithVaa { + chain_kind: ChainKind::Sol, + storage_deposit_actions, + vaa, + }; + + match connector.fin_transfer(fin_transfer_args).await { + Ok(tx_hash) => { + info!("Finalized InitTransfer: {:?}", tx_hash); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::SOLANA_INIT_TRANSFER_EVENTS, + &key, + ) + .await; + } + Err(err) => warn!("Failed to finalize InitTransfer: {}", err), + } + + if current_timestamp - init_transfer_with_timestamp.creation_timestamp + > utils::redis::KEEP_INSUFFICIENT_FEE_TRANSFERS_FOR + { + warn!( + "Removing an old InitTransfer on Solana: {:?}", + init_transfer_with_timestamp + ); + utils::redis::remove_event( + &mut redis_connection, + utils::redis::SOLANA_INIT_TRANSFER_EVENTS, + &key, + ) + .await; + } +} diff --git a/solana/bridge_token_factory/.catalog-info.yaml b/solana/bridge_token_factory/.catalog-info.yaml new file mode 100644 index 00000000..3f2a4659 --- /dev/null +++ b/solana/bridge_token_factory/.catalog-info.yaml @@ -0,0 +1,13 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: omni-solana-bridge-token-factory + tags: + - solana + links: [] + annotations: + aurora.dev/security-tier: "1" +spec: + owner: nearone-team + type: contract + lifecycle: production diff --git a/solana/bridge_token_factory/Cargo.lock b/solana/bridge_token_factory/Cargo.lock index d63cecb9..34478b18 100644 --- a/solana/bridge_token_factory/Cargo.lock +++ b/solana/bridge_token_factory/Cargo.lock @@ -164,7 +164,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" dependencies = [ "anchor-syn", - "borsh-derive-internal 0.9.3", + "borsh-derive-internal 0.10.4", "proc-macro2", "quote", "syn 1.0.109", @@ -200,7 +200,7 @@ dependencies = [ "arrayref", "base64 0.21.7", "bincode", - "borsh 0.9.3", + "borsh 0.10.4", "bytemuck", "getrandom 0.2.15", "solana-program", @@ -431,6 +431,12 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + [[package]] name = "base64" version = "0.21.7" @@ -637,6 +643,7 @@ dependencies = [ "anchor-spl", "bitvec", "cfg-if", + "libsecp256k1 0.7.1", "wormhole-anchor-sdk", ] @@ -1218,15 +1225,34 @@ dependencies = [ "base64 0.12.3", "digest 0.9.0", "hmac-drbg", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", + "libsecp256k1-core 0.2.2", + "libsecp256k1-gen-ecmult 0.2.1", + "libsecp256k1-gen-genmult 0.2.1", "rand 0.7.3", "serde", "sha2 0.9.9", "typenum", ] +[[package]] +name = "libsecp256k1" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95b09eff1b35ed3b33b877ced3a691fc7a481919c7e29c53c906226fcf55e2a1" +dependencies = [ + "arrayref", + "base64 0.13.1", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core 0.3.0", + "libsecp256k1-gen-ecmult 0.3.0", + "libsecp256k1-gen-genmult 0.3.0", + "rand 0.8.5", + "serde", + "sha2 0.9.9", + "typenum", +] + [[package]] name = "libsecp256k1-core" version = "0.2.2" @@ -1238,13 +1264,33 @@ dependencies = [ "subtle", ] +[[package]] +name = "libsecp256k1-core" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + [[package]] name = "libsecp256k1-gen-ecmult" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" dependencies = [ - "libsecp256k1-core", + "libsecp256k1-core 0.2.2", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809" +dependencies = [ + "libsecp256k1-core 0.3.0", ] [[package]] @@ -1253,7 +1299,16 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" dependencies = [ - "libsecp256k1-core", + "libsecp256k1-core 0.2.2", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c" +dependencies = [ + "libsecp256k1-core 0.3.0", ] [[package]] @@ -1990,7 +2045,7 @@ dependencies = [ "js-sys", "lazy_static", "libc", - "libsecp256k1", + "libsecp256k1 0.6.0", "light-poseidon", "log", "memoffset", @@ -2040,7 +2095,7 @@ dependencies = [ "itertools", "js-sys", "lazy_static", - "libsecp256k1", + "libsecp256k1 0.6.0", "log", "memmap2", "num-derive 0.4.2", diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/Cargo.toml b/solana/bridge_token_factory/programs/bridge_token_factory/Cargo.toml index 138659d0..abb59969 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/Cargo.toml +++ b/solana/bridge_token_factory/programs/bridge_token_factory/Cargo.toml @@ -28,6 +28,7 @@ anchor-lang = { version = "0.30.1", features = ["init-if-needed"] } anchor-spl = { version = "0.30.1", features = ["metadata"] } cfg-if = "1.0.0" wormhole-anchor-sdk = { git = "https://github.com/aankor/wormhole-scaffolding.git", branch = "anchor0.30.1", default-features = false } +libsecp256k1 = "0.7.1" [dependencies.bitvec] diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/constants.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/constants.rs index bb12b994..26f16c2d 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/constants.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/constants.rs @@ -18,6 +18,9 @@ pub const USED_NONCES_SEED: &[u8] = b"used_nonces"; #[constant] pub const WRAPPED_MINT_SEED: &[u8] = b"wrapped_mint"; +#[constant] +pub const METADATA_SEED: &[u8] = b"metadata"; + #[constant] pub const USED_NONCES_PER_ACCOUNT: u32 = 1024; @@ -26,3 +29,6 @@ pub const USED_NONCES_ACCOUNT_SIZE: u32 = 8 + (USED_NONCES_PER_ACCOUNT + 7) / 8; #[constant] pub const SOLANA_OMNI_BRIDGE_CHAIN_ID: u8 = 2; + +#[constant] +pub const MAX_ALLOWED_DECIMALS: u8 = 9; \ No newline at end of file diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/error.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/error.rs index c2b5b840..e833aaee 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/error.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/error.rs @@ -6,6 +6,8 @@ pub enum ErrorCode { InvalidArgs, #[msg("Signature verification failed")] SignatureVerificationFailed, + #[msg("Malleable signature")] + MalleableSignature, #[msg("Nonce already used")] NonceAlreadyUsed, #[msg("Token metadata not provided")] diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/admin/initialize.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/admin/initialize.rs index 9d2f4fd8..d9f212f1 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/admin/initialize.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/admin/initialize.rs @@ -114,6 +114,7 @@ impl<'info> Initialize<'info> { sequence: wormhole_sequence_bump, }, }, + padding: [0; 100], }); let rent = Rent::get()?; diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/deploy_token.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/deploy_token.rs index b88d2034..48bcbdc3 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/deploy_token.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/deploy_token.rs @@ -1,4 +1,4 @@ -use crate::constants::{AUTHORITY_SEED, WRAPPED_MINT_SEED}; +use crate::constants::{AUTHORITY_SEED, MAX_ALLOWED_DECIMALS, METADATA_SEED, WRAPPED_MINT_SEED}; use crate::instructions::wormhole_cpi::*; use crate::state::message::SignedPayload; use crate::state::message::{ @@ -6,33 +6,52 @@ use crate::state::message::{ Payload, }; use anchor_lang::prelude::*; +use anchor_lang::solana_program::hash::hash; use anchor_spl::metadata::mpl_token_metadata::types::DataV2; use anchor_spl::metadata::{ create_metadata_accounts_v3, CreateMetadataAccountsV3, Metadata as Metaplex, ID as MetaplexID, }; use anchor_spl::token::{Mint, Token}; +pub trait StringExt { + fn to_hashed_bytes(&self) -> [u8; 32]; +} + +impl StringExt for String { + fn to_hashed_bytes(&self) -> [u8; 32] { + let bytes = self.as_bytes(); + if bytes.len() > 32 { + let hash = hash(bytes); + hash.to_bytes() + } else { + let mut padded_bytes = [0u8; 32]; + padded_bytes[..bytes.len()].copy_from_slice(bytes); + padded_bytes + } + } +} + #[derive(Accounts)] #[instruction(data: SignedPayload)] pub struct DeployToken<'info> { #[account( seeds = [AUTHORITY_SEED], - bump = wormhole.config.bumps.authority, + bump = common.config.bumps.authority, )] pub authority: SystemAccount<'info>, #[account( init, - payer = wormhole.payer, - seeds = [WRAPPED_MINT_SEED, data.payload.token.as_bytes().as_ref()], + payer = common.payer, + seeds = [WRAPPED_MINT_SEED, data.payload.token.to_hashed_bytes().as_ref()], bump, - mint::decimals = data.payload.decimals, + mint::decimals = std::cmp::min(MAX_ALLOWED_DECIMALS, data.payload.decimals), mint::authority = authority, )] pub mint: Box>, #[account( mut, seeds = [ - b"metadata", + METADATA_SEED, MetaplexID.as_ref(), &mint.key().to_bytes(), ], @@ -41,7 +60,7 @@ pub struct DeployToken<'info> { )] pub metadata: SystemAccount<'info>, - pub wormhole: WormholeCPI<'info>, + pub common: WormholeCPI<'info>, pub system_program: Program<'info, System>, pub token_program: Program<'info, Token>, @@ -49,18 +68,20 @@ pub struct DeployToken<'info> { } impl<'info> DeployToken<'info> { - pub fn initialize_token_metadata(&self, metadata: DeployTokenPayload) -> Result<()> { - let bump = &[self.wormhole.config.bumps.authority]; + pub fn initialize_token_metadata(&self, mut metadata: DeployTokenPayload) -> Result<()> { + let bump = &[self.common.config.bumps.authority]; let signer_seeds = &[&[AUTHORITY_SEED, bump][..]]; + let origin_decimals = metadata.decimals; + metadata.decimals = std::cmp::min(MAX_ALLOWED_DECIMALS, metadata.decimals); let cpi_accounts = CreateMetadataAccountsV3 { - payer: self.wormhole.payer.to_account_info(), + payer: self.common.payer.to_account_info(), update_authority: self.authority.to_account_info(), mint: self.mint.to_account_info(), metadata: self.metadata.to_account_info(), mint_authority: self.authority.to_account_info(), system_program: self.system_program.to_account_info(), - rent: self.wormhole.rent.to_account_info(), + rent: self.common.rent.to_account_info(), }; let cpi_ctx = CpiContext::new_with_signer( self.token_program.to_account_info(), @@ -86,10 +107,12 @@ impl<'info> DeployToken<'info> { let payload = DeployTokenResponse { token: metadata.token, solana_mint: self.mint.key(), + decimals: metadata.decimals, + origin_decimals, } .serialize_for_near(())?; - self.wormhole.post_message(payload)?; + self.common.post_message(payload)?; Ok(()) } diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer.rs index 2948639a..ca083ca0 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer.rs @@ -7,13 +7,12 @@ use anchor_spl::{ use crate::{ constants::{ - AUTHORITY_SEED, CONFIG_SEED, USED_NONCES_ACCOUNT_SIZE, USED_NONCES_PER_ACCOUNT, + AUTHORITY_SEED, USED_NONCES_ACCOUNT_SIZE, USED_NONCES_PER_ACCOUNT, USED_NONCES_SEED, VAULT_SEED, }, error::ErrorCode, instructions::wormhole_cpi::*, state::{ - config::Config, message::{ finalize_transfer::{FinalizeTransferPayload, FinalizeTransferResponse}, Payload, SignedPayload, @@ -25,16 +24,10 @@ use crate::{ #[derive(Accounts)] #[instruction(data: SignedPayload)] pub struct FinalizeTransfer<'info> { - #[account( - mut, - seeds = [CONFIG_SEED], - bump = config.bumps.config, - )] - pub config: Box>, #[account( init_if_needed, space = USED_NONCES_ACCOUNT_SIZE as usize, - payer = wormhole.payer, + payer = common.payer, seeds = [ USED_NONCES_SEED, &(data.payload.destination_nonce / USED_NONCES_PER_ACCOUNT as u64).to_le_bytes(), @@ -45,7 +38,7 @@ pub struct FinalizeTransfer<'info> { #[account( mut, seeds = [AUTHORITY_SEED], - bump = config.bumps.authority, + bump = common.config.bumps.authority, )] pub authority: SystemAccount<'info>, @@ -73,14 +66,14 @@ pub struct FinalizeTransfer<'info> { #[account( init_if_needed, - payer = wormhole.payer, + payer = common.payer, associated_token::mint = mint, associated_token::authority = recipient, token::token_program = token_program, )] pub token_account: Box>, - pub wormhole: WormholeCPI<'info>, + pub common: WormholeCPI<'info>, pub associated_token_program: Program<'info, AssociatedToken>, pub system_program: Program<'info, System>, @@ -92,9 +85,9 @@ impl<'info> FinalizeTransfer<'info> { UsedNonces::use_nonce( data.destination_nonce, &self.used_nonces, - &mut self.config, + &mut self.common.config, self.authority.to_account_info(), - self.wormhole.payer.to_account_info(), + self.common.payer.to_account_info(), &Rent::get()?, self.system_program.to_account_info(), )?; @@ -110,7 +103,7 @@ impl<'info> FinalizeTransfer<'info> { authority: self.authority.to_account_info(), mint: self.mint.to_account_info(), }, - &[&[AUTHORITY_SEED, &[self.config.bumps.authority]]], + &[&[AUTHORITY_SEED, &[self.common.config.bumps.authority]]], ), data.amount.try_into().unwrap(), self.mint.decimals, @@ -130,7 +123,7 @@ impl<'info> FinalizeTransfer<'info> { to: self.token_account.to_account_info(), authority: self.authority.to_account_info(), }, - &[&[AUTHORITY_SEED, &[self.config.bumps.authority]]], + &[&[AUTHORITY_SEED, &[self.common.config.bumps.authority]]], ), data.amount.try_into().unwrap(), )?; @@ -144,7 +137,7 @@ impl<'info> FinalizeTransfer<'info> { } .serialize_for_near(())?; - self.wormhole.post_message(payload)?; + self.common.post_message(payload)?; Ok(()) } diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer_sol.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer_sol.rs index 883799c6..a2f95324 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer_sol.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/finalize_transfer_sol.rs @@ -30,7 +30,7 @@ pub struct FinalizeTransferSol<'info> { #[account( init_if_needed, space = USED_NONCES_ACCOUNT_SIZE as usize, - payer = wormhole.payer, + payer = common.payer, seeds = [ USED_NONCES_SEED, &(data.payload.destination_nonce / USED_NONCES_PER_ACCOUNT as u64).to_le_bytes(), @@ -55,8 +55,7 @@ pub struct FinalizeTransferSol<'info> { )] pub sol_vault: SystemAccount<'info>, - pub wormhole: WormholeCPI<'info>, - + pub common: WormholeCPI<'info>, pub system_program: Program<'info, System>, } @@ -67,14 +66,14 @@ impl<'info> FinalizeTransferSol<'info> { &self.used_nonces, &mut self.config, self.authority.to_account_info(), - self.wormhole.payer.to_account_info(), + self.common.payer.to_account_info(), &Rent::get()?, self.system_program.to_account_info(), )?; transfer( CpiContext::new_with_signer( - self.wormhole.system_program.to_account_info(), + self.common.system_program.to_account_info(), Transfer { from: self.sol_vault.to_account_info(), to: self.recipient.to_account_info(), @@ -92,7 +91,7 @@ impl<'info> FinalizeTransferSol<'info> { } .serialize_for_near(())?; - self.wormhole.post_message(payload)?; + self.common.post_message(payload)?; Ok(()) } diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer.rs index a6353f88..87f3030f 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer.rs @@ -18,7 +18,7 @@ use crate::{ pub struct InitTransfer<'info> { #[account( seeds = [AUTHORITY_SEED], - bump = wormhole.config.bumps.authority, + bump = common.config.bumps.authority, )] pub authority: SystemAccount<'info>, @@ -50,17 +50,17 @@ pub struct InitTransfer<'info> { #[account( mut, seeds = [SOL_VAULT_SEED], - bump = wormhole.config.bumps.sol_vault, + bump = common.config.bumps.sol_vault, )] pub sol_vault: SystemAccount<'info>, #[account( mut, - owner = wormhole.system_program.key(), + owner = common.system_program.key(), )] pub user: Signer<'info>, - pub wormhole: WormholeCPI<'info>, + pub common: WormholeCPI<'info>, pub token_program: Interface<'info, TokenInterface>, } @@ -70,7 +70,7 @@ impl<'info> InitTransfer<'info> { if payload.native_fee > 0 { transfer( CpiContext::new( - self.wormhole.system_program.to_account_info(), + self.common.system_program.to_account_info(), Transfer { from: self.user.to_account_info(), to: self.sol_vault.to_account_info(), @@ -115,8 +115,8 @@ impl<'info> InitTransfer<'info> { )?; } - self.wormhole.post_message(payload.serialize_for_near(( - self.wormhole.sequence.sequence, + self.common.post_message(payload.serialize_for_near(( + self.common.sequence.sequence, self.user.key(), self.mint.key(), ))?)?; diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer_sol.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer_sol.rs index 45d67b2f..e6073813 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer_sol.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/init_transfer_sol.rs @@ -4,7 +4,7 @@ use anchor_lang::{ }; use crate::{ - constants::{AUTHORITY_SEED, SOL_VAULT_SEED}, + constants::SOL_VAULT_SEED, error::ErrorCode, instructions::wormhole_cpi::*, state::message::{init_transfer::InitTransferPayload, Payload}, @@ -12,26 +12,20 @@ use crate::{ #[derive(Accounts)] pub struct InitTransferSol<'info> { - #[account( - seeds = [AUTHORITY_SEED], - bump = wormhole.config.bumps.authority, - )] - pub authority: SystemAccount<'info>, - #[account( mut, seeds = [SOL_VAULT_SEED], - bump = wormhole.config.bumps.sol_vault, + bump = common.config.bumps.sol_vault, )] pub sol_vault: SystemAccount<'info>, #[account( mut, - owner = wormhole.system_program.key(), + owner = common.system_program.key(), )] pub user: Signer<'info>, - pub wormhole: WormholeCPI<'info>, + pub common: WormholeCPI<'info>, } impl<'info> InitTransferSol<'info> { @@ -40,17 +34,18 @@ impl<'info> InitTransferSol<'info> { transfer( CpiContext::new( - self.wormhole.system_program.to_account_info(), + self.common.system_program.to_account_info(), Transfer { from: self.user.to_account_info(), to: self.sol_vault.to_account_info(), }, ), - payload.native_fee + (payload.amount as u64), + payload.native_fee.checked_add(payload.amount.try_into().unwrap()) + .unwrap(), )?; - self.wormhole.post_message(payload.serialize_for_near(( - self.wormhole.sequence.sequence, + self.common.post_message(payload.serialize_for_near(( + self.common.sequence.sequence, self.user.key(), Pubkey::default(), ))?)?; diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/log_metadata.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/log_metadata.rs index b9129b3e..eeff89e2 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/log_metadata.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/instructions/user/log_metadata.rs @@ -16,7 +16,7 @@ use anchor_spl::{ }, }; -use crate::instructions::wormhole_cpi::*; +use crate::{constants::METADATA_SEED, instructions::wormhole_cpi::*}; use crate::{ constants::{AUTHORITY_SEED, VAULT_SEED}, state::message::Payload, @@ -28,7 +28,7 @@ use anchor_spl::metadata::ID as MetaplexID; pub struct LogMetadata<'info> { #[account( seeds = [AUTHORITY_SEED], - bump = wormhole.config.bumps.authority, + bump = common.config.bumps.authority, )] pub authority: SystemAccount<'info>, @@ -43,7 +43,7 @@ pub struct LogMetadata<'info> { #[account( init_if_needed, - payer = wormhole.payer, + payer = common.payer, token::mint = mint, token::authority = authority, seeds = [ @@ -55,7 +55,7 @@ pub struct LogMetadata<'info> { )] pub vault: Box>, - pub wormhole: WormholeCPI<'info>, + pub common: WormholeCPI<'info>, pub system_program: Program<'info, System>, pub token_program: Interface<'info, TokenInterface>, @@ -113,7 +113,7 @@ impl<'info> LogMetadata<'info> { self.parse_metadata_account( Pubkey::find_program_address( &[ - b"metadata", + METADATA_SEED, MetaplexID.as_ref(), &self.mint.key().to_bytes(), ], @@ -131,7 +131,7 @@ impl<'info> LogMetadata<'info> { } .serialize_for_near(())?; - self.wormhole.post_message(payload)?; + self.common.post_message(payload)?; Ok(()) } diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/lib.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/lib.rs index bef81ad6..a507bf63 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/lib.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/lib.rs @@ -46,7 +46,7 @@ pub mod bridge_token_factory { data.verify_signature( (), - &ctx.accounts.wormhole.config.derived_near_bridge_address, + &ctx.accounts.common.config.derived_near_bridge_address, )?; ctx.accounts.initialize_token_metadata(data.payload)?; @@ -61,7 +61,7 @@ pub mod bridge_token_factory { data.verify_signature( (ctx.accounts.mint.key(), ctx.accounts.recipient.key()), - &ctx.accounts.config.derived_near_bridge_address, + &ctx.accounts.common.config.derived_near_bridge_address, )?; ctx.accounts.process(data.payload)?; diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/state/config.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/state/config.rs index 5224bc4e..1c0de899 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/state/config.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/state/config.rs @@ -22,4 +22,5 @@ pub struct Config { pub max_used_nonce: u64, pub derived_near_bridge_address: [u8; 64], pub bumps: ConfigBumps, + pub padding: [u8; 100], } diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/deploy_token.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/deploy_token.rs index 96b89b6b..1722645a 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/deploy_token.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/deploy_token.rs @@ -30,6 +30,8 @@ impl Payload for DeployTokenPayload { pub struct DeployTokenResponse { pub token: String, pub solana_mint: Pubkey, + pub decimals: u8, + pub origin_decimals: u8, } impl Payload for DeployTokenResponse { @@ -44,6 +46,10 @@ impl Payload for DeployTokenResponse { // 2. solana_mint writer.write_all(&[SOLANA_OMNI_BRIDGE_CHAIN_ID])?; self.solana_mint.serialize(&mut writer)?; + // 3. decimals + self.decimals.serialize(&mut writer)?; + // 4. origin_decimals + self.origin_decimals.serialize(&mut writer)?; writer .into_inner() diff --git a/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/mod.rs b/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/mod.rs index 830b72a3..d0fcdbce 100644 --- a/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/mod.rs +++ b/solana/bridge_token_factory/programs/bridge_token_factory/src/state/message/mod.rs @@ -29,8 +29,17 @@ impl SignedPayload

{ let serialized = self.payload.serialize_for_near(params)?; let hash = keccak::hash(&serialized); + let signature_bytes = &self.signature[0..64]; + + let signature = libsecp256k1::Signature::parse_standard_slice(signature_bytes) + .map_err(|_| ProgramError::InvalidArgument)?; + require!( + !signature.s.is_high(), + ErrorCode::MalleableSignature + ); + let signer = - secp256k1_recover(&hash.to_bytes(), self.signature[64], &self.signature[0..64]) + secp256k1_recover(&hash.to_bytes(), self.signature[64], signature_bytes) .map_err(|_| error!(ErrorCode::SignatureVerificationFailed))?; require!(