基于区块链的毕业设计Axie Scholars Utilities – Axie实用程序

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Axie Scholars Utilities – Axie实用程序 是一篇很好的国外资料

Axie Scholars Utilities

Axie Scholars Utilities - Axie实用程序 Axie Scholars Utilities - Axie实用程序

This software’s intent is to automate all activities related to manage Scholars. It is specially aimed to mangers with large scholar roasters. I will try to automate some of the tasks like payments to scholars, QR generation and SLP claiming. I am also very open to new ideas, so please leave them in Issues.

Payments Utility

This utility to help with payments for Axie Infinity managers who have large scholar roasters. It requires a JSON input like:

{     "Manager": "ronin:<Manager address here>",     "Scholars":[         {             "Name": "Scholar 1",             "AccountAddress": "ronin:<account_address>",             "ScholarPayoutAddress": "ronin:<scholar_address>",             "ScholarPayout": 10,             "TrainerPayoutAddress": "ronin:<trainer_address>",             "TrainerPayout": 1,             "ManagerPayout": 9         },         {...},         ...     ],     "Donations": [         {             "Name": "Entity 1",             "AccountAddress": "ronin:<donation_entity_address>",             "Percent": 0.01         },         {             ...         }     ] } 

Let us define the concepts in that file.

  • Manager: There we input the “manager’s” ronin address. This means all manager payments will be paid to that address.
  • Scholars: This is the list of all scholar accounts we need to make payments to each element in this list contains:
    • Name: Name of this account, it is only for identification purposes.
    • Account Address: Public ronin address of this scholar account.
    • Scholar Payout Address: Scholar’s ronin address. This is where we will pay the scholar.
    • Scholar Payout: This is the amount of SLP we will pay to the scholar
    • Trainer Payout Address: This is an optional parameter. It is the public ronin address of the trainer (otherwise known as investor) for this particular scholar account.
    • Trainer Payout: If previous parameter is present, this is the amount of SLP it will be paid to that address.
    • Manager Payout: This is the amount of SLP that will be transferred to the manager account.
  • Donations: Optional list of donations, in case you want to support other projects sharing with them part of your earnings. This percent will be calculated from the Manager Payout and rounded. Donations to me do NOT go in this place, they are in the code itself! If any donations or the fee does not reach a minumum of 1 SLP it will not be paid out.
    • Name: Name of the entity you want to donate to. This is only for identification purposes.
    • Account Address: Public ronin address of the entity or project you want to donate to.
    • Percent: Percent you want to donate to that entity. Caution! Be aware that to donate 1% you need to input: 0.01. If you write a 1, you would be donating 100% of your manager payments! Total percent of all donations added cannot be over 1 (100%). If that is the case, the software will throw an error and ask you to correct it.

WARNING! All addresses in the previous file are the PUBLIC ones. Remember to always keep your private ones safe.

Also, to note, this software will not calculate how much you pay (except for donations and the fee), as the input file it expects has the amounts already.

This next bit is why we need you to run this software locally. And that reason is the private keys for the scholar accounts. To do the payments we need them, but of course you do NOT share that with anyone. All this software will do is read those from a file and use them for payments, but none other than you will have access to those keys.

This configuration file will be in the form of:

{     <AccountAddressRonin>:<PrivateKey>,     ... } 

Command looks like:

axie_scholar_cli.py payout <payments_file> <secrets_file> 

This means you need to provide the path to a payments_file and to secrets_file. After that, just follow instructions in the terminal to complete payouts. It will ask for confirmation for each account.

CAUTION! In order to be able to do transactions, the sending ronin account (in this case the Scholars Account ronin Addresses) will need to be registered on the Axie marketplace. (If you want to use this tool they should already be, but just in case!)

Generate Secrets Utility

This utility helps you generate and make sure your secrets file will hold all the needed private keys to execute the payments. That is why it will ask for a payments file and optionally an already created secrets file. Even if you have a generated secrets file, I recommend running this utility for the sake of making sure you have all the needed secrets. Do not worry if you do not, but that will prevent your payouts to be executed and you will need to edit the secrets file anyway.

Command looks like:

axie_scholar_cli.py generate_secrets <payments_file> [<secrets_file>] 

