diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index baa7f99b9..c5e1874b4 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -1,4 +1,4 @@ -name: Lint Commit Messages +name: Branch and Commit Lint on: push: @@ -14,7 +14,7 @@ on: - release* jobs: - commit-lint: + commit-message-lint: strategy: matrix: node-version: [14.x] @@ -50,7 +50,7 @@ jobs: with: configFile: /github/workspace/.github/commitlint.config.js - branch-naming-rules: + branch-naming-lint: strategy: matrix: os: [ ubuntu-latest ] diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml new file mode 100644 index 000000000..d30293b27 --- /dev/null +++ b/.github/workflows/e2e-test.yml @@ -0,0 +1,93 @@ +name: E2E Test + +on: + push: + branches: + - master + - develop + - release* + + pull_request: + branches: + - master + - develop + - release* + +env: + GreenfileldTag: v0.0.10 + GreenfileldIntegrationTestBranch: gnfd-sp + GOPRIVATE: github.com/bnb-chain + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} + MYSQL_USER: root + MYSQL_PASSWORD: root + MYSQL_ROOT_PASSWORD: root + +jobs: + e2e-test: + strategy: + matrix: + go-version: [ 1.18.x ] + os: [ ubuntu-latest ] + runs-on: ubuntu-latest + + steps: + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + - name: Setup GitHub Token + run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ + # Checkout Greenfield-SP + - name: Checkout Greenfield-SP + uses: actions/checkout@v3 + # Build Greenfield-SP + - name: Build Greenfield-SP + run: | + make install-tools + make build + # Build Greenfield + - name: Build Greenfield + run: | + git clone https://github.com/bnb-chain/greenfield.git + cd greenfield + git checkout ${{ env.GreenfileldTag }} + make proto-gen & make build + cd .. + # Run MySQL + - name: Run MySQL + run: | + sudo /etc/init.d/mysql start + mysql -h 127.0.0.1 -P 3306 -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }} -e 'CREATE DATABASE sp_0; CREATE DATABASE sp_1;CREATE DATABASE sp_2; CREATE DATABASE sp_3;CREATE DATABASE sp_4; CREATE DATABASE sp_5; CREATE DATABASE sp_6;' + # Run Greenfield + - name: Run Greenfield + run: | + /bin/cp -rf test/e2e/localup_env/greenfield_env greenfield/deployment/localup/.local + cd greenfield + bash ./deployment/localup/localup.sh start 1 + cd .. + # Run Greenfield-SP + - name: Run Greenfield-SPs + run: | + /bin/cp -rf test/e2e/localup_env/greenfield_sp_env deployment/localup/local_env + /bin/cp build/gnfd-sp deployment/localup/local_env/sp0/gnfd-sp0 + /bin/cp build/gnfd-sp deployment/localup/local_env/sp1/gnfd-sp1 + /bin/cp build/gnfd-sp deployment/localup/local_env/sp2/gnfd-sp2 + /bin/cp build/gnfd-sp deployment/localup/local_env/sp3/gnfd-sp3 + /bin/cp build/gnfd-sp deployment/localup/local_env/sp4/gnfd-sp4 + /bin/cp build/gnfd-sp deployment/localup/local_env/sp5/gnfd-sp5 + /bin/cp build/gnfd-sp deployment/localup/local_env/sp6/gnfd-sp6 + bash ./deployment/localup/localup.sh --start + sleep 5 + tail -n 1000 deployment/localup/local_env/sp0/gnfd-sp.log + ps -ef | grep gnfd-sp | wc -l + # Run E2E Test + - name: Run Greenfield E2E Test + run: | + git clone https://github.com/bnb-chain/greenfield-integration-test.git + cd greenfield-integration-test + git checkout ${{ env.GreenfileldIntegrationTestBranch }} + cd .. + /bin/cp -rf test/e2e/localup_env/integration_config/config.yml greenfield-integration-test/config/config.yml + cd greenfield-integration-test + go test tests/create_object_test.go + cd .. \ No newline at end of file diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index 0bdbc3f94..450eb9ec8 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -1,4 +1,4 @@ -name: gosec +name: Gosec on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 724e14a26..5ca98aed1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,7 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Setup GitHub Token - run: git config --global url.https://${{ secrets.GH_ACCESS_SECRET }}@github.com/.insteadOf https://github.com/ + run: git config --global url.https://${{ secrets.GH_ACCESS_TOKEN }}@github.com/.insteadOf https://github.com/ - name: Checkout code uses: actions/checkout@v3 @@ -134,7 +134,7 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_ACCESS_SECRET }} # This token is provided by Actions, you do not need to create your own token + GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: tag_name: ${{ env.RELEASE_VERSION}} release_name: ${{ env.RELEASE_VERSION}} diff --git a/CHANGELOG.md b/CHANGELOG.md index b40d94591..cfbbe8012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## v0.1.0 + +BUGFIX +* [\#258](https://github.com/bnb-chain/greenfield-storage-provider/pull/258) fix put object verify permission bug +* [\#264](https://github.com/bnb-chain/greenfield-storage-provider/pull/264) fix: fix payment apis nil pointer error +* [\#265](https://github.com/bnb-chain/greenfield-storage-provider/pull/265) fix: fix sa iam type to access s3 +* [\#268](https://github.com/bnb-chain/greenfield-storage-provider/pull/268) feat: update buckets/objects order +* [\#270](https://github.com/bnb-chain/greenfield-storage-provider/pull/270) feat: update buckets/objects order +* [\#272](https://github.com/bnb-chain/greenfield-storage-provider/pull/272) fix: upgrade juno version for a property length fix + +BUILD +* [\#259](https://github.com/bnb-chain/greenfield-storage-provider/pull/259) ci: fix release.yml uncorrect env var name +* [\#263](https://github.com/bnb-chain/greenfield-storage-provider/pull/263) feat: add e2e test to workflow + + ## v0.0.5 FEATURES diff --git a/COPYING b/COPYING new file mode 100644 index 000000000..f288702d2 --- /dev/null +++ b/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/COPYING.LESSER b/COPYING.LESSER new file mode 100644 index 000000000..65c5ca88a --- /dev/null +++ b/COPYING.LESSER @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/README.md b/README.md index 91e60d7ed..86b8524c2 100644 --- a/README.md +++ b/README.md @@ -192,4 +192,12 @@ through github issue(going to have a discord channel soon) to ensure those chang line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple. -## Licence (pending) +## Licence + +The greenfield storage provider library (i.e. all code outside the `cmd` directory) is licensed under the +[GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html), +also included in our repository in the `COPYING.LESSER` file. + +The greenfield storage provider binaries (i.e. all code inside the `cmd` directory) is licensed under the +[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also +included in our repository in the `COPYING` file. diff --git a/config/config.go b/config/config.go index 0bc477c88..eae73b6e5 100644 --- a/config/config.go +++ b/config/config.go @@ -6,12 +6,12 @@ import ( "encoding/json" "os" - "github.com/bnb-chain/greenfield-storage-provider/pkg/p2p" "github.com/naoina/toml" "github.com/bnb-chain/greenfield-storage-provider/model" gnfd "github.com/bnb-chain/greenfield-storage-provider/pkg/greenfield" "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + "github.com/bnb-chain/greenfield-storage-provider/pkg/p2p" "github.com/bnb-chain/greenfield-storage-provider/service/blocksyncer" "github.com/bnb-chain/greenfield-storage-provider/service/signer" "github.com/bnb-chain/greenfield-storage-provider/store/config" diff --git a/config/config_template.toml b/config/config_template.toml index ddd808360..8568f8fd4 100644 --- a/config/config_template.toml +++ b/config/config_template.toml @@ -38,7 +38,7 @@ BucketURL = "./data" MaxRetries = 5 MinRetryDelay = 0 TLSInsecureSkipVerify = false -TestMode = false +IAMType = "AKSK" [ChainConfig] ChainID = "greenfield_9000-1741" @@ -67,7 +67,7 @@ PingPeriod = 2 [MetricsCfg] Enabled = false -HTTPAddress = "localhost:9833" +HTTPAddress = "localhost:24036" [LogCfg] Level = "debug" diff --git a/go.mod b/go.mod index bd19eff12..17b6d39d0 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ replace ( github.com/bnb-chain/greenfield => github.com/bnb-chain/greenfield v0.0.10 github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0 github.com/cosmos/cosmos-sdk => github.com/bnb-chain/greenfield-cosmos-sdk v0.0.13 - github.com/forbole/juno/v4 => github.com/bnb-chain/juno/v4 v4.0.0-20230327035319-0492d012fa17 + github.com/forbole/juno/v4 => github.com/bnb-chain/juno/v4 v4.0.0-20230331063806-f6cddda3e3fc github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/tendermint/tendermint => github.com/bnb-chain/gnfd-tendermint v0.0.3 ) @@ -16,8 +16,8 @@ require ( cosmossdk.io/math v1.0.0-beta.6 github.com/aws/aws-sdk-go v1.44.159 github.com/bnb-chain/greenfield v0.0.10 - github.com/bnb-chain/greenfield-common/go v0.0.0-20230310033112-2d379fdc2987 - github.com/bnb-chain/greenfield-go-sdk v0.0.7 + github.com/bnb-chain/greenfield-common/go v0.0.0-20230327055559-264d5271f271 + github.com/bnb-chain/greenfield-go-sdk v0.0.8 github.com/bytedance/gopkg v0.0.0-20221122125632-68358b8ecec6 github.com/cloudflare/cfssl v1.6.3 github.com/cosmos/cosmos-sdk v0.46.7 @@ -231,7 +231,6 @@ require ( github.com/rs/zerolog v1.29.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/shopspring/decimal v1.3.1 github.com/sirupsen/logrus v1.9.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/afero v1.9.2 // indirect diff --git a/go.sum b/go.sum index 691074140..aaed72e6e 100644 --- a/go.sum +++ b/go.sum @@ -210,16 +210,16 @@ github.com/bnb-chain/gnfd-tendermint v0.0.3 h1:RjEBQZJW7krM4DFxZbIasNNO7K2uohcmL github.com/bnb-chain/gnfd-tendermint v0.0.3/go.mod h1:/v9z9F6cq0+f7EGG92lYSLBcPYQDILoK91X8YM28hWo= github.com/bnb-chain/greenfield v0.0.10 h1:WACUvR977jK4jDm0LTcYl7gomXtn5mUXXAPoGo9s+dI= github.com/bnb-chain/greenfield v0.0.10/go.mod h1:UDWHU9XiyTbbpZsktn1bMab4MVAY4dhWEf/mhMuOQgQ= -github.com/bnb-chain/greenfield-common/go v0.0.0-20230310033112-2d379fdc2987 h1:+SOlI4dfp5y/2srTBdAEOujoJboMx+m22zvj5xuBLgU= -github.com/bnb-chain/greenfield-common/go v0.0.0-20230310033112-2d379fdc2987/go.mod h1:Nzpqn+BK8P1Ub3Tgn300bHmWMUk9R6cBwvmasVY25J8= +github.com/bnb-chain/greenfield-common/go v0.0.0-20230327055559-264d5271f271 h1:KcI/UzJe+/79pSyISTpT5iHXgQga7kRZl+aNSLfNWBk= +github.com/bnb-chain/greenfield-common/go v0.0.0-20230327055559-264d5271f271/go.mod h1:gGaPRDSjK1QH/lMjZ5wfhbP4SfrUUKX6Q72x/8uehxo= github.com/bnb-chain/greenfield-cosmos-sdk v0.0.13 h1:xm9qqrOjrGfX4imXxxruHIpuUUUAFbdtM/TXPXRc5zo= github.com/bnb-chain/greenfield-cosmos-sdk v0.0.13/go.mod h1:rvAY7ga/AakZWyYkA1zAsNtvKpdoyRFZTqF4MhFYzZ8= github.com/bnb-chain/greenfield-cosmos-sdk/math v0.0.0-20230228075616-68ac309b432c h1:BLmdYaj7Dx0YOhfk77+KPPJSMCwpQl6f4Y30+801bf0= github.com/bnb-chain/greenfield-cosmos-sdk/math v0.0.0-20230228075616-68ac309b432c/go.mod h1:u/MXvf8wbUbCsAEyQSSYXXMsczAsFX48e2D6JI86T4o= -github.com/bnb-chain/greenfield-go-sdk v0.0.7 h1:uqsZClp8/CdsWxaTSA9ed0JlfNcwMFUXDdua52ry35w= -github.com/bnb-chain/greenfield-go-sdk v0.0.7/go.mod h1:0/EP4qwa/8Ok87tHGrk8k/hakxMKsYLA75DD+jd+aTE= -github.com/bnb-chain/juno/v4 v4.0.0-20230327035319-0492d012fa17 h1:6bT6hfSU+sI6nNrUrnf7bBskCvgT26qCT+O+wvUN7lg= -github.com/bnb-chain/juno/v4 v4.0.0-20230327035319-0492d012fa17/go.mod h1:I+J7Cdpzc7U+0ULxIDZw5zzsDAX8352JN5vtuEz1dg4= +github.com/bnb-chain/greenfield-go-sdk v0.0.8 h1:eBhhdek0o9NnRVAeDOVJVyP3y3a/ym5ZuZWEbV5Nrco= +github.com/bnb-chain/greenfield-go-sdk v0.0.8/go.mod h1:J2zKMxU4th2PxADbcKhI7m9jOrIpuwoqE6LvZFG6tMo= +github.com/bnb-chain/juno/v4 v4.0.0-20230331063806-f6cddda3e3fc h1:rvFmks+xFSvysY1Tm91FX64bYAQ9ebusa2/4RmSlqTE= +github.com/bnb-chain/juno/v4 v4.0.0-20230331063806-f6cddda3e3fc/go.mod h1:I+J7Cdpzc7U+0ULxIDZw5zzsDAX8352JN5vtuEz1dg4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= github.com/bradfitz/gomemcache v0.0.0-20170208213004-1952afaa557d/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60= @@ -1587,8 +1587,6 @@ github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNX github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= -github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0= diff --git a/model/piecestore/model.go b/model/piecestore/model.go index 4381e1a4e..6850febda 100644 --- a/model/piecestore/model.go +++ b/model/piecestore/model.go @@ -12,8 +12,18 @@ const ( MemoryStore = "memory" ) -// piece store storage environment constants +// piece store storage config and environment constants const ( + // AKSKIAMType defines IAM type config which uses access key and secret key to access aws s3 + AKSKIAMType = "AKSK" + // SAIAMType defines IAM type config which uses service account to access aws s3 + SAIAMType = "SA" + + // AWSRoleARN defines env variable for aws role arn + AWSRoleARN = "AWS_ROLE_ARN" + // AWSWebIdentityTokenFile defines env variable for aws identity token file + AWSWebIdentityTokenFile = "AWS_WEB_IDENTITY_TOKEN_FILE" + // BucketURL defines env variable name for bucket url BucketURL = "BUCKET_URL" // AWSAccessKey defines env variable name for aws access key diff --git a/pkg/greenfield/query_service.go b/pkg/greenfield/query_service.go index abbc4ced4..32841bab8 100644 --- a/pkg/greenfield/query_service.go +++ b/pkg/greenfield/query_service.go @@ -168,11 +168,13 @@ func (greenfield *Greenfield) VerifyGetObjectPermission(ctx context.Context, acc // VerifyPutObjectPermission verify put object permission. func (greenfield *Greenfield) VerifyPutObjectPermission(ctx context.Context, account, bucket, object string) (bool, error) { + _ = object client := greenfield.getCurrentClient().GnfdCompositeClient() resp, err := client.VerifyPermission(ctx, &storagetypes.QueryVerifyPermissionRequest{ Operator: account, BucketName: bucket, - ObjectName: object, + // TODO: Polish the function interface according to the semantics + // ObjectName: object, ActionType: permissiontypes.ACTION_CREATE_OBJECT, }) if err != nil { diff --git a/pkg/middleware/grpc/metrics.go b/pkg/middleware/grpc/metrics.go new file mode 100644 index 000000000..bd6133420 --- /dev/null +++ b/pkg/middleware/grpc/metrics.go @@ -0,0 +1,39 @@ +package grpc + +import ( + "runtime/debug" + + openmetrics "github.com/grpc-ecosystem/go-grpc-middleware/providers/openmetrics/v2" + grpcrecovery "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/recovery" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" +) + +var ( + gRPCPanicRecoveryHandler = func(p interface{}) (err error) { + metrics.PanicsTotal.WithLabelValues().Inc() + log.Errorw("recovered from panic", "panic", p, "stack", debug.Stack()) + return status.Errorf(codes.Internal, "%s", p) + } +) + +// GetDefaultServerInterceptor returns default gRPC server interceptor +func GetDefaultServerInterceptor() []grpc.ServerOption { + options := []grpc.ServerOption{} + options = append(options, grpc.ChainUnaryInterceptor(openmetrics.UnaryServerInterceptor(metrics.DefaultGRPCServerMetrics), + grpcrecovery.UnaryServerInterceptor(grpcrecovery.WithRecoveryHandler(gRPCPanicRecoveryHandler)))) + options = append(options, grpc.ChainStreamInterceptor(openmetrics.StreamServerInterceptor(metrics.DefaultGRPCServerMetrics))) + return options +} + +// GetDefaultClientInterceptor returns default gRPC client interceptor +func GetDefaultClientInterceptor() []grpc.DialOption { + options := []grpc.DialOption{} + options = append(options, grpc.WithChainUnaryInterceptor(openmetrics.UnaryClientInterceptor(metrics.DefaultGRPCClientMetrics))) + options = append(options, grpc.WithChainStreamInterceptor(openmetrics.StreamClientInterceptor(metrics.DefaultGRPCClientMetrics))) + return options +} diff --git a/pkg/p2p/node.go b/pkg/p2p/node.go index 14d50cfd9..5cdf30fcf 100644 --- a/pkg/p2p/node.go +++ b/pkg/p2p/node.go @@ -5,12 +5,12 @@ import ( "strings" "time" - signerclient "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" + storagetypes "github.com/bnb-chain/greenfield/x/storage/types" ggio "github.com/gogo/protobuf/io" "github.com/gogo/protobuf/proto" ds "github.com/ipfs/go-datastore" leveldb "github.com/ipfs/go-ds-leveldb" - libp2p "github.com/libp2p/go-libp2p" + "github.com/libp2p/go-libp2p" "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/core/peerstore" @@ -19,7 +19,7 @@ import ( "github.com/bnb-chain/greenfield-storage-provider/pkg/log" "github.com/bnb-chain/greenfield-storage-provider/pkg/p2p/types" - storagetypes "github.com/bnb-chain/greenfield/x/storage/types" + signerclient "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" ) // Node defines the p2p protocol node, encapsulates the go-lib.p2p @@ -102,7 +102,7 @@ func (n *Node) Name() string { // Start runs background task that trigger broadcast ping request func (n *Node) Start(ctx context.Context) error { - go n.eventloop() + go n.eventLoop() return nil } @@ -168,8 +168,8 @@ func (n *Node) GetApproval(object *storagetypes.ObjectInfo, expectedAccept int, } } -// eventloop run the background task -func (n *Node) eventloop() { +// eventLoop run the background task +func (n *Node) eventLoop() { ticker := time.NewTicker(time.Duration(n.config.PingPeriod) * time.Second) for { select { diff --git a/service/challenge/challenge.go b/service/challenge/challenge.go index db1c87852..a49b8cd0c 100644 --- a/service/challenge/challenge.go +++ b/service/challenge/challenge.go @@ -4,16 +4,19 @@ import ( "context" "net" - "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" - "github.com/bnb-chain/greenfield-storage-provider/pkg/rcmgr" "google.golang.org/grpc" "google.golang.org/grpc/reflection" "github.com/bnb-chain/greenfield-storage-provider/model" + "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" + "github.com/bnb-chain/greenfield-storage-provider/pkg/rcmgr" "github.com/bnb-chain/greenfield-storage-provider/service/challenge/types" psclient "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/client" "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) var _ lifecycle.Service = &Challenge{} @@ -25,6 +28,7 @@ type Challenge struct { spDB sqldb.SPDB rcScope rcmgr.ResourceScope pieceStore *psclient.StoreClient + grpcServer *grpc.Server } // NewChallengeService returns an instance of Challenge that implementation of @@ -62,29 +66,35 @@ func (challenge *Challenge) Name() string { // Start the challenge gRPC service func (challenge *Challenge) Start(ctx context.Context) error { errCh := make(chan error) - - go func(errCh chan error) { - lis, err := net.Listen("tcp", challenge.config.GRPCAddress) - errCh <- err - if err != nil { - log.Errorw("failed to listen", "error", err) - return - } - grpcServer := grpc.NewServer(grpc.MaxRecvMsgSize(model.MaxCallMsgSize), grpc.MaxSendMsgSize(model.MaxCallMsgSize)) - types.RegisterChallengeServiceServer(grpcServer, challenge) - reflection.Register(grpcServer) - if err = grpcServer.Serve(lis); err != nil { - log.Errorw("failed to serve", "error", err) - return - } - }(errCh) - + go challenge.serve(errCh) err := <-errCh return err } // Stop the challenge gRPC service and recycle the resources func (challenge *Challenge) Stop(ctx context.Context) error { + challenge.grpcServer.GracefulStop() challenge.rcScope.Release() return nil } + +func (challenge *Challenge) serve(errCh chan error) { + lis, err := net.Listen("tcp", challenge.config.GRPCAddress) + errCh <- err + if err != nil { + log.Errorw("failed to listen", "error", err) + return + } + + options := utilgrpc.GetDefaultServerOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultServerInterceptor()...) + } + challenge.grpcServer = grpc.NewServer(options...) + types.RegisterChallengeServiceServer(challenge.grpcServer, challenge) + reflection.Register(challenge.grpcServer) + if err = challenge.grpcServer.Serve(lis); err != nil { + log.Errorw("failed to serve", "error", err) + return + } +} diff --git a/service/challenge/client/challenge_client.go b/service/challenge/client/challenge_client.go index b0d1790cc..68d0c4a6a 100644 --- a/service/challenge/client/challenge_client.go +++ b/service/challenge/client/challenge_client.go @@ -3,13 +3,14 @@ package client import ( "context" - "github.com/bnb-chain/greenfield-storage-provider/model" - merrors "github.com/bnb-chain/greenfield-storage-provider/model/errors" "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" + merrors "github.com/bnb-chain/greenfield-storage-provider/model/errors" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/service/challenge/types" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) // ChallengeClient is a challenge gRPC service client wrapper @@ -21,10 +22,11 @@ type ChallengeClient struct { // NewChallengeClient return a ChallengeClient instance func NewChallengeClient(address string) (*ChallengeClient, error) { - conn, err := grpc.DialContext(context.Background(), address, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize)), - grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + options := utilgrpc.GetDefaultClientOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) + } + conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { log.Errorw("failed to dial challenge", "error", err) return nil, err diff --git a/service/downloader/client/downloader_client.go b/service/downloader/client/downloader_client.go index 951b7401c..5d0ecd668 100644 --- a/service/downloader/client/downloader_client.go +++ b/service/downloader/client/downloader_client.go @@ -3,13 +3,14 @@ package client import ( "context" - "github.com/bnb-chain/greenfield-storage-provider/model" + storagetypes "github.com/bnb-chain/greenfield/x/storage/types" "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/service/downloader/types" - storagetypes "github.com/bnb-chain/greenfield/x/storage/types" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) // DownloaderClient is a downloader gRPC service client wrapper @@ -21,10 +22,11 @@ type DownloaderClient struct { // NewDownloaderClient returns a DownloaderClient instance func NewDownloaderClient(address string) (*DownloaderClient, error) { - conn, err := grpc.DialContext(context.Background(), address, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize)), - grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + options := utilgrpc.GetDefaultClientOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) + } + conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { log.Errorw("failed to dial downloader", "error", err) return nil, err diff --git a/service/downloader/downloader.go b/service/downloader/downloader.go index 0d553793e..5df021f6c 100644 --- a/service/downloader/downloader.go +++ b/service/downloader/downloader.go @@ -4,16 +4,19 @@ import ( "context" "net" - "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" - "github.com/bnb-chain/greenfield-storage-provider/pkg/rcmgr" - "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" "google.golang.org/grpc" "google.golang.org/grpc/reflection" "github.com/bnb-chain/greenfield-storage-provider/model" + "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" + "github.com/bnb-chain/greenfield-storage-provider/pkg/rcmgr" "github.com/bnb-chain/greenfield-storage-provider/service/downloader/types" psclient "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/client" + "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) var _ lifecycle.Service = &Downloader{} @@ -24,6 +27,7 @@ type Downloader struct { config *DownloaderConfig spDB sqldb.SPDB pieceStore *psclient.StoreClient + grpcServer *grpc.Server rcScope rcmgr.ResourceScope } @@ -60,29 +64,35 @@ func (downloader *Downloader) Name() string { // Start the downloader gRPC service func (downloader *Downloader) Start(ctx context.Context) error { errCh := make(chan error) - - go func(errCh chan error) { - lis, err := net.Listen("tcp", downloader.config.GRPCAddress) - errCh <- err - if err != nil { - log.Errorw("failed to listen", "error", err) - return - } - grpcServer := grpc.NewServer(grpc.MaxRecvMsgSize(model.MaxCallMsgSize), grpc.MaxSendMsgSize(model.MaxCallMsgSize)) - types.RegisterDownloaderServiceServer(grpcServer, downloader) - reflection.Register(grpcServer) - if err = grpcServer.Serve(lis); err != nil { - log.Errorw("failed to serve", "error", err) - return - } - }(errCh) - + go downloader.serve(errCh) err := <-errCh return err } // Stop the downloader gRPC service and recycle the resources func (downloader *Downloader) Stop(ctx context.Context) error { + downloader.grpcServer.GracefulStop() downloader.rcScope.Release() return nil } + +func (downloader *Downloader) serve(errCh chan error) { + lis, err := net.Listen("tcp", downloader.config.GRPCAddress) + errCh <- err + if err != nil { + log.Errorw("failed to listen", "error", err) + return + } + + options := utilgrpc.GetDefaultServerOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultServerInterceptor()...) + } + downloader.grpcServer = grpc.NewServer(options...) + types.RegisterDownloaderServiceServer(downloader.grpcServer, downloader) + reflection.Register(downloader.grpcServer) + if err = downloader.grpcServer.Serve(lis); err != nil { + log.Errorw("failed to serve", "error", err) + return + } +} diff --git a/service/gateway/object_handler.go b/service/gateway/object_handler.go index c578f9609..115de4d24 100644 --- a/service/gateway/object_handler.go +++ b/service/gateway/object_handler.go @@ -7,11 +7,11 @@ import ( "io" "net/http" - merrors "github.com/bnb-chain/greenfield-storage-provider/model/errors" "github.com/bnb-chain/greenfield/types/s3util" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/bnb-chain/greenfield-storage-provider/model" + merrors "github.com/bnb-chain/greenfield-storage-provider/model/errors" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" "github.com/bnb-chain/greenfield-storage-provider/service/downloader/types" uploadertypes "github.com/bnb-chain/greenfield-storage-provider/service/uploader/types" diff --git a/service/metadata/service/payment.go b/service/metadata/service/payment.go index ce23e6207..668241720 100644 --- a/service/metadata/service/payment.go +++ b/service/metadata/service/payment.go @@ -28,13 +28,12 @@ func (metadata *Metadata) GetPaymentByBucketName(ctx context.Context, req *metat return } - err = jsoniter.Unmarshal(streamRecord.OutFlows, &outflows) - if err != nil { - log.CtxErrorw(ctx, "failed to unmarshal out flows", "error", err) - return - } - if streamRecord != nil { + err = jsoniter.Unmarshal(streamRecord.OutFlows, &outflows) + if err != nil { + log.CtxErrorw(ctx, "failed to unmarshal out flows", "error", err) + return + } res = &types.StreamRecord{ Account: streamRecord.Account.String(), CrudTimestamp: streamRecord.UpdateTime, @@ -68,14 +67,12 @@ func (metadata *Metadata) GetPaymentByBucketID(ctx context.Context, req *metatyp log.CtxErrorw(ctx, "failed to get payment by bucket id", "error", err) return } - - err = jsoniter.Unmarshal(streamRecord.OutFlows, &outflows) - if err != nil { - log.CtxErrorw(ctx, "failed to unmarshal out flows", "error", err) - return - } - if streamRecord != nil { + err = jsoniter.Unmarshal(streamRecord.OutFlows, &outflows) + if err != nil { + log.CtxErrorw(ctx, "failed to unmarshal out flows", "error", err) + return + } res = &types.StreamRecord{ Account: streamRecord.Account.String(), CrudTimestamp: streamRecord.UpdateTime, diff --git a/service/p2p/client/p2p_client.go b/service/p2p/client/p2p_client.go index d62276e57..212451ccc 100644 --- a/service/p2p/client/p2p_client.go +++ b/service/p2p/client/p2p_client.go @@ -7,8 +7,9 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - "github.com/bnb-chain/greenfield-storage-provider/model" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" p2ptypes "github.com/bnb-chain/greenfield-storage-provider/pkg/p2p/types" "github.com/bnb-chain/greenfield-storage-provider/service/p2p/types" ) @@ -22,10 +23,12 @@ type P2PClient struct { // NewP2PClient return a P2PClient instance func NewP2PClient(address string) (*P2PClient, error) { - conn, err := grpc.DialContext(context.Background(), address, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize)), - grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + options := []grpc.DialOption{} + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) + } + options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials())) + conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { log.Errorw("failed to dial p2p server", "error", err) return nil, err diff --git a/service/p2p/p2p.go b/service/p2p/p2p.go index 5034ee5f4..9639e39f2 100644 --- a/service/p2p/p2p.go +++ b/service/p2p/p2p.go @@ -14,6 +14,8 @@ import ( "github.com/bnb-chain/greenfield-storage-provider/model" "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/pkg/p2p" p2ptypes "github.com/bnb-chain/greenfield-storage-provider/service/p2p/types" signerclient "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" @@ -92,11 +94,14 @@ func (p *P2PServer) serve(errCh chan error) { return } - grpcServer := grpc.NewServer(grpc.MaxRecvMsgSize(model.MaxCallMsgSize)) - p2ptypes.RegisterP2PServiceServer(grpcServer, p) - p.grpcServer = grpcServer - reflection.Register(grpcServer) - if err := grpcServer.Serve(lis); err != nil { + options := []grpc.ServerOption{} + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultServerInterceptor()...) + } + p.grpcServer = grpc.NewServer(options...) + p2ptypes.RegisterP2PServiceServer(p.grpcServer, p) + reflection.Register(p.grpcServer) + if err := p.grpcServer.Serve(lis); err != nil { log.Errorw("failed to start grpc server", "err", err) return } diff --git a/service/receiver/client/receiver_client.go b/service/receiver/client/receiver_client.go index 75f8579a0..351a4a077 100644 --- a/service/receiver/client/receiver_client.go +++ b/service/receiver/client/receiver_client.go @@ -3,13 +3,14 @@ package client import ( "context" - "github.com/bnb-chain/greenfield-storage-provider/model" - servicetypes "github.com/bnb-chain/greenfield-storage-provider/service/types" "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/service/receiver/types" + servicetypes "github.com/bnb-chain/greenfield-storage-provider/service/types" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) // ReceiverClient is a receiver gRPC service client wrapper @@ -21,10 +22,11 @@ type ReceiverClient struct { // NewReceiverClient return a ReceiverClient instance func NewReceiverClient(address string) (*ReceiverClient, error) { - conn, err := grpc.DialContext(context.Background(), address, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize)), - grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + options := utilgrpc.GetDefaultClientOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) + } + conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { log.Errorw("failed to dial receiver", "error", err) return nil, err diff --git a/service/receiver/receiver.go b/service/receiver/receiver.go index ff6890c5d..14010894f 100644 --- a/service/receiver/receiver.go +++ b/service/receiver/receiver.go @@ -4,7 +4,6 @@ import ( "context" "net" - "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" lru "github.com/hashicorp/golang-lru" "google.golang.org/grpc" "google.golang.org/grpc/reflection" @@ -12,9 +11,13 @@ import ( "github.com/bnb-chain/greenfield-storage-provider/model" "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/service/receiver/types" signerclient "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" psclient "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/client" + "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) var _ lifecycle.Service = &Receiver{} @@ -83,11 +86,14 @@ func (receiver *Receiver) serve(errCh chan error) { return } - grpcServer := grpc.NewServer(grpc.MaxRecvMsgSize(model.MaxCallMsgSize), grpc.MaxSendMsgSize(model.MaxCallMsgSize)) - types.RegisterReceiverServiceServer(grpcServer, receiver) - receiver.grpcServer = grpcServer - reflection.Register(grpcServer) - if err := grpcServer.Serve(lis); err != nil { + options := utilgrpc.GetDefaultServerOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultServerInterceptor()...) + } + receiver.grpcServer = grpc.NewServer(options...) + types.RegisterReceiverServiceServer(receiver.grpcServer, receiver) + reflection.Register(receiver.grpcServer) + if err := receiver.grpcServer.Serve(lis); err != nil { log.Errorw("failed to start grpc server", "err", err) return } diff --git a/service/signer/client/gnfd_sign_client.go b/service/signer/client/gnfd_sign_client.go index 0bfa7578c..6243a36a2 100644 --- a/service/signer/client/gnfd_sign_client.go +++ b/service/signer/client/gnfd_sign_client.go @@ -5,6 +5,8 @@ import ( "encoding/hex" "sync" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield/sdk/client" "github.com/bnb-chain/greenfield/sdk/keys" ctypes "github.com/bnb-chain/greenfield/sdk/types" @@ -45,40 +47,40 @@ type GreenfieldChainSignClient struct { } // NewGreenfieldChainSignClient return the GreenfieldChainSignClient instance -func NewGreenfieldChainSignClient( - gRPCAddr string, - chainID string, - gasLimit uint64, - operatorPrivateKey string, - fundingPrivateKey string, - sealPrivateKey string, - approvalPrivateKey string) (*GreenfieldChainSignClient, error) { +func NewGreenfieldChainSignClient(gRPCAddr, chainID string, gasLimit uint64, operatorPrivateKey, fundingPrivateKey, + sealPrivateKey, approvalPrivateKey string) (*GreenfieldChainSignClient, error) { // init clients // TODO: Get private key from KMS(AWS, GCP, Azure, Aliyun) operatorKM, err := keys.NewPrivateKeyManager(operatorPrivateKey) if err != nil { return nil, err } + options := []grpc.DialOption{} + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) + } + options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials())) + operatorClient := client.NewGreenfieldClient(gRPCAddr, chainID, client.WithKeyManager(operatorKM), - client.WithGrpcDialOption(grpc.WithTransportCredentials(insecure.NewCredentials()))) + client.WithGrpcDialOption(options...)) fundingKM, err := keys.NewPrivateKeyManager(fundingPrivateKey) if err != nil { return nil, err } fundingClient := client.NewGreenfieldClient(gRPCAddr, chainID, client.WithKeyManager(fundingKM), - client.WithGrpcDialOption(grpc.WithTransportCredentials(insecure.NewCredentials()))) + client.WithGrpcDialOption(options...)) sealKM, err := keys.NewPrivateKeyManager(sealPrivateKey) if err != nil { return nil, err } sealClient := client.NewGreenfieldClient(gRPCAddr, chainID, client.WithKeyManager(sealKM), - client.WithGrpcDialOption(grpc.WithTransportCredentials(insecure.NewCredentials()))) + client.WithGrpcDialOption(options...)) approvalKM, err := keys.NewPrivateKeyManager(approvalPrivateKey) if err != nil { return nil, err } approvalClient := client.NewGreenfieldClient(gRPCAddr, chainID, client.WithKeyManager(approvalKM), - client.WithGrpcDialOption(grpc.WithTransportCredentials(insecure.NewCredentials()))) + client.WithGrpcDialOption(options...)) greenfieldClients := map[SignType]*client.GreenfieldClient{ SignOperator: operatorClient, SignFunding: fundingClient, diff --git a/service/signer/client/signer_client.go b/service/signer/client/signer_client.go index 596f07b5c..0de2e6cc9 100644 --- a/service/signer/client/signer_client.go +++ b/service/signer/client/signer_client.go @@ -8,6 +8,8 @@ import ( "google.golang.org/grpc/credentials/insecure" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mdgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" p2ptpyes "github.com/bnb-chain/greenfield-storage-provider/pkg/p2p/types" "github.com/bnb-chain/greenfield-storage-provider/service/signer/types" ) @@ -19,8 +21,12 @@ type SignerClient struct { } func NewSignerClient(address string) (*SignerClient, error) { - conn, err := grpc.DialContext(context.Background(), address, - grpc.WithTransportCredentials(insecure.NewCredentials())) + options := []grpc.DialOption{} + if metrics.GetMetrics().Enabled() { + options = append(options, mdgrpc.GetDefaultClientInterceptor()...) + } + options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials())) + conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { log.Errorw("failed to dial signer", "error", err) return nil, err diff --git a/service/signer/signer.go b/service/signer/signer.go index e48a7be08..e1ca30b7a 100644 --- a/service/signer/signer.go +++ b/service/signer/signer.go @@ -14,8 +14,11 @@ import ( gnfd "github.com/bnb-chain/greenfield-storage-provider/pkg/greenfield" "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" "github.com/bnb-chain/greenfield-storage-provider/service/signer/types" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) var _ lifecycle.Service = &SignerServer{} @@ -96,12 +99,15 @@ func (signer *SignerServer) serve() { log.Errorw("failed to listen", "address", signer.config.GRPCAddress, "error", err) return } - signer.server = grpc.NewServer( - grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer( - signer.IPWhitelistInterceptor(), - signer.AuthInterceptor(), - )), - ) + options := utilgrpc.GetDefaultServerOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultServerInterceptor()...) + } + options = append(options, grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer( + signer.IPWhitelistInterceptor(), + signer.AuthInterceptor(), + ))) + signer.server = grpc.NewServer(options...) types.RegisterSignerServiceServer(signer.server, signer) // register reflection service diff --git a/service/tasknode/client/task_node_client.go b/service/tasknode/client/task_node_client.go index 21be4262d..913f218e6 100644 --- a/service/tasknode/client/task_node_client.go +++ b/service/tasknode/client/task_node_client.go @@ -3,14 +3,15 @@ package client import ( "context" - "github.com/bnb-chain/greenfield-storage-provider/model" - servicetype "github.com/bnb-chain/greenfield-storage-provider/service/types" - storagetypes "github.com/bnb-chain/greenfield/x/storage/types" "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" "github.com/bnb-chain/greenfield-storage-provider/service/tasknode/types" + servicetype "github.com/bnb-chain/greenfield-storage-provider/service/types" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" + storagetypes "github.com/bnb-chain/greenfield/x/storage/types" ) // TaskNodeClient is a task node gRPC service client wrapper @@ -22,10 +23,11 @@ type TaskNodeClient struct { // NewTaskNodeClient return a TaskNodeClient instance func NewTaskNodeClient(address string) (*TaskNodeClient, error) { - conn, err := grpc.DialContext(context.Background(), address, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize)), - grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + options := utilgrpc.GetDefaultClientOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) + } + conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { log.Errorw("failed to dial task node", "error", err) return nil, err diff --git a/service/tasknode/task_node.go b/service/tasknode/task_node.go index 6419e7dd7..e07d03a56 100644 --- a/service/tasknode/task_node.go +++ b/service/tasknode/task_node.go @@ -6,7 +6,6 @@ import ( "sync/atomic" "github.com/bnb-chain/greenfield-common/go/redundancy" - "github.com/bnb-chain/greenfield-storage-provider/pkg/rcmgr" storagetypes "github.com/bnb-chain/greenfield/x/storage/types" lru "github.com/hashicorp/golang-lru" "google.golang.org/grpc" @@ -17,11 +16,15 @@ import ( "github.com/bnb-chain/greenfield-storage-provider/pkg/greenfield" "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" + "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mdgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" + "github.com/bnb-chain/greenfield-storage-provider/pkg/rcmgr" p2pclient "github.com/bnb-chain/greenfield-storage-provider/service/p2p/client" signerclient "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" "github.com/bnb-chain/greenfield-storage-provider/service/tasknode/types" psclient "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/client" "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) var _ lifecycle.Service = &TaskNode{} @@ -115,11 +118,14 @@ func (taskNode *TaskNode) serve(errCh chan error) { return } - grpcServer := grpc.NewServer(grpc.MaxRecvMsgSize(model.MaxCallMsgSize), grpc.MaxSendMsgSize(model.MaxCallMsgSize)) - types.RegisterTaskNodeServiceServer(grpcServer, taskNode) - taskNode.grpcServer = grpcServer - reflection.Register(grpcServer) - if err := grpcServer.Serve(lis); err != nil { + options := utilgrpc.GetDefaultServerOptions() + if metrics.GetMetrics().Enabled() { + options = append(options, mdgrpc.GetDefaultServerInterceptor()...) + } + taskNode.grpcServer = grpc.NewServer(options...) + types.RegisterTaskNodeServiceServer(taskNode.grpcServer, taskNode) + reflection.Register(taskNode.grpcServer) + if err := taskNode.grpcServer.Serve(lis); err != nil { log.Errorw("failed to start grpc server", "error", err) return } diff --git a/service/tasknode/task_node_service.go b/service/tasknode/task_node_service.go index c65eb45af..3c4e882d8 100644 --- a/service/tasknode/task_node_service.go +++ b/service/tasknode/task_node_service.go @@ -25,7 +25,10 @@ import ( ) const ( - ReplicateFactor = 2 + // ReplicateFactor defines the redundancy of replication + // TODO:: will update to (1, 2] on main net + ReplicateFactor = 1 + // GetApprovalTimeout defines the timeout of getting secondary sp approval GetApprovalTimeout = 10 ) diff --git a/service/uploader/client/uploader_client.go b/service/uploader/client/uploader_client.go index 63e4dda75..63a2d32ea 100644 --- a/service/uploader/client/uploader_client.go +++ b/service/uploader/client/uploader_client.go @@ -3,15 +3,14 @@ package client import ( "context" - openmetrics "github.com/grpc-ecosystem/go-grpc-middleware/providers/openmetrics/v2" "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" - "github.com/bnb-chain/greenfield-storage-provider/model" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" servicetypes "github.com/bnb-chain/greenfield-storage-provider/service/types" "github.com/bnb-chain/greenfield-storage-provider/service/uploader/types" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) // UploaderClient is an uploader gRPC service client wrapper @@ -22,13 +21,9 @@ type UploaderClient struct { // NewUploaderClient return an UploaderClient instance func NewUploaderClient(address string) (*UploaderClient, error) { - var options []grpc.DialOption - options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials())) - options = append(options, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize))) - options = append(options, grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + options := utilgrpc.GetDefaultClientOptions() if metrics.GetMetrics().Enabled() { - options = append(options, grpc.WithChainUnaryInterceptor(openmetrics.UnaryClientInterceptor(metrics.DefaultGRPCClientMetrics))) - options = append(options, grpc.WithChainStreamInterceptor(openmetrics.StreamClientInterceptor(metrics.DefaultGRPCClientMetrics))) + options = append(options, mwgrpc.GetDefaultClientInterceptor()...) } conn, err := grpc.DialContext(context.Background(), address, options...) if err != nil { diff --git a/service/uploader/uploader.go b/service/uploader/uploader.go index b997cf809..59d3beb3d 100644 --- a/service/uploader/uploader.go +++ b/service/uploader/uploader.go @@ -3,25 +3,22 @@ package uploader import ( "context" "net" - "runtime/debug" - openmetrics "github.com/grpc-ecosystem/go-grpc-middleware/providers/openmetrics/v2" - grpcrecovery "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/recovery" lru "github.com/hashicorp/golang-lru" "google.golang.org/grpc" - "google.golang.org/grpc/codes" "google.golang.org/grpc/reflection" - "google.golang.org/grpc/status" "github.com/bnb-chain/greenfield-storage-provider/model" "github.com/bnb-chain/greenfield-storage-provider/pkg/lifecycle" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" "github.com/bnb-chain/greenfield-storage-provider/pkg/metrics" + mwgrpc "github.com/bnb-chain/greenfield-storage-provider/pkg/middleware/grpc" signerclient "github.com/bnb-chain/greenfield-storage-provider/service/signer/client" tasknodeclient "github.com/bnb-chain/greenfield-storage-provider/service/tasknode/client" "github.com/bnb-chain/greenfield-storage-provider/service/uploader/types" psclient "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/client" "github.com/bnb-chain/greenfield-storage-provider/store/sqldb" + utilgrpc "github.com/bnb-chain/greenfield-storage-provider/util/grpc" ) var _ lifecycle.Service = &Uploader{} @@ -104,19 +101,9 @@ func (uploader *Uploader) serve(errCh chan error) { return } - gRPCPanicRecoveryHandler := func(p interface{}) (err error) { - metrics.PanicsTotal.WithLabelValues().Inc() - log.Errorw("recovered from panic", "panic", p, "stack", debug.Stack()) - return status.Errorf(codes.Internal, "%s", p) - } - - var options []grpc.ServerOption - options = append(options, grpc.MaxRecvMsgSize(model.MaxCallMsgSize)) - options = append(options, grpc.MaxSendMsgSize(model.MaxCallMsgSize)) + options := utilgrpc.GetDefaultServerOptions() if metrics.GetMetrics().Enabled() { - options = append(options, grpc.ChainUnaryInterceptor(openmetrics.UnaryServerInterceptor(metrics.DefaultGRPCServerMetrics), - grpcrecovery.UnaryServerInterceptor(grpcrecovery.WithRecoveryHandler(gRPCPanicRecoveryHandler)))) - options = append(options, grpc.ChainStreamInterceptor(openmetrics.StreamServerInterceptor(metrics.DefaultGRPCServerMetrics))) + options = append(options, mwgrpc.GetDefaultServerInterceptor()...) } uploader.grpcServer = grpc.NewServer(options...) types.RegisterUploaderServiceServer(uploader.grpcServer, uploader) diff --git a/store/bsdb/bucket.go b/store/bsdb/bucket.go index b1b2be371..0e6c2383c 100644 --- a/store/bsdb/bucket.go +++ b/store/bsdb/bucket.go @@ -16,7 +16,11 @@ func (b *BsDBImpl) GetUserBuckets(accountID common.Address) ([]*Bucket, error) { err error ) - err = b.db.Find(&buckets, "owner_address = ?", accountID).Error + err = b.db.Table((&Bucket{}).TableName()). + Select("*"). + Where("owner_address = ?", accountID). + Order("create_at desc"). + Find(&buckets).Error return buckets, err } diff --git a/store/bsdb/object.go b/store/bsdb/object.go index 4f23d3156..e25221d02 100644 --- a/store/bsdb/object.go +++ b/store/bsdb/object.go @@ -10,6 +10,7 @@ func (b *BsDBImpl) ListObjectsByBucketName(bucketName string) ([]*Object, error) err = b.db.Table((&Object{}).TableName()). Select("*"). Where("bucket_name = ?", bucketName). + Order("create_at desc"). Find(&objects).Error return objects, err } diff --git a/store/piecestore/piece/piece_store.go b/store/piecestore/piece/piece_store.go index 921b40be9..77f7c0fd8 100644 --- a/store/piecestore/piece/piece_store.go +++ b/store/piecestore/piece/piece_store.go @@ -41,7 +41,7 @@ func checkConfig(cfg *storage.PieceStoreConfig) { if cfg.Store.MinRetryDelay < 0 { log.Panic("MinRetryDelay should be equal or greater than zero") } - if cfg.Store.Storage == "file" { + if cfg.Store.Storage == mpiecestore.DiskFileStore { if cfg.Store.BucketURL == "" { cfg.Store.BucketURL = setDefaultFileStorePath() } diff --git a/store/piecestore/storage/disk_file_test.go b/store/piecestore/storage/disk_file_test.go index ba5b0621b..4af5c355f 100644 --- a/store/piecestore/storage/disk_file_test.go +++ b/store/piecestore/storage/disk_file_test.go @@ -138,7 +138,7 @@ func TestDiskFile_PutSuccess(t *testing.T) { }{ { name: "disk_file_put_cfr_true_success_test1", - data: sessionToken, + data: mockSessionToken, cfr: true, key: f.Name(), wantedErr: nil, @@ -146,14 +146,14 @@ func TestDiskFile_PutSuccess(t *testing.T) { { name: "disk_file_put_cfr_false_success_test2", key: f.Name(), - data: sessionToken, + data: mockSessionToken, cfr: false, wantedErr: nil, }, { name: "disk_file_put_with_dir_suffix_success_test3", key: "test/", - data: sessionToken, + data: mockSessionToken, cfr: false, wantedErr: nil, }, @@ -185,7 +185,7 @@ func TestDiskFile_PutError(t *testing.T) { }{ { name: "disk_file_put_error_test1", - data: sessionToken, + data: mockSessionToken, cfr: true, key: emptyString, wantedErr: errors.New("no such file or directory"), diff --git a/store/piecestore/storage/memory_test.go b/store/piecestore/storage/memory_test.go index 1d6cfdb8c..903631875 100644 --- a/store/piecestore/storage/memory_test.go +++ b/store/piecestore/storage/memory_test.go @@ -32,7 +32,7 @@ func TestMemory_GetSuccess(t *testing.T) { { name: "memory_get_success_test1", key: mockKey, - wantedResult: accessKey, + wantedResult: mockAccessKey, wantedErr: nil, }, } @@ -40,7 +40,7 @@ func TestMemory_GetSuccess(t *testing.T) { t.Run(tt.name, func(t *testing.T) { store := setupMemoryTest(t) store.objects = map[string]*memoryObject{ - mockKey: {data: []byte(accessKey)}, + mockKey: {data: []byte(mockAccessKey)}, } data, err := store.GetObject(context.TODO(), tt.key, 0, 0) assert.Equal(t, tt.wantedErr, err) @@ -74,7 +74,7 @@ func TestMemory_GetError(t *testing.T) { t.Run(tt.name, func(t *testing.T) { store := setupMemoryTest(t) store.objects = map[string]*memoryObject{ - accessKey: {data: []byte(secretKey)}, + mockSecretKey: {data: []byte(mockSecretKey)}, } data, err := store.GetObject(context.TODO(), tt.key, 0, 0) assert.Equal(t, tt.wantedErr, err) @@ -93,13 +93,13 @@ func TestMemory_Put(t *testing.T) { { name: "memory_put_test1", key: emptyString, - data: endPoint, + data: mockEndpoint, wantedErr: errors.ErrInvalidObjectKey, }, { name: "memory_put_test2", - key: accessKey, - data: endPoint, + key: mockAccessKey, + data: mockEndpoint, wantedErr: nil, }, } @@ -107,7 +107,7 @@ func TestMemory_Put(t *testing.T) { t.Run(tt.name, func(t *testing.T) { store := setupMemoryTest(t) store.objects = map[string]*memoryObject{ - accessKey: {data: []byte(secretKey)}, + mockAccessKey: {data: []byte(mockSecretKey)}, } err := store.PutObject(context.TODO(), tt.key, strings.NewReader(tt.data)) assert.Equal(t, tt.wantedErr, err) @@ -128,7 +128,7 @@ func TestMemory_Delete(t *testing.T) { }, { name: "memory_delete_test2", - key: accessKey, + key: mockAccessKey, wantedErr: nil, }, } @@ -136,7 +136,7 @@ func TestMemory_Delete(t *testing.T) { t.Run(tt.name, func(t *testing.T) { store := setupMemoryTest(t) store.objects = map[string]*memoryObject{ - accessKey: {data: []byte(secretKey)}, + mockAccessKey: {data: []byte(mockSecretKey)}, } err := store.DeleteObject(context.TODO(), tt.key) assert.Equal(t, tt.wantedErr, err) @@ -152,7 +152,7 @@ func TestMemory_HeadSuccess(t *testing.T) { }{ { name: "memory_head_success_test1", - key: accessKey, + key: mockAccessKey, wantedErr: nil, }, } @@ -160,11 +160,11 @@ func TestMemory_HeadSuccess(t *testing.T) { t.Run(tt.name, func(t *testing.T) { store := setupMemoryTest(t) store.objects = map[string]*memoryObject{ - accessKey: {data: []byte(secretKey)}, + mockAccessKey: {data: []byte(mockSecretKey)}, } obj, err := store.HeadObject(context.TODO(), tt.key) assert.Equal(t, tt.wantedErr, err) - assert.Equal(t, accessKey, obj.Key()) + assert.Equal(t, mockAccessKey, obj.Key()) }) } } @@ -204,7 +204,7 @@ func TestMemory_ListSuccess(t *testing.T) { }{ { name: "memory_list_success_test1", - prefix: accessKey, + prefix: mockAccessKey, wantedErr: nil, }, } @@ -212,11 +212,11 @@ func TestMemory_ListSuccess(t *testing.T) { t.Run(tt.name, func(t *testing.T) { store := setupMemoryTest(t) store.objects = map[string]*memoryObject{ - accessKey: {data: []byte(secretKey)}, + mockAccessKey: {data: []byte(mockSecretKey)}, } objs, err := store.ListObjects(context.TODO(), tt.prefix, emptyString, emptyString, 1) assert.Equal(t, tt.wantedErr, err) - assert.Equal(t, accessKey, objs[0].Key()) + assert.Equal(t, mockAccessKey, objs[0].Key()) }) } } diff --git a/store/piecestore/storage/s3.go b/store/piecestore/storage/s3.go index 22cf5fc88..b4babf0a7 100644 --- a/store/piecestore/storage/s3.go +++ b/store/piecestore/storage/s3.go @@ -19,13 +19,15 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/credentials/stscreds" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3iface" - "github.com/bnb-chain/greenfield-storage-provider/model" + "github.com/aws/aws-sdk-go/service/sts" "github.com/viki-org/dnscache" + "github.com/bnb-chain/greenfield-storage-provider/model" merrors "github.com/bnb-chain/greenfield-storage-provider/model/errors" mpiecestore "github.com/bnb-chain/greenfield-storage-provider/model/piecestore" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" @@ -241,6 +243,10 @@ func (sc *SessionCache) newSession(cfg ObjectStorageConfig) (*session.Session, s return sess, bucketName, nil } + // If you want to access s3 bucket, you must set IAM type in config.toml. + // If IAM type is AKSK, you must provide access key, secret key and session token(optional) to access s3 bucket + // If you want to access public bucket, you should set IAM type to AKSK and accessKey to be NoSignRequest + // If IAM type is SA, you can visit your s3 straightly awsConfig := &aws.Config{ Region: aws.String(region), Endpoint: aws.String(endpoint), @@ -249,32 +255,64 @@ func (sc *SessionCache) newSession(cfg ObjectStorageConfig) (*session.Session, s S3ForcePathStyle: aws.Bool(!isVirtualHostStyle), Retryer: newCustomS3Retryer(cfg.MaxRetries, time.Duration(cfg.MinRetryDelay)), } - // if TestMode is true, you can communicate with private bucket or public bucket, - // in this TestMode, if you want to visit private bucket, you should provide accessKey, secretKey. - // if TestMode is false, you can use service account or ec2 to visit your s3 straightly - if cfg.TestMode { + var sess *session.Session + switch cfg.IAMType { + case mpiecestore.AKSKIAMType: key := getSecretKeyFromEnv(mpiecestore.AWSAccessKey, mpiecestore.AWSSecretKey, mpiecestore.AWSSessionToken) if key.accessKey == "NoSignRequest" { + // access public s3 bucket awsConfig.Credentials = credentials.AnonymousCredentials } else if key.accessKey != "" && key.secretKey != "" { awsConfig.Credentials = credentials.NewStaticCredentials(key.accessKey, key.secretKey, key.sessionToken) } - } - - sess, err := session.NewSession(awsConfig) - if err != nil { - return nil, "", fmt.Errorf("failed to create aws session: %s", err) + sess = session.Must(session.NewSession(awsConfig)) + log.Debugw("use aksk to access s3", "region", *sess.Config.Region, "endpoint", *sess.Config.Endpoint) + case mpiecestore.SAIAMType: + sess = session.Must(session.NewSession()) + irsa, roleARN, tokenPath := checkIRSAAvailable() + if irsa { + awsConfig.WithCredentialsChainVerboseErrors(true).WithCredentials(credentials.NewChainCredentials( + []credentials.Provider{ + &credentials.EnvProvider{}, + &credentials.SharedCredentialsProvider{}, + stscreds.NewWebIdentityRoleProviderWithOptions( + sts.New(sess), roleARN, "", + stscreds.FetchTokenPath(tokenPath)), + })) + log.Debug("use sa to access s3") + } else { + return nil, "", fmt.Errorf("failed to use sa to access s3") + } + default: + log.Errorf("unknown IAM type: %s", cfg.IAMType) + return nil, "", fmt.Errorf("unknown IAM type: %s", cfg.IAMType) } sc.sessions[cfg] = sess return sess, bucketName, nil } -// func (sc *SessionCache) clear() { -// sc.Lock() -// defer sc.Unlock() -// sc.sessions = map[ObjectStorageConfig]*session.Session{} -// } +// IRSA is IAM Roles for Service Account in Kubernetes +func checkIRSAAvailable() (bool, string, string) { + irsa := true + roleARN, exists := os.LookupEnv(mpiecestore.AWSRoleARN) + if !exists { + irsa = false + log.Error("failed to read aws role arn") + } + tokenPath, exists := os.LookupEnv(mpiecestore.AWSWebIdentityTokenFile) + if !exists { + irsa = false + log.Error("failed to read aws web identity token file") + } + return irsa, roleARN, tokenPath +} + +func (sc *SessionCache) clear() { + sc.Lock() + defer sc.Unlock() + sc.sessions = map[ObjectStorageConfig]*session.Session{} +} func parseEndpoint(endpoint string) (string, string, string, error) { endpoint = strings.Trim(endpoint, "/") diff --git a/store/piecestore/storage/s3_test.go b/store/piecestore/storage/s3_test.go index e3164ea00..8c21e7b7f 100644 --- a/store/piecestore/storage/s3_test.go +++ b/store/piecestore/storage/s3_test.go @@ -4,31 +4,34 @@ import ( "context" "errors" "io" + "os" "strings" "testing" "time" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3iface" "github.com/stretchr/testify/assert" merrors "github.com/bnb-chain/greenfield-storage-provider/model/errors" + mpiecestore "github.com/bnb-chain/greenfield-storage-provider/model/piecestore" ) const ( - endPoint = "https://s3.mock-region-1.amazonaws.com/mockBucket" - accessKey = "mockAccessKey" - secretKey = "mockSecretKey" - sessionToken = "mockSessionToken" - mockBucket = "mockBucket" - mockKey = "mock" - mockSize = 10 - emptyString = "" + mockEndpoint = "https://s3.mock-region-1.amazonaws.com/mockBucket" + mockAccessKey = "mockAccessKey" + mockSecretKey = "mockSecretKey" + mockSessionToken = "mockSessionToken" + mockBucket = "mockBucket" + mockKey = "mock" + mockSize = 10 + emptyString = "" ) -var modifiedTime = time.Date(2022, time.July, 1, 10, 0, 0, 0, time.UTC) +var mockModifiedTime = time.Date(2022, time.July, 1, 10, 0, 0, 0, time.UTC) type mockS3Client struct { s3iface.S3API @@ -232,7 +235,7 @@ func TestS3_HeadSuccess(t *testing.T) { key: mockKey, resp: s3.HeadObjectOutput{ ContentLength: aws.Int64(mockSize), - LastModified: aws.Time(modifiedTime), + LastModified: aws.Time(mockModifiedTime), }, wantedErr: nil, }, @@ -242,7 +245,7 @@ func TestS3_HeadSuccess(t *testing.T) { store.api = mockS3Client{headObjectResp: tt.resp} obj, err := store.HeadObject(context.TODO(), tt.key) assert.Equal(t, int64(mockSize), obj.Size()) - assert.Equal(t, modifiedTime, obj.ModTime()) + assert.Equal(t, mockModifiedTime, obj.ModTime()) assert.Equal(t, tt.wantedErr, err) }) } @@ -252,7 +255,7 @@ func TestS3_ListSuccess(t *testing.T) { store := setupS3Test(t) s3Object := &s3.Object{ Key: aws.String(mockKey), - LastModified: aws.Time(modifiedTime), + LastModified: aws.Time(mockModifiedTime), Size: aws.Int64(mockSize), } objectsList := make([]*s3.Object, 0) @@ -273,7 +276,7 @@ func TestS3_ListSuccess(t *testing.T) { store.api = mockS3Client{listObjectsResp: tt.resp} objs, err := store.ListObjects(context.TODO(), emptyString, emptyString, emptyString, 0) assert.Equal(t, mockKey, objs[0].Key()) - assert.Equal(t, modifiedTime, objs[0].ModTime()) + assert.Equal(t, mockModifiedTime, objs[0].ModTime()) assert.Equal(t, int64(mockSize), objs[0].Size()) assert.Equal(t, tt.wantedErr, err) }) @@ -472,3 +475,25 @@ func TestS3_ListError(t *testing.T) { }) } } + +func TestNewSessionWithRegionSetViaEnv(t *testing.T) { + s3SessionCache.clear() + + os.Setenv(mpiecestore.AWSAccessKey, "NoSignRequest") + defer os.Unsetenv(mpiecestore.AWSAccessKey) + + sess, _, err := s3SessionCache.newSession(ObjectStorageConfig{ + Storage: mpiecestore.S3Store, + BucketURL: mockEndpoint, + IAMType: mpiecestore.AKSKIAMType, + }) + if err != nil { + t.Fatal(err) + } + + got := sess.Config.Credentials + expected := credentials.AnonymousCredentials + if expected != got { + t.Fatalf("expected %v, got %v", expected, got) + } +} diff --git a/store/piecestore/storage/storage_config.go b/store/piecestore/storage/storage_config.go index 66cc1dffd..83518fd2f 100644 --- a/store/piecestore/storage/storage_config.go +++ b/store/piecestore/storage/storage_config.go @@ -13,5 +13,5 @@ type ObjectStorageConfig struct { MaxRetries int // the number of max retries that will be performed MinRetryDelay int64 // the minimum retry delay after which retry will be performed TLSInsecureSkipVerify bool // whether skip the certificate verification of HTTPS requests - TestMode bool // if test mode is true, should provide s3 credentials + IAMType string // IAMType is identity and access management type which contains two types: AKSKIAMType/SAIAMType } diff --git a/test/e2e/localup_env/greenfield_env/challenger0/challenger_info b/test/e2e/localup_env/greenfield_env/challenger0/challenger_info new file mode 100644 index 000000000..36fbe151e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/challenger0/challenger_info @@ -0,0 +1,13 @@ + +- address: 0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29 + name: challenger0 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Agb6KDUg0I25i7/kUFYr53FotLGFScra2dXoeCHk49a0"}' + pubkey_hex: 0206fa283520d08db98bbfe450562be77168b4b18549cadad9d5e87821e4e3d6b4 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +dog behind dash mystery embrace art mule copy match puppy paddle gas assault egg sniff open hint mother choose purchase provide breeze blame innocent + diff --git a/test/e2e/localup_env/greenfield_env/challenger0/config/app.toml b/test/e2e/localup_env/greenfield_env/challenger0/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/challenger0/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/challenger0/config/client.toml b/test/e2e/localup_env/greenfield_env/challenger0/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/challenger0/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/challenger0/config/config.toml b/test/e2e/localup_env/greenfield_env/challenger0/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/challenger0/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/challenger0/keyring-test/challenger0.info b/test/e2e/localup_env/greenfield_env/challenger0/keyring-test/challenger0.info new file mode 100644 index 000000000..77083b718 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/challenger0/keyring-test/challenger0.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi4wOTI1MjYgKzA4MDAgQ1NUIG09KzAuMDcwMDQ2OTIxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoicllMVjFTT0x5Z3NiVHpmTyJ9.Xg70byDGUMMjoLlZay2i9MjNrOe_7HaID1OrlyZeZEPcfu5JK0dybw.0v_JBoVd9omRCk9B.UhKuah_wD8eMr_KGsfjNVnT9XxTOwekQNvWELWWEQt6oaDXZmivsYZxveUYkw_SmwO9Vq9lWc67FwAYN8VNbzEkihdlHkvmZyubBmbpBDa_XIjHvSyc_un5lHBY4_VCOS9WUmKp1QtPUoMVftxEkHSTJVJxP88qOHeIxPeGP4xD-lm3QLbdLxri0q1kC07CecwhxElRq-BfcNOMg9VZLWuAbq_pNfUi_JDFpSyhlKikWEJUovo-WcX8m7qQBSVsYO7XqwOaLYYhEyPsISKDRpH7Vl6b-jsfcFbBPMSqe67y6t3wpo_W_rNxAInQUrU7Cp_J_9HUs3fdA6mYClvTV25yZZX8A8yncqZjh7OsPMPxOhUmPxR5P9kMvXCuPtuIoNODo4lb2w8sn4hN2Vocc53hosAETJLLR-0UpaSY_zt6qWwUsfR_bdOYcqufiaj_yLcXI7FZWWZlRECyuPq164xqyvgPiiak6C7gDP4KlWrsO9Q.t7l_zpsdO_flh4kuzBbkaA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/challenger0/keyring-test/d768bbac2c148c77c7cbd743880732bea5f4fc29.address b/test/e2e/localup_env/greenfield_env/challenger0/keyring-test/d768bbac2c148c77c7cbd743880732bea5f4fc29.address new file mode 100644 index 000000000..836c5c15d --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/challenger0/keyring-test/d768bbac2c148c77c7cbd743880732bea5f4fc29.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi4wOTg3MTYgKzA4MDAgQ1NUIG09KzAuMDc2MjM2ODg4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoic1Q1UFNtTnNjMnhPdXl4QSJ9.uHKID4AhOpzgg6bie4ACqNNlxzapIFawGe7OyZs_o7sqhI3qEkgvgQ.u3-iM3RLhfHd0hgO.5fU-DVvVJtjOAFS97UznyMhAlAABzwNzCHMjImMpslgM2SA4hvAhAsRlsvIBa_kTSpeegL4lUibRLTJmmj9XIy1Vt0eVzhrvhoygRg8buHR5X6Me-XFEr_yFILC0H3Q_8Ifk5YFPYSwq7szx34YMVZZ9xeIJKss91bLQEfKIz1Ie6CkfLrP2SF74tSRdFFwmeY2ycP-9elFNIwZqVZYyDhWJ6WwcNIESgzAyEVwXYGWXVLdkvJ1eyavgMy-D7Q.896eLpsS0h3qBYrGHro9Vw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp0.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp0.json new file mode 100644 index 000000000..409ea6fc2 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp0.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B","description":{"moniker":"sp0","identity":"","website":"http://website","security_contact":"","details":"detail_sp0"},"sp_address":"0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B","funding_address":"0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29","seal_address":"0x350FF7A2bad0bBf7237b460656B9631704674040","approval_address":"0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8","endpoint":"http://127.0.0.1:9033","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A+XuwWH4lqnZ9aQJL2iOjoyM0/YDLSprrae3seLUam41"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["aQp3bbX7gKn0UWPCAhI+4nVop8fGuUGnDSw4fU40Tw5B7TQouXwrTgMg3egZnYKpFcQzFrz5TEAAONZF1/t4fQA="]} diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp1.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp1.json new file mode 100644 index 000000000..9a1a396fb --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp1.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x2cf731DB95681B799FA0054276C7Ca44def450f8","description":{"moniker":"sp1","identity":"","website":"http://website","security_contact":"","details":"detail_sp1"},"sp_address":"0x2cf731DB95681B799FA0054276C7Ca44def450f8","funding_address":"0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666","seal_address":"0x989D170F21fE66604044Ff1C82A443F172dd6667","approval_address":"0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C","endpoint":"http://127.0.0.1:9034","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A8f+UW+VSseGvG0S2hkB9in8JSFtvU4bCS9xvkIlZ756"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["7HCp14UJqWLREym2nwRqnXoH5/dqmvCkaroXy5ms/rQgKfMLZCFYBc4NiwMdAW35iyrUl1SunA4JgcAbl41XtQE="]} diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp2.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp2.json new file mode 100644 index 000000000..17c2aa14b --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp2.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x4C1674C0504bad30e023D7B3991824bCC47E193d","description":{"moniker":"sp2","identity":"","website":"http://website","security_contact":"","details":"detail_sp2"},"sp_address":"0x4C1674C0504bad30e023D7B3991824bCC47E193d","funding_address":"0x9579ac21386353E45A0c43965991297aF4915a21","seal_address":"0x8f0144062E16B9291A28ed8b81e7DA9A09d21499","approval_address":"0x1A0454a4569B26926082d812B8E12d11f766D85C","endpoint":"http://127.0.0.1:9035","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A1/BPxotwfW6GvjEJuYcaHSddEbZ5YzmHvL2KuG23h4F"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["lxW9L5fTYYrBLULo/MXjPEBwlfGDA3ujCdgBGixx3qZem1AQqT9pHqkcf190ymSW10velUWPgAYCASPoaFD91wE="]} diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp3.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp3.json new file mode 100644 index 000000000..be420bd02 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp3.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0xe620C05870A2392E4987676b345026E6C6228388","description":{"moniker":"sp3","identity":"","website":"http://website","security_contact":"","details":"detail_sp3"},"sp_address":"0xe620C05870A2392E4987676b345026E6C6228388","funding_address":"0xBa299BB46260bE2cd735988F469896662d279e2F","seal_address":"0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC","approval_address":"0x6907300e63712a6da9aEE7ffb112b1b1529fB933","endpoint":"http://127.0.0.1:9036","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A6pPM9Gzp2cKv4I3b2JJKr3Lhtb54KfGY6CYqqV5wxVO"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["uo5kpE07ULWdfyTUiY/R/lq6Xar4Gtbsb3s0mVBScpsbKsRkic8BZSoqKPXgn3mjEBqaGgzW0klKBTftg70KpgA="]} diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp4.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp4.json new file mode 100644 index 000000000..562d68381 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp4.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63","description":{"moniker":"sp4","identity":"","website":"http://website","security_contact":"","details":"detail_sp4"},"sp_address":"0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63","funding_address":"0xc91D1896c2d0056B7c233D31F1A673ad5846DC08","seal_address":"0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180","approval_address":"0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F","endpoint":"http://127.0.0.1:9037","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AqIAQajN7c2yoJdFcZczChFkV2ADBLdy0P+QmaNg1A0L"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["LeSkBbTchOupG0UbPaY2WUMJz7b0GDZ3MQzEJ+MwRitHR1CoI+vbKyl9i1r6S1VDcYU+5GIjrylpmYG8+PiZRAA="]} diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp5.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp5.json new file mode 100644 index 000000000..32329f6a1 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp5.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0xafe242857feB1ae49678C301Fb41571C16b99E7c","description":{"moniker":"sp5","identity":"","website":"http://website","security_contact":"","details":"detail_sp5"},"sp_address":"0xafe242857feB1ae49678C301Fb41571C16b99E7c","funding_address":"0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57","seal_address":"0xF448053863ED90b52AE96a21acC936c84907Bc11","approval_address":"0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b","endpoint":"http://127.0.0.1:9038","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A+B4HsI+3/ge8b+V2GnDiyRqZA/wvRTV8KI9+TevBZEB"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["s2Lc7lk6g+byjt70Zfl+17LJgVH7itP+Qgp51W/fUPQGj22HTPB4Au5xWxa6vUsPz3Tq6xYgBb+qOy8NVarxrgE="]} diff --git a/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp6.json b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp6.json new file mode 100644 index 000000000..2ec7a9264 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gensptx/gentx-sp6.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x193ae94602232A0600854D26eF322617aDDB2A44","description":{"moniker":"sp6","identity":"","website":"http://website","security_contact":"","details":"detail_sp6"},"sp_address":"0x193ae94602232A0600854D26eF322617aDDB2A44","funding_address":"0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348","seal_address":"0x73B3725eB1B19D0878c79096D943986bF5F69461","approval_address":"0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28","endpoint":"http://127.0.0.1:9039","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A2u0sfn2jCGaBSsY5a6HVSkixzzPvxzYuk8tJqIIZnRb"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["VsbVJPovBI4+QXEM+NESQEXKhQKf0hzy+xrdL80g/W9Nm3su+ZguDO9Tw/Sv3yPP41EFop26zZejk8ciipo2IgA="]} diff --git a/test/e2e/localup_env/greenfield_env/gentx/gentx-validator0.json b/test/e2e/localup_env/greenfield_env/gentx/gentx-validator0.json new file mode 100644 index 000000000..c61f6716e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/gentx/gentx-validator0.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"validator0","identity":"","website":"http://website","security_contact":"","details":"validator0"},"commission":{"rate":"0.070000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"0xCc2bf933b403bE6f09f37fb00684EC886E5eE704","validator_address":"0xCc2bf933b403bE6f09f37fb00684EC886E5eE704","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI="},"value":{"denom":"BNB","amount":"10000000000000000000000000"},"from":"0xCc2bf933b403bE6f09f37fb00684EC886E5eE704","relayer_address":"0x110e77eDd818ba2Afc4906275AA2b98A01db053F","challenger_address":"0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29","bls_key":"a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14"}],"memo":"validator0@127.0.0.1:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE="]} diff --git a/test/e2e/localup_env/greenfield_env/relayer0/config/app.toml b/test/e2e/localup_env/greenfield_env/relayer0/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/relayer0/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/relayer0/config/client.toml b/test/e2e/localup_env/greenfield_env/relayer0/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/relayer0/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/relayer0/config/config.toml b/test/e2e/localup_env/greenfield_env/relayer0/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/relayer0/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/relayer0/keyring-test/110e77edd818ba2afc4906275aa2b98a01db053f.address b/test/e2e/localup_env/greenfield_env/relayer0/keyring-test/110e77edd818ba2afc4906275aa2b98a01db053f.address new file mode 100644 index 000000000..5d2aef661 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/relayer0/keyring-test/110e77edd818ba2afc4906275aa2b98a01db053f.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMS45OTU3MDggKzA4MDAgQ1NUIG09KzAuMDc3NDU4MTQ4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMldJTm9yNlhFWlEtQVQ3ciJ9.T1OpGkTUfz409HGAK-p1dcr5_ewyMDtQNdhCCHgXwmKGbPid52GXUg.IcHWjkPvy21TkHaQ.SxNkqWDXhG-TbuJyUtCAjkZPuTEVkYIqpbEPex3JQHoWGPzvE8_vrovH50wu5FOLf-uVWBfERRDKIJw-SQJpzAhnAgpBy0PcPGoSY7rqKevo5-MzIonDtH-rFTwR9U0p6rNkLb2V6NoFbID5BjOcftzPFN7Al4ApXK6towMy5RtXZ1sYbxcCGCsjYePut1Io9aC9AWEg_uPnrsV_2kLXBevqMz38w8E1hnZkN6oh7AmmZ6IPcqAaMKLd.76VOQetgvyZXs8m7Jwp08w \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/relayer0/keyring-test/relayer0.info b/test/e2e/localup_env/greenfield_env/relayer0/keyring-test/relayer0.info new file mode 100644 index 000000000..b0e8e943a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/relayer0/keyring-test/relayer0.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMS45OTAyMzYgKzA4MDAgQ1NUIG09KzAuMDcxOTg1ODUxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMTU4cERwNF83T2JEeUpqVCJ9.Je3FUBLUNdZM8W7qR9QJxye4EZZaWO0QD1Jdg96G82MREZkB7VvQmA.bcj1wiJqcx2e5Zcm.1ANPjK-IQyv8DoJ0--l7zs7hCcKQ-xFWJQ5BkgOHbf5tfYkkC3iR_XA7XflBe0Pt-oxM7Mi8FL_zOOlN1jMme7RNDN2LI6fvMYQrJZv2jesJG_q9Z__L51I-ZbLfhSASKKMRFsk9qWz3JAxpDW1h8WoyzYQ-LKEPzghdyNMTSF_dyzb4KlF4kUK0rDYD5nrcbYPLdQnzo8hMHMOEWeUC0DAwdb3VCxbqlrYp3BdHoAWmcLid9VDvEnE9r_3iI10Rfrj_ru2MZsOjO4LcXXkAJ1zYC8pDTQf935Uhlw7AMwJr13_QLfrC5YBLMVxi7R7BLBLiS8exLZ7yBD3cGCfslj4IsRIrtaPE_6BevsLTIbfRgoQGiOY7m1PAzA6m3misI5eGUi5i1EhS1Qf777bo6Im4bDKqwhOLnP-4H3sdnrbFtX-fHieAotj2aVWYvsZuqc5x1iG_fInwaQVyls8j1Xhor7JUdx56Jk48.fiPhNbLstnt6niQNSRhXJg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/relayer0/relayer_info b/test/e2e/localup_env/greenfield_env/relayer0/relayer_info new file mode 100644 index 000000000..441ec8d6c --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/relayer0/relayer_info @@ -0,0 +1,13 @@ + +- address: 0x110e77eDd818ba2Afc4906275AA2b98A01db053F + name: relayer0 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Ai/uXXiYUQwHhA9+vgrelEN9VqlaxtplUrGXZfqyn6oJ"}' + pubkey_hex: 022fee5d7898510c07840f7ebe0ade94437d56a95ac6da6552b19765fab29faa09 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +occur prison check below slim female embody caution year dad traffic merge bitter exile okay myth glad match frown hover network shy property pencil + diff --git a/test/e2e/localup_env/greenfield_env/sp0/approval_info b/test/e2e/localup_env/greenfield_env/sp0/approval_info new file mode 100644 index 000000000..82823eb5e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/approval_info @@ -0,0 +1,13 @@ + +- address: 0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8 + name: sp0_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AzK4qwXM6i/XV3TUxWAMamN3d9P6OyU2PM74Ue2Qfd+b"}' + pubkey_hex: 0332b8ab05ccea2fd75774d4c5600c6a637777d3fa3b25363ccef851ed907ddf9b + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +level album unit argue reduce palace evidence blue wagon puzzle response holiday boss citizen pill case stereo immune cigar trap vanish tree famous width + diff --git a/test/e2e/localup_env/greenfield_env/sp0/config/app.toml b/test/e2e/localup_env/greenfield_env/sp0/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp0/config/client.toml b/test/e2e/localup_env/greenfield_env/sp0/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp0/config/config.toml b/test/e2e/localup_env/greenfield_env/sp0/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp0/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp0/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp0/config/node_key.json new file mode 100644 index 000000000..d08baf1f5 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"+sle3vOfXOvt7FUdwlFe2H0PhTvgG3xmo9/4yBkxdrVdy4R69NQKdlLT3La1S9dAweo40tkRT6LDZI6WJFuLyw=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp0/config/priv_validator_key.json new file mode 100644 index 000000000..1a04a0a68 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "C13C54494A0BC91F7D5332D8D8F75E4ED5B6EE9F", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "a0oDh+hZqfXqHm0ozbEu2vwflvKV3SivaSpFK75zx6U=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "XgbxTqFpOSGprhyxVFjlLZ1366ROGWSDOH4XUg14yQlrSgOH6Fmp9eoebSjNsS7a/B+W8pXdKK9pKkUrvnPHpQ==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp0/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/fund_info b/test/e2e/localup_env/greenfield_env/sp0/fund_info new file mode 100644 index 000000000..5b76fbc62 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/fund_info @@ -0,0 +1,13 @@ + +- address: 0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29 + name: sp0_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Auptw02gQTWpT7XfCNt88nb2dTrafCT7bry7ZG+zdlim"}' + pubkey_hex: 02ea6dc34da04135a94fb5df08db7cf276f6753ada7c24fb6ebcbb646fb37658a6 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +either cram fury pitch boring eager toast kingdom infant total festival juice amateur subway bronze nice crop crunch merge swallow spend hockey ostrich slight + diff --git a/test/e2e/localup_env/greenfield_env/sp0/info b/test/e2e/localup_env/greenfield_env/sp0/info new file mode 100644 index 000000000..cdf15d333 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/info @@ -0,0 +1,13 @@ + +- address: 0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B + name: sp0 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A+XuwWH4lqnZ9aQJL2iOjoyM0/YDLSprrae3seLUam41"}' + pubkey_hex: 03e5eec161f896a9d9f5a4092f688e8e8c8cd3f6032d2a6bada7b7b1e2d46a6e35 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +snow glove dish frost question protect wet estate recipe sample amazing once robot author blame conduct claw admit market adapt earth elegant power ahead + diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/350ff7a2bad0bbf7237b460656b9631704674040.address b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/350ff7a2bad0bbf7237b460656b9631704674040.address new file mode 100644 index 000000000..d4add6d96 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/350ff7a2bad0bbf7237b460656b9631704674040.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi40MDk3OTcgKzA4MDAgQ1NUIG09KzAuMDc4MDM0NTMyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMTlMZzJmdEFrZ291T1ZaLSJ9.0bjfiPLbxdsBnytFihl8GQwisXAYGb0zZjS1bDzz74ji6GulzLvbiQ.gfj84nN29CewNnHE.mBFEJ_bNoLz9GRRC-egNY6wDTNbKHI-WIxJ52QSf5x87iUisd66scx5i60u31XCHkA-00mnEZcg9N1_Lr3vCUu23aF29lDYO4PDYPsAh_bVpFSP1ke3vxEpX-fUy7MqgKtEqqHucorNHUvca2KLK2sLguDYEL3tqAA6e5EUmbK9lKaTMrJDZlk4jkmfMpx1QiATGjk6J-X_Z782VZp0vtWEq2-DNHAzXWsdppRH6LEhoPT8sK792MU_1.mC5S4ZdpNe3HqZcrQmnGmQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/84646d1d4ad147a6c1e1b67f771f39e89593af4b.address b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/84646d1d4ad147a6c1e1b67f771f39e89593af4b.address new file mode 100644 index 000000000..e14ab0b2a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/84646d1d4ad147a6c1e1b67f771f39e89593af4b.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi4yMDM1MjYgKzA4MDAgQ1NUIG09KzAuMDc0NzUxMzQ2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiOGhmSFppbmRfV0JqLUxvbSJ9.ZbB3YLIf_fgHvXSJ81fFoXuoeMiJTAEm30ihaHu4flfo8jO_RB1Mxw.EXZBWEtOeFw_qrYw.BvxPJOKNYmLqHEiyu4rjUAwpQMn_BbRWP0jMYRMmzS3aoDl73vobmm0_pRFv9mXM_5wHjnCl1E3j-Ma6FAFa8P2e_tzJmzrxhvDZhrF0a9PF5-Vk1GHbDkurCsT1oVpTG-hhLfFRAtoQVwJ3ianeBnGIS21lYDAmOEXUAZfl3U5XYNJjlHc3oWd9VIgyo4TrXLxaVODaeasIqDJutgKQp1mvDtf0tlkoT6pfTSPeAZxZkA.m5VQZFO93DiJl5XoILlEog \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/dd222b611e5d0a31e1ed34f8d4e681942d8606b8.address b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/dd222b611e5d0a31e1ed34f8d4e681942d8606b8.address new file mode 100644 index 000000000..b08d56ec3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/dd222b611e5d0a31e1ed34f8d4e681942d8606b8.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi41Njk2MTYgKzA4MDAgQ1NUIG09KzAuMDk5ODc1OTA2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiQ2w0bXpxM0ZvUjBiUTQ0NyJ9.KxiOx4sbHXPgEal6tFcishB05GM-xBB86xgCy-vlUwjVe6bg66MmEA.7HXOzXl4kcr2c6Xn.RArylX4bMfDUUbWzgIjnRerXL0CI0AN3MAxB9Jf8KSzzUQ6Slig1FCJRX6vuZGC5TjWHaEmEA3Jo2KoE9cjhTvtJU3wtM1H-LtxhZWGx1UaObNoLeS-WYI5XcM9hNusnG1EJWKb4LcLeu-J5hw94IO-AtefqZ7wxK2beD9pH9a4ZEQRUf7JGw2X3WGtPRYvwbihtUJgQ-hrcOjrLkUmLWm_lwYflXpdwt2nN1OXMs8q0grLoZekcVxVtYdJlYA.hxf4Lrx2BX2_jBCZD7Mz6g \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/dd2e420f94d1debd40dc56e66b7706e0cd8b3a29.address b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/dd2e420f94d1debd40dc56e66b7706e0cd8b3a29.address new file mode 100644 index 000000000..f34a4f2a6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/dd2e420f94d1debd40dc56e66b7706e0cd8b3a29.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi4zMDUzNjggKzA4MDAgQ1NUIG09KzAuMDc1MTAyNjgyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiR1hTMVdYSU10TXI1d2tTQiJ9.o6FLUzSRS-QbF-11Ao-eNtnMm4Bnf5BSOJLpdhaPaHff8fz7X_OWsA.ZqufCa07vdEVKLuu.Ig9eyi9X6MknEqhGC3qbIZZPPbUtLiH-2PZDJBY5asEBDEO-lcdTFuSVH-1QUoq2FuK65QQw92hrSQLhydC1sDs_OxnhptJ94He4pGKxyFElqzX8QQmJeUHlIfGZw2csSW2kOX_Ewm92hzWdJRsUobwvP1vh9UoVW58oGOOzOn2vk8lqDqSlHh1tSKhcEM32AKY97V0M0Rr_IS64s5EzUcIOp4E7rcDzOJ2m82a3CUqOtwXr1e8BJBcj.RcSmmx53cSDH8woUzDHy6Q \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0.info b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0.info new file mode 100644 index 000000000..8f133821e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi4xOTc5MDcgKzA4MDAgQ1NUIG09KzAuMDY5MTMyNzQ5IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYTQyR1BQRk12MHVkdVEtSyJ9.sxpnQ8B67DqGrS8ywVEaz7UjTjlRw-y7HmF6eIA2SONXmHJTfca9eg.S72XC24sbQWBXjS8.olgPSkdf4TOYTyQC8iUq6Vqi0mQ89gWyVPt7HrBVDbL7J-4LR8baHXIHUQw1Obj2pHwX-3KlT3d-jgbGtlDN7bAPTwnTrbz8ou7C6CLL2e7j9i_BgEFHD7j10CmMXNQ-qsblgfJu-6t_l3dRpxXRoPuqT1lM0FrdM0PBSWIjfbmrGoT4Ctx5Eeo7FudwqbidIBcSIpdGlPRh70lJSjKD18Eq70ljBXWhf2xwxwiXJn2rwzyC2uSMKr-tyu1Tke4PZH4DqHw1B35wWDK4pdwmmSJftfOxT4bqhYjVJ-idEvPJIPNEbiIh0tXM1s6TTJlrV_CqXHpVEADo6LovDhz--B30d2BbEMu1zz6R5VaBRVGIJhsF15Ga6BNz54huDavCcGWQtCYkB67nqQDy0I2D3LHYHuxlVFmTNKXIJ7u-xIXsT8_XqZRWTciFS7f4dZuZSyZubCHV6Ye8nXYlz_S9cnCf.qFxIFOyOyFngMxjHvta7bg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_approval.info b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_approval.info new file mode 100644 index 000000000..79c97dfee --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi41NjMyMTggKzA4MDAgQ1NUIG09KzAuMDkzNDc4MzgzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiVEtfU2RlUUlXSjJxYm9zeSJ9.O9Xa8DJD-tw0mbd-zyZSQqF61QcDLd7qIVs68LljmE7jRqcpygtlNQ.NQXOtxTPkmjt5jn8.bHx0gkD1eIVFedQJlnHwGT4OziWGqPNCSPeNix0l7hdkkVRUAJVeYXUuw5n2YfqDG9gpmyI0OwkhHHIIParHUELRnfJ04pIviz6u8imM35FnY5Ghf5ljJYAQ1WsTJ_VWsNSLoOLredQTsJFQCwtLa1hR7Ub0cBuiLwH7wfv0ZR9MJHy6ohglvKrkid9Z0HBdP3zgbp4uzPikmwtY7bzN3uI7hesFGq6qedUoSGEFnjUG_Gh3eF5VOD4Iz2nsAnTM_lJADHN3Py64_XsmX50WtUmrpnMIWyrhwLCn3ZEknMcfIKFDE8NzWbbq1SgQkXBXYHYNNFtKXR4aG0mfnU8uYfBEGGEctTU7tXMh3vHdswnuTrfHL8d49DevQ1txWURccdt2i7mFIDNVzh9gg4ZJlIiV2BovOr2DQMMZe9APCSq9pOKvufGXtYJidv-F9WrCTmmeiI3kpxgL7RB7zvamtU0veDERRreX8-cFXTc1UvDfMBHpYVRJ.mDOd9ULze8R2zhrLvvphGg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_fund.info b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_fund.info new file mode 100644 index 000000000..d6f4d88b8 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi4yOTk3NDkgKzA4MDAgQ1NUIG09KzAuMDY5NDgzOTIyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoieTdzRDFrYnczWmRrNUt5NiJ9.Z0tuiqpGCmL5AtPAXM7waqcPcXE0jXjmHg75vzXJzKZLmr1fyBcHNA.zrCgrT3NPIwCdVj9.Fm1Q_ZEGJl0a1yLU-i1Tv4ZHKu7_tbeAYMgtHt9FG7pBH9VJEik2iISdy2oCf-GDoBcArrdmAdpPxVxhrooMAKMZPxubcKv7RaNgbhWX3FmE0PWiWgA7a_LZtPPE1fKDO2ZGlDA1otSbuzZDLUju6yWBNylUPVv-Vm979tKtKPkB0BXixurBhU7W4GTsRW8dxKY8gS4bw3euwakpi2DG2tN909C-nDaSHacWQWz16isLdsh5nxdKj6zoLh8IZVdNHarozWTTB7W2DcjRXDU3_ltyKP57YtHuQHejom7FhSU0qOIO7c1aog4-UhznL85Wr93eHMpnjcMFLg7rdr9RGext0jus5xL7g1aPPQoWZ3QGdvNt9ywTOXzAxNr6U6mcZ5lW2Syx9xsSUmGbB3Dg7-x6DZRKMuvzVCYCeE2HmY3oBIxgP1SqlhyT6UyiFMJ8po9FNuSFoTI6kDVH3KtfyWYVHFCsSenpAtQk.R3VwH2GeGe0IxK20QsGrPQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_seal.info b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_seal.info new file mode 100644 index 000000000..ae2ed8f7d --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/keyring-test/sp0_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi40MDM1NiArMDgwMCBDU1QgbT0rMC4wNzE3OTc1ODAiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJwaGtzNzFHWDB5RDI3ajRvIn0.NTIM7E2JZDoY97tz8pmVmJY_7Dd_-nYhQZ5fLtHaYETTbZWW4W6DZw.hhokhFnt3hKrARxa.hcoLAEgz8k0okDixdfRHks44stkQ_p8ehCfFmUfo5igHFLogNsbzEeFwGHuwGNLDH5dm1qE0WdKuRpdQTS4KJ3C0ARJbbjoS3n-6ynx8OTCbCbFJKVmZWMVmCee1tJkqXzHdJx5Uf42BRdLuN6jm4CbqGlgJKxO_EJqMCEM2nb4bnRLqNqkPhoaJkuBykh_YRiOh8fAOp8_W1kakgoLUgYAjnM_UHTgmI4ZvfsrNmc95ZZVvFp2qpqNsyxwzOTT3iSwCUmBFiAU8ZptlA9VFr67QwZFzM4PMJyttSxtFIkjlvMdz9NTaoS2tk32Sc6Wh90AgmoM06SH6BCZwj9P5JP-P4feOzkxfnO-EdRr-_em0oHHpRM_H95p6GrpKg5ZUhgk-XRX2POMJdhaGpSckIudaKoQMVAd5WONwdhdX4T_svAXUp7v9a9IqjqKIbnKx9ejevjOLL1GTsdqVBA16-f7LN5SuLNsfxU8K.gsVQiXQf1cOPFYH720_VHg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp0/seal_info b/test/e2e/localup_env/greenfield_env/sp0/seal_info new file mode 100644 index 000000000..f19a859d0 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp0/seal_info @@ -0,0 +1,13 @@ + +- address: 0x350FF7A2bad0bBf7237b460656B9631704674040 + name: sp0_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AouKrnl3Llw8UxEpPbKgniCzZE+rDUKdNmVl4No0a3DW"}' + pubkey_hex: 028b8aae79772e5c3c5311293db2a09e20b3644fab0d429d366565e0da346b70d6 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +holiday attract cause achieve heavy noble inflict absurd report predict yard scatter wonder airport tuna visa erode collect render jar unique urban proof number + diff --git a/test/e2e/localup_env/greenfield_env/sp1/approval_info b/test/e2e/localup_env/greenfield_env/sp1/approval_info new file mode 100644 index 000000000..7b93d06f7 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/approval_info @@ -0,0 +1,13 @@ + +- address: 0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C + name: sp1_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AiZWnp0uyMQUJUqmbQjsxIWxnNi/38zYl2z+FfpRmgjw"}' + pubkey_hex: 0226569e9d2ec8c414254aa66d08ecc485b19cd8bfdfccd8976cfe15fa519a08f0 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +cricket parent park general second picnic setup tuition kangaroo run limb stable yellow ball traffic during august bench olympic clap capable ice couple ready + diff --git a/test/e2e/localup_env/greenfield_env/sp1/config/app.toml b/test/e2e/localup_env/greenfield_env/sp1/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp1/config/client.toml b/test/e2e/localup_env/greenfield_env/sp1/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp1/config/config.toml b/test/e2e/localup_env/greenfield_env/sp1/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp1/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp1/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp1/config/node_key.json new file mode 100644 index 000000000..756b4f079 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"iwOze6KdSjVAs4+R/0DCrzOdHOMxK0FEECQyko8gLPE1VMwJJEv25Mgl0w8MQzQIvqWOKApHa387pl3Wj9dz6w=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp1/config/priv_validator_key.json new file mode 100644 index 000000000..649a895ed --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "D29464E9EDE18BD78773E68E45825502A49D5EBD", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "iFwfinSBxhcEx3HG7bi3+UWpW7xYw29AGoQtWZTsjwM=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "W6BshMADGDiGbBakPP2IUwtPx/YYqDS3oMyl7sfYWMGIXB+KdIHGFwTHccbtuLf5RalbvFjDb0AahC1ZlOyPAw==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp1/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/fund_info b/test/e2e/localup_env/greenfield_env/sp1/fund_info new file mode 100644 index 000000000..52346e204 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/fund_info @@ -0,0 +1,13 @@ + +- address: 0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666 + name: sp1_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AsA6XibajHEpw6SrwUf6rjSrNThZD1Xorb5F6xWDY48w"}' + pubkey_hex: 02c03a5e26da8c7129c3a4abc147faae34ab3538590f55e8adbe45eb1583638f30 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +oval fluid camp desk venture captain idea biology vault list phone ugly remind lottery behave whip all dad reopen zone force magic milk carbon + diff --git a/test/e2e/localup_env/greenfield_env/sp1/info b/test/e2e/localup_env/greenfield_env/sp1/info new file mode 100644 index 000000000..26b38155f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/info @@ -0,0 +1,13 @@ + +- address: 0x2cf731DB95681B799FA0054276C7Ca44def450f8 + name: sp1 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A8f+UW+VSseGvG0S2hkB9in8JSFtvU4bCS9xvkIlZ756"}' + pubkey_hex: 03c7fe516f954ac786bc6d12da1901f629fc25216dbd4e1b092f71be422567be7a + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +because bonus victory clip client blind purse face female phone infant catch organ wheel toast canvas arrow pilot stock wrist rookie antique increase hurdle + diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/2cf731db95681b799fa0054276c7ca44def450f8.address b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/2cf731db95681b799fa0054276c7ca44def450f8.address new file mode 100644 index 000000000..762f76bda --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/2cf731db95681b799fa0054276c7ca44def450f8.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi42NzQ4NjQgKzA4MDAgQ1NUIG09KzAuMDc0Mjk5ODg2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiU3FxNUNaSDJYdEZXZ0tMMyJ9.6A9eGV2nObeYif3uv6vPE9f14TvLw80IqkyhoYtXtYJzYU8Zsmr6oA.NrLCNbAYxX8XxVFo.vF2dUjV6gb1a-PVBAD0aD44CQdLdkG3hQVKPerb_gjTKkJ2Mv8mTOHR38_GPrPNrNVDGvNQhY22bFWo8rHxbRO1HBqzEFNsgyTCp1tPRvY48n4HMLFmhouJFTIdDgW9-Eg2RhL9Go0t6g1_3MK6NC9K-Ibpb_rMtceUg3Dzd3TKtjaqYOit8hXNxP-aw9W_nD1cDWgaG6MxgH4WnHeK5tiyqncCcZtMmSamwQ68oQyJB2A.GVMgIanpevKY_M3oL6Kn9w \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/334eadbb056ff645a6cc116d7db019ea03f12b0c.address b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/334eadbb056ff645a6cc116d7db019ea03f12b0c.address new file mode 100644 index 000000000..cc35575f9 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/334eadbb056ff645a6cc116d7db019ea03f12b0c.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi45NzI0NTkgKzA4MDAgQ1NUIG09KzAuMDcyMjY3MjY1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiUGZvTXoybENjMks2dGdxWCJ9.r70swa0Ft5xk6NjfRIJsCr_wQNXRr0Y3AmdUBt4qs68QCRLxr9SWjw.x13B36cyxE-EA6Ox.UO-bXhFDGQQnoczKzZqgBynDjvKU1DkENclhU-Tmosq19Do41FWD-2tzNaoOiSbOm6laSntIrxE3zcqDkW8tdzLPouXwhUJVKbl8HOne0cPExxyVxEATj-gQ2Eu7cKprQYWM-FjCgBv6yBgk06ixN4qFPa-K3g9FAyU7BEaiac3AVZCj4AO5RC_1lqVrDmTn5Rw3F2oR2qiC4vdYFJ7rWxsxSzrMTT_184sxtQYeeQH1pIGzuSIkETIrfhb2wQ.wAcSlnr3IiqXsB1gM1XqBA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/989d170f21fe66604044ff1c82a443f172dd6667.address b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/989d170f21fe66604044ff1c82a443f172dd6667.address new file mode 100644 index 000000000..ddd23dbfb --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/989d170f21fe66604044ff1c82a443f172dd6667.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi44NzM5NTYgKzA4MDAgQ1NUIG09KzAuMDc0MDcyNDgxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYnJxYllRYUpQRXpWdnJJSSJ9.-nydnHAYDKTdAjehwmzV9ogn2chb3yAFXS8J0TemFUTUb5cIcMDfhg.nr_yuWCvzqZlAAsi.JUF0GCfCFkiAUW_bY_qUQDr5ybgokaCUEV5WGVooHNEBh_tqQPKIlpIHBImKabHkk9NPaWx33mKsAaQoxnoYKVciVcodY9OfTKA2CPDCO4-Rl_4v5kZZjU3V8GW7QpJ3vxMb7UdS8zle_yA5dYFtCrgSb83ZlRBO5p4syOyOqw4te_qofu3kWes0TU-XVlcLbPHuTLdulmBVMuv-Q-o6KbRX6vD-M61_2HesmuBFdyALHiO_jnNo-_u1.AONJoy0KaM8SQkikAzR45w \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/bbdfe0da142940d3e29c7b52eb95aeb3fdf80666.address b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/bbdfe0da142940d3e29c7b52eb95aeb3fdf80666.address new file mode 100644 index 000000000..49ebc1677 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/bbdfe0da142940d3e29c7b52eb95aeb3fdf80666.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi43NzQ0MTkgKzA4MDAgQ1NUIG09KzAuMDczMDc2NDcxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYnhpUnBpVGE1OXlMNmNlTSJ9.Vu0EIaxX1t8xvASU9gjHIhwyoNYicnyUGd9nHg_Y2H882JZGYc8ruQ.MkD0q3VXcreuAyft.Vj6fKCxshHjhHwoauvp76BGyuzHnCDMVfgL58Qo9n6yx2KZXvM4pqGIpnZn656OL3Xj7IVHa7PK96_-qYWeM5WHLvnHaj4oRyMpRIFZTpX1FE398Ht8p-W6-u3jUumeLHBSN4Ic--D2fZQ6smJifrJTux3459iOio5Ijj63tubmkWXVfrxIUWK3xi-GZ_yUKLPCR7TSh4874k2DKh-e_ZgADfikVgak6mqZbZRtJ0UWuCM-LKBe0eMJn.GpsibSqi5VAPvczwguBK7A \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1.info b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1.info new file mode 100644 index 000000000..835dd6c4c --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi42NjkzMzkgKzA4MDAgQ1NUIG09KzAuMDY4Nzc0OTk5IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiVXBzZkxTeW5SSWVYZ0xqaCJ9.D0bxlPBN8a3WcahxrwWmUT3mmhvuaeZ2DNsOMj4ZIho4imdLypmrRA.qjQisenMRCwgtR3U.So4MBaTvBRCtiLAOKjqmMbgtsiC0lUrm-3rBK15UO3E1uJg90oUX9G53Scak79xBRM09oKbO6Ct55nXryyoitZyERTcvCDzEvzEUTnr1cwas6Q_d5SQC1IHUhkD-Q_ABvUO6uwnH8yKQPfh5jX62IR6gCENh6pKUi1Bjr6WWokQ_5s8DQboPvHImnoE3pIu3dWd_tvnqKRxwTLa1c0Er9GVn984jTpar2iZIs1dQxRZCTWMjCZ3_Lpjv02Fjvk7xedYx3V_JYixmuJ7ujzsEcABIm1-qRUsyd5be5sq3fKLy2KUB5aUBPfZ1ubkHlqM0ZtD4bgG0brE5sxuzT23qbQRFS47f9Cx-7kVS6HT98V_MPrr0SHxNpNjc0AbCNuevgarf3a51c9IO9nXTd40ur-I3WNRLzjAGo7Omd0Lqic8PL3ZxrytwZG_8sdoNIJZjP_30RWqt_-W0hk6HgtsJRGGl.kbX4hGtW9BHgLVe6cr5XrQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_approval.info b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_approval.info new file mode 100644 index 000000000..4da692e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi45NjY4NDEgKzA4MDAgQ1NUIG09KzAuMDY2NjQ5MDMwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiSEVrZ2VNNlZ4Y2lEYlZJViJ9.8TPf1rh6ubZPyg7_-YoVJFMZlpx0vAtxHHqvTPi5ZpxA2JwCV62m5w.3dcq16t14Gpn-5Kt.j7o96Q9cyLY9XnaJ40rGNoZyjaVgdbSa4tb9xvgPAnTHA90He-z51S41MvRktdzl4i9efv4wq7WqSlySY4PEp8bgj9gG434kHZU7WlgSCK7D2ScDp6d9I2ZAkkNC5slt302HMdxEV177KWztAhhbeLcQTDi9VrVMFDDUiLLzuCj7XoxQHJmj8CJscGV9VgRBH8_USQHW6hB4j4jHRSqaEzBDvVXrI6EALeypsKAWHJPiQnO6JmH7a9_Vq3VsQZTj9KFHUHsQji2mpmrjRescWBlMLE_vmmjzpneuA9GHRc1boUOdzVSgjoE0fnlUHnLcuZjDc9tXJaDLnicX-Yb_dfskfWspgVq5Uf4TLiGRLRitc0LLkklu6go9ncoKj451TILTGGmbnMhKQvFRQOpFeyGe0D-kTG7FYVSImDqQW-nsKorqPgNY1Mm9VNVaKZBuIhc43b4q0wdLjhrAi_0amb-JS_0c424CUiH9YHpXPRFfwNV39sVZ.99PM40Y6ViFfp5i4mSB9ew \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_fund.info b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_fund.info new file mode 100644 index 000000000..01151854f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi43Njg5NTcgKzA4MDAgQ1NUIG09KzAuMDY3NjE0NjgwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiVzN5M1JBSW5BOUcxWTUzNiJ9.YdHnN_oyyKdKwGzriiPB2c2MbchhJxQj4CJ88WJ7DQMza-ktDAUgSw.KLDlyZfuLvmitr2S.Xy6QElK9beR1EFIe1UUG9mpaWwITIN75_TXBo3fMxlDHOcC3dKSR_zgdmWxycZzCM5TORtUEJjqW1E-jNU9GnaGMwS3HqfPmxskCK4jGtzCc91xT_BJvvkKniNjHXK0640qgdlTPQVBDtKy7bD5GByWizahsFPx3NaCaumDE2KkLDMOvePUsvsHP6SZMCH1qrY1259s4aEz_eLVT8h-mH_yDtRMbIB3W_jArrm91zodD-7PwYE_IEXqmWRUIFgdB8uY68E5_gA143hz3czUfir3l4zu3NA9C6NOpFKQ_679QnJRVqfZnMtcEAWesRc2e_1EJH30NL8nL1rKBdvF-YN2FV4CLg-ftcztl7D-MxhbkrzDfQQ__hFVAoea3jEyw1Bq4Pz5aArURXLZpMiHuZyuZ1ZRV5NuHPtV_x6bZFDZPpP8rI728iFSIKf-kuXX2kobd3J9bImeiuAjjgbZZBB-dmeklnvnRbCyv.0qHIFUGK1319rJ3mSVJBdg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_seal.info b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_seal.info new file mode 100644 index 000000000..85781dd72 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/keyring-test/sp1_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMi44NjgwOTEgKzA4MDAgQ1NUIG09KzAuMDY4MjA3NDYyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiUTVXcm9TTm5VcXVhQjVsMiJ9.GvGKLAx4bImwz60OeOa08zKORt4a4nOBn1g9wxA44CeJjDhAmDYAPg.8PhsiceCeIcRpCUA.1S8j-GhnfvIRSP0Pv8UKfFDTloGg6n5XJ3I6aIT_IW4WGXZXGYB8tpu9GAO6vutJOU64qLmQxnGSDj7hPo37PgFquP35bqA4lkWY4JGkBBBz495I1zVhZpsfTcLcDKRZii3v8E9uG-aoz7L0lj08hzeWKUprJ3-LeELBpZRDeyFMSE--5DxtezdrTX3AoiCYD6x6kI1w7XfJi04_CBfYkUnHs0k868fc6e0xP5qxQWjkBrGGCc9Cx3cKxmV6NBV0vwC19tvI011RZdJkMjd5rS6DCYGFswmCm4tcDiwRASA_YQyMZAlya5DQbpktwtiiKUh-BCBn8MytRMg6gUNYCLEANTzQHuv083j0c2ERMKozFXTgj3AZB8WS6ruHci_ScE1Mznp8swWg30fCnrGDmrj4JVmLHB-64QoSpbj4QALiCB04COsOiSOt8J-bW_6OrMKBDrucI-hbrpSLdDKspEUk1pGFox6_tBEl.TLGcLr_pW3WoCCIggcHFTw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp1/seal_info b/test/e2e/localup_env/greenfield_env/sp1/seal_info new file mode 100644 index 000000000..412b63070 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp1/seal_info @@ -0,0 +1,13 @@ + +- address: 0x989D170F21fE66604044Ff1C82A443F172dd6667 + name: sp1_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Av4zWLpfBsqlEoygE6a02Z7M7rJ7a7hBCRcHKwQVuibC"}' + pubkey_hex: 02fe3358ba5f06caa5128ca013a6b4d99ecceeb27b6bb8410917072b0415ba26c2 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +search deputy rifle number crumble talent lift hint token toast planet clump concert prosper account lawn between maximum glory dance coral notable net payment + diff --git a/test/e2e/localup_env/greenfield_env/sp2/approval_info b/test/e2e/localup_env/greenfield_env/sp2/approval_info new file mode 100644 index 000000000..48fb3dd3d --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/approval_info @@ -0,0 +1,13 @@ + +- address: 0x1A0454a4569B26926082d812B8E12d11f766D85C + name: sp2_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A7G4HPnVEM0oQylNBhGIlwxoodnCrwu1buR3Pe+yXx5R"}' + pubkey_hex: 03b1b81cf9d510cd2843294d061188970c68a1d9c2af0bb56ee4773defb25f1e51 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +enlist artefact joke later receive thunder swallow extra wrist join slice claw beach gift large aunt faint pet celery project penalty wrong curve strategy + diff --git a/test/e2e/localup_env/greenfield_env/sp2/config/app.toml b/test/e2e/localup_env/greenfield_env/sp2/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp2/config/client.toml b/test/e2e/localup_env/greenfield_env/sp2/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp2/config/config.toml b/test/e2e/localup_env/greenfield_env/sp2/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp2/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp2/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp2/config/node_key.json new file mode 100644 index 000000000..2ba90f8a3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"IUuruuq/E9ig2ysq3DqmvmXx6CtfQJCFYaaUX5ld2jjgapyPMZwotNAh45+ePybGxOuYU2SIfLtBQzWWFN2Kqg=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp2/config/priv_validator_key.json new file mode 100644 index 000000000..69ecf030a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "E98412C1FCA890B5B2276614C73A6C9D1CCFB159", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "z7UhK9Bt8pgPuSp0f8fkq9SJjW2l7XgDPu6hbdGOQtk=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "0WHcMSmtGWHn4vaXbVts1rHGR/I2a7jSqUxb8zBhqXzPtSEr0G3ymA+5KnR/x+Sr1ImNbaXteAM+7qFt0Y5C2Q==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp2/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/fund_info b/test/e2e/localup_env/greenfield_env/sp2/fund_info new file mode 100644 index 000000000..7cba42895 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/fund_info @@ -0,0 +1,13 @@ + +- address: 0x9579ac21386353E45A0c43965991297aF4915a21 + name: sp2_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AmhcI83aktfnAHYDHS1vLafC/g6IDmf1tz5kM8i4lE+Z"}' + pubkey_hex: 02685c23cdda92d7e70076031d2d6f2da7c2fe0e880e67f5b73e6433c8b8944f99 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +minimum citizen pig expand public observe portion pet bicycle ride crazy actor journey admit make invite this flip divide thrive wolf high aim sunset + diff --git a/test/e2e/localup_env/greenfield_env/sp2/info b/test/e2e/localup_env/greenfield_env/sp2/info new file mode 100644 index 000000000..3ce5df8d9 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/info @@ -0,0 +1,13 @@ + +- address: 0x4C1674C0504bad30e023D7B3991824bCC47E193d + name: sp2 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A1/BPxotwfW6GvjEJuYcaHSddEbZ5YzmHvL2KuG23h4F"}' + pubkey_hex: 035fc13f1a2dc1f5ba1af8c426e61c68749d7446d9e58ce61ef2f62ae1b6de1e05 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +shoulder buzz double fetch fortune amount rebel add denial hungry toast crowd warfare twice slim oblige unique average tuna tag pilot angle today sponsor + diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/1a0454a4569b26926082d812b8e12d11f766d85c.address b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/1a0454a4569b26926082d812b8e12d11f766d85c.address new file mode 100644 index 000000000..db0656c9e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/1a0454a4569b26926082d812b8e12d11f766d85c.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy40MjI0ODEgKzA4MDAgQ1NUIG09KzAuMDcxNzM4MTMwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoieUpqYjRJN01xWklHOEpDUyJ9.JE03mufqmCSBx9lQvmncgljsY8p8yUz3wjV8H3-7NWLfmW7GvwB4iA.Q6FDswJbHYXZLufo.PrIEF778lhVgqp3dvRL3FIgaMNGPvlZxkD0_209HZQ_VoHSbXBu7j4dzcoIrnUyWzmbom88hocLFDchbMEkXOv7rQi4WDh7fKqc87u1S9MGDMra9neKSdaMUcjwdwDFKx5Niob7B8fXQN8UBdAqMAdl3zmnrk5LnVSibo7xmQnIwGwJJpI21a5E5ZEiTVN5Mcw-OwSG4fMHQKVpU7lPDGdzQZZKu4te87wImEXGNMypoMkwhbymuUKrifS6y5w.aRIxbe6Jlg-LravA59xgjg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/4c1674c0504bad30e023d7b3991824bcc47e193d.address b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/4c1674c0504bad30e023d7b3991824bcc47e193d.address new file mode 100644 index 000000000..f6c6af9a1 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/4c1674c0504bad30e023d7b3991824bcc47e193d.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy4wNzYyNjMgKzA4MDAgQ1NUIG09KzAuMDcyNDg2MDQ0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoidHpEd1NQdnpGRDNIVWUxUiJ9.0hvXSANf-LtAXQdDnnfdhKZhrztMnSv8IC3-1YK_8mf6oGNiXm188Q.PPiFiDb30ssC4AoU.rBcbIwjqZJjVQnd371KL42pvd-dHMmiQZ-mt-7bilcUfnjpSHJZLFZxbxI9Qpb2nOWyhETXPbeOlD4jBdl_uFWpkimwBE0NsHW3HYhpEDQnFtDAseX05K3sNFWDN7XVcgbwpFkZCCnMT_p-vGCEWFcUGnE_nLnbsZ5pw_-emKDd7EsP5245pc3KHCR7g6mMTkyOFopt0IzfVvyesVO1nhquJMqJSPJx2NtxBdBJK0aosWw.YFsVSb8zz_rwrIntKZ7Iww \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/8f0144062e16b9291a28ed8b81e7da9a09d21499.address b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/8f0144062e16b9291a28ed8b81e7da9a09d21499.address new file mode 100644 index 000000000..95ecd31bc --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/8f0144062e16b9291a28ed8b81e7da9a09d21499.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy4zMjU0NjIgKzA4MDAgQ1NUIG09KzAuMDczMjQ0MzQ4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiX2lXd1RCb3M2TVpHVUxIeiJ9.eNu5dOdPdFek1cdO14j2lR6qBCwDJ6IUMbj_XPIcYRzos-te4LRDMA.SuqOp4TFaKXF5_Wk.9eBK29CPFN-iOwcXQTU6AKb1e4Qe5M-Bal-0mK0I5zpvKnvy3sWik5Q4RK0UvrqBR5jdP4SnsJq_JYprjfzwE_LVVZLq_5BFv8mHhn3mig8tTN3xnLyBYA7QGFVnduv5d4oiEtNdSADDhPo5j02PB16ahwRof65uvjz-y8TvDMURtIuZaAdS17UNVIRK6gOr5ZKL6arXqee1o0As9gUHpqgFWmP_hVs5K4R6-sCqJTkRZ1v2YX8IWM9O.w2_1_gAViy77Jcm5T66t_w \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/9579ac21386353e45a0c43965991297af4915a21.address b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/9579ac21386353e45a0c43965991297af4915a21.address new file mode 100644 index 000000000..fb10aa657 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/9579ac21386353e45a0c43965991297af4915a21.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy4yMjY2MTUgKzA4MDAgQ1NUIG09KzAuMTIyNzkzOTA3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiQUlkbEEtd3JTSGw3Y3VCZSJ9.ad-KB20HP4NBDMayLdhW8tzQNSTyiu35nnxI93qpcq8doegpqjzYNw.TYPhKcFeeZum-eMT.1vih7eRCB9V01F0iS820cTjDvr2sm2Aa1PC3cb8WlREufhD1MFtL5jdwATpeFSis54wYxUqpIr_eqXbFWPjIRb3uDMRNS_wGAD1pWzQ_ni7deFC4V3iHggmAP_y__D3hedvINyQKk7wv33HfDJFjDJ5nQV_bgA12kQQFbcXqMsXDILs3SmdOoD2MSbSmUMBu1su1vpQUrVjpe3VKA4tUgM5LJ2C545Kxe3zedZ4TmQQz7MXXrDqc6GPl.F_BOYfjEBHvlzJ9Ye7aTPQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2.info b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2.info new file mode 100644 index 000000000..471a5c639 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy4wNzA3NDMgKzA4MDAgQ1NUIG09KzAuMDY2OTY2MTY2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiVldQbW9oVXVYTHlIeEJJRSJ9.XqHZBBPtNcKOV3QPu0fT4zfWf-VntWpo571TEgeGdnv-bxFZRHom9w.lKoOfoSHDbrBqOmc.mfyw7PTjrGOBAO4KLJliiE0-EKQUwokrmFbY-6YiAFpO5hnJZoqrleifWN-EPZMCHdobsvFKuVenmjfjhiHzWqb4Npkn2Uw1FYX6VPffaLN4ltzG2F6_9VYwYt3UXbfrYvtoajLcjdQwgxvUN-k-6U3MbjNhgez0Sv2g1DrYAHM3cEpMr1isZhUFQiXObdVGaLmSyE-ThNr-KqqezcMzwPz6rhkpha78DG37XR0eEgTcWqrK8kffoV41ZLYYbI3ou-BrXdXzGLBOtaoLlvBReqL4gPLa5TyN-Xqgwe25gnjM4K9QklYTmcyZGQjXw8dIz_OPSxe0iwaVzXlbCTRMP2Whg7zcGEIZ4kUMxwptD-LD8bQQvBIClk6Tw2dGcP64gbgsvXHZVTO59Jhr9YuT2fh5lHAIHYU25D4lhd43RYmRSf0Vd8Qr6Xv4XosoGftngGDgcPPhUXiVa0CdsXyrmLJJ.6wWy_jT8Fc0V2gkTLpW89A \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_approval.info b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_approval.info new file mode 100644 index 000000000..60aa4c603 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy40MTcxMSArMDgwMCBDU1QgbT0rMC4wNjYzNjcyNzIiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJKUHpqNGd5OVRSWmpRWkRXIn0.GX_24qr16tNkum08Mxo3Ii-RtD0NNnfNFkLc1JXqs5wYIfk2hW-Jlw.2R1dQrOb9k35PSV0.-muPrTItglnu_4rPzZ9TZvjNO30WtyVN9y1GBM0NUDBUnn34R50GUaVhCFXXBt47H0FaZrn7A4AV04urjPBoSsFKv85M3wKnkSezFJHaT0o3A2KTU2-7yjc2_Itx7zNoogLDq8kBdRRRnnmTfX9anHeUEziL3vNqA32NvdRu6yVtrKgMRwHV1m0QjM8Zo5lOaCti0CnLYn43-M2-BJBVYw_TJWrOrWlahKI0c6wMIUBqXeESDg4_f5hRmoa1FfQy7JRHBbzYD03rcsK2LbXOct2oE_C8ieOeUvj9sUPgzdqbvjWB1iTCsN2-nTz7qcPmEp7EMEA1hkVuGiFA1qyTodG4oV4VuudwXxF1NUu_riIx5ZQ9nYdRNRnaLy6v2GpEPaM6OIhnTcyTTOZvL0wZQC5WbGL0XXkPKNqJboI1AgHSskjyQ4nsygz9IvFpoYSSTosSAMqwXvuXMbEY301Donk2ejmC56R3tiusxpmvR5P5ymw6lzlV.TT6_MeihvFpbEFT0ZvX_Pw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_fund.info b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_fund.info new file mode 100644 index 000000000..e4720ced4 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy4yMjExMjggKzA4MDAgQ1NUIG09KzAuMTE3MzA2NzY4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRUpySjlHN01ORmgzWXFzeiJ9.DDG0Zb8KNYOWCpYLW_-jXG6oUNJsL4ClyM2WjkBgAgCRWk9qLfZ4ew.8C6eSZUWrC-v3vnq.LG6kuXlBsdklvuwcTvFHllUWK4tCH_sXqV9tI4HGPH3FTMS2aUbaVe4BO4hYsZkbwOSJZZm8Ww6vBN9z9AumS5W3Nfc-mClC-54aNK_8Y_ujxw25kJH2qfTvLy38_jjLtPkAQT1SzwGH6h2moM4erRIb4SV34QabYGuI8-NkujULRqcj_HKE7IFUWOOOuuNEQkppg7sbsI1CMW2nF0c1LKeNtQiJG9qS85Ui9dZNN2Ik8GsezPCFbwbJG_aLrbdkPS6qmjuyQ0JfCiajWbM3aKTDF93jKaQs6H2BYrxYup4A-bq6AhApJFlsAMwVuQ0_eezbmMun3o5ICNyUNX_vyvu_ufWfZ2-J0y-oZTiknIe_RV-x_ZPaNZ1LJu5LGKuiQiWO3jn4-v6siSzXCJXdrEhK9l6PLrvtuxJf4dPSQFa-TLgYCa4qroxka5Gw72-a9XX-Xp3kHSB51e50657ty5lVHEMWTcTbrHN6.kwk4-U3mDq67_RQk46OKBQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_seal.info b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_seal.info new file mode 100644 index 000000000..c40d08d2e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/keyring-test/sp2_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy4zMjAxNjcgKzA4MDAgQ1NUIG09KzAuMDY3OTUwMzkwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiNDYzc2FVWWNtSHRyTEh6TCJ9.qxpPgvUQaKAlfUeqTesZkZJ8daNhF3mIkJuIUyd31WIzqQ8YFwO4Gg.Bl8vKBHJGGpPRNEm.GEtWNIID-UMSbjFYkEOWldryKyOgICTNo-JBXBap_33gkucShR-ftzOH-ICB5VnYKY7enBzNhWfPljpuOtw2bYerwiSyO2qA1Vp_HrKpVTAFc1qSiRJPDcXjM37mqukMJKk9x8_ARaqPozR-Vz8c17oihD4iaA035IbYHgpJkodrMUcyW83V83nzVPfojGOmV4BiL1J62l1dlTup842a_nErW6zb5lVs_uU2x44p86TdcgeyWlpfTFRMUEdhjN1LYgcer271D0gt6rpUyoZvejcuWbx7UoueR1Ac1p6hGoCxKJ8tFK-AA8Xm8V3tjdriVikvAha_Q2aPAL4qnQPb9LMhiQZ22Dv3Rs0eyXe7B6ycvPjHWCiT4-iby1AOXh0D4fXCR5SG55T_aW_gYAu1iyx373W6k5EyiFzGogKMstqOJ_9YNob9aLy0G4SjG89f99up5VGbXwyCfMGtkP8_MO6e2x-XMvJPj9JD.nM13QyLI6sF15cG6BSvVRg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp2/seal_info b/test/e2e/localup_env/greenfield_env/sp2/seal_info new file mode 100644 index 000000000..03fb1b2c5 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp2/seal_info @@ -0,0 +1,13 @@ + +- address: 0x8f0144062E16B9291A28ed8b81e7DA9A09d21499 + name: sp2_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AprxKn5jQyUDGwRVFqDc9qGlht3UE3RnkZD15Vfa2c/t"}' + pubkey_hex: 029af12a7e634325031b045516a0dcf6a1a586ddd41374679190f5e557dad9cfed + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +intact vivid fresh chief region program tilt fossil thank they trust license gossip edge hour wolf ten talent junior cake crime gospel kick census + diff --git a/test/e2e/localup_env/greenfield_env/sp3/approval_info b/test/e2e/localup_env/greenfield_env/sp3/approval_info new file mode 100644 index 000000000..0890321c0 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/approval_info @@ -0,0 +1,13 @@ + +- address: 0x6907300e63712a6da9aEE7ffb112b1b1529fB933 + name: sp3_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A9Ug7S9EU//d2nJbtAd2yrYou2JULdfrGlhn9aFR/oqQ"}' + pubkey_hex: 03d520ed2f4453ffddda725bb40776cab628bb62542dd7eb1a5867f5a151fe8a90 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +thing congress audit ahead machine become away lottery hurry clown six steel eager noodle million practice lava sunset because thank butter lake session know + diff --git a/test/e2e/localup_env/greenfield_env/sp3/config/app.toml b/test/e2e/localup_env/greenfield_env/sp3/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp3/config/client.toml b/test/e2e/localup_env/greenfield_env/sp3/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp3/config/config.toml b/test/e2e/localup_env/greenfield_env/sp3/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp3/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp3/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp3/config/node_key.json new file mode 100644 index 000000000..29433f3d0 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"wgHpWa9FDB/JEhtHQv9Mii3rhauhwmNQImMbS+aB4NiO/mGLoaZHB8UwMj2z4zhcucbyLL0GYP6et8QRA4vRtA=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp3/config/priv_validator_key.json new file mode 100644 index 000000000..90bfa0e1f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "2969BC43EAB5C48DCAB8E5947081EB01DEB6B7F0", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "iZkNj7fhBFIQCMOFwPHDMhouBliTGiYuvucZkUcb9gw=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "MGBFk3Z6mGPfhgF562+g5o/htlN2lHi8GPUSrtu/W+mJmQ2Pt+EEUhAIw4XA8cMyGi4GWJMaJi6+5xmRRxv2DA==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp3/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/fund_info b/test/e2e/localup_env/greenfield_env/sp3/fund_info new file mode 100644 index 000000000..747b8b0a1 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/fund_info @@ -0,0 +1,13 @@ + +- address: 0xBa299BB46260bE2cd735988F469896662d279e2F + name: sp3_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AxuJmdqGSH7EzlaeafvF3cZQjSO0NJGE/hs4Q8KOCyVz"}' + pubkey_hex: 031b8999da86487ec4ce569e69fbc5ddc6508d23b4349184fe1b3843c28e0b2573 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +infant example essay private mountain midnight during zero dune swing unhappy muffin special penalty equip enough flip year grab axis aisle common capable major + diff --git a/test/e2e/localup_env/greenfield_env/sp3/info b/test/e2e/localup_env/greenfield_env/sp3/info new file mode 100644 index 000000000..9a00e69b9 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/info @@ -0,0 +1,13 @@ + +- address: 0xe620C05870A2392E4987676b345026E6C6228388 + name: sp3 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A6pPM9Gzp2cKv4I3b2JJKr3Lhtb54KfGY6CYqqV5wxVO"}' + pubkey_hex: 03aa4f33d1b3a7670abf82376f62492abdcb86d6f9e0a7c663a098aaa579c3154e + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +pact flag ready addict fault hammer album please blanket because wild dash kit tomato stage sail inflict seek purity wild lab museum actress rabbit + diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/6907300e63712a6da9aee7ffb112b1b1529fb933.address b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/6907300e63712a6da9aee7ffb112b1b1529fb933.address new file mode 100644 index 000000000..203ca340a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/6907300e63712a6da9aee7ffb112b1b1529fb933.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy44MTcwNTcgKzA4MDAgQ1NUIG09KzAuMDcyMTAyMzUyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiUi1tRXF1NVRPRmgyTFlWdiJ9.QTG366Qrj90dDQmWh8REAYTP9t3LgEFFzz421Fke_8ygBv0cx8Sj-Q.liVrLFOCVJiBKMiV.XLYZXNbGca4QmiwDMwJMRABli_ytRtygmZLOiR-n9GTUZoSQvFzhn2d8lRG0fN9rQnPSEbEP8Ss79r69_mPuEg_Dz13gAVrZ8KStMDcjNbI2N-hPxSjphTtIraZ-HUWlU3ZNobRtcgI_7ZdMBpbnOZg1Sgqo5tJl1qsT8OCVcaiuZq5HOjdf1bVWHKwpmPVsTMG67lLiX4_6h1Ke9RDOtT42mTkoA9OTAya44It2Ah8YCfMuBypzm1I4YUvIQg.YcYDoCujw6dt0oFtSsWQbA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/ba299bb46260be2cd735988f469896662d279e2f.address b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/ba299bb46260be2cd735988f469896662d279e2f.address new file mode 100644 index 000000000..fd92a7a10 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/ba299bb46260be2cd735988f469896662d279e2f.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy42MjE4MjkgKzA4MDAgQ1NUIG09KzAuMDcyMjY3NTgwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMEJmZDZmbVpkYnI3UmRtbyJ9.tDlS9kF1aenUX0NV4F-mTP6yEga64ExZpWX1tgpGdnQp-99acD_Kjg.kJpDXlm7u21mcqQ9.UczU07StCprbVyT1to--VzW_GX4f-Kx0_UgCWPuRHCzDS160lfc1spNVSVoIAPzc0IC5dVBCrmpkh_joITuefWCkMREphMYVeyMT9jI4G-rWEEkwtwdXNcI0HAhCCa7TYA64J9E4uS5P9bNV2dcHn8RET-NLbFSbhKNVbTr5fO9g97aunLUwvFTiYai7dPfBxrIQuHLkbJW6JZBzZGLwSrpSdty9tZ_5bieeWkhZwzCA2IKXtCdTmSvS.eJ5y3YHjbFD-2NVg6m9P5g \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/c6219c1e5ee3adb7b4335e2082201b777c7f72dc.address b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/c6219c1e5ee3adb7b4335e2082201b777c7f72dc.address new file mode 100644 index 000000000..9fd8d816e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/c6219c1e5ee3adb7b4335e2082201b777c7f72dc.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy43MTk1NzEgKzA4MDAgQ1NUIG09KzAuMDcxNjYwNzU4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiNi0tYTlzbUdnMTk1MnVKSSJ9.2tQLdgFmuzbKVfIbhjqJdQBl3HhZxOP6SFaivuAXz4ANNA5I5JIJ7A.9Z-xHhJ1DC5eVncq.Yc1h8fHooMB4sh3GewWstIhHj-lndBIH76RFNF222bePsVoHnWiltm9Ieu_TQ6CHZW0d-V8lURJYGTT_vQHw4ttIOqbMvPcTBrQZtEaHawd9Ei5P1K4EahqCoPeue_FmUKBZD15cjJ3d-Mws8urQ_5sT6FFKXFyYltzxsBfyIOJVABAktkGr4Wu9lbTI5tb4nCk8hgshjkU6V4iJ_h8vJ4EanrTRwqoJ6jsqphfZX83228A6P6jSaQGi.IO0iF6djuJhDRaE5Bcknsg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/e620c05870a2392e4987676b345026e6c6228388.address b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/e620c05870a2392e4987676b345026e6c6228388.address new file mode 100644 index 000000000..7c464b17a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/e620c05870a2392e4987676b345026e6c6228388.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy41MjI5OSArMDgwMCBDU1QgbT0rMC4wNzE2MzEwNzUiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiItUUV2S1hwV0JHSHEtRDhLIn0.kbzEqORHgLN1txleTRxwFHJla1CKngZ7Yf-zgSr7gmQhNyekoK6TUw.Hy0M08mXnqH5y0Qj.ADy8QGGSIJYlLlUySdDM9vA5kdHiYrYRGMbWrl0hl7nnDks8umNIZNh9tbmPee82NsgHj84Z6wTNtraURnbQ1yUJADimZ4ngX1gGF7IrNI3a5cbcqPXamBow75h0flCNikWX77-9DJv0tkaZnQw8EUH2FA4goQE9DkOWE_cMiRXhwLbpwbeX9QZHOZ_AOl1s52B7i8HqlR_e0c2GnoKTNET5T1eW1E6xgaurUkLRSVHeDw.8xjXVVtUae1_vY6ifGOIcQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3.info b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3.info new file mode 100644 index 000000000..7323e34ab --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy41MTc2MDggKzA4MDAgQ1NUIG09KzAuMDY2MjQ4OTUwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiMEZuMHRER2tGYTEzWmc2RiJ9.2vBBlYEmkTl7Gn3j1Ekkb6AIf5sGsZXq7vhMCeUQpo3irn4DzYFMvA.IBbqCyaxWcP4AEEl.byEnQyhtHk9g4Y1S71ATjkwnmqBK9whpMnXZJDMz6VIz_ALj7ZxiwIzOTgbLhK6v-IJ7i6_JGtaX-RxiiOAgzPF2O0wUsX1kPEiKGmmZ-YI0sJeKQw2cJAhd_FRfBLZFXJYlohl7njQV53a9xiC7nxzUwxbB7BWMgy81siy34FSMuYoExeFZxBJaCkS-rmoAGzcY74NjObgKYfDlHjbiN1eUsMiUPvCBn-tEijNibXFHq6IfhGRvHw7fOWQO0-Uc_owRwpdBCieFEudwpa_zmqBfSVrRi7bnN8LU9sMXRhV4fHQOd7J5EWXraCW-QpKZFh7t0utCjuevYbaEDgwJR4QbX9RnhplS6z1dPeFMwQQoc59G7d1jreb7pU6sScp7pWJUGfRtOUcJ_P3_efMcmhsM_UPMHDdQLx2KMbgC26k5VKIYm0_EK542zFaTRiYswchyUvcg3xMrou1FEFVFWusg.W86TI8G0ZEk47MkNHg2zkA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_approval.info b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_approval.info new file mode 100644 index 000000000..79d238177 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy44MTE3MTMgKzA4MDAgQ1NUIG09KzAuMDY2NzU3OTI1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiamFmVFpYeHNMRFM5TWN6aCJ9.rjSIFeSS1zana12BIfiIRPKdS-IXYdhK-uTAPVxzbMYUo_0XYonPvQ.wGD4llQSq8cP06OS.hMC8Fv9jXHbBB4NKxANvBRJz70D3sF99PpKc1yPU-CEAeoFRL92xUG65nA3OvWrBcOs4P8nOmJddf4JwGFYgZp0OCVybBRJG5UH9iaac0ZCPKWsgkryV7Zvz8d1cIQ9hjRgS5mKtppKUObxePyrwiK35dJeFpCOi7uhNnhbMCDrrH3Xr3mNCVE83-7LnRg6J8e4Bfl1CeJaiFAK0jgY2n5cAaFDXu3bGKdk72sOfOmVfRzc8XDDNjbGmLDKuZLJ0Z7_VX3dYifxQum-8rDHpQ2ccEJ_0rmRP-CuS08_SqFLJLS5xBaMweVt8rg0sag4DWZorfo-nh7xJsuQF1Wcs3PnDAJ5AHmQwUfFHdIrnwh6htFrE6WX_xQkr6PVLPEejgspQfzgv2_GVWZrrorHsJQvdgdZR53rOqwx0fGY17X3aMgR1YDIUiloMbKBzgIR12LBsfa8gCLDmvQG73sethQrAA-biKw4hjeMT1zcqxYL_PLq55tPJ.kmVwK05oVZxwMMelGycmdA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_fund.info b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_fund.info new file mode 100644 index 000000000..555a85181 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy42MTYzMDYgKzA4MDAgQ1NUIG09KzAuMDY2NzQ0NDQ1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoicjhUYTYxVjN2QkRDQlBvRSJ9.AD6uDbUnMpRruSpQNh55DPXX_kDfaLr8ONIzS6ZcH2bbjPVTOG3QYg.4QMuLcKCPsmNgwkt.cKHSqg59Goms9nExQh5D6TXa4rmvfp4mRc3Dgp4LsSku4fzPQiROdKdmW-sr8mE_y_fQL_H_NR4ztpbOtWR9-dy5qE6pwhs3dvkuKVtyYzMolUWUpkvWnX5hnNVsrP9k6KuqDAI1aZCi4nCL9f2ywo6O_FoSdc2FO2oJl9ujzHaj103ocGBaKPhgKo5XUG7r2A-ZnNM4TYn3OlTSqenaLF5nDDQPpdWC1-JvINfe0UbyD-6vw1NcMrDwfo4G4JUFFM79gWRu5kiP-U8Vp99iAzHxSSe-79Dp8RC44ILOhPPpoXcuDZu0sW3a-kXskisazSrlPet8FjZ1K6t3SRb0Bo2Fkn7Ey7lq7p0KSipN0MlwzZ8lLvZ7u5E9xXkhSwDfPBQCRnup4KIiqcKfI99W8bldH9WnZptvkHhHaDL4VxOJxGFuFqqnCG53QEz_TaxrIFEZfCqhgQNlu7Of0LyyqU7MNl-yoc0BuH45.mLvXJTYMZ3Xw25RJMEAKwg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_seal.info b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_seal.info new file mode 100644 index 000000000..5bca2bcb6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/keyring-test/sp3_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy43MTQyODYgKzA4MDAgQ1NUIG09KzAuMDY2Mzc1MzIyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiOEFVZVFjNnk3Z3hzSExwdSJ9.ebQWzl51jiPfGirE_b2zSykff_bfd6s0kl2xEaf3nD-NSuIO6ePeaQ.W1kQSPYEyRF02MPZ.I5zJuqMRiz3wx7oYaO30IyQM6rCuya0YfP_teuYlPwkXdCEldUuTE-fch2TbrJwrfQMOyLM040Fk2RXU9n88PbuRj_RhAGqPHxMx0Lra7PIMqWZW_koHuWcAGdKGrJ6etYL2aOkTjeAba3MXT9QLgM1Jbp8x7aL2pyhjWPnO_Xxn3R3Cg07D7geWwJETxQNxmya_1EznVjDFhKUSujxW5hbr2kGVjqCV9Swagh2pMVJfiAcZ7GnIb2Zg-C0nE12ZxIA6BQVf34pVcw7veJYZGIRoesHtaZydKC8Rnu75iGtsehSMWNLDwsCGqafUOBUfpckU3iiQBPBXbFOFBSbjGl3xf7lCMJaYBE6FLTPbO0UkdtGRE2V8AmUDgZo4_00a4P3hS5uLvMmjYjpDdDYeUgIgRnqV0tH68MLhGbgxfhUBcNEAnIqYY7lb6hSKlpgpLI-44FTm2GcnvrexrAFhmWisPHlumbAjZxxU.BVL6ajx_N2vEB_bmkoYgQg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp3/seal_info b/test/e2e/localup_env/greenfield_env/sp3/seal_info new file mode 100644 index 000000000..2fa54eb21 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp3/seal_info @@ -0,0 +1,13 @@ + +- address: 0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC + name: sp3_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A7eYyGiGXI0+lrPCyaQWp/LC12hMEvB0CVODankacPYL"}' + pubkey_hex: 03b798c868865c8d3e96b3c2c9a416a7f2c2d7684c12f0740953836a791a70f60b + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +fan final salute vivid regret jeans force vote north borrow auto cave response door steak neutral dash bitter boat very asthma vehicle jazz buzz + diff --git a/test/e2e/localup_env/greenfield_env/sp4/approval_info b/test/e2e/localup_env/greenfield_env/sp4/approval_info new file mode 100644 index 000000000..acaf1e290 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/approval_info @@ -0,0 +1,13 @@ + +- address: 0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F + name: sp4_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A8V2FI3322U3s/2hLqtZV8F5Q9ALf3thAd7iNeQGR+/6"}' + pubkey_hex: 03c576148df7db6537b3fda12eab5957c17943d00b7f7b6101dee235e40647effa + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +gift usage october wear vessel victory rain wrap clarify just mutual subway tackle photo exit join speed shove wrong patient lecture lake depth camp + diff --git a/test/e2e/localup_env/greenfield_env/sp4/config/app.toml b/test/e2e/localup_env/greenfield_env/sp4/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp4/config/client.toml b/test/e2e/localup_env/greenfield_env/sp4/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp4/config/config.toml b/test/e2e/localup_env/greenfield_env/sp4/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp4/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp4/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp4/config/node_key.json new file mode 100644 index 000000000..cacd1cbd3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"aJcJPS276Vbm8b1uuP7XVe6K5nNlyba010iPsdEZEhyVGVa2dqSBoAOJ/2PWcR+wEMPDqTGx9LkCsrHDm6L+uw=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp4/config/priv_validator_key.json new file mode 100644 index 000000000..e68e62a44 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "7938B9D622B565AF9FF69CE6F8CF8E00D6BF66A2", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "F72NMkW/88b2pfnJAtUX8F6SJwMsVqdpwAdFW6zDTVo=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "oITz0grPHEB0XlWWAFGH3+RR4SF28EAk7y+YfE6VefoXvY0yRb/zxval+ckC1RfwXpInAyxWp2nAB0VbrMNNWg==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp4/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/fund_info b/test/e2e/localup_env/greenfield_env/sp4/fund_info new file mode 100644 index 000000000..d6ecbd2c6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/fund_info @@ -0,0 +1,13 @@ + +- address: 0xc91D1896c2d0056B7c233D31F1A673ad5846DC08 + name: sp4_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AomytbyPfJ7vH4XroR1k+9U2n+kR1aAxokNMphRSj4M6"}' + pubkey_hex: 0289b2b5bc8f7c9eef1f85eba11d64fbd5369fe911d5a031a2434ca614528f833a + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +regular legend leisure pretty zebra ability rich extend express else scrap name canvas world burger beyond solution arrange normal axis private material calm fog + diff --git a/test/e2e/localup_env/greenfield_env/sp4/info b/test/e2e/localup_env/greenfield_env/sp4/info new file mode 100644 index 000000000..560d640cf --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/info @@ -0,0 +1,13 @@ + +- address: 0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63 + name: sp4 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AqIAQajN7c2yoJdFcZczChFkV2ADBLdy0P+QmaNg1A0L"}' + pubkey_hex: 02a20041a8cdedcdb2a097457197330a116457600304b772d0ff9099a360d40d0b + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +pledge toe fiction possible example page gun jacket worth lesson object mammal patch royal expect extra organ wrong option obscure struggle wonder card plug + diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/1ee57886094e9a7e08cc8e740c1f8a51ddf40c63.address b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/1ee57886094e9a7e08cc8e740c1f8a51ddf40c63.address new file mode 100644 index 000000000..44f586d54 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/1ee57886094e9a7e08cc8e740c1f8a51ddf40c63.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy45MTc5OTYgKzA4MDAgQ1NUIG09KzAuMDcxODY5OTU4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZmFpcHI5OFBteFNudGt5QiJ9.Y2hU8DAd2pKlGgCSVP6Gvu3id8Nxriw8KswF_ny3NxxEGSz6GTXQQQ.qdLGdLsAdW-M8qfx.K1NZsJmOY22PekaTva3GJfDSGM-Hu6cMBq4UJEKCdbC5_bswrSj9mDX3yAqaw2d8KrN2Nx6LGsJFGr-UV4TO34F3bbdO6ATRDpB-tqtew9YfSks-hszpY-MiIFMGVEYI8r3BDx2CIaKxUSdUVUrx32S6S5XX71PI4eqHuFI5wNLxYRSLYHIji6k9wjuz22tUXP0XOdPuLe7j9sO7gq_ZBY1KVIkkXczoB32EJiKSCH0ydA.W21tp40r1bByE7AxQUWsCA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/7ceecb2d5a3b92d12b68e6846b6686b2817b466f.address b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/7ceecb2d5a3b92d12b68e6846b6686b2817b466f.address new file mode 100644 index 000000000..ef383aa68 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/7ceecb2d5a3b92d12b68e6846b6686b2817b466f.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4yMTM5MzggKzA4MDAgQ1NUIG09KzAuMDczMjQ5Mjc4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoib2lJYm1VYXFYQklqVVRORiJ9.kII0BH9xXR7dHNFuOI0QZ31bfVde12uJt-J5wltOElqYD-uU9B3tZg.cTutlxdI62Lmywxt.K-T5cAgeCdgPY8wtOxK8px1htp4INnF23zOxD-tAyFK8ZTvGZi-40Pu1VEjX4hi9gsUmGD1VK3n6pq0lsA4iTGjWF1CsCcRca57cB_jUKvWuNauJ5MFR2eRnfbTj2D7s5_GscRGuxlRJucUwBTwERgNM6Lgha4NqFWHCduguhwSMdib4B98LyIBG_NwlAjPnjQ5Av59_0k-DDzHI2JjxlJsmB7OHM7UCbwrFVZhuPenClkZvpgIx91Zc82rsKw.g3T8dj6kWRugb59fx6DtYQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/c91d1896c2d0056b7c233d31f1a673ad5846dc08.address b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/c91d1896c2d0056b7c233d31f1a673ad5846dc08.address new file mode 100644 index 000000000..45910e54c --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/c91d1896c2d0056b7c233d31f1a673ad5846dc08.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4wMTYyNCArMDgwMCBDU1QgbT0rMC4wNzEzNDI0ODIiLCJlbmMiOiJBMjU2R0NNIiwicDJjIjo4MTkyLCJwMnMiOiJpa2kyVnJ6aUJEQzduMVpzIn0.2LGkUjlXMnXREzSRILOqbhZaPTPPpJwMiB6UTH2ur_2CmNOlfG3LCg.ExWx6hzvmahqua4R.rcC2mJREt4X7LDUA9MN0W66uKNwCJTZlcon3skl5bG478y_hWzoMyf5htgQ-mrNQQk6HEquAPLNwoPYXWTu7qQ7CiXUmMcG4e7PaQMfT6xytQ-_1a1uV2gVEYsEuCPgku_v-3KxK25yyB5mtj1r0EXV6R8zTz_D1ajqLzdwyY4OBMnY8VIql113oX5JA1J58x4585Ra86LsXt9VU5ML5R70cEVFhVi1hxWRxPIjmnVKDbJHR_PA1QVf4.qLBnAIgFhlyYlOzKoCxbbA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/f7e5f5c6562dfbf6c0bf176125f14cbb4c618180.address b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/f7e5f5c6562dfbf6c0bf176125f14cbb4c618180.address new file mode 100644 index 000000000..059c4a32c --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/f7e5f5c6562dfbf6c0bf176125f14cbb4c618180.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4xMTQzMDEgKzA4MDAgQ1NUIG09KzAuMDcxOTYxMDYyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZFRBR0hkOWtpMVhnTFVKSyJ9.C1cg1CYgsyQ41oSVbSIUg5MSPSpk3wHwfGsm4En7q-MEfcFDJYH1kQ.97_mnsqzCXrrfSgT.TPQPkAkHv8toCPGy0ItyH2dqAla5ZrUPZBUjJ-31-rtPG9Q3XGmwrOAka7hcYPIAqeZQ5fW9cH1GdgjfUeRuLIkQAFKGVjM0xCUkeWGjqLp-s_i2LOJhsfjdSQHETcVt3oYjzS98hO7JbNnYMUnRGgHWW6gzTYlfETzkqAWx7Gu8jmKQhAHoSOjZQewod5Sz9SBnFNnVGq73Zg1bCyij34UF8eYOmVF-jdaauplOyWZIE1JqybPFngN3.UBC8bFlU6DC00PcdMdnsMg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4.info b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4.info new file mode 100644 index 000000000..d15dfdd19 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMy45MTI2MTIgKzA4MDAgQ1NUIG09KzAuMDY2NDg2NzU4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZWplaUtuNlN4WkM3VjFLaCJ9.I5vOwu4a592TlYgUXE0iUCZ9dJeSecf_7n1L0Y8a_ycu1pHeAurBYA.17w0qVC4S_xn5B9H.CPdH4l1-0ncjc9iJzu-HeoFSuzhpGVoPvG7XqWMjE91ufG9P4XPYbYpFi-nzjgI0sQ288EVGt5LV7zHqzJhic1HRNGyUmSHJrejz8ZY-OYUoIaWVTl5BnBsTcOhkhm7FxWwWBrSU31jGI240vx4t0cpj8P43l8WAwdddwXtMJNILJY3xjq23svAOlrME9swVRijrqwiNh-EsO0c3nnreJIOLNLpUGcLhEeLsgXQr0huBvpMwZ-74kMxodoPGP8kR4th4f3f-5PMlZyZAltD3TWm0-6NlG7UXr8xpu4BxZId1giFWvxIbgLuIdFDxqOKbeOb7EkTm863zjw32A61ws1J_i4KceQ_gC-hXbMEmHroywlhK82lVba0KhMo6FigJkuq_VFt94qfM-4h0ypUen6ATyh_zYAkD3i_sc5JDxVRZEwsXQBwCUeM4p4BMKg4izd8N_9kojEqQbzYVCkTm8_iI.4itUG9S52saw-VCfu5uQgA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_approval.info b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_approval.info new file mode 100644 index 000000000..98706f946 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4yMDg0NTkgKzA4MDAgQ1NUIG09KzAuMDY3NzcwMjA3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoidGpib3F4TDF0eks0MVFtWCJ9.VjuQOwiBgD73jDofkImn_XtcHyy2mFWrLlRZF0dFAlf8xwDrQEek6g.2fJ2NKUsOz_AsGRR.JrLAwBf2zADVCkFEi4FUC8Yf9Bxa0gDn6_WekeYZ3q47Ls0qWi-YDCzrbSBnvwSU7VGkdE5x4z3KKpdWTSw41hcOpOx5PFMpowpyX_jTUH-autkKCBV5yhBMqVHy9ot3vpOImvbd5yKNw-dgTgO5qdIRx9HlgLIYFze8hdkwoEHTXgksSoE_VkaK5beQxUeR-k50Q1Q4nI11V9eXED7kxfJU8fYpsh-QqD_ziXv4GS4h83G6yvyEo4skiAK1wBtE8nWEqBNI1AWXchr_DBKguZOm011nX7xipIXo1zhSgkWa2dXQHlciUhzyiKzSnOuig9x_KHIyjtUSMry4HI8oAZ3HMftAPBe7zUs1jDB2jBtElGOeD2Z9pemdKO1JeLAzpi3zWj_ZrvDeMFJrv6RI8InwYCTlKFKHy-dNnLQicfsoDPAH_cOa-AtXeHffZQUrJpi0MW-MuCk5W_w9X7Sbd2fRQhzhOgYXR_xWg5Yov9SZQFanQuI5.8xlAMIVWUzZZ7ee7SfmQ1g \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_fund.info b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_fund.info new file mode 100644 index 000000000..76b89b1f2 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4wMTA5NTkgKzA4MDAgQ1NUIG09KzAuMDY2MDYxOTE2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiN3lkLVlxUUFGS2RraFQ1YyJ9.MIyV3UUYpDTUviZh5qEuUXnr1tf7Q2yOgUegi6eyCiuJl7yPcGiVAA.UwM0mhVEbE3VAT1N.a58eS2tZ-jwyJkl4fIEo6o5lrIPq8fKt3S0GR08qrUpfyS1ZURCC1tzqo7May8fWQKNIjwchl1Adg92yeo4jANwreuIddvmCP0740_D6dzVPehJ3Gt6mYRY5pwv6bdnrJAMdXwsI4zqzSA6GgJJPVWVOip-wGaHSItiEjdYXtAQXyYOok6w-8ErN8JSMGfKB3nD3SVF7BpHJLlHd7JdMMZdJ5gnqBz-hO0AEJUJyeIUtoIxEEMCuVktcFRzIKml8V_NxOM2QJESZoSbPvTklOBOnufLENpIh-ae24d5hvWk0u4Rt0P6JY2xUlXKlzzd23YLdT3_TYBDrIR9Y3pgBf5mXg39S703qvsNsrCv1tI6s-tzHOnDAPFH7jJruNXRW_GB59jJmEPMX2z20RhsYEPFLVeSAgclgh1zw-YNaO-2A0YnJHtqoPa_KlR5avsiF2wUoLigTsN6Eeyr5ql_meYcS7xIznmfLJEYL.cJXtS3ggH4Owgf8nUAIozw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_seal.info b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_seal.info new file mode 100644 index 000000000..2ed1d5941 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/keyring-test/sp4_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4xMDkwMTkgKzA4MDAgQ1NUIG09KzAuMDY2Njc5MTU3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiYVZiRVZYaW40N1pleGZ3biJ9.nvSe8l_rdEgNgrz4I7eSY1b1UI5u_E6lDslic5RaYZ4FBUkUVWYcmw.fwH1ao2v75RFeHh2.K_wAtKeQRXoofW6CUKttogyTBdJDn2cNLDmL9HVhwBIHAGLdq5nHvo6zXtjqLjhN7LfOdz5vFoUU_h-JXaoR_ppeGcZiBsUv76YlVew1t3alin92dMgX2asuPqm6M9uOknsQpzppUrB6VPXYiWJBFK4yd1V3iR-T7a5a3r3aYHBSI8_WTixrhxNsN4RDiGFj2iPZDgSwQq4SYiXmLA1XDsFw3bzuuaABJRcGXavtpm-pl-eEpzcgke-wevO2fV4zcgNpYNyjEbGtP8hcbHRE6Zg9i2D3R0w1RKPsnBBcHVv0OWKvh0YA5wz8AGh1ypIImG2-LWXyHAEY6ve35bPqYrLmz9r9N7NLk4hOON2WkRXDAIaVRYkCOK4ZXJ9yKjdJM8ucol3tMrVHXEXXj-IfUokLp4CVEXdzDkMK_2yowZ8Hdv-wQpVptL1ZdaBRLJuXtUQDGWVS_ZnVPaCL9V_XQ5dQoXLLPB6JCac-.uwAE4mwpi6ahj4QRHYNAOg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp4/seal_info b/test/e2e/localup_env/greenfield_env/sp4/seal_info new file mode 100644 index 000000000..cab8bb59c --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp4/seal_info @@ -0,0 +1,13 @@ + +- address: 0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180 + name: sp4_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A/OLGQ6LJskWKE3N6C8clDbDz3AkrKGCndMhxgeYT9hj"}' + pubkey_hex: 03f38b190e8b26c916284dcde82f1c9436c3cf7024aca1829dd321c607984fd863 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +version resemble humble isolate cook help glare usual index way hybrid install expand drink electric frozen grain army inspire lobster kit shy moment two + diff --git a/test/e2e/localup_env/greenfield_env/sp5/approval_info b/test/e2e/localup_env/greenfield_env/sp5/approval_info new file mode 100644 index 000000000..2dcda14b6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/approval_info @@ -0,0 +1,13 @@ + +- address: 0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b + name: sp5_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A1azuDGwYzCyhTswbpneh6lUYmg67x6ULdl5+WiU6P8N"}' + pubkey_hex: 0356b3b831b06330b2853b306e99de87a95462683aef1e942dd979f96894e8ff0d + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +twenty wrestle brand skate market include solution suggest second glad spy route reopen marble bench floor oppose fall response garage leaf wonder flat high + diff --git a/test/e2e/localup_env/greenfield_env/sp5/config/app.toml b/test/e2e/localup_env/greenfield_env/sp5/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp5/config/client.toml b/test/e2e/localup_env/greenfield_env/sp5/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp5/config/config.toml b/test/e2e/localup_env/greenfield_env/sp5/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp5/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp5/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp5/config/node_key.json new file mode 100644 index 000000000..e10d1a6e9 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"vxC7yOsEEn/J2HienS1VWTBlKEOFpBtoiOfPhbI00cGDvuJab21wqjrmeeippU15gCFgfjLbRUtbth7BpYYsTw=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp5/config/priv_validator_key.json new file mode 100644 index 000000000..7b09d24d3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "80FBA5972CABA45951DBBB021A55B018F772129B", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "hJKmPXF0CggLuy5vyBwp91dzkALtgM0x5WfTAjVtOec=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "6j5KS25Oveu2sf5Xf24/r/wwPwtaukaHKfVQnygZsWSEkqY9cXQKCAu7Lm/IHCn3V3OQAu2AzTHlZ9MCNW055w==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp5/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/fund_info b/test/e2e/localup_env/greenfield_env/sp5/fund_info new file mode 100644 index 000000000..cacc3354d --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/fund_info @@ -0,0 +1,13 @@ + +- address: 0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57 + name: sp5_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"Ak2psI8nwiVTWXpKRab8rW2fvh9cHyEZkeeHvdz7Si7Y"}' + pubkey_hex: 024da9b08f27c22553597a4a45a6fcad6d9fbe1f5c1f211991e787bddcfb4a2ed8 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +extend solar solar tissue chest bicycle laugh release series uniform common pen grid shallow good joke blouse involve shrug cushion october broom tag demand + diff --git a/test/e2e/localup_env/greenfield_env/sp5/info b/test/e2e/localup_env/greenfield_env/sp5/info new file mode 100644 index 000000000..0127e9dba --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/info @@ -0,0 +1,13 @@ + +- address: 0xafe242857feB1ae49678C301Fb41571C16b99E7c + name: sp5 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A+B4HsI+3/ge8b+V2GnDiyRqZA/wvRTV8KI9+TevBZEB"}' + pubkey_hex: 03e0781ec23edff81ef1bf95d869c38b246a640ff0bd14d5f0a23df937af059101 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +analyst shoulder artist arrow off lyrics work bomb net age witness before adapt add connect attend cactus harvest actual apple decide lava ill access + diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/afe242857feb1ae49678c301fb41571c16b99e7c.address b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/afe242857feb1ae49678c301fb41571c16b99e7c.address new file mode 100644 index 000000000..dcdc6f546 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/afe242857feb1ae49678c301fb41571c16b99e7c.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4zMTMyMzcgKzA4MDAgQ1NUIG09KzAuMDcxNDg0MTc4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZF8tcS1EczlIblNmWmxPLSJ9.5J1CQTZqNVNjYldo_nZXv9hx7f39G0Q3yxA1jyYH3AEQkNYj1ye-2Q.wuk21llNTD7XQpD-.2374G6Jy0KzVqY-KVU8qcnMsryzQapp4-7gdPIt547_RXnc-VRcbe9LBjL3nwZ0nBdouJ5h_lQ8Cuh_R1mG0XLkBlPIuGiQmsVBNmHYwujgQLqdkFko4DScwfY87GAKb-qA4lmGgTSDAQgh3YEDA3KY1f8km82fpxQgPLaZ_E_C76nJWNFIDbZH0Z5p0bhOpGxoZfx41IE0UznZcWz8qdkxF51YEbq_8ose-trE7THjzlg.0S1f9R5VrnNdUK_Aou_69Q \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/b97b0ec1537b2f58d5619b11f7f276c7cb7c7c57.address b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/b97b0ec1537b2f58d5619b11f7f276c7cb7c7c57.address new file mode 100644 index 000000000..757fdbbb2 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/b97b0ec1537b2f58d5619b11f7f276c7cb7c7c57.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC40MTQ3NTIgKzA4MDAgQ1NUIG09KzAuMDc0NDM1OTYzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiWERWY1RVTS1mRDh6NDNsRSJ9.zukeJBqkMm8QxgJ_YJpP-n9iSiu51ark7VEuXL8LKr-2iyvTKUYJag.kX8uhIZ8bveJlbp_.4iJvW26XdIo-3NJmLviDWgx77WN35W1QFWVs3PQr__8IYGOC0mSOgRWjbdSMGmYU-2Ny8H_eJJkPp5JwgftM-08kbMGQgLFtOdz-jmFzwyeSGFxpE5yauvYDBQtCMknjo5nxap6NUFf05o9LLAZYKXfeO92NTelw4c0fz3yufR1_MiNNdmJFcrqNDPre8lyfb8UvQmzjoVWUDaHyzhF6j25MXpVi2TyDCM0V8C6rxbxLHtaMal0rSDPX.SLApdVBCgsF4gIYpIGVpKA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/c3fe7faafac49dcc9b883db1e1d669acd368b10b.address b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/c3fe7faafac49dcc9b883db1e1d669acd368b10b.address new file mode 100644 index 000000000..24dd76ff8 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/c3fe7faafac49dcc9b883db1e1d669acd368b10b.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC42MTQ4MDYgKzA4MDAgQ1NUIG09KzAuMDc0NjI3MTM4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiRVpRY0I1X1VGOHBQaEcyYyJ9.Z1jcJO7Sbf-tzuSWeaEU0qjAD44yuJ4EJxU4KZBw3i-4bsxUpncOpQ.GoTjwUKrIjwbXZRm.pJKbGPYGr3p4vwFyJzef-EYQgW-mioOWNcRBq1axddYpvCce2n48ek1EG-7S6DrVcdtu6P602pLgtfWfVmY_4tFuQmY6JQkH-_5Uv_admlCW4z1M5GhBtVTHQq9sAGvAoOOCFryJQf79gC5pS6-gTxbPUdGFHn7wvLXl3QMdPxMRHf0GgndrgLj6u6shRETlqnmilSM7az7IJjtszlkAP7rnwE0DHWXwTvVHux4VaE00vEFMRPs23G_QsM6PDw.7HkbZq7l4WijtytZdPEpUw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/f448053863ed90b52ae96a21acc936c84907bc11.address b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/f448053863ed90b52ae96a21acc936c84907bc11.address new file mode 100644 index 000000000..74aa5e403 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/f448053863ed90b52ae96a21acc936c84907bc11.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC41MTQ0NDkgKzA4MDAgQ1NUIG09KzAuMDczNTAzODM3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiNGhVRE9jMXFPX0duRVd4NiJ9.l4JWvt9fiPMY9ztOVTGKC_D5rHj2i0XshozbKvbORmmvtKuSxEjMNQ.HWCpuDz-pXVwiAO2.-mMHxeio0-OhPm4nj4j4YkKrbjv-9i2dZJe4XbSWF4Vr6xvyxKiu5YIqw4DjxwMaPNan40yu1L0CP8xEF1HbeA0Y1RAGB00Nopu6YBDwckSjAmZrQnDhJxxehLkAysSm3PqK9RZfRyUYZlqcWj2OdFOU8r3Fc3D2iflnCiHEjJgWl0cO9XLi0SrsG8keT7cPbnA9pa0mjKVqis8B14xertF5G5ni04m3ZeKPccKjPR49Ep3yK_83EmnH.GHmPKp7Z5BVyKhsNGMfD-Q \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5.info b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5.info new file mode 100644 index 000000000..6e1ab7965 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC4zMDc5MzcgKzA4MDAgQ1NUIG09KzAuMDY2MTgzOTI1IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiekZPdnRlRk94bm1BVW4yTCJ9.QWCqhFszWqWsj13kq6hFdCxh3Ef9Q2AvsVuVy28rDEg1jyoWdenf8A.3GyFTWuEGFrA-Elc.LoYp1CwMjKSScdPFUk5mNWFTMjxXklAr1C_vdzzfYXLljQBGYAjqAvo7-EkWC_kgezhCea9bxIEg2qDZ7bA40s1qscQce0n9atwDVBqngOIa5x9KVG32DwB8Jf8AG0iNNyeHTygTOna_eOptTvXSftibsyqP_UfUt8XimtuKEsTZftmiGKn7SqcNac3Y3qYHkkgPURkr9ZlGs_NN448G2lSZUd4KVUV8zkLI4VuYoLDx5soczyLoBvYzPyXoJO-pW6JYDy6VZ3go4hwro4cl9D8GK0fmlyu7b-4nqouXP9xOQ-WzPE88uVZG_OMru6OATK-7_PpUr815kRPbNZI--vW_Z9fN7PdE-m3-rcvJ2H7GtBV2zW4zycbQGotA89YVV70FLpJ9vwpATn1WJBnhI2mnOgmVrxwTX80nIYZwxEdGp9EGNA93GblS70bVGYeNn-0hOW3W5nWe0BPagWpnac1v.aXzK_-dqV1fBhUi7dKA9nQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_approval.info b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_approval.info new file mode 100644 index 000000000..c9b7046ae --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC42MDkxMDkgKzA4MDAgQ1NUIG09KzAuMDY4OTMxMDMxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiY0Uybnc1X2UwUHNpVlg3cCJ9.vo70bm0yNLtYtSeY3nuA5yGclgqW58q21vIZ1PJFVtXqRvX9KnbD8A.68JBgDDzIAyIB5el.DavXBD4BQUAYNk-K5loiND4RwVFHXjQRUdARv-ILKG3HE8M0hgZ62v9CwuTHoBh9LabebFsKzhPLZ5XuFnp8fM2cD21FwEyDBLyZe3GkLplKgFfRNh5-xGk6WzTR6cobA6fjgPCb9QM0E3liVyzklNl2ekB2C-5gKUbdNKsT73MgxIv0vhg48iMkiGwRCOs-5Bbiw_14AJ2EzSyB4JlENKa89IoMzrewe5VaKjxljGa6Ewe_991pmS8Y-2RRK1-R_RDqVTcajhUPv1w7EZG67_XSvlAFmtDUJbpXCLkygoh5pBArpDXCzVP8jTSAj_vNVDrwt-2CA-csuGQOjyka7XkOrOy_Cx3SVzKMYVQw98ZAamfNWr9kDhHCGAmQYsCHa85I3hsIxdnbtyrIs7HomwD06Dgv4sWaPomCJB-6J99sT4qnqUt3rgqmI_N_XnBY-3TS_T5R6166qsXQMDWrOZEfSQdjwUN9W1UB7Pv7pphL19rUA1Db.nk8A4ufrEB03Ey0rGGD6yw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_fund.info b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_fund.info new file mode 100644 index 000000000..23582ef80 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC40MDkwODQgKzA4MDAgQ1NUIG09KzAuMDY4NzY3NjQzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibTZ1YjNaeFNxTDk5WFhaZSJ9.uVTVyP2GZ501BiKa6i2Iu50FfyycVR1VPxpQhh8ahHdfDY1GCM5Tbg.3NEdOMt7k-LuSDFB.4-dT3Oqufq2pd_A3cBG6GfYqKZUaygrBdggMTrZERFXSivW8pf8Z_H0bzbr_o60TG3Or8ExEPXV0xnJW-DLXklhM2vgdO6x9cW3MGiJWm201fnM3DIbuNPYPijw_nkjJgkVtOlZk0u85s3k4uXaAQH6imy0DykI8oTkqIvO-EdM-BfMO5NHBcRK2PIBFq2HbSoCKwarxLNY4kUltcEMRwlFFPBDmndR82S5oDU2diCyKPVaflB7cHXsnv_t8F-FvbaZjAj9XovTx1PCZVo17u1nqPip02dkhck4gYXsNfSfTOmC8S6YyEvWNMGe2JL4hB-Uj63gaeG5s8XrH2Y4xMcAgMnurOpSsj7kODYk4Ss7Lyybw_ZHFRu60kamkrBTDRAfQrfBEM9xPTMBw6kKZ6HmzHtS8f9i42jqOAaDGBbkY3fxtXdaAqPoDdG_RRkCzexkeEYRoTdGTNJj94HVZ8qAmihrawfj1-sX5.7LmDkmPndHaU3Abgg59LNg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_seal.info b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_seal.info new file mode 100644 index 000000000..471078ea6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/keyring-test/sp5_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC41MDg5OTIgKzA4MDAgQ1NUIG09KzAuMDY4MDQ2OTIwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoibW5Md0lVUXNxZzhBZnFjMyJ9.fSUhaRNoA0_N6om8sLeJBSvJVZgwQ692ya6m5HQ3bdU8QZ-cwAHCNQ.5puUsqlIm5jtJxc-.u-ec5S_imqTdO_Pq3wgSUa6BBxhCx5GiAbVNForLGhpAdEKMeLLD5Yx0uclrIXGiRBfeopX6wkU2UlpO94rQovIj2Kisiv2OZTCVBRev30uJtolJsVOjE6gUWY1-Zwo88fW-rUB5v8DLUPqRXwrazNFYj1RFjDXzZEUhG4NiHNVSniuSXFr5ghjth9Wpi0B3iBVDDuuXlEfA_yvIVGS8mD_Pz_CSsnfGvU1IsQaNsuvJm1dHlnNC9kvmIT3K1URpIGAiqADZxlqO6K_2LqyfP5b2NF1_LkFuSBclVDEZYbH6cJeir1CsI5v8OCzw2ScSKLB44gvMBeqZMdEec_cNYRje_gDb_uNehTV8DnNcKLiinBz2uKdlzh_LNHJTFHQ2BmK6zonMPGcvvftmk-sj9ENobu1AIN-3g8yzwjA-dQzFcz2HoN4uQcAHfZ0LFGfrrpGDbQQljb5NfWPymS7SqcCYvUT6ny-gQ2bT.09gvHCU_pImVq-x4Q9K4Qw \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp5/seal_info b/test/e2e/localup_env/greenfield_env/sp5/seal_info new file mode 100644 index 000000000..d80cf1c5a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp5/seal_info @@ -0,0 +1,13 @@ + +- address: 0xF448053863ED90b52AE96a21acC936c84907Bc11 + name: sp5_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A86pZkCA2EFtKz/r9HeKu7cTaJFofD1Q1IK+y/N9apdN"}' + pubkey_hex: 03cea9664080d8416d2b3febf4778abbb7136891687c3d50d482becbf37d6a974d + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +glide time pudding aware guess wrap dinosaur carbon oil coin verb bachelor employ rough gown steak giant spatial waste kingdom pretty boss wash voyage + diff --git a/test/e2e/localup_env/greenfield_env/sp6/approval_info b/test/e2e/localup_env/greenfield_env/sp6/approval_info new file mode 100644 index 000000000..af52c3aa3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/approval_info @@ -0,0 +1,13 @@ + +- address: 0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28 + name: sp6_approval + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AicOlaCtcwOjcUSLs+wPMNqS9PUIZHVNWmEHG0jk4+Nm"}' + pubkey_hex: 02270e95a0ad7303a371448bb3ec0f30da92f4f50864754d5a61071b48e4e3e366 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +lyrics poverty leave van parrot grocery mule when panda before dizzy magic horror tackle pretty wrap guard board today mule sun october report remind + diff --git a/test/e2e/localup_env/greenfield_env/sp6/config/app.toml b/test/e2e/localup_env/greenfield_env/sp6/config/app.toml new file mode 100644 index 000000000..71296bd91 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = false + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "uatom" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 0 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 2 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 1 +# chain-id for destination chain(bsc) +dest-chain-id = 2 diff --git a/test/e2e/localup_env/greenfield_env/sp6/config/client.toml b/test/e2e/localup_env/greenfield_env/sp6/config/client.toml new file mode 100644 index 000000000..222695a3f --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/sp6/config/config.toml b/test/e2e/localup_env/greenfield_env/sp6/config/config.toml new file mode 100644 index 000000000..d090cfb77 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "c02g76n3md6r" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = true + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "5s" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/sp6/config/genesis.json b/test/e2e/localup_env/greenfield_env/sp6/config/genesis.json new file mode 100644 index 000000000..9a6018e25 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/config/genesis.json @@ -0,0 +1,1090 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "1", + "challenge_keep_alive_period": "300", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "1000" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "stake", + "amount": "10000000" + } + ], + "max_deposit_period": "172800s" + }, + "voting_params": { + "voting_period": "172800s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "15552000", + "payment_account_count_limit": "200", + "forced_settle_time": "86400", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/config/node_key.json b/test/e2e/localup_env/greenfield_env/sp6/config/node_key.json new file mode 100644 index 000000000..fd7223dcc --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"5YazLH6ZMHDl425oXqOSj87wWKyAS9hvJiHZd7eiuWxMTM2KuIRxZjLr2kM+1LrOqiChdYepvWPhft+WMmZWhw=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/sp6/config/priv_validator_key.json new file mode 100644 index 000000000..742e32915 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "9BD2EF58D23A87FAFCDDA48196D23CE7231C61DA", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "mf6TZ0/TD+fB+AiFzzlXO33htnW9CL5gwWD7HlxnnmY=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "bMo+SN2xMMLVdBfzKPqPT2n8piNkL9a26MGN4Q5lcQKZ/pNnT9MP58H4CIXPOVc7feG2db0IvmDBYPseXGeeZg==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/sp6/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/fund_info b/test/e2e/localup_env/greenfield_env/sp6/fund_info new file mode 100644 index 000000000..9b8a5a5a0 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/fund_info @@ -0,0 +1,13 @@ + +- address: 0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348 + name: sp6_fund + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AiM/W1cz9TLM7bEJpBzFefBA3spt2lqi+ziL0rTjKo+o"}' + pubkey_hex: 02233f5b5733f532ccedb109a41cc579f040deca6dda5aa2fb388bd2b4e32a8fa8 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +absent way beyond half display drink frown reunion seed funny weird canoe media crime example juice cloud enact mention tooth under occur door cat + diff --git a/test/e2e/localup_env/greenfield_env/sp6/info b/test/e2e/localup_env/greenfield_env/sp6/info new file mode 100644 index 000000000..d466b6137 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/info @@ -0,0 +1,13 @@ + +- address: 0x193ae94602232A0600854D26eF322617aDDB2A44 + name: sp6 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A2u0sfn2jCGaBSsY5a6HVSkixzzPvxzYuk8tJqIIZnRb"}' + pubkey_hex: 036bb4b1f9f68c219a052b18e5ae87552922c73ccfbf1cd8ba4f2d26a20866745b + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +ignore addict prison panther daughter divide venture nominee extend ship first advice refuse lobster tissue mean assume purity elder strike suggest sport oven project + diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/193ae94602232a0600854d26ef322617addb2a44.address b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/193ae94602232a0600854d26ef322617addb2a44.address new file mode 100644 index 000000000..b99ea832d --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/193ae94602232a0600854d26ef322617addb2a44.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC43MTYwOTEgKzA4MDAgQ1NUIG09KzAuMDcyODA5NTA5IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiWUtyVDBsMWVnRmZZbnZhTyJ9._aVE-qxOHogZ5bUiuzq-kmcRrJRuql5KdFMYKAqWiypZpOC6RkU0Pg.IT_mBUNMZ3giR4RW.P51XBxXMBP6fIUazMWSFQcgdU_Hpj6_DDqCC28g5LOhDa5JW_3wn7FMwBR2EtT7T4ABWlkMz_f7vpTZgMDMrd-ZImfyuaZYUzXXUFittIIoaCBIk0b6_rQIkuWob8Wi8hO9ML-gI56F-a0-v5lliWJCcx00J-iXrgYer12TU0XQkfv9AQqsmA3SjIqitx0n_lZXvTnhkti8l7K2qlPUpxgixdCGBdWM3SomHHMeflLZouQ.k5RzaCrlP1A3QtwmX-Tv4A \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/73b3725eb1b19d0878c79096d943986bf5f69461.address b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/73b3725eb1b19d0878c79096d943986bf5f69461.address new file mode 100644 index 000000000..a957eed47 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/73b3725eb1b19d0878c79096d943986bf5f69461.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC45MTQ3NjggKzA4MDAgQ1NUIG09KzAuMDc0NTg5NjA4IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZWtHWFNLSFVhLU9US1VuRCJ9.D9QNxXNZ0vR_Df7Vb87oDL4jUsgNqTOw-JqMitRfX7Wu2H_Zc7deqQ.UyfN368hXo6Mcbjh.GLhpSY7UMxQ52y-k3cECAwbOJGc4EPbOCPD7LqG8G3vm-wWwdP75Cm9bdhv1GZ22IQ0JvZ3uhZXfqA1-kovxua3GU08SZ67XqhJbWQwwl1UI7NXbbw-18yyIwtD67ucr6qyimVz17eMORLPwikVv3-RIVRrfL3pGfxvll4K4GTQ9jFBlApFAyT1WDZ_Nfdi9yOloppw7z-nqGDe-VoyxYkL0NCKmkW4phV7mIxv6U_UHjkIT6tMqAy26.ADmMBNcKlKerkYZzIWbPWQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/bced2f15cdb17f8f4e5a55c79f52ca5f15188d28.address b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/bced2f15cdb17f8f4e5a55c79f52ca5f15188d28.address new file mode 100644 index 000000000..57c91d7f6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/bced2f15cdb17f8f4e5a55c79f52ca5f15188d28.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNS4wMTE2MDYgKzA4MDAgQ1NUIG09KzAuMDcxNjk3OTQ2IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiOTAyZG1aWUVvdEplaVhKcyJ9.aNyRFL8HrSskIVF3hbb5HTEEDQIncDkB3vVQD3XEOg3JhQ3-1yYuyQ.OL5cRPaGIMVrOOt5.Eoarj67zuaspKfEx5xKlWNmHOoCwvrWVmaotPZYzFcqsEOb_3pT_6pb59qIi7QlT5QRS_IBxgNmNgXo0VSO-bzbdUjye4qW8rMdZHZfOm5-7HvI0dPp0uPr0CQ5fBEDyuv1RW0CRr2AzAiZS2HWlFvi2KxwNF7-T35hQwTMEoVorgTQ5VCt72H2U__qx4FJXl3mdLz8Yh2gUPrT3PMH8UKdiUvk2td_WmpqwH0f2x0TQ82Tlb_7HbMnvAk-KTA.ruG_gLrnk3rVGsndGC_j0A \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/db6b207dd6c700955c25ba03c83c60e5d1ce6348.address b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/db6b207dd6c700955c25ba03c83c60e5d1ce6348.address new file mode 100644 index 000000000..8c1056698 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/db6b207dd6c700955c25ba03c83c60e5d1ce6348.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC44MTUzMDcgKzA4MDAgQ1NUIG09KzAuMDczOTc5MzI3IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiUnlSc0IwUnVIVE1ITU85SiJ9.t55UuI-rdrnLNTYmrI7h2Ef4v21zlpSaloLG1709rkazwErQArnYoQ.GPsLFafemTGjD-Ym.0I-MGC7q61vb7LInTe2EfCUH2JyY4zkf0tfNTS8hFPbFiB54A5XbnTwnb9ihAWMdY4lTJ99F06xlok4Wj-xCF1bJ9AxuvYNU_mkPSzchTczYDBFGiYlZW_gARUOpaxaYKVLCIA9xePK5hlwJ2T6r7gHVStRfEnpLznZDXeL6VTsb8MWPJuaCYXOJPVPRr0w2T0gDmam1w1qx7e3USOJzS0wcs14ZJ2cU7SJ4kegc9f7xMhHkYBN13vKV.Z1oQD97DQrSTxmteM36_gA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6.info b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6.info new file mode 100644 index 000000000..ea45fa887 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC43MTA0OTQgKzA4MDAgQ1NUIG09KzAuMDY3MjEyNDIxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiZG9XVjRfd2ZBb2FRaWZYTCJ9.z5YX_jmsBTqLwRK1fe-4HQW40Rs2tuVAiQ4uwEAAZcoIrKfYyEuu4w.jNt-ApMp6Q6sX0WB.ZCKHWHVRdyq3D17FCM-iLpu90WYbpJyfJQ0vnAsRMZfTfhtcGhXqXp_9a6FgKytrguemwzv9ePvS70gepnmazha7eEZIAZaIbKFF_FcquP0iVz1IdDc50MsehyCeDAy_ry84mvgVUae7-B59OKw6KWjZIxblvzqFW9__wZBon9IqhEqeIVDCY0WuZPzLJnoDwiCZK36mF-0aVNIBqzj79GyYyaXZV5jQWU9lGICkdEV9qbrGo4qLw0eP7Q-UDtlQNoYwNI8UBtWwX9sr1DI7NAUwSC3Pr8Sy4uxefss--RioF9UKwddhCkgCfT4E-1rJoI-pQA2wKV1mP6WkhzjaSn2dow7dJLwyY6I6tQKu544gXFM3ITLcsXfDzPSMNngyyl1rrknN25MJQrxfZbfANGuSrx9wpwx56X1YG2tjWK6KEEF7yq5LQ0u2U2_o9kh-F4zIX3JnmyoxEMuf_OaIit7h.jWl7wZ1EVtqNxjF41dNO_g \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_approval.info b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_approval.info new file mode 100644 index 000000000..19c81cee2 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_approval.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNS4wMDYzMzMgKzA4MDAgQ1NUIG09KzAuMDY2NDI0MzIzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiWGRtcHE3Q0QwcHNWeDZnaiJ9.2eJXGuHJTo1i67m7F3P0JoPS0KtagPjlYmJQM5LbVjka2on3Bx29oQ.f0Q6P7PT3CJeGqqx.iLfXU2E_vO7uRHXN7VIwzw6imeidOPutRaS0Zen0lNaNByXTuS6qHPjlFSD5TbeaYGgrrwn701gnimNwGPawZ-7gJNFk6xbb9FW85WvHEEotVFRDNvrlupeEUT5GUfAZQ9Ja5nfXxmziLiG7804Jm6NfZf_x6h8CQWw_CJ526SEmjCRGo0xLjG2kG_MJcata90myiJTrM7lbmpwlRpLhQ53M33UnZ97KJIwU0rxypUO1dE6EyHWxjpdA_bPJ3kKsWZgRCxsTjCrKzC16ED9J5VTWdqnXRMpffi21yPOGLNOaNbIpZTNDEli-YLwuFUUSgKlmHtTTqjvzZwc-dIVpaWhRZ8ql1ye1AiI6h5cs0IP5SBeJxquGxb3py1Og9bJ93_5YWphu5UXQB3IVp9DF7EhEsQnFCaMMeGzBGWcGnlkvY1uXguzoZ3D2yg79WDoIoTdU1nEaVfdSXIJTHUrYpcXUNpgpge360wP1H8TKVpeqyZjOO3iC.Dxn0PXeArhmWU56euaHElg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_fund.info b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_fund.info new file mode 100644 index 000000000..d27c416e8 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_fund.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC44MTAwMDcgKzA4MDAgQ1NUIG09KzAuMDY4Njc5OTAwIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiX3UtWWhVZTAwM2Q5eWxzbCJ9.qivH3wIgPLF6myLGgjfL9YUgl4hfE1irrmed2xXq4pKY2x1otOjrFA.qxs2GDyrZL8zLCdu.F4OgI7-0A3cbHy3IJVe3trBTFhWcL4YMGUECwgDq3cstR-RaUSehAqvWFHfxtE9ROrHSQ5U5okRxkezlTw91h5rRKPzZVjzD38yMg6P4gwMcEYMM4fe3z4qxy5ec7uwheWfqm0sv5ruZPgWbf08cEC2mMtD2FJuTQ3Fv49RKekQfOerivE9U4tjV7c8Jn1-ZkGl6suwhgYYvQ6e8SlGMFVSeBGuum2lWH4TSEwoGshL0SpN21PvK-4lN69iEKXNFdusPN5cXkU4O8hQQ8iH9zmEpkHW2F56xU7lFXINVWn-5AqN3tBTISBMoD9ljId2q512w05HdYWaNdHSDWNy3UDeHTd7oidSSW5Co8cAhabGXswEiICa3hkyC--lN0efAGSzbr5jyabHuzOVkmI3F6VzytZ2kLO8Jj4xPTDdJjGVOAsOjddPh_7BfsmMJCXCmqcfKWnHdvsnc3NOZ2Zf8qr_FWGNd5GOKM9pd.3xds2R-CtxJ3lXQZuLaWZg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_seal.info b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_seal.info new file mode 100644 index 000000000..60f05aed8 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/keyring-test/sp6_seal.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowNC45MDkyNzkgKzA4MDAgQ1NUIG09KzAuMDY5MTAwMTgyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiNk9qNk1RVTdKMC12RUM0MiJ9.vr1NA9hSojDvE9xlvATg6L5Mt9DGv0FqGpR2zhadp655T38_Dy3u1Q.Sp8YxRnWiLRrrISJ.DBVqT6RY-hVDMc5__Gmezuk2mf8rkqilPbCUCVjA7yIx9LLD30-iluvV6fh_t8BRLP_mRpsRPbA9JNGZWQzph8YsPYjTd0irsbotOT9CfKF64mj2Y3u3bAuwl3Ay1a9fseoYsWAzb16e-HphejB0g_LoyZdGq43I2XbUVzxXFjm2dHGJ6kH1lYVeNwQjWRrj8VVe9Jj6o23CzWOvo0icnWnsXzn25Y0eh9bGFZoZICv110zST2CPS0qM1-c7-GqzvjWehRNG2OcfyqE6rmGEuyvnp44G9-qbrKvb8kxv9HMjbJEnGECENA_eQPcWLLKspF8KIV2ozfYvtRUmgNVbOAJNnYHv8zGefbNGEuncanT-cT_wakNaYg5cmD-dnoOs7HV4gZflOKoJ61Ji88HCIPSE1QlQYtS3cG0RcbseclkvlYoAfG2DX2NGc8c4pNlhjO-7g9B6RLPXazgbbdg2FEIx9mDTY0mXKWwG.MIpw9LhbPcd3BXg9DzmaGA \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/sp6/seal_info b/test/e2e/localup_env/greenfield_env/sp6/seal_info new file mode 100644 index 000000000..114506195 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/sp6/seal_info @@ -0,0 +1,13 @@ + +- address: 0x73B3725eB1B19D0878c79096D943986bF5F69461 + name: sp6_seal + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AyUJjZWAxCbFvbFdC4juKHYWnxgfI1MFhGX7HsMuOjzJ"}' + pubkey_hex: 0325098d9580c426c5bdb15d0b88ee2876169f181f2353058465fb1ec32e3a3cc9 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +cost town bone wash work crop region mechanic antenna host crew come slab canoe industry liquid absorb raccoon render tenant talk casual obvious estate + diff --git a/test/e2e/localup_env/greenfield_env/validator0/bls_info b/test/e2e/localup_env/greenfield_env/validator0/bls_info new file mode 100644 index 000000000..07cde3a19 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/bls_info @@ -0,0 +1,13 @@ + +- address: 0x68F6033A60565f53dADBe0ddC8d60102F026Ec14 + name: validator_bls0 + pubkey: '{"@type":"/cosmos.crypto.eth.bls.PubKey","key":"ooOwy0JraQYnHkS3baqolWnm/49w1eIqOjn65Gj2AzpgVl9T2tvg3cjWAQLwJuwU"}' + pubkey_hex: a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +fortune bubble vacant amount reflect rent vanish primary miracle magic material cricket acoustic cover cupboard artefact adapt clarify grunt vicious cousin mad monitor hat + diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/app.toml b/test/e2e/localup_env/greenfield_env/validator0/config/app.toml new file mode 100644 index 000000000..15801fd94 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/app.toml @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = true + +# Swagger defines if swagger documentation should automatically be registered. +swagger = true + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "BNB" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 10 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 0 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 18 +# chain-id for destination chain(bsc) +dest-chain-id = 714 diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/app.toml-e b/test/e2e/localup_env/greenfield_env/validator0/config/app.toml-e new file mode 100644 index 000000000..6c68de3aa --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/app.toml-e @@ -0,0 +1,279 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Base Configuration ### +############################################################################### + +# The minimum gas prices a validator is willing to accept for processing a +# transaction. A transaction's fees must meet the minimum of any denomination +# specified in this config (e.g. 0.25token1;0.0001token2). +minimum-gas-prices = "5000000000BNB" + +# default: the last 362880 states are kept, pruning at 10 block intervals +# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node) +# everything: 2 latest states will be kept; pruning at 10 block intervals. +# custom: allow pruning options to be manually specified through 'pruning-keep-recent', and 'pruning-interval' +pruning = "default" + +# These are applied if and only if the pruning strategy is custom. +pruning-keep-recent = "0" +pruning-interval = "0" + +# HaltHeight contains a non-zero block height at which a node will gracefully +# halt and shutdown that can be used to assist upgrades and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-height = 0 + +# HaltTime contains a non-zero minimum block time (in Unix seconds) at which +# a node will gracefully halt and shutdown that can be used to assist upgrades +# and testing. +# +# Note: Commitment of state will be attempted on the corresponding block. +halt-time = 0 + +# MinRetainBlocks defines the minimum block height offset from the current +# block being committed, such that all blocks past this offset are pruned +# from Tendermint. It is used as part of the process of determining the +# ResponseCommit.RetainHeight value during ABCI Commit. A value of 0 indicates +# that no blocks should be pruned. +# +# This configuration value is only responsible for pruning Tendermint blocks. +# It has no bearing on application state pruning which is determined by the +# "pruning-*" configurations. +# +# Note: Tendermint block pruning is dependant on this parameter in conunction +# with the unbonding (safety threshold) period, state pruning and state sync +# snapshot parameters to determine the correct minimum value of +# ResponseCommit.RetainHeight. +min-retain-blocks = 0 + +# InterBlockCache enables inter-block caching. +inter-block-cache = true + +# IndexEvents defines the set of events in the form {eventType}.{attributeKey}, +# which informs Tendermint what to index. If empty, all events will be indexed. +# +# Example: +# ["message.sender", "message.recipient"] +index-events = [] + +# IavlCacheSize set the size of the iavl tree cache. +# Default cache size is 50mb. +iavl-cache-size = 781250 + +# IavlDisableFastNode enables or disables the fast node feature of IAVL. +# Default is false. +iavl-disable-fastnode = false + +# AppDBBackend defines the database backend type to use for the application and snapshots DBs. +# An empty string indicates that a fallback will be used. +# First fallback is the deprecated compile-time types.DBBackend value. +# Second fallback (if the types.DBBackend also isn't set), is the db-backend value set in Tendermint's config.toml. +app-db-backend = "" + +############################################################################### +### Upgrade Configuration ### +############################################################################### + +# Example: +# [[upgrade]] +# name = "BEP111" +# height = 100 +# info = "https://github.com/bnb-chain/BEPs/pull/111" + +# [[upgrade]] +# name = "BEP112" +# height = 120 +# info = "https://github.com/bnb-chain/BEPs/pull/112" + +############################################################################### +### Telemetry Configuration ### +############################################################################### + +[telemetry] + +# Prefixed with keys to separate services. +service-name = "" + +# Enabled enables the application telemetry functionality. When enabled, +# an in-memory sink is also enabled by default. Operators may also enabled +# other sinks such as Prometheus. +enabled = false + +# Enable prefixing gauge values with hostname. +enable-hostname = false + +# Enable adding hostname to labels. +enable-hostname-label = false + +# Enable adding service to labels. +enable-service-label = false + +# PrometheusRetentionTime, when positive, enables a Prometheus metrics sink. +prometheus-retention-time = 0 + +# GlobalLabels defines a global set of name/value label tuples applied to all +# metrics emitted using the wrapper functions defined in telemetry package. +# +# Example: +# [["chain_id", "cosmoshub-1"]] +global-labels = [ +] + +############################################################################### +### API Configuration ### +############################################################################### + +[api] + +# Enable defines if the API server should be enabled. +enable = true + +# Swagger defines if swagger documentation should automatically be registered. +swagger = false + +# Address defines the API server to listen on. +address = "tcp://0.0.0.0:1317" + +# MaxOpenConnections defines the number of maximum open connections. +max-open-connections = 1000 + +# RPCReadTimeout defines the Tendermint RPC read timeout (in seconds). +rpc-read-timeout = 10 + +# RPCWriteTimeout defines the Tendermint RPC write timeout (in seconds). +rpc-write-timeout = 0 + +# RPCMaxBodyBytes defines the Tendermint maximum response body (in bytes). +rpc-max-body-bytes = 1000000 + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enabled-unsafe-cors = false + +############################################################################### +### Rosetta Configuration ### +############################################################################### + +[rosetta] + +# Enable defines if the Rosetta API server should be enabled. +enable = false + +# Address defines the Rosetta API server to listen on. +address = ":8080" + +# Network defines the name of the blockchain that will be returned by Rosetta. +blockchain = "app" + +# Network defines the name of the network that will be returned by Rosetta. +network = "network" + +# Retries defines the number of retries when connecting to the node before failing. +retries = 3 + +# Offline defines if Rosetta server should run in offline mode. +offline = false + +# EnableDefaultSuggestedFee defines if the server should suggest fee by default. +# If 'construction/medata' is called without gas limit and gas price, +# suggested fee based on gas-to-suggest and denom-to-suggest will be given. +enable-fee-suggestion = false + +# GasToSuggest defines gas limit when calculating the fee +gas-to-suggest = 210000 + +# DenomToSuggest defines the defult denom for fee suggestion. +# Price must be in minimum-gas-prices. +denom-to-suggest = "BNB" + +############################################################################### +### gRPC Configuration ### +############################################################################### + +[grpc] + +# Enable defines if the gRPC server should be enabled. +enable = true + +# Address defines the gRPC server address to bind to. +address = "0.0.0.0:9090" + +# MaxRecvMsgSize defines the max message size in bytes the server can receive. +# The default value is 10MB. +max-recv-msg-size = "10485760" + +# MaxSendMsgSize defines the max message size in bytes the server can send. +# The default value is math.MaxInt32. +max-send-msg-size = "2147483647" + +############################################################################### +### gRPC Web Configuration ### +############################################################################### + +[grpc-web] + +# GRPCWebEnable defines if the gRPC-web should be enabled. +# NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op. +enable = true + +# Address defines the gRPC-web server address to bind to. +address = "0.0.0.0:9091" + +# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk). +enable-unsafe-cors = false + +############################################################################### +### State Sync Configuration ### +############################################################################### + +# State sync snapshots allow other nodes to rapidly join the network without replaying historical +# blocks, instead downloading and applying a snapshot of the application state at a given height. +[state-sync] + +# snapshot-interval specifies the block interval at which local state sync snapshots are +# taken (0 to disable). +snapshot-interval = 10 + +# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all). +snapshot-keep-recent = 0 + +############################################################################### +### JSONRPC Configuration ### +############################################################################### + +[json-rpc] + +api = "eth,net" + +address = "0.0.0.0:8545" + +ws-address = "0.0.0.0:8546" + +enable = true + +http-timeout = "30s" + +http-idle-timeout = "2m0s" + +max-open-connections = 0 + +############################################################################### +### TLS Configuration ### +############################################################################### + +[tls] + +certificate-path = "" + +key-path = "" + +############################################################################### +### CrossChain Config ### +############################################################################### +[cross-chain] +# chain-id for current chain +src-chain-id = 18 +# chain-id for destination chain(bsc) +dest-chain-id = 714 diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/client.toml b/test/e2e/localup_env/greenfield_env/validator0/config/client.toml new file mode 100644 index 000000000..fd4f86795 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/client.toml @@ -0,0 +1,17 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +############################################################################### +### Client Configuration ### +############################################################################### + +# The network chain ID +chain-id = "greenfield_9000-121" +# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory) +keyring-backend = "os" +# CLI output format (text|json) +output = "text" +# : to Tendermint RPC interface for this chain +node = "tcp://localhost:26657" +# Transaction broadcasting mode (sync|async|block) +broadcast-mode = "sync" diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/config.toml b/test/e2e/localup_env/greenfield_env/validator0/config/config.toml new file mode 100644 index 000000000..d8b228c30 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/config.toml @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "validator0" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "e72eb0d825acf1dc3cd775c239e425ad2a08cfe9@127.0.0.1:27750" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = false + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = true + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "500ms" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/config.toml-e b/test/e2e/localup_env/greenfield_env/validator0/config/config.toml-e new file mode 100644 index 000000000..85ce8e6ac --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/config.toml-e @@ -0,0 +1,466 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or +# relative to the home directory (e.g. "data"). The home directory is +# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable +# or --home cmd flag. + +####################################################################### +### Main Base Config Options ### +####################################################################### + +# TCP or UNIX socket address of the ABCI application, +# or the name of an ABCI application compiled in with the Tendermint binary +proxy_app = "tcp://127.0.0.1:26658" + +# A custom human readable name for this node +moniker = "validator0" + +# If this node is many blocks behind the tip of the chain, FastSync +# allows them to catchup quickly by downloading blocks in parallel +# and verifying their commits +fast_sync = true + +# Database backend: goleveldb | cleveldb | boltdb | rocksdb | badgerdb +# * goleveldb (github.com/syndtr/goleveldb - most popular implementation) +# - pure go +# - stable +# * cleveldb (uses levigo wrapper) +# - fast +# - requires gcc +# - use cleveldb build tag (go build -tags cleveldb) +# * boltdb (uses etcd's fork of bolt - github.com/etcd-io/bbolt) +# - EXPERIMENTAL +# - may be faster is some use-cases (random reads - indexer) +# - use boltdb build tag (go build -tags boltdb) +# * rocksdb (uses github.com/tecbot/gorocksdb) +# - EXPERIMENTAL +# - requires gcc +# - use rocksdb build tag (go build -tags rocksdb) +# * badgerdb (uses github.com/dgraph-io/badger) +# - EXPERIMENTAL +# - use badgerdb build tag (go build -tags badgerdb) +db_backend = "goleveldb" + +# Database directory +db_dir = "data" + +# Output level for logging, including package level options +log_level = "info" + +# Output format: 'plain' (colored text) or 'json' +log_format = "plain" + +##### additional base config options ##### + +# Path to the JSON file containing the initial validator set and other meta data +genesis_file = "config/genesis.json" + +# Path to the JSON file containing the private key to use as a validator in the consensus protocol +priv_validator_key_file = "config/priv_validator_key.json" + +# Path to the JSON file containing the last sign state of a validator +priv_validator_state_file = "data/priv_validator_state.json" + +# TCP or UNIX socket address for Tendermint to listen on for +# connections from an external PrivValidator process +priv_validator_laddr = "" + +# Path to the JSON file containing the private key to use for node authentication in the p2p protocol +node_key_file = "config/node_key.json" + +# Mechanism to connect to the ABCI application: socket | grpc +abci = "socket" + +# If true, query the ABCI app on connecting to a new peer +# so the app can decide if we should keep the connection or not +filter_peers = false + + +####################################################################### +### Advanced Configuration Options ### +####################################################################### + +####################################################### +### RPC Server Configuration Options ### +####################################################### +[rpc] + +# TCP or UNIX socket address for the RPC server to listen on +laddr = "tcp://127.0.0.1:26657" + +# A list of origins a cross-domain request can be executed from +# Default value '[]' disables cors support +# Use '["*"]' to allow any origin +cors_allowed_origins = [] + +# A list of methods the client is allowed to use with cross-domain requests +cors_allowed_methods = ["HEAD", "GET", "POST", ] + +# A list of non simple headers the client is allowed to use with cross-domain requests +cors_allowed_headers = ["Origin", "Accept", "Content-Type", "X-Requested-With", "X-Server-Time", ] + +# TCP or UNIX socket address for the gRPC server to listen on +# NOTE: This server only supports /broadcast_tx_commit +grpc_laddr = "" + +# Maximum number of simultaneous connections. +# Does not include RPC (HTTP&WebSocket) connections. See max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +grpc_max_open_connections = 900 + +# Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool +unsafe = false + +# Maximum number of simultaneous connections (including WebSocket). +# Does not include gRPC connections. See grpc_max_open_connections +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +# Should be < {ulimit -Sn} - {MaxNumInboundPeers} - {MaxNumOutboundPeers} - {N of wal, db and other open files} +# 1024 - 40 - 10 - 50 = 924 = ~900 +max_open_connections = 900 + +# Maximum number of unique clientIDs that can /subscribe +# If you're using /broadcast_tx_commit, set to the estimated maximum number +# of broadcast_tx_commit calls per block. +max_subscription_clients = 100 + +# Maximum number of unique queries a given client can /subscribe to +# If you're using GRPC (or Local RPC client) and /broadcast_tx_commit, set to +# the estimated # maximum number of broadcast_tx_commit calls per block. +max_subscriptions_per_client = 5 + +# Experimental parameter to specify the maximum number of events a node will +# buffer, per subscription, before returning an error and closing the +# subscription. Must be set to at least 100, but higher values will accommodate +# higher event throughput rates (and will use more memory). +experimental_subscription_buffer_size = 200 + +# Experimental parameter to specify the maximum number of RPC responses that +# can be buffered per WebSocket client. If clients cannot read from the +# WebSocket endpoint fast enough, they will be disconnected, so increasing this +# parameter may reduce the chances of them being disconnected (but will cause +# the node to use more memory). +# +# Must be at least the same as "experimental_subscription_buffer_size", +# otherwise connections could be dropped unnecessarily. This value should +# ideally be somewhat higher than "experimental_subscription_buffer_size" to +# accommodate non-subscription-related RPC responses. +experimental_websocket_write_buffer_size = 200 + +# If a WebSocket client cannot read fast enough, at present we may +# silently drop events instead of generating an error or disconnecting the +# client. +# +# Enabling this experimental parameter will cause the WebSocket connection to +# be closed instead if it cannot read fast enough, allowing for greater +# predictability in subscription behaviour. +experimental_close_on_slow_client = false + +# How long to wait for a tx to be committed during /broadcast_tx_commit. +# WARNING: Using a value larger than 10s will result in increasing the +# global HTTP write timeout, which applies to all connections and endpoints. +# See https://github.com/tendermint/tendermint/issues/3435 +timeout_broadcast_tx_commit = "10s" + +# Maximum size of request body, in bytes +max_body_bytes = 1000000 + +# Maximum size of request header, in bytes +max_header_bytes = 1048576 + +# The path to a file containing certificate that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# If the certificate is signed by a certificate authority, +# the certFile should be the concatenation of the server's certificate, any intermediates, +# and the CA's certificate. +# NOTE: both tls_cert_file and tls_key_file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_cert_file = "" + +# The path to a file containing matching private key that is used to create the HTTPS server. +# Might be either absolute path or path related to Tendermint's config directory. +# NOTE: both tls-cert-file and tls-key-file must be present for Tendermint to create HTTPS server. +# Otherwise, HTTP server is run. +tls_key_file = "" + +# pprof listen address (https://golang.org/pkg/net/http/pprof) +pprof_laddr = "localhost:6060" + +####################################################### +### P2P Configuration Options ### +####################################################### +[p2p] + +# Address to listen for incoming connections +laddr = "tcp://0.0.0.0:26656" + +# Address to advertise to peers for them to dial +# If empty, will use the same port as the laddr, +# and will introspect on the listener or use UPnP +# to figure out the address. ip and port are required +# example: 159.89.10.97:26656 +external_address = "" + +# Comma separated list of seed nodes to connect to +seeds = "" + +# Comma separated list of nodes to keep persistent connections to +persistent_peers = "e72eb0d825acf1dc3cd775c239e425ad2a08cfe9@127.0.0.1:27750" + +# UPNP port forwarding +upnp = false + +# Path to address book +addr_book_file = "config/addrbook.json" + +# Set true for strict address routability rules +# Set false for private or local networks +addr_book_strict = false + +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 + +# List of node IDs, to which a connection will be (re)established ignoring any existing limits +unconditional_peer_ids = "" + +# Maximum pause when redialing a persistent peer (if zero, exponential backoff is used) +persistent_peers_max_dial_period = "0s" + +# Time to wait before flushing messages out on the connection +flush_throttle_timeout = "100ms" + +# Maximum size of a message packet payload, in bytes +max_packet_msg_payload_size = 1024 + +# Rate at which packets can be sent, in bytes/second +send_rate = 5120000 + +# Rate at which packets can be received, in bytes/second +recv_rate = 5120000 + +# Set true to enable the peer-exchange reactor +pex = true + +# Seed mode, in which node constantly crawls the network and looks for +# peers. If another node asks it for addresses, it responds and disconnects. +# +# Does not work if the peer-exchange reactor is disabled. +seed_mode = false + +# Comma separated list of peer IDs to keep private (will not be gossiped to other peers) +private_peer_ids = "" + +# Toggle to disable guard against peers connecting from the same ip. +allow_duplicate_ip = false + +# Peer connection configuration. +handshake_timeout = "20s" +dial_timeout = "3s" + +####################################################### +### Mempool Configuration Option ### +####################################################### +[mempool] + +# Mempool version to use: +# 1) "v0" - (default) FIFO mempool. +# 2) "v1" - prioritized mempool. +version = "v0" + +recheck = true +broadcast = true +wal_dir = "" + +# Maximum number of transactions in the mempool +size = 5000 + +# Limit the total size of all txs in the mempool. +# This only accounts for raw transactions (e.g. given 1MB transactions and +# max_txs_bytes=5MB, mempool will only accept 5 transactions). +max_txs_bytes = 1073741824 + +# Size of the cache (used to filter transactions we saw earlier) in transactions +cache_size = 10000 + +# Do not remove invalid transactions from the cache (default: false) +# Set to true if it's not possible for any invalid transaction to become valid +# again in the future. +keep-invalid-txs-in-cache = false + +# Maximum size of a single transaction. +# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}. +max_tx_bytes = 1048576 + +# Maximum size of a batch of transactions to send to a peer +# Including space needed by encoding (one varint per transaction). +# XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 +max_batch_bytes = 0 + +# ttl-duration, if non-zero, defines the maximum amount of time a transaction +# can exist for in the mempool. +# +# Note, if ttl-num-blocks is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if it's +# insertion time into the mempool is beyond ttl-duration. +ttl-duration = "0s" + +# ttl-num-blocks, if non-zero, defines the maximum number of blocks a transaction +# can exist for in the mempool. +# +# Note, if ttl-duration is also defined, a transaction will be removed if it +# has existed in the mempool at least ttl-num-blocks number of blocks or if +# it's insertion time into the mempool is beyond ttl-duration. +ttl-num-blocks = 0 + +####################################################### +### State Sync Configuration Options ### +####################################################### +[statesync] +# State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine +# snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in +# the network to take and serve state machine snapshots. State sync is not attempted if the node +# has any local state (LastBlockHeight > 0). The node will have a truncated block history, +# starting from the height of the snapshot. +enable = false + +# RPC servers (comma-separated) for light client verification of the synced state machine and +# retrieval of state data for node bootstrapping. Also needs a trusted height and corresponding +# header hash obtained from a trusted source, and a period during which validators can be trusted. +# +# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2 +# weeks) during which they can be financially punished (slashed) for misbehavior. +rpc_servers = "" +trust_height = 0 +trust_hash = "" +trust_period = "168h0m0s" + +# Time to spend discovering snapshots before initiating a restore. +discovery_time = "15s" + +# Temporary directory for state sync snapshot chunks, defaults to the OS tempdir (typically /tmp). +# Will create a new, randomly named directory within, and remove it when done. +temp_dir = "" + +# The timeout duration before re-requesting a chunk, possibly from a different +# peer (default: 1 minute). +chunk_request_timeout = "10s" + +# The number of concurrent chunk fetchers to run (default: 1). +chunk_fetchers = "4" + +####################################################### +### Fast Sync Configuration Connections ### +####################################################### +[fastsync] + +# Fast Sync version to use: +# 1) "v0" (default) - the legacy fast sync implementation +# 2) "v1" - refactor of v0 version for better testability +# 2) "v2" - complete redesign of v0, optimized for testability & readability +version = "v0" + +####################################################### +### Consensus Configuration Options ### +####################################################### +[consensus] + +wal_file = "data/cs.wal/wal" + +# How long we wait for a proposal block before prevoting nil +timeout_propose = "3s" +# How much timeout_propose increases with each round +timeout_propose_delta = "500ms" +# How long we wait after receiving +2/3 prevotes for “anything” (ie. not a single block or nil) +timeout_prevote = "1s" +# How much the timeout_prevote increases with each round +timeout_prevote_delta = "500ms" +# How long we wait after receiving +2/3 precommits for “anything” (ie. not a single block or nil) +timeout_precommit = "1s" +# How much the timeout_precommit increases with each round +timeout_precommit_delta = "500ms" +# How long we wait after committing a block, before starting on the new +# height (this gives us a chance to receive some more precommits, even +# though we already have +2/3). +timeout_commit = "500ms" + +# How many blocks to look back to check existence of the node's consensus votes before joining consensus +# When non-zero, the node will panic upon restart +# if the same consensus key was used to sign {double_sign_check_height} last blocks. +# So, validators should stop the state machine, wait for some blocks, and then restart the state machine to avoid panic. +double_sign_check_height = 0 + +# Make progress as soon as we have all the precommits (as if TimeoutCommit = 0) +skip_timeout_commit = false + +# EmptyBlocks mode and possible interval between empty blocks +create_empty_blocks = true +create_empty_blocks_interval = "0s" + +# Reactor sleep duration parameters +peer_gossip_sleep_duration = "100ms" +peer_query_maj23_sleep_duration = "2s" + +####################################################### +### Storage Configuration Options ### +####################################################### +[storage] + +# Set to true to discard ABCI responses from the state store, which can save a +# considerable amount of disk space. Set to false to ensure ABCI responses are +# persisted. ABCI responses are required for /block_results RPC queries, and to +# reindex events in the command-line tool. +discard_abci_responses = false + +####################################################### +### Transaction Indexer Configuration Options ### +####################################################### +[tx_index] + +# What indexer to use for transactions +# +# The application will set which txs to index. In some cases a node operator will be able +# to decide which txs to index based on configuration set in the application. +# +# Options: +# 1) "null" +# 2) "kv" (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend). +# - When "kv" is chosen "tx.height" and "tx.hash" will always be indexed. +# 3) "psql" - the indexer services backed by PostgreSQL. +# When "kv" or "psql" is chosen "tx.height" and "tx.hash" will always be indexed. +indexer = "kv" + +# The PostgreSQL connection configuration, the connection format: +# postgresql://:@:/? +psql-conn = "" + +####################################################### +### Instrumentation Configuration Options ### +####################################################### +[instrumentation] + +# When true, Prometheus metrics are served under /metrics on +# PrometheusListenAddr. +# Check out the documentation for the list of available metrics. +prometheus = false + +# Address to listen for Prometheus collector(s) connections +prometheus_listen_addr = ":26660" + +# Maximum number of simultaneous connections. +# If you want to accept a larger number than the default, make sure +# you increase your OS limits. +# 0 - unlimited. +max_open_connections = 3 + +# Instrumentation namespace +namespace = "tendermint" diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/genesis.json b/test/e2e/localup_env/greenfield_env/validator0/config/genesis.json new file mode 100644 index 000000000..ea7e1d1dc --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/genesis.json @@ -0,0 +1,1504 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "1048576", + "max_gas": "-1", + "time_iota_ms": "10" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [{"description":"The native staking token of the Greenfield.","denom_units":[{"denom":"BNB","exponent":0,"aliases":["wei"]}],"base":"BNB","display":"BNB"}] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "5", + "challenge_keep_alive_period": "50", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "100" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [ + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "description": { + "moniker": "sp0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp0" + }, + "sp_address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "funding_address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "seal_address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "approval_address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "endpoint": "http://127.0.0.1:9033", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A+XuwWH4lqnZ9aQJL2iOjoyM0/YDLSprrae3seLUam41" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "aQp3bbX7gKn0UWPCAhI+4nVop8fGuUGnDSw4fU40Tw5B7TQouXwrTgMg3egZnYKpFcQzFrz5TEAAONZF1/t4fQA=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "description": { + "moniker": "sp1", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp1" + }, + "sp_address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "funding_address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "seal_address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "approval_address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "endpoint": "http://127.0.0.1:9034", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A8f+UW+VSseGvG0S2hkB9in8JSFtvU4bCS9xvkIlZ756" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "7HCp14UJqWLREym2nwRqnXoH5/dqmvCkaroXy5ms/rQgKfMLZCFYBc4NiwMdAW35iyrUl1SunA4JgcAbl41XtQE=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "description": { + "moniker": "sp2", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp2" + }, + "sp_address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "funding_address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "seal_address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "approval_address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "endpoint": "http://127.0.0.1:9035", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A1/BPxotwfW6GvjEJuYcaHSddEbZ5YzmHvL2KuG23h4F" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "lxW9L5fTYYrBLULo/MXjPEBwlfGDA3ujCdgBGixx3qZem1AQqT9pHqkcf190ymSW10velUWPgAYCASPoaFD91wE=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0xe620C05870A2392E4987676b345026E6C6228388", + "description": { + "moniker": "sp3", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp3" + }, + "sp_address": "0xe620C05870A2392E4987676b345026E6C6228388", + "funding_address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "seal_address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "approval_address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "endpoint": "http://127.0.0.1:9036", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A6pPM9Gzp2cKv4I3b2JJKr3Lhtb54KfGY6CYqqV5wxVO" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "uo5kpE07ULWdfyTUiY/R/lq6Xar4Gtbsb3s0mVBScpsbKsRkic8BZSoqKPXgn3mjEBqaGgzW0klKBTftg70KpgA=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "description": { + "moniker": "sp4", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp4" + }, + "sp_address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "funding_address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "seal_address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "approval_address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "endpoint": "http://127.0.0.1:9037", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "AqIAQajN7c2yoJdFcZczChFkV2ADBLdy0P+QmaNg1A0L" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "LeSkBbTchOupG0UbPaY2WUMJz7b0GDZ3MQzEJ+MwRitHR1CoI+vbKyl9i1r6S1VDcYU+5GIjrylpmYG8+PiZRAA=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "description": { + "moniker": "sp5", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp5" + }, + "sp_address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "funding_address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "seal_address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "approval_address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "endpoint": "http://127.0.0.1:9038", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A+B4HsI+3/ge8b+V2GnDiyRqZA/wvRTV8KI9+TevBZEB" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "s2Lc7lk6g+byjt70Zfl+17LJgVH7itP+Qgp51W/fUPQGj22HTPB4Au5xWxa6vUsPz3Tq6xYgBb+qOy8NVarxrgE=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "description": { + "moniker": "sp6", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp6" + }, + "sp_address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "funding_address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "seal_address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "approval_address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "endpoint": "http://127.0.0.1:9039", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A2u0sfn2jCGaBSsY5a6HVSkixzzPvxzYuk8tJqIIZnRb" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "VsbVJPovBI4+QXEM+NESQEXKhQKf0hzy+xrdL80g/W9Nm3su+ZguDO9Tw/Sv3yPP41EFop26zZejk8ciipo2IgA=" + ] + } + ] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "BNB", + "amount": "1000000000000000000" + } + ], + "max_deposit_period": "30s" + }, + "voting_params": { + "voting_period": "30s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "60", + "payment_account_count_limit": "200", + "forced_settle_time": "30", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/genesis.json-e b/test/e2e/localup_env/greenfield_env/validator0/config/genesis.json-e new file mode 100644 index 000000000..bb8dca4f8 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/genesis.json-e @@ -0,0 +1,1504 @@ +{ + "genesis_time": "2023-03-29T04:46:01.714935Z", + "chain_id": "greenfield_9000-121", + "initial_height": "1", + "consensus_params": { + "block": { + "max_bytes": "1048576", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_num_blocks": "100000", + "max_age_duration": "172800000000000", + "max_bytes": "1048576" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] + }, + "version": {} + }, + "app_hash": "", + "app_state": { + "auth": { + "params": { + "max_memo_characters": "256", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "sig_verify_cost_ethsecp256k1": "5000" + }, + "accounts": [ + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "pub_key": null, + "account_number": "0", + "sequence": "0" + }, + { + "@type": "/cosmos.auth.v1beta1.BaseAccount", + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "pub_key": null, + "account_number": "0", + "sequence": "0" + } + ] + }, + "authz": { + "authorization": [] + }, + "bank": { + "params": { + "send_enabled": [], + "default_send_enabled": true + }, + "balances": [ + { + "address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xe620C05870A2392E4987676b345026E6C6228388", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + }, + { + "address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "coins": [ + { + "denom": "BNB", + "amount": "100000000000000000000000000" + } + ] + } + ], + "supply": [], + "denom_metadata": [{"description":"The native staking token of the Greenfield.","denom_units":[{"denom":"BNB","exponent":0,"aliases":["wei"]}],"base":"BNB","display":"BNB"}] + }, + "bridge": { + "params": { + "transfer_out_relayer_fee": "1000000000000000", + "transfer_out_ack_relayer_fee": "0" + } + }, + "challenge": { + "params": { + "challenge_count_per_block": "5", + "challenge_keep_alive_period": "50", + "slash_cooling_off_period": "300", + "slash_amount_size_rate": "0.008500000000000000", + "slash_amount_min": "10000000000000000", + "slash_amount_max": "1000000000000000000", + "reward_validator_ratio": "0.900000000000000000", + "reward_submitter_ratio": "0.001000000000000000", + "reward_submitter_threshold": "1000000000000000", + "heartbeat_interval": "100" + } + }, + "crosschain": { + "params": { + "init_module_balance": "2000000000000000000000000" + } + }, + "distribution": { + "params": { + "community_tax": "0.020000000000000000", + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "withdraw_addr_enabled": true + }, + "fee_pool": { + "community_pool": [] + }, + "delegator_withdraw_infos": [], + "previous_proposer": "", + "outstanding_rewards": [], + "validator_accumulated_commissions": [], + "validator_historical_rewards": [], + "validator_current_rewards": [], + "delegator_starting_infos": [], + "validator_slash_events": [] + }, + "feegrant": { + "allowances": [] + }, + "gashub": { + "params": { + "max_tx_size": "32768", + "min_gas_per_byte": "5", + "msg_gas_params_set": [ + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgExec", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgRevoke", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgSend", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgSubmitProposal", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVote", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.gov.v1.MsgVoteWeighted", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.oracle.v1.MsgClaim", + "fixed_type": { + "fixed_gas": "1000" + } + }, + { + "msg_type_url": "/cosmos.slashing.v1beta1.MsgUnjail", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgBeginRedelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgCreateValidator", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgDelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgEditValidator", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/cosmos.staking.v1beta1.MsgUndelegate", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.bridge.MsgTransferOut", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "fixed_type": { + "fixed_gas": "200000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgEditStorageProvider", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.sp.MsgUpdateSpStoragePrice", + "fixed_type": { + "fixed_gas": "20000000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateBucket", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorBucket", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateBucketInfo", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgSealObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgRejectSealObject", + "fixed_type": { + "fixed_gas": "12000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCopyObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCancelCreateObject", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgCreateGroup", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeleteGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgLeaveGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgUpdateGroupMember", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgMirrorGroup", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgPutPolicy", + "fixed_type": { + "fixed_gas": "2400" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.storage.MsgDeletePolicy", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgCreatePaymentAccount", + "fixed_type": { + "fixed_gas": "200000" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDeposit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgWithdraw", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.payment.MsgDisableRefund", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgSubmit", + "fixed_type": { + "fixed_gas": "1200" + } + }, + { + "msg_type_url": "/bnbchain.greenfield.challenge.MsgAttest", + "fixed_type": { + "fixed_gas": "100" + } + }, + { + "msg_type_url": "/cosmos.authz.v1beta1.MsgGrant", + "grant_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.bank.v1beta1.MsgMultiSend", + "multi_send_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + }, + { + "msg_type_url": "/cosmos.feegrant.v1beta1.MsgGrantAllowance", + "grant_allowance_type": { + "fixed_gas": "800", + "gas_per_item": "800" + } + } + ] + } + }, + "gensp": { + "gensp_txs": [ + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "description": { + "moniker": "sp0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp0" + }, + "sp_address": "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B", + "funding_address": "0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29", + "seal_address": "0x350FF7A2bad0bBf7237b460656B9631704674040", + "approval_address": "0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8", + "endpoint": "http://127.0.0.1:9033", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A+XuwWH4lqnZ9aQJL2iOjoyM0/YDLSprrae3seLUam41" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "aQp3bbX7gKn0UWPCAhI+4nVop8fGuUGnDSw4fU40Tw5B7TQouXwrTgMg3egZnYKpFcQzFrz5TEAAONZF1/t4fQA=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "description": { + "moniker": "sp1", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp1" + }, + "sp_address": "0x2cf731DB95681B799FA0054276C7Ca44def450f8", + "funding_address": "0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666", + "seal_address": "0x989D170F21fE66604044Ff1C82A443F172dd6667", + "approval_address": "0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C", + "endpoint": "http://127.0.0.1:9034", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A8f+UW+VSseGvG0S2hkB9in8JSFtvU4bCS9xvkIlZ756" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "7HCp14UJqWLREym2nwRqnXoH5/dqmvCkaroXy5ms/rQgKfMLZCFYBc4NiwMdAW35iyrUl1SunA4JgcAbl41XtQE=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "description": { + "moniker": "sp2", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp2" + }, + "sp_address": "0x4C1674C0504bad30e023D7B3991824bCC47E193d", + "funding_address": "0x9579ac21386353E45A0c43965991297aF4915a21", + "seal_address": "0x8f0144062E16B9291A28ed8b81e7DA9A09d21499", + "approval_address": "0x1A0454a4569B26926082d812B8E12d11f766D85C", + "endpoint": "http://127.0.0.1:9035", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A1/BPxotwfW6GvjEJuYcaHSddEbZ5YzmHvL2KuG23h4F" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "lxW9L5fTYYrBLULo/MXjPEBwlfGDA3ujCdgBGixx3qZem1AQqT9pHqkcf190ymSW10velUWPgAYCASPoaFD91wE=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0xe620C05870A2392E4987676b345026E6C6228388", + "description": { + "moniker": "sp3", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp3" + }, + "sp_address": "0xe620C05870A2392E4987676b345026E6C6228388", + "funding_address": "0xBa299BB46260bE2cd735988F469896662d279e2F", + "seal_address": "0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC", + "approval_address": "0x6907300e63712a6da9aEE7ffb112b1b1529fB933", + "endpoint": "http://127.0.0.1:9036", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A6pPM9Gzp2cKv4I3b2JJKr3Lhtb54KfGY6CYqqV5wxVO" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "uo5kpE07ULWdfyTUiY/R/lq6Xar4Gtbsb3s0mVBScpsbKsRkic8BZSoqKPXgn3mjEBqaGgzW0klKBTftg70KpgA=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "description": { + "moniker": "sp4", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp4" + }, + "sp_address": "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63", + "funding_address": "0xc91D1896c2d0056B7c233D31F1A673ad5846DC08", + "seal_address": "0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180", + "approval_address": "0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F", + "endpoint": "http://127.0.0.1:9037", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "AqIAQajN7c2yoJdFcZczChFkV2ADBLdy0P+QmaNg1A0L" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "LeSkBbTchOupG0UbPaY2WUMJz7b0GDZ3MQzEJ+MwRitHR1CoI+vbKyl9i1r6S1VDcYU+5GIjrylpmYG8+PiZRAA=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "description": { + "moniker": "sp5", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp5" + }, + "sp_address": "0xafe242857feB1ae49678C301Fb41571C16b99E7c", + "funding_address": "0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57", + "seal_address": "0xF448053863ED90b52AE96a21acC936c84907Bc11", + "approval_address": "0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b", + "endpoint": "http://127.0.0.1:9038", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A+B4HsI+3/ge8b+V2GnDiyRqZA/wvRTV8KI9+TevBZEB" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "s2Lc7lk6g+byjt70Zfl+17LJgVH7itP+Qgp51W/fUPQGj22HTPB4Au5xWxa6vUsPz3Tq6xYgBb+qOy8NVarxrgE=" + ] + }, + { + "body": { + "messages": [ + { + "@type": "/bnbchain.greenfield.sp.MsgCreateStorageProvider", + "creator": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "description": { + "moniker": "sp6", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "detail_sp6" + }, + "sp_address": "0x193ae94602232A0600854D26eF322617aDDB2A44", + "funding_address": "0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348", + "seal_address": "0x73B3725eB1B19D0878c79096D943986bF5F69461", + "approval_address": "0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28", + "endpoint": "http://127.0.0.1:9039", + "deposit": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "read_price": "100.000000000000000000", + "free_read_quota": "10000", + "store_price": "10000.000000000000000000" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A2u0sfn2jCGaBSsY5a6HVSkixzzPvxzYuk8tJqIIZnRb" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "VsbVJPovBI4+QXEM+NESQEXKhQKf0hzy+xrdL80g/W9Nm3su+ZguDO9Tw/Sv3yPP41EFop26zZejk8ciipo2IgA=" + ] + } + ] + }, + "genutil": { + "gen_txs": [ + { + "body": { + "messages": [ + { + "@type": "/cosmos.staking.v1beta1.MsgCreateValidator", + "description": { + "moniker": "validator0", + "identity": "", + "website": "http://website", + "security_contact": "", + "details": "validator0" + }, + "commission": { + "rate": "0.070000000000000000", + "max_rate": "1.000000000000000000", + "max_change_rate": "0.010000000000000000" + }, + "min_self_delegation": "1", + "delegator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "validator_address": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "pubkey": { + "@type": "/cosmos.crypto.ed25519.PubKey", + "key": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "value": { + "denom": "BNB", + "amount": "10000000000000000000000000" + }, + "from": "0xCc2bf933b403bE6f09f37fb00684EC886E5eE704", + "relayer_address": "0x110e77eDd818ba2Afc4906275AA2b98A01db053F", + "challenger_address": "0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29", + "bls_key": "a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14" + } + ], + "memo": "validator0@127.0.0.1:26656", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/ethermint.crypto.v1.ethsecp256k1.PubKey", + "key": "A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_EIP_712" + } + }, + "sequence": "0" + } + ], + "fee": { + "amount": [], + "gas_limit": "210000", + "payer": "", + "granter": "" + }, + "tip": null + }, + "signatures": [ + "OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE=" + ] + } + ] + }, + "gov": { + "starting_proposal_id": "1", + "deposits": [], + "votes": [], + "proposals": [], + "deposit_params": { + "min_deposit": [ + { + "denom": "BNB", + "amount": "1000000000000000000" + } + ], + "max_deposit_period": "30s" + }, + "voting_params": { + "voting_period": "30s" + }, + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto_threshold": "0.334000000000000000" + } + }, + "oracle": { + "params": { + "relayer_timeout": "40", + "relayer_interval": "600", + "relayer_reward_share": 50 + } + }, + "params": null, + "payment": { + "params": { + "reserve_time": "60", + "payment_account_count_limit": "200", + "forced_settle_time": "30", + "max_auto_force_settle_num": "100", + "fee_denom": "BNB", + "validator_tax_rate": "0.010000000000000000" + }, + "stream_record_list": [], + "payment_account_count_list": [], + "payment_account_list": [], + "auto_settle_record_list": [] + }, + "permission": { + "params": { + "maximum_statements_num": "10", + "maximum_group_num": "10" + } + }, + "slashing": { + "params": { + "signed_blocks_window": "100", + "min_signed_per_window": "0.500000000000000000", + "downtime_jail_duration": "600s", + "slash_fraction_double_sign": "0.050000000000000000", + "slash_fraction_downtime": "0.010000000000000000" + }, + "signing_infos": [], + "missed_blocks": [] + }, + "sp": { + "params": { + "deposit_denom": "BNB", + "min_deposit": "10000000000000000000000", + "secondary_sp_store_price_ratio": "0.800000000000000000" + }, + "storage_providers": [], + "sp_storage_price_list": [] + }, + "staking": { + "params": { + "unbonding_time": "1814400s", + "max_validators": 100, + "max_entries": 7, + "historical_entries": 10000, + "bond_denom": "BNB", + "min_commission_rate": "0.000000000000000000", + "min_self_delegation": "1" + }, + "last_total_power": "0", + "last_validator_powers": [], + "validators": [], + "delegations": [], + "unbonding_delegations": [], + "redelegations": [], + "exported": false + }, + "storage": { + "params": { + "max_segment_size": "16777216", + "redundant_data_chunk_num": 4, + "redundant_parity_chunk_num": 2, + "max_payload_size": "2147483648", + "min_charge_size": "1048576", + "mirror_bucket_relayer_fee": "1000000000000000", + "mirror_bucket_ack_relayer_fee": "0", + "mirror_object_relayer_fee": "1000000000000000", + "mirror_object_ack_relayer_fee": "0", + "mirror_group_relayer_fee": "1000000000000000", + "mirror_group_ack_relayer_fee": "0", + "max_buckets_per_account": 100 + } + }, + "upgrade": {} + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp0.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp0.json new file mode 100644 index 000000000..409ea6fc2 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp0.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B","description":{"moniker":"sp0","identity":"","website":"http://website","security_contact":"","details":"detail_sp0"},"sp_address":"0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B","funding_address":"0xdD2E420f94D1debd40dc56e66B7706E0cD8b3A29","seal_address":"0x350FF7A2bad0bBf7237b460656B9631704674040","approval_address":"0xDd222B611e5d0A31e1Ed34f8d4e681942d8606B8","endpoint":"http://127.0.0.1:9033","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A+XuwWH4lqnZ9aQJL2iOjoyM0/YDLSprrae3seLUam41"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["aQp3bbX7gKn0UWPCAhI+4nVop8fGuUGnDSw4fU40Tw5B7TQouXwrTgMg3egZnYKpFcQzFrz5TEAAONZF1/t4fQA="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp1.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp1.json new file mode 100644 index 000000000..9a1a396fb --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp1.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x2cf731DB95681B799FA0054276C7Ca44def450f8","description":{"moniker":"sp1","identity":"","website":"http://website","security_contact":"","details":"detail_sp1"},"sp_address":"0x2cf731DB95681B799FA0054276C7Ca44def450f8","funding_address":"0xbbDFe0Da142940d3e29c7B52Eb95aEb3fdF80666","seal_address":"0x989D170F21fE66604044Ff1C82A443F172dd6667","approval_address":"0x334eaDBb056Ff645a6cc116D7Db019eA03f12b0C","endpoint":"http://127.0.0.1:9034","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A8f+UW+VSseGvG0S2hkB9in8JSFtvU4bCS9xvkIlZ756"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["7HCp14UJqWLREym2nwRqnXoH5/dqmvCkaroXy5ms/rQgKfMLZCFYBc4NiwMdAW35iyrUl1SunA4JgcAbl41XtQE="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp2.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp2.json new file mode 100644 index 000000000..17c2aa14b --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp2.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x4C1674C0504bad30e023D7B3991824bCC47E193d","description":{"moniker":"sp2","identity":"","website":"http://website","security_contact":"","details":"detail_sp2"},"sp_address":"0x4C1674C0504bad30e023D7B3991824bCC47E193d","funding_address":"0x9579ac21386353E45A0c43965991297aF4915a21","seal_address":"0x8f0144062E16B9291A28ed8b81e7DA9A09d21499","approval_address":"0x1A0454a4569B26926082d812B8E12d11f766D85C","endpoint":"http://127.0.0.1:9035","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A1/BPxotwfW6GvjEJuYcaHSddEbZ5YzmHvL2KuG23h4F"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["lxW9L5fTYYrBLULo/MXjPEBwlfGDA3ujCdgBGixx3qZem1AQqT9pHqkcf190ymSW10velUWPgAYCASPoaFD91wE="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp3.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp3.json new file mode 100644 index 000000000..be420bd02 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp3.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0xe620C05870A2392E4987676b345026E6C6228388","description":{"moniker":"sp3","identity":"","website":"http://website","security_contact":"","details":"detail_sp3"},"sp_address":"0xe620C05870A2392E4987676b345026E6C6228388","funding_address":"0xBa299BB46260bE2cd735988F469896662d279e2F","seal_address":"0xc6219c1E5ee3adB7b4335E2082201B777c7F72DC","approval_address":"0x6907300e63712a6da9aEE7ffb112b1b1529fB933","endpoint":"http://127.0.0.1:9036","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A6pPM9Gzp2cKv4I3b2JJKr3Lhtb54KfGY6CYqqV5wxVO"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["uo5kpE07ULWdfyTUiY/R/lq6Xar4Gtbsb3s0mVBScpsbKsRkic8BZSoqKPXgn3mjEBqaGgzW0klKBTftg70KpgA="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp4.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp4.json new file mode 100644 index 000000000..562d68381 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp4.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63","description":{"moniker":"sp4","identity":"","website":"http://website","security_contact":"","details":"detail_sp4"},"sp_address":"0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63","funding_address":"0xc91D1896c2d0056B7c233D31F1A673ad5846DC08","seal_address":"0xf7e5f5c6562DFbF6C0BF176125F14CBB4c618180","approval_address":"0x7ceecB2d5A3B92d12b68e6846B6686B2817B466F","endpoint":"http://127.0.0.1:9037","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AqIAQajN7c2yoJdFcZczChFkV2ADBLdy0P+QmaNg1A0L"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["LeSkBbTchOupG0UbPaY2WUMJz7b0GDZ3MQzEJ+MwRitHR1CoI+vbKyl9i1r6S1VDcYU+5GIjrylpmYG8+PiZRAA="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp5.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp5.json new file mode 100644 index 000000000..32329f6a1 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp5.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0xafe242857feB1ae49678C301Fb41571C16b99E7c","description":{"moniker":"sp5","identity":"","website":"http://website","security_contact":"","details":"detail_sp5"},"sp_address":"0xafe242857feB1ae49678C301Fb41571C16b99E7c","funding_address":"0xb97b0ec1537B2F58d5619B11F7f276c7cB7c7C57","seal_address":"0xF448053863ED90b52AE96a21acC936c84907Bc11","approval_address":"0xC3fe7faaFac49dCc9b883db1E1d669AcD368B10b","endpoint":"http://127.0.0.1:9038","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A+B4HsI+3/ge8b+V2GnDiyRqZA/wvRTV8KI9+TevBZEB"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["s2Lc7lk6g+byjt70Zfl+17LJgVH7itP+Qgp51W/fUPQGj22HTPB4Au5xWxa6vUsPz3Tq6xYgBb+qOy8NVarxrgE="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp6.json b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp6.json new file mode 100644 index 000000000..2ec7a9264 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gensptx/gentx-sp6.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/bnbchain.greenfield.sp.MsgCreateStorageProvider","creator":"0x193ae94602232A0600854D26eF322617aDDB2A44","description":{"moniker":"sp6","identity":"","website":"http://website","security_contact":"","details":"detail_sp6"},"sp_address":"0x193ae94602232A0600854D26eF322617aDDB2A44","funding_address":"0xDB6B207dd6c700955C25Ba03C83C60E5d1CE6348","seal_address":"0x73B3725eB1B19D0878c79096D943986bF5F69461","approval_address":"0xbcEd2F15CdB17f8F4E5A55c79F52CA5F15188d28","endpoint":"http://127.0.0.1:9039","deposit":{"denom":"BNB","amount":"10000000000000000000000000"},"read_price":"100.000000000000000000","free_read_quota":"10000","store_price":"10000.000000000000000000"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A2u0sfn2jCGaBSsY5a6HVSkixzzPvxzYuk8tJqIIZnRb"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["VsbVJPovBI4+QXEM+NESQEXKhQKf0hzy+xrdL80g/W9Nm3su+ZguDO9Tw/Sv3yPP41EFop26zZejk8ciipo2IgA="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/gentx/gentx-validator0.json b/test/e2e/localup_env/greenfield_env/validator0/config/gentx/gentx-validator0.json new file mode 100644 index 000000000..c61f6716e --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/gentx/gentx-validator0.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","description":{"moniker":"validator0","identity":"","website":"http://website","security_contact":"","details":"validator0"},"commission":{"rate":"0.070000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"0xCc2bf933b403bE6f09f37fb00684EC886E5eE704","validator_address":"0xCc2bf933b403bE6f09f37fb00684EC886E5eE704","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI="},"value":{"denom":"BNB","amount":"10000000000000000000000000"},"from":"0xCc2bf933b403bE6f09f37fb00684EC886E5eE704","relayer_address":"0x110e77eDd818ba2Afc4906275AA2b98A01db053F","challenger_address":"0xd768BbaC2C148C77C7CbD743880732BEA5f4fc29","bls_key":"a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14"}],"memo":"validator0@127.0.0.1:26656","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth"},"mode_info":{"single":{"mode":"SIGN_MODE_EIP_712"}},"sequence":"0"}],"fee":{"amount":[],"gas_limit":"210000","payer":"","granter":""},"tip":null},"signatures":["OPew1xGZO/gy+GvzC3NY4jnYIjESfRX4LomPcL2kCylix7ex5tz7zDJ4O+1rvCRCHPLpliMvKW516jCV0ZUvvgE="]} diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/node_key.json b/test/e2e/localup_env/greenfield_env/validator0/config/node_key.json new file mode 100644 index 000000000..706b5fcfe --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/node_key.json @@ -0,0 +1 @@ +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"khI54X8x3S4+2vKz7gsQwbgiYzxiFJXFTCsmt9V9yd/WA+hn1zm0MBfYdWcjVEEP24m1B/97tQa/AoHOKkJOnQ=="}} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/config/priv_validator_key.json b/test/e2e/localup_env/greenfield_env/validator0/config/priv_validator_key.json new file mode 100644 index 000000000..bb7dbd783 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/config/priv_validator_key.json @@ -0,0 +1,11 @@ +{ + "address": "5DB866D995C7BA44433B932B2FFEAA3DE63E8BB0", + "pub_key": { + "type": "tendermint/PubKeyEd25519", + "value": "cD+n+07cIP+9elSOpT3XDwdz9lbj/0Hu7D7ra5K7MwI=" + }, + "priv_key": { + "type": "tendermint/PrivKeyEd25519", + "value": "bEwHMC4nYT05CV791D7RxTLz9/l1NgzMZ9MLFAPS0iNwP6f7Ttwg/716VI6lPdcPB3P2VuP/Qe7sPutrkrszAg==" + } +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/data/priv_validator_state.json b/test/e2e/localup_env/greenfield_env/validator0/data/priv_validator_state.json new file mode 100644 index 000000000..48f3b67e3 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/data/priv_validator_state.json @@ -0,0 +1,5 @@ +{ + "height": "0", + "round": 0, + "step": 0 +} \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/info b/test/e2e/localup_env/greenfield_env/validator0/info new file mode 100644 index 000000000..683e0e693 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/info @@ -0,0 +1,13 @@ + +- address: 0xCc2bf933b403bE6f09f37fb00684EC886E5eE704 + name: validator0 + pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"A9yGZ+1La6tP7JJA464OAfJAVJU4qbYYpxB16e0hbXth"}' + pubkey_hex: 03dc8667ed4b6bab4fec9240e3ae0e01f240549538a9b618a71075e9ed216d7b61 + type: local + + +**Important** write this mnemonic phrase in a safe place. +It is the only way to recover your account if you ever forget your password. + +bean when combine like joke wet actress ginger rural dutch metal razor draft nothing almost idle poem company hour health desert come save embody + diff --git a/test/e2e/localup_env/greenfield_env/validator0/keyring-test/a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14.address b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14.address new file mode 100644 index 000000000..8b0688787 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/a283b0cb426b6906271e44b76daaa89569e6ff8f70d5e22a3a39fae468f6033a60565f53dadbe0ddc8d60102f026ec14.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMS44OTU1NjEgKzA4MDAgQ1NUIG09KzAuMDY2ODI3ODkxIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiVVRKaVA5SlhCRE1feG90cSJ9.Ae9CMNd_BebWrucoYBHjQimX1lhpEl-BHJnhdreLMafqbS35GKpzfQ.9bBiFqpev9QBN0Sj.BzopQ88962Zp8EjZ-BchM7snzxOreb9zKsWdtwPcl7N5gOYDkgoPQc01x6nlAMk7bQsBNhZpcHoEicinfptHLWVjUiTMe0u1Ho7qaYgUmlJG39KerylHNVeGoqXPF7TaGajv1xT_aV8PwdWTp2we2jQI_btRpHXxhRvtnAWwjvWJ-b-d53L3LKB7vccDa7O4U3gf3XFH623nbfh1io1pBgCU0iWug4dRjeBJ9n_zMtvepDhyR5aGz86mfCjM4ReSvCQ1-DXprkM-s_0oKX9zkWQxP51kQFWWjEuQfHV4StVE19yxU4gOkhktziTiLCwcO7TgWKr3iwW8Uw.Nrzk5NtdO8ByaR5o2iZcMQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/keyring-test/cc2bf933b403be6f09f37fb00684ec886e5ee704.address b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/cc2bf933b403be6f09f37fb00684ec886e5ee704.address new file mode 100644 index 000000000..b3f1b8523 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/cc2bf933b403be6f09f37fb00684ec886e5ee704.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMS44MDYwMzEgKzA4MDAgQ1NUIG09KzAuMDY2MTY0NjIyIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiV0NLYmZiZ0ttVXZUZ05ScSJ9.3d1LhAO9n1wkoICyx1zO0KVdmkLa55PAKECiI31VQFax1RGZFls8DA.OV3BUE9SfosTqaDj.7P64M6H_EVUGSKCJ7L23_jV0XeoIEGy7KTAvJoaFmamveuVQXXBDTP0hymnxdo9AJMAvYMGcWBNhX2_JpBlSYi0ehZUEtu6WPk9sd3uNSXJVlx5jy6BgeQ--wAE0ubZOtD2JwV5wiE2ssycvfdGx0u_BxjFBTXxVyN8MfLRjd5Fo7UIt6Iq3itma7BoqYDZWzgZ8Fd_KRjAp9Vn-IUK1tjs1la3zBlxw0lFFx01YeApj09ZnWNNcVjxa.5HrnRMrdVLu3jwfIAWLZ3w \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/keyring-test/validator0.info b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/validator0.info new file mode 100644 index 000000000..051eead8a --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/validator0.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMS44MDEzOTYgKzA4MDAgQ1NUIG09KzAuMDYxNTI5NjAzIiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiX1QyTjIxZnZXSHhtV3g0MCJ9.pjd3JveXOpJYaurZ2j2hYl1KwiCJZ2RBnBEGcuVZ2-lsaD1KaTe6sw.5f54kfmyL1nLsd7n.us4GeuvsUkzw3eJ5EIg9UH70g1CQm7i6KCRA6B9WRUvsg_6WjUORa7zCwQXnDy6b43Nwk_e6XrOH_uuay_OMsNmH8_39urJLSX_UrmRjf0sSeECf-PBLe-N2AVXemBRZXmiRd1naUTMYc2v6AI8O0yjJxwmEyhZzboFcqgcwCX_f4egs83aaeGbwkTqP3O3hjy3ZDy-LIE4MEGgXyi5TZzDKIMcZUscJCOYPqfYbUgWViZZcp2iCX8M_iru0Zzvpqkf4_7HAcA70pNz1HIeyCIXoH8vP0nipB5fEYsy4F4p4kI4gcLmEH4L0Y4d0IfAwAdHIsq6fjqcrlNnCk5Pnt4Kalk-ecB8et0JE2k7zbLnwq0yklnpnEYtbOubfncNPRZA5dOjeUtTUvgQ6VhfHzzQ6E-wn4dlNLKbP9uyb_yp1e2JjiIzkaTmoYGfW5SQcTbz54xg9LO5wBud-UCmP4L-BBKCtY8KPY8i45I2GRkyf.JzUyleqkAnfgVCKo1xnuZQ \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_env/validator0/keyring-test/validator_bls0.info b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/validator_bls0.info new file mode 100644 index 000000000..3a54537f1 --- /dev/null +++ b/test/e2e/localup_env/greenfield_env/validator0/keyring-test/validator_bls0.info @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMy0wMy0yOSAxMjo0NjowMS44OTEwNTIgKzA4MDAgQ1NUIG09KzAuMDYyMzE4ODY0IiwiZW5jIjoiQTI1NkdDTSIsInAyYyI6ODE5MiwicDJzIjoiSnlwTHl1Q3dOdVE0OUNrdSJ9.n8ePAuGbu2SeoH4HEFDyhVUZsVZ0_afI_MkqpSBe_J_iIpDTpLOf5A.GN0PFeWpvbwhI1Yk.PO3l_4YCkgVShX1BeFYNtg4Vu3gzZNZxGfBDnVuO-_ZidC7-zZrss9aS_JrBW7IAaxTY9Uz8pCURu3Jeqx_qOKQu6BW-j2CFPLZH-3xZmzW9fMicAKcOxOB12rli0ifFWuVo-Px83uY3wDRF1tcNI1vLQOcGQ_RsF-AVUqsISkRwd3pQynYFwT5YymNwoosCW82hVlYNk7ZOSUBsL6Ic2K-eQuLSX9mLC-2nz05WHTNXAP0CmNFHhytegXuZUVzIJ6PR3RRngXrfnfxEGFi4K_oPAdOQWpADWLcei0lNQ47w2CXTEsYbfVGOgF327WRH32v7Te1pWOtbogkE0L_rfwipA_exeeaU4US1E-1ubsZMdPzQssBuju2bl9hugrYL6TiQyZIbv6btCL6Ccx6uN-dsMAOULLtbLHclsFZsylLryZay2kFuLImyRlzR1__0Shdi76ytBPFFHsZxREurOOq1aoNM8WYIFNYIl0tt_lAF.NOfCkBKeVFFqXsQjvgdLpg \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp0/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp0/config.toml new file mode 100644 index 000000000..7540f98a2 --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp0/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0x84646D1d4AD147a6C1E1B67F771F39e89593aF4B" + +[Endpoint] +challenge = "localhost:10333" +downloader = "localhost:10233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:10733" +p2p = "localhost:10833" +receiver = "localhost:10533" +signer = "localhost:10633" +tasknode = "localhost:10433" +uploader = "localhost:10133" + +[ListenAddress] +challenge = "localhost:10333" +downloader = "localhost:10233" +gateway = "127.0.0.1:9033" +metadata = "localhost:10733" +p2p = "localhost:10833" +receiver = "localhost:10533" +signer = "localhost:10633" +tasknode = "localhost:10433" +uploader = "localhost:10133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_0" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:10633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "5e4d2bf963208fb4a72ba10948d7ef0cefb4c66bf2bbef06fb6ec43df22df9fa" +FundingPrivateKey = "27b818974af1e18fcc91099baeb17145e0477328d957e58cdf1eda82d5e25fa9" +SealPrivateKey = "a8ce11e88d59581adee8695a5fed61a2761efc65c2403cf1ccfce1d7e4226de2" +ApprovalPrivateKey = "94a723d2bc48dee8213faf2c36f2972138ec3fb62e907f86c1f400a8dd4dd58b" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:10933" +P2PPrivateKey = "83524b24cf89d7e829db0b99829ce897f966dc417362de2ae08c4710868e10ff" +Bootstrap = ["16Uiu2HAmFs4enUvoa8epNMTvMnwmacuVV8u4jJY7k5WF3ZKfxnRq@127.0.0.1:11933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:14036" \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp1/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp1/config.toml new file mode 100644 index 000000000..114a876a6 --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp1/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0x2cf731DB95681B799FA0054276C7Ca44def450f8" + +[Endpoint] +challenge = "localhost:11333" +downloader = "localhost:11233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:11733" +p2p = "localhost:11833" +receiver = "localhost:11533" +signer = "localhost:11633" +tasknode = "localhost:11433" +uploader = "localhost:11133" + +[ListenAddress] +challenge = "localhost:11333" +downloader = "localhost:11233" +gateway = "127.0.0.1:9034" +metadata = "localhost:11733" +p2p = "localhost:11833" +receiver = "localhost:11533" +signer = "localhost:11633" +tasknode = "localhost:11433" +uploader = "localhost:11133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_1" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:11633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "527a47e1b60d8e67f8ff40a850f11de764a9b9766556bf8818ffdc419f07527a" +FundingPrivateKey = "ca9c28000849ea1e57621085bce4e3729c7614a0c082fc6781a58410da4237ee" +SealPrivateKey = "4e45c6c5b75884eab7fa015049b91fd651f5de95f4d450cbca6faf472c34752c" +ApprovalPrivateKey = "988931388a8c5e669207fa38f8a7dd8f654e509904d03718c40521846d3a1e77" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:11933" +P2PPrivateKey = "27ad956979aea27446754702ad53a3385f82840a5ce912a67aeb8178c255ec54" +Bootstrap = ["16Uiu2HAmUKZHakpHSZfAfdjwAMRbLmFTz6ikmSQ3HZLB3BSU1saj@127.0.0.1:10933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:15036" \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp2/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp2/config.toml new file mode 100644 index 000000000..4d3fc1e14 --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp2/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0x4C1674C0504bad30e023D7B3991824bCC47E193d" + +[Endpoint] +challenge = "localhost:12333" +downloader = "localhost:12233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:12733" +p2p = "localhost:12833" +receiver = "localhost:12533" +signer = "localhost:12633" +tasknode = "localhost:12433" +uploader = "localhost:12133" + +[ListenAddress] +challenge = "localhost:12333" +downloader = "localhost:12233" +gateway = "127.0.0.1:9035" +metadata = "localhost:12733" +p2p = "localhost:12833" +receiver = "localhost:12533" +signer = "localhost:12633" +tasknode = "localhost:12433" +uploader = "localhost:12133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_2" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:12633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "ea53196a45ffc018cb25e13f564cba5588cac66847863f3a006e8ccfffb1f00c" +FundingPrivateKey = "b7a9d2b256c817428b8faf848278dcf969244940b1de7aaa7d1a2d1149bdec14" +SealPrivateKey = "62ab3d4394b7b4f922db8c69f4c5ae71cb56b1042d7d9e3fb7ee6de7a48dc398" +ApprovalPrivateKey = "31a493564a3581e942c7ce8201d4b20bdb3736e05c7cc7549dc272f850c9b0f0" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:12933" +P2PPrivateKey = "bee33cadbe75dc5db386242d52dc1c4de6dbbfd37d176ed5563f357107d65fed" +Bootstrap = ["16Uiu2HAmUKZHakpHSZfAfdjwAMRbLmFTz6ikmSQ3HZLB3BSU1saj@127.0.0.1:10933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:16036" \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp3/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp3/config.toml new file mode 100644 index 000000000..ed1d8cdcd --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp3/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0xe620C05870A2392E4987676b345026E6C6228388" + +[Endpoint] +challenge = "localhost:13333" +downloader = "localhost:13233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:13733" +p2p = "localhost:13833" +receiver = "localhost:13533" +signer = "localhost:13633" +tasknode = "localhost:13433" +uploader = "localhost:13133" + +[ListenAddress] +challenge = "localhost:13333" +downloader = "localhost:13233" +gateway = "127.0.0.1:9036" +metadata = "localhost:13733" +p2p = "localhost:13833" +receiver = "localhost:13533" +signer = "localhost:13633" +tasknode = "localhost:13433" +uploader = "localhost:13133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_3" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:13633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "96c8a7d57937d2e1131c883a62d3ea660c92eba233378c470fd14765dd9f32db" +FundingPrivateKey = "ad42e0d4f6bfc83319ce75b2e94fe12f6e5263ba4f7cbf141b9827aca802238a" +SealPrivateKey = "18f169ad84b6f149e9dd8f9f14e574272cb296bcaf17d60a9e42097c1d768420" +ApprovalPrivateKey = "0165c481ac4e901bc768f1a94ccf8f9192a887c90f8dde8b249ea5f8925052b7" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:13933" +P2PPrivateKey = "a6282fcd91d2f3765df7de061048c62ce23d7a1dc09216101d73414042b5681f" +Bootstrap = ["16Uiu2HAmUKZHakpHSZfAfdjwAMRbLmFTz6ikmSQ3HZLB3BSU1saj@127.0.0.1:10933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:17036" \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp4/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp4/config.toml new file mode 100644 index 000000000..e46ce1d31 --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp4/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0x1ee57886094E9A7E08Cc8e740C1F8A51DDf40c63" + +[Endpoint] +challenge = "localhost:14333" +downloader = "localhost:14233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:14733" +p2p = "localhost:14833" +receiver = "localhost:14533" +signer = "localhost:14633" +tasknode = "localhost:14433" +uploader = "localhost:14133" + +[ListenAddress] +challenge = "localhost:14333" +downloader = "localhost:14233" +gateway = "127.0.0.1:9037" +metadata = "localhost:14733" +p2p = "localhost:14833" +receiver = "localhost:14533" +signer = "localhost:14633" +tasknode = "localhost:14433" +uploader = "localhost:14133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_4" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:14633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "cb1ea14731e42f16e713582792242fc1c3f8b6170256cea71501b9fa69291d05" +FundingPrivateKey = "3fbd14f4142cd3c6637ad8760c96f7d45224ac114769b139a3858da9dc8f096d" +SealPrivateKey = "4e093cc2e50190a67d742e60e1c9e5d55654eca01a04300546882ed451d38115" +ApprovalPrivateKey = "066ffa8a240f613d50e84b215320010a421373da04d2c1931e3f0e8f8bdc7e0f" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:14933" +P2PPrivateKey = "0b5a6480fe664671fd01979fc4278fa393f0abc08c95980f4a900056f035ca7e" +Bootstrap = ["16Uiu2HAmUKZHakpHSZfAfdjwAMRbLmFTz6ikmSQ3HZLB3BSU1saj@127.0.0.1:10933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:18036" \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp5/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp5/config.toml new file mode 100644 index 000000000..a9bc2ba7f --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp5/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0xafe242857feB1ae49678C301Fb41571C16b99E7c" + +[Endpoint] +challenge = "localhost:15333" +downloader = "localhost:15233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:15733" +p2p = "localhost:15833" +receiver = "localhost:15533" +signer = "localhost:15633" +tasknode = "localhost:15433" +uploader = "localhost:15133" + +[ListenAddress] +challenge = "localhost:15333" +downloader = "localhost:15233" +gateway = "127.0.0.1:9038" +metadata = "localhost:15733" +p2p = "localhost:15833" +receiver = "localhost:15533" +signer = "localhost:15633" +tasknode = "localhost:15433" +uploader = "localhost:15133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_5" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:15633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "dd8e805b2b7f936936052f2cc99f8c2cd5648e966e5f85509a89768f497e9665" +FundingPrivateKey = "9c2211ba7f541c554c1b0afc63ecb0d1a98fcfeabc6563c216e461fd6809d759" +SealPrivateKey = "e95cccf37499485129b6e7f35274c2e07f27d524c22e2e51ef5635efd7891179" +ApprovalPrivateKey = "afad051d91cd105525d59fb6f359f47616469d0307ab00f0fe4bf79409723a0c" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:15933" +P2PPrivateKey = "896caab68f3f3fdbf053ba64a29ce0292c8a5536a2790713b67dd1851f4d77fc" +Bootstrap = ["16Uiu2HAmUKZHakpHSZfAfdjwAMRbLmFTz6ikmSQ3HZLB3BSU1saj@127.0.0.1:10933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:19036" \ No newline at end of file diff --git a/test/e2e/localup_env/greenfield_sp_env/sp6/config.toml b/test/e2e/localup_env/greenfield_sp_env/sp6/config.toml new file mode 100644 index 000000000..13630cace --- /dev/null +++ b/test/e2e/localup_env/greenfield_sp_env/sp6/config.toml @@ -0,0 +1,75 @@ +Service = ["gateway", "uploader", "downloader", "challenge", "tasknode", "receiver", "signer", "metadata", "manager", "p2p"] +SpOperatorAddress = "0x193ae94602232A0600854D26eF322617aDDB2A44" + +[Endpoint] +challenge = "localhost:16333" +downloader = "localhost:16233" +gateway = "gnfd.nodereal.com" +metadata = "localhost:16733" +p2p = "localhost:16833" +receiver = "localhost:16533" +signer = "localhost:16633" +tasknode = "localhost:16433" +uploader = "localhost:16133" + +[ListenAddress] +challenge = "localhost:16333" +downloader = "localhost:16233" +gateway = "127.0.0.1:9039" +metadata = "localhost:16733" +p2p = "localhost:16833" +receiver = "localhost:16533" +signer = "localhost:16633" +tasknode = "localhost:16433" +uploader = "localhost:16133" + +[SpDBConfig] +User = "root" +Passwd = "root" +Address = "localhost:3306" +Database = "sp_6" + +[PieceStoreConfig] +Shards = 0 + +[PieceStoreConfig.Store] +Storage = "file" +BucketURL = "./data" +MaxRetries = 5 +MinRetryDelay = 0 +TLSInsecureSkipVerify = false +TestMode = false + +[ChainConfig] +ChainID = "greenfield_9000-1741" + +[[ChainConfig.NodeAddr]] +GreenfieldAddresses = ["localhost:9090"] +TendermintAddresses = ["http://localhost:26750"] + +[SignerCfg] +GRPCAddress = "localhost:16633" +APIKey = "" +WhitelistCIDR = ["0.0.0.0/0"] +GasLimit = 210000 +OperatorPrivateKey = "06ea828997a24322918de5f52ca1ed48cb1b89f81598683c5569a2a7eaff79ea" +FundingPrivateKey = "bb9e5ca8ebc0f95ed77d36309e39faf2b72445e55a133dc1d52ca8ff3f1ba9d1" +SealPrivateKey = "48de08f0e9e77c11badc5dda2f8ca12994fe5f6fd534e775e548c184d6a7878b" +ApprovalPrivateKey = "d346e6ea84e9196660e44193d06c12b26947857543d5a0ad5745492594003383" + +[BlockSyncerCfg] +Modules = ["epoch", "bucket", "object", "payment"] +Dsn = "localhost:3308" + +[P2PCfg] +ListenAddress = "127.0.0.1:16933" +P2PPrivateKey = "ec09def8ee42ac9c23394080ce5bfcdcb1dc57255048a8afc74e9deaae4399cd" +Bootstrap = ["16Uiu2HAmUKZHakpHSZfAfdjwAMRbLmFTz6ikmSQ3HZLB3BSU1saj@127.0.0.1:10933"] +PingPeriod = 1 + +[LogCfg] +Level = "debug" +Path = "./gnfd-sp.log" + +[MetricsCfg] +HTTPAddress = "localhost:20036" \ No newline at end of file diff --git a/test/e2e/localup_env/integration_config/config.yml b/test/e2e/localup_env/integration_config/config.yml new file mode 100644 index 000000000..79b42b1ab --- /dev/null +++ b/test/e2e/localup_env/integration_config/config.yml @@ -0,0 +1,13 @@ +GreenfieldEndpoint: "localhost:26750" +GreenfieldGRPC: "localhost:9090" +GreenfieldChainId: "greenfield_9000-1741" +GreenfieldRoot: "bean when combine like joke wet actress ginger rural dutch metal razor draft nothing almost idle poem company hour health desert come save embody" +GreenfieldValSecret: + - "bean when combine like joke wet actress ginger rural dutch metal razor draft nothing almost idle poem company hour health desert come save embody" +GreenfieldNodeIP: + - "" +GreenfieldAccSecret: + - "snow glove dish frost question protect wet estate recipe sample amazing once robot author blame conduct claw admit market adapt earth elegant power ahead" +SPEndpoint: + - "127.0.0.1:9033" +SPs: \ No newline at end of file diff --git a/test/e2e/piecestore/helper_test.go b/test/e2e/piecestore/helper_test.go index 2597e898a..bbef3a74b 100644 --- a/test/e2e/piecestore/helper_test.go +++ b/test/e2e/piecestore/helper_test.go @@ -6,15 +6,17 @@ import ( "os" "testing" + "github.com/stretchr/testify/assert" + + mpiecestore "github.com/bnb-chain/greenfield-storage-provider/model/piecestore" "github.com/bnb-chain/greenfield-storage-provider/pkg/log" "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/piece" "github.com/bnb-chain/greenfield-storage-provider/store/piecestore/storage" - "github.com/stretchr/testify/assert" ) const ( - pieceKey = "hello.txt" - s3Bucket = "https://s3.us-east-1.amazonaws.com/test" + pieceKey = "hello.txt" + s3BucketURL = "https://s3.us-east-1.amazonaws.com/test" // virtualPath = "https://test.s3.us-east-1.amazonaws.com" ) @@ -26,7 +28,7 @@ func setup(t *testing.T, storageType, bucketURL string, shards int) (*piece.Piec Storage: storageType, BucketURL: bucketURL, MaxRetries: 5, - TestMode: true, + IAMType: mpiecestore.AKSKIAMType, }, }) } @@ -45,7 +47,7 @@ func doOperations(t *testing.T, handler *piece.PieceStore) { assert.Equal(t, nil, err) data, err := io.ReadAll(rc) assert.Equal(t, nil, err) - assert.Equal(t, string(data), "Hello, World!\n") + assert.Contains(t, string(data), "Hello, World!\n") // 3. head object log.Info("Get piece info") diff --git a/test/e2e/piecestore/minio_test.go b/test/e2e/piecestore/minio_test.go index aa25a8c48..9ebfa4b19 100644 --- a/test/e2e/piecestore/minio_test.go +++ b/test/e2e/piecestore/minio_test.go @@ -10,7 +10,7 @@ import ( func TestMinioStore(t *testing.T) { // 1. init PieceStore - handler, err := setup(t, mpiecestore.MinioStore, s3Bucket, 0) + handler, err := setup(t, mpiecestore.MinioStore, s3BucketURL, 0) assert.Equal(t, err, nil) doOperations(t, handler) diff --git a/test/e2e/piecestore/s3_test.go b/test/e2e/piecestore/s3_test.go index d0687d211..1e4156df1 100644 --- a/test/e2e/piecestore/s3_test.go +++ b/test/e2e/piecestore/s3_test.go @@ -10,7 +10,7 @@ import ( func TestS3Store(t *testing.T) { // 1. init PieceStore - handler, err := setup(t, mpiecestore.S3Store, s3Bucket, 0) + handler, err := setup(t, mpiecestore.S3Store, s3BucketURL, 0) assert.Equal(t, err, nil) doOperations(t, handler) diff --git a/util/grpc/options.go b/util/grpc/options.go new file mode 100644 index 000000000..296f97ed2 --- /dev/null +++ b/util/grpc/options.go @@ -0,0 +1,24 @@ +package grpc + +import ( + "github.com/bnb-chain/greenfield-storage-provider/model" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" +) + +// GetDefaultServerOptions returns default gRPC server options +func GetDefaultServerOptions() []grpc.ServerOption { + options := []grpc.ServerOption{} + options = append(options, grpc.MaxRecvMsgSize(model.MaxCallMsgSize)) + options = append(options, grpc.MaxSendMsgSize(model.MaxCallMsgSize)) + return options +} + +// GetDefaultClientOptions returns default gRPC client options +func GetDefaultClientOptions() []grpc.DialOption { + options := []grpc.DialOption{} + options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials())) + options = append(options, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(model.MaxCallMsgSize))) + options = append(options, grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(model.MaxCallMsgSize))) + return options +}