This means it needs a payments_file path and optionally a secrets_file path. Do not provide a secrets_file path if you do not have a valid secrets json previously created. Command will simply generate and save a json called secrets.json on the current folder.

GIF example:

  • without Docker: Axie Scholars Utilities - Axie实用程序
  • with Docker: Axie Scholars Utilities - Axie实用程序

Claim SLP Utility

This utility will claim all the claimable SLP from all the accounts configured in secrets.json. So pleae, run first the secret_gen command to make sure you are not missing any account or private key. After that, simply execute the command and it will attempt to claim from all accounts. If some cannot be claimed, it will let you know, but won’t interfere with the rest of claims.

Command looks like:

axie_scholar_cli.py claim <secrets_file> 

Example Files

Please go to the folder sample_data to see sample files for how the payments file and the secrets file need to look like.

How to install and run?

CLI (Command Line Interface)

To run my tool you will need Python3 (the language it is written in) to be installed on your machine. Please do look up how to install it if you get stuck, but here there go a brief explanation on how to do so.

Windows Installation

  1. Go to the Official Python Webiste and download python3. I personally run Python 3.8.2 in my development machine, but this should work in any 3.8 or higher version. (Maybe any version from 3.6?? — If you decide to go with those versions and have issues, please do report and I will try and fix them)

  2. During installation, just follow the installer instructions but remmember to tick the box on the 1st window that says “Add Python 3.9 to PATH”. If you do no do that, you will need to remmember the full path of where you have Python installed everytime you want to execute it (which is annoying!). By just ticking that you will have a nicer way to call python just using its name “python”.

  3. Install Poetry. We could use the standard PIP package manager for Python, but I like Poetry more as it fixes the versions down in a better way. To do so you need to open your Powershell and execute:

     (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - 
  4. Now it is time to download my code, there are multiple ways:

    • Use git. This is a method I would only recommend if you are already familiar with git. So you know, clone away this repo 😉
    • Go to releases and download the latest one. Currently v0.1. Then just Unzip it somewhere in your computer.
  5. Wherever you have my code in your computer you will need to navigate using your Powershell or Terminal to axie-scholar-utilities/source. If you are not comfortable with a terminal, you can just navigate using the file explorer, right click the folder, go to properties and copy the full path or location. It will be something like C:Users<myUser>Documentsaxie-scholar-utilitiesv0.1axie-scholar-utilitiessource. With that, just open your power shell and execute (change the path to the folder location in YOUR computer):

     cd C:Users<myUser>Documentsaxie-scholar-utilitiesv0.1axie-scholar-utilitiessource 
  6. Now, given you have Python and Poetry installed execute the following command to install all the extra dependencies you need:

     poetry install 
  7. You are ready to go! To run the CLI program, you will just need to execute any of the following commands:

     # This one will execute the payouts  poetry run python axie_scholar_cli.py payout <payments_file>  <secrets_file>   # This one will auto-claim SLP  poetry run python axie_scholar_cli.py claim <secrets_file>   # This one will help you generate the secrets file  poetry run python axie_scholar_cli.py generate_secrets <payments_file>   # If you give the previous one the location of a generated secrets file, it will update it if needed!  poetry run python axie_scholar_cli.py generate_secrets <payments_file> <secrets_file> 

For the last step, modify the <payments_file> and <secrets_file> with the location of your JSON files. If they are in the same folder, just giving the name of the file .json will be enough. If they are in another folder, give the full location. To find that, use the Properties tip from step 5.

Any issues in any step, please contact me but sometimes a quick google search or reading the pages I linked above should solve 90% of your problems. Again, I am happy to asist you, so leave an issue here in Github, send me an email or for a faster contact join my Discord


MacOs Installation

  1. As a pre-requisite you need to have Xcode. Just get it from the Apple appstore. Find it here

  2. Now we can move on to installing python3. The easiest way is with Homebrew. To install it just run on the terminal:

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 
  3. Once you have Homebrew installed, to get python3, just run:

     brew install python3 
  4. Add python to your PATH. This can be a bit tricky but you need to open the file (or create it). ~/.bash_profile. Go to the bottom of it and add the line:

     export PATH="/usr/local/opt/python/libexec/bin:$PATH"  # or this line if you have OS X 10.12 (Sierra or older)  export PATH=/usr/local/bin:/usr/local/sbin:$PATH 
  5. Once you have done that, close your terminal and open it again. (So it refreshes and you trully have python in your path). If you want to check you have done it properly you can run this command and check the Path you added in step 3 is there.

     echo $PATH | tr ':' 'n'  # Or alternatively  python3 --version 
  6. Install Poetry. We could use the standard PIP package manager for Python, but I like Poetry more as it fixes the versions down in a better way. To do so you run this command:

     curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - 
  7. Now it is time to download my code, there are multiple ways:

    • Use git. This is a method I would only recommend if you are already familiar with git. So you know, clone away this repo 😉
    • Go to releases and download the latest one. Currently v0.1. Then just Unzip it somewhere in your computer.
  8. Wherever you have my code in your computer you will need to navigate using your Terminal to axie-scholar-utilities/source. If you are not comfortable with a terminal, you can just navigate using Finder, and drag and drop the folder to the Terminal window. It will copy the path. So first type cd and then drag and drop the folder. Command you run should look something like:

     cd /Users/<your_user>/axie-scholar-utilities/README.md 
  9. Now, given you have Python and Poetry installed execute the following command to install all the extra dependencies you need:

     poetry install 
  10. You are ready to go! To run the CLI program, you will just need to execute any of the following commands:

     # This one will execute the payouts  poetry run python axie_scholar_cli.py payout <payments_file> <secrets_file>   # This one will auto-claim SLP  poetry run python axie_scholar_cli.py claim <secrets_file>   # This one will help you generate the secrets file  poetry run axie_scholar_cli.py generate_secrets <payments_file>   # If you give the previous one the location of a generated secrets file, it will update it if needed!  poetry run axie_scholar_cli.py generate_secrets <payments_file> <secrets_file> 

For the last step, modify the <payments_file> and <secrets_file> with the location of your JSON files. If they are in the same folder, just giving the name of the file .json will be enough. If they are in another folder, give the full location. Remmember you can use the trick explained on step 7.

Any issues in any step, please contact me but sometimes a quick google search or reading the pages I linked above should solve 90% of your problems. Again, I am happy to asist you, so leave an issue here in Github, send me an email or for a faster contact join my Discord


Linux Installation

TBD



Docker

How to install docker?

  • Docker on Windows
  • Docker on Mac
  • Docker on Ubuntu
  • Docker on Debian
  • Check the website for more Linux distros.

I also recommend having docker-compose. It comes by default with Windows and MacOs Desktop versions, so only Linux user will need to:

    # Download it     sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose     # Add execution perms     sudo chmod +x /usr/local/bin/docker-compose     # In case you need to create a symlink     sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose     # Finally just check it works with     docker-compose --version 

Once we have docker installed and docker-compose we are done. To use the tool we only need to build and run the image. To do so, please navigate using your terminal to the docker folder. Once there create a folder named files (this is where we will place our payments and secret file), we will link that folder from our host to the docker container.

Once all this preparation is done, just use this commands as needed:

    # Builds the image     docker-compose build scholar-utilities     # If we want to generate the secrets     docker-compose run scholar-utilities generate-secrets files/payments.json     # If you want to claim SLP     docker-compose run scholar-utilities claim files/secrets.json     # If we want to do payments in auto mode     docker-compose run scholar-utilities payout files/payments.json files/secrets.json -y     # As a general rule     docker-compose run scholar-utilities <here whatever command and arguments you want to run> 

If you do not want to build the image yourself, pleaes download it from my docker hub.

    docker pull epith/axie-scholar-utilities 

I recommend setting up this aliases right after pulling the image, so it makes everyones life easier.

    # Alias to generate secrets     axie-utils-gen-secrets() {docker run -it  -v ${PWD}/${1}:/opt/app/files/payments.json  -v ${PWD}/${2}:/opt/app/files/secrets.json epith/axie-scholar-utilities generate_secrets files/payments.json files/secrets.json}     # Alias to execute claims     axie-utils-claim() {docker run -it  -v ${PWD}/${1}:/opt/app/files/secrets.json epith/axie-scholar-utilities claim files/secrets.json}     # Alias to execute payments     axie-utils-payout() {docker run -it  -v ${PWD}/${1}:/opt/app/files/payments.json  -v ${PWD}/${2}:/opt/app/files/secrets.json epith/axie-scholar-utilities payout files/payments.json files/secrets.json}     # Alias to execute auto-payments (no confirmation)     axie-utils-auto-payout() {docker run -it  -v ${PWD}/${1}:/opt/app/files/payments.json  -v ${PWD}/${2}:/opt/app/files/secrets.json epith/axie-scholar-utilities payout files/payments.json files/secrets.json -y} 

With these alias all you need is the payments file and a secret file (if you have not yet generate it, please create a file with just ‘{}’ inside and save it as .json). Then the commands you will need to execute are the following:

    #To generate/update secret file     axie-utils-gen-secrets name_of_your_payments_file.json name_of_your_secrets_file.json     #To claim SLP     axie-utils-claim name_of_your_secrets_file.json     #To execute payments     axie-utils-payout name_of_your_payments_file.json name_of_your_secrets_file.json     #To execute automatic payments     axie-utils-auto-payout name_of_your_payments_file.json name_of_your_secrets_file.json 

Once executed, please follow the insturctions that will appear on your terminal (if any).

Desktop App

TBD

How is this and future developments financed?

There is embedded in the code a 1% fee. I believe this is a fair charge for this automation. It allows us to dedicate time and effort on bettering this software and add more features! Please do not remove it as it is the only way I have to support this project.

Roadmap

  • Integrate with Discord (via a bot, maybe?)
  • Release a desktop app (even more convenient)
  • Add functionality to get QR codes, maybe(?)

Feel free to open issues requesting features. I will consider all of them and maybe add them in the future!

Donations

If you want to donate to thank me, feel free to do so at this ronin address:

ronin:cac6cb4a85ba1925f96abc9a302b4a34dbb8c6b0 

Discord

Feel free to join this project’s Discord

Few trying changes to make claiming work


Axie Scholars实用程序

Axie Scholars Utilities - Axie实用程序Axie Scholars Utilities - Axie实用程序

此软件的目的是自动化与管理学者相关的所有活动。这是专门针对与大型学者烤炉经理。我将尝试自动化一些任务,如向学者付款、QR生成和SLP申请。我也非常乐于接受新的想法,所以请把它们留在问题中

支付实用程序

此实用程序用于帮助拥有大型奖学金烘焙机的Axie Infinity经理付款。它需要一个JSON输入,如:

{     "Manager": "ronin:<Manager address here>",     "Scholars":[         {             "Name": "Scholar 1",             "AccountAddress": "ronin:<account_address>",             "ScholarPayoutAddress": "ronin:<scholar_address>",             "ScholarPayout": 10,             "TrainerPayoutAddress": "ronin:<trainer_address>",             "TrainerPayout": 1,             "ManagerPayout": 9         },         {...},         ...     ],     "Donations": [         {             "Name": "Entity 1",             "AccountAddress": "ronin:<donation_entity_address>",             "Percent": 0.01         },         {             ...         }     ] } 

让我们定义该文件中的概念

  • 经理:我们在那里输入“经理的”ronin地址。这意味着所有经理付款都将被取消
  • Scholars: This is the list of all scholar accounts we need to make payments to each element in this list contains:
    • Name: Name of this account, it is only for identification purposes.
    • Account Address: Public ronin address of this scholar account.
    • Scholar Payout Address: Scholar’s ronin address. This is where we will pay the scholar.
    • Scholar Payout: This is the amount of SLP we will pay to the scholar
    • Trainer Payout Address: This is an optional parameter. It is the public ronin address of the trainer (otherwise known as investor) for this particular scholar account.
    • Trainer Payout: If previous parameter is present, this is the amount of SLP it will be paid to that address.
    • Manager Payout: This is the amount of SLP that will be transferred to the manager account.
  • Donations: Optional list of donations, in case you want to support other projects sharing with them part of your earnings. This percent will be calculated from the Manager Payout and rounded. Donations to me do NOT go in this place, they are in the code itself! If any donations or the fee does not reach a minumum of 1 SLP it will not be paid out.
    • Name: Name of the entity you want to donate to. This is only for identification purposes.
    • Account Address: Public ronin address of the entity or project you want to donate to.
    • Percent: Percent you want to donate to that entity. Caution! Be aware that to donate 1% you need to input: 0.01. If you write a 1, you would be donating 100% of your manager payments! Total percent of all donations added cannot be over 1 (100%). If that is the case, the software will throw an error and ask you to correct it.

警告!上一个文件中的所有地址都是公共地址。记住要时刻保护你的私人安全

另外,需要注意的是,此软件不会计算您支付的金额(捐款和费用除外),因为它预期的输入文件已经包含了金额

这就是为什么我们需要您在本地运行此软件的原因。这就是学者账户的私钥。我们需要他们来付款,但你当然不会和任何人分享。这个软件所能做的就是从文件中读取这些密钥并将其用于支付,但只有您才能访问这些密钥

此配置文件的格式为:

{     <AccountAddressRonin>:<PrivateKey>,     ... } 

命令类似:

axie_scholar_cli.py payout <payments_file> <secrets_file> 

这意味着您需要提供付款文件和机密文件的路径。之后,只需按照终端中的说明完成支付。它将要求确认每个帐户

此实用程序可帮助您生成并确保您的机密文件包含执行支付所需的所有私钥。这就是为什么它会要求一个付款文件和一个已经创建的机密文件。即使您有一个生成的机密文件,我建议运行此实用程序,以确保您拥有所有需要的机密。如果不这样做,请不要担心,但这将阻止执行您的支付,并且您仍需要编辑机密文件

生成机密实用程序

命令看起来像:

这意味着它需要一个paymentsu文件路径和一个secretsu文件路径。如果您之前没有创建有效的secrets json,请不要提供secrets_文件路径。命令只需在当前文件夹中生成并保存名为secrets.json的json

axie_scholar_cli.py generate_secrets <payments_file> [<secrets_file>] 

GIF示例:

此实用程序将从secrets.json中配置的所有帐户中声明所有可声明的SLP。因此,请先运行secret_gen命令,以确保您没有丢失任何帐户或私钥。之后,只需执行该命令,它将尝试从所有帐户索赔。如果有一些不能索赔,它会让你知道,但不会干扰其他索赔

  • without Docker: Axie Scholars Utilities - Axie实用程序
  • with Docker: Axie Scholars Utilities - Axie实用程序

声明SLP实用程序

命令类似于:

请转到“示例数据”文件夹,查看示例文件,了解付款文件和机密文件的外观

axie_scholar_cli.py claim <secrets_file> 

示例文件

要运行我的工具,您需要在您的机器上安装Python3(它所使用的语言)。如果你被卡住了,请查看如何安装它,但这里有一个关于如何安装的简要说明

如何安装和运行

CLI(命令行界面)

转到官方的PythonWebiste并下载python3。我个人在我的开发机器上运行Python3.8.2,但这应该适用于任何3.8或更高版本。(可能是3.6中的任何版本——如果您决定使用这些版本并且出现问题,请报告,我将尝试修复它们)

Windows安装

  1. 在安装过程中,只需按照安装程序的说明进行操作,但请记住在第一个窗口中的“将Python 3.9添加到路径”框中打勾。如果不这样做,那么每次执行Python时都需要记住Python安装位置的完整路径(这很烦人!)。通过勾选,您将有一个更好的方法来调用python,只需使用它的名称“python”

  2. 安装诗歌。我们可以使用Python的标准PIP包管理器,但我更喜欢诗歌,因为它可以更好地修复版本。为此,您需要打开Powershell并执行:

  3. 现在是下载我的代码的时候了,有多种方法:

     (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - 
  4. 无论您的计算机中有我的代码,您都需要使用Powershell或终端导航到axie scholar实用程序/源。如果您对终端不满意,可以使用“文件资源管理器”进行导航,右键单击文件夹,转到“属性”并复制完整路径或位置。它将类似于C:Users&lt;myUser&gtDocumentsaxie-scholar-utilities v0.1axie scholar utilitiessource。这样,只需打开power shell并执行(更改计算机中文件夹位置的路径):

    • Use git. This is a method I would only recommend if you are already familiar with git. So you know, clone away this repo 😉
    • Go to releases and download the latest one. Currently v0.1. Then just Unzip it somewhere in your computer.
  5. 现在,如果已经安装了Python和Poetry,请执行以下命令以安装所需的所有额外依赖项:

     cd C:Users<myUser>Documentsaxie-scholar-utilitiesv0.1axie-scholar-utilitiessource 
  6. 您准备好了!要运行CLI程序,只需执行以下任何命令:

     poetry install 
  7. 在最后一步中,修改&lt;付款文件&gt;及&lt;机密文件&gt;显示JSON文件的位置。如果它们在同一个文件夹中,只需给出文件名.json就足够了。如果它们在另一个文件夹中,请提供完整位置。要找到它,请使用步骤5中的属性提示

     # This one will execute the payouts  poetry run python axie_scholar_cli.py payout <payments_file>  <secrets_file>   # This one will auto-claim SLP  poetry run python axie_scholar_cli.py claim <secrets_file>   # This one will help you generate the secrets file  poetry run python axie_scholar_cli.py generate_secrets <payments_file>   # If you give the previous one the location of a generated secrets file, it will update it if needed!  poetry run python axie_scholar_cli.py generate_secrets <payments_file> <secrets_file> 

任何步骤中的任何问题,请与我联系,但有时快速谷歌搜索或阅读我上面链接的页面可以解决90%的问题。再一次,我很高兴为您效劳,所以请在Github中留下一个问题,给我发一封电子邮件,或者为了更快的联系加入我的Discord,这是您需要Xcode的先决条件。只需从苹果应用商店购买即可。现在我们可以继续安装python3了。最简单的方法是自制。要安装它,只需在终端上运行:

一旦安装了自制软件,要获得python3,只需运行:


MacOs安装

  1. 将python添加到您的路径。这可能有点棘手,但您需要打开(或创建)该文件。~/。bash_简介。转到它的底部并添加一行:

  2. 完成后,关闭终端并再次打开。(因此,它会刷新,并且您的路径中确实有python)。如果要检查是否正确执行了此操作,可以运行此命令并检查步骤3中添加的路径是否存在

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 
  3. 安装诗歌。我们可以使用Python的标准PIP包管理器,但我更喜欢诗歌,因为它可以更好地修复版本。为此,请运行此命令:

     brew install python3 
  4. 现在是下载我的代码的时候了,有多种方法:

     export PATH="/usr/local/opt/python/libexec/bin:$PATH"  # or this line if you have OS X 10.12 (Sierra or older)  export PATH=/usr/local/bin:/usr/local/sbin:$PATH 
  5. 无论您的计算机中有我的代码,您都需要使用终端导航到axie scholar实用程序/源。如果您对终端不满意,可以使用Finder导航,然后将文件夹拖放到终端窗口。它将复制路径。因此,首先键入cd,然后拖放文件夹。您运行的命令应该是这样的:

     echo $PATH | tr ':' 'n'  # Or alternatively  python3 --version 
  6. 现在,如果您已经安装了Python和POYMENT,请执行以下命令来安装您需要的所有额外依赖项:

     curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - 
  7. 您可以开始了!要运行CLI程序,只需执行以下任何命令:

    • Use git. This is a method I would only recommend if you are already familiar with git. So you know, clone away this repo 😉
    • Go to releases and download the latest one. Currently v0.1. Then just Unzip it somewhere in your computer.
  8. 在最后一步中,修改&lt;付款文件&gt;及&lt;机密文件&gt;显示JSON文件的位置。如果它们在同一个文件夹中,只需给出文件名.json就足够了。如果它们在另一个文件夹中,请提供完整位置。请记住,您可以使用步骤7中介绍的技巧

     cd /Users/<your_user>/axie-scholar-utilities/README.md 
  9. 任何步骤中的任何问题,请与我联系,但有时快速谷歌搜索或阅读我上面链接的页面可以解决90%的问题。再一次,我很高兴向您提供帮助,请在Github中留下一个问题,给我发一封电子邮件或寻求更快的联系加入我的Discord

     poetry install 
  10. 待定

     # This one will execute the payouts  poetry run python axie_scholar_cli.py payout <payments_file> <secrets_file>   # This one will auto-claim SLP  poetry run python axie_scholar_cli.py claim <secrets_file>   # This one will help you generate the secrets file  poetry run axie_scholar_cli.py generate_secrets <payments_file>   # If you give the previous one the location of a generated secrets file, it will update it if needed!  poetry run axie_scholar_cli.py generate_secrets <payments_file> <secrets_file> 

如何安装docker

我还建议让docker撰写。默认情况下,它与Windows和MacOs桌面版本一起提供,因此只有Linux用户需要:


Linux安装

安装docker并完成docker compose后。要使用该工具,我们只需要构建和运行映像。为此,请使用终端导航到docker文件夹。一旦创建了一个名为files的文件夹(我们将在这里放置付款和机密文件),我们将把该文件夹从主机链接到docker容器



Docker

完成所有准备工作后,只需根据需要使用以下命令:

  • Docker on Windows
  • Docker on Mac
  • Docker on Ubuntu
  • Docker on Debian
  • Check the website for more Linux distros.

如果您不想自己构建映像,请从我的docker hub下载

    # Download it     sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose     # Add execution perms     sudo chmod +x /usr/local/bin/docker-compose     # In case you need to create a symlink     sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose     # Finally just check it works with     docker-compose --version 

我建议在拉取图像后立即设置此别名,这样每个人的生活都会更轻松

使用这些别名,您只需要支付文件和一个秘密文件(如果尚未生成,请创建一个仅包含“{}”的文件,并将其另存为.json)。然后,您需要执行以下命令:

    # Builds the image     docker-compose build scholar-utilities     # If we want to generate the secrets     docker-compose run scholar-utilities generate-secrets files/payments.json     # If you want to claim SLP     docker-compose run scholar-utilities claim files/secrets.json     # If we want to do payments in auto mode     docker-compose run scholar-utilities payout files/payments.json files/secrets.json -y     # As a general rule     docker-compose run scholar-utilities <here whatever command and arguments you want to run> 

一旦执行,请遵循终端上显示的说明(如果有)

    docker pull epith/axie-scholar-utilities 

待定

    # Alias to generate secrets     axie-utils-gen-secrets() {docker run -it  -v ${PWD}/${1}:/opt/app/files/payments.json  -v ${PWD}/${2}:/opt/app/files/secrets.json epith/axie-scholar-utilities generate_secrets files/payments.json files/secrets.json}     # Alias to execute claims     axie-utils-claim() {docker run -it  -v ${PWD}/${1}:/opt/app/files/secrets.json epith/axie-scholar-utilities claim files/secrets.json}     # Alias to execute payments     axie-utils-payout() {docker run -it  -v ${PWD}/${1}:/opt/app/files/payments.json  -v ${PWD}/${2}:/opt/app/files/secrets.json epith/axie-scholar-utilities payout files/payments.json files/secrets.json}     # Alias to execute auto-payments (no confirmation)     axie-utils-auto-payout() {docker run -it  -v ${PWD}/${1}:/opt/app/files/payments.json  -v ${PWD}/${2}:/opt/app/files/secrets.json epith/axie-scholar-utilities payout files/payments.json files/secrets.json -y} 

代码中包含1%的费用。我相信这是一个公平的收费为这个自动化。它使我们能够投入时间和精力来改进此软件并添加更多功能!请不要删除它,因为这是唯一的方式,我必须支持这个项目

    #To generate/update secret file     axie-utils-gen-secrets name_of_your_payments_file.json name_of_your_secrets_file.json     #To claim SLP     axie-utils-claim name_of_your_secrets_file.json     #To execute payments     axie-utils-payout name_of_your_payments_file.json name_of_your_secrets_file.json     #To execute automatic payments     axie-utils-auto-payout name_of_your_payments_file.json name_of_your_secrets_file.json 

请随意打开请求功能的问题。我会考虑所有这些,并可能在未来添加它们!

桌面应用程序

如何为这项和未来的开发提供资金

如果您想捐款感谢我,请在ronin地址免费捐款:

路线图

  • Integrate with Discord (via a bot, maybe?)
  • Release a desktop app (even more convenient)
  • Add functionality to get QR codes, maybe(?)

欢迎加入此项目的Discord

捐款

If you want to donate to thank me, feel free to do so at this ronin address:

ronin:cac6cb4a85ba1925f96abc9a302b4a34dbb8c6b0 

不和谐

Feel free to join this project’s Discord

Few trying changes to make claiming work

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/24362.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Axie Scholars Utilities – Axie实用程序

提供最优质的资源集合

立即查看 了解详情