Code Monkey home page Code Monkey logo

intmax-rollup-cli's Introduction

74763454

intmax

The first stateless zkRollup


Twitter Follow Discord Website Status

intmax rollup CLI

ATTENTION: With the update of the project, this repository will be archived soon. Support and maintenance for this repository will be discontinued.

Setup

For Ubuntu: Install Guide (Ubuntu)

Clone this repository

# use SSH
git clone [email protected]:InternetMaximalism/intmax-rollup-cli.git -b staging
# or use HTTPS
git clone https://github.com/InternetMaximalism/intmax-rollup-cli.git -b staging
cd intmax-rollup-cli
git submodule update --init --recursive

Build this CLI

cargo --version # 1.67.0-nightly
cargo run --release --bin intmax config aggregator-url https://alpha.testnet.intmax.io/

Alias intmax command

alias intmax="$(pwd)/target/release/intmax"
intmax -V # intmax 2.2.1-alpha

Update

If the CLI version has been updated, the following commands can be used to synchronize.

git checkout staging # only for users who have been using v1.0.2-alpha or earlier
git pull origin staging
cargo build --release

For more information on the release, check here.

Getting Started

Help

Display the help page.

intmax -h

Create your account

Add default account (private key is selected randomly).

intmax account add --default --nickname alice
intmax account add --nickname bob

Mint your token

Mint your token. The token address is the same as your address and the token id can be selected from 0x00 to 0xff.

intmax tx mint --amount 10 -i 0x00

Send your assets

Merge your assets and Send your token to other accounts.

intmax tx send --amount 1 -i 0x00 --receiver-address bob

Display your assets

Display your owned assets.

intmax account assets

Bulk-mint

You can issue new token according to the contents of the file. Up to 16 tokens can be sent together in the testnet.

intmax tx bulk-mint -f ./tests/airdrop/example.csv

Bulk-transfer

You can transfer owned tokens according to the contents of the file. You can send several tokens together in one transaction. The number of this aggregation is limited to 8 tokens in the testnet, and will be set to maximum 1024 in the mainnet.

intmax tx bulk-mint -f ./tests/airdrop/example2.csv
intmax tx bulk-transfer -f ./tests/airdrop/example3.csv

Interoperability

Please note that the following feature is currently in the experimental stage and is intended to provide guidance for contract development. Please be aware that at this time, we cannot guarantee the safe interoperability using this feature.

Write private key

First, write the private key to the .env file. In order to execute the commands that follow, the account must have ETH deposited on Scroll alpha.

cp -n example.env .env

Creating Another Account

To create another account with a nickname "carol", use the following command:

intmax account add --nickname carol

After executing this command, you will see a message that confirms that the account has been successfully created. The message will contain a unique account address that is different every time the command is run.

new account added: 0xa27c8370eeddc4fe

Making an Offer

To make an offer, you need tokens into your account. If there is not a sufficient balance, use the following command to mint tokens:

intmax account set-default bob
intmax tx mint --amount 10 -i 0x00 -u bob

Once you have deposited tokens into your account, you can create an offer by using the following command:

intmax io register --network scroll --maker-amount 1 --receiver-address carol --taker-token 0x0000000000000000000000000000000000000000 --taker-amount 1000000000000000 -u bob

Instead of sending 1 token of your own issue to the account created above, make an offer requesting 0.001 ETH (= 10^15 wei) on the Scroll alpha testnet. If --taker-token field is omitted, you will be prompted which token to use. After executing this command, you will see a message that displays the offer ID.

start register()
end register()
offer_id: 0
WARNING: DO NOT interrupt execution of this program while a transaction is being sent.
start proving: user_tx_proof
prove: 4.614 sec
transaction hash is 0x8ae9fcd8825815dc21d9fad1841bfcc1375fb7727268f7dffc41952da47dc32d
broadcast transaction successfully
start proving: received_signature
prove: 0.028 sec
send received signature successfully

Make a note of this ID, as you will need it to activate the offer later.

Switching to the Recipient's Address

Next, switch to the recipient's address.

intmax account set-default carol

Activating the Offer

If the recipient accepts the offer, use the following command:

intmax io activate <offer-id> --network scroll

When the recipient accepts the offer, ETH will be transferred on the Scroll alpha testnet at this time. Therefore, it is necessary to deposit ETH in advance.

After activating the offer, use the following command to check your assets:

intmax account assets -u carol

You will see a message that displays the amount of tokens that you currently own.

User: carol
--------------------------------------------------------------------------------------
  Token Address | [bob]
  Token ID      | 0x00
  Amount        | 1
--------------------------------------------------------------------------------------

Another Pattern

To create another account with a nickname "dave", use the following command:

intmax account add --nickname dave

Once you have deposited tokens into your account, you can create an offer by using the following command:

intmax io lock --network scroll --maker-amount 1 --receiver <receiver-scroll-address> --receiver-address dave --taker-token 0x0000000000000000000000000000000000000000 --taker-amount 1000000000000000 -u carol

For example,

# Before executing, make sure that the address in the `--receiver` field is the one you own.
intmax io lock --network scroll --maker-amount 1 --receiver 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --receiver-address dave --taker-token 0x0000000000000000000000000000000000000000 --taker-amount 1000000000000000 -u carol

In this command, the --receiver field should contain the recipient's address on Scroll, and the --receiver-address field should contain the recipient's address or nickname. When you make an offer, ETH will be transferred on the Scroll alpha testnet in <your-address>. Therefore, it is necessary to deposit ETH in advance. After executing this command, you will see a message that displays the offer ID.

start lock()
end lock()
offer_id: 5

Next, switch to the recipient's address and mint your token.

intmax tx mint --amount 10 -i 0x00 -u dave

Activating the Offer

To activate the offer, use the following command:

intmax io unlock <offer-id> --network scroll -u dave

After activating the offer, use the following command to check your assets:

intmax account assets -u carol

You will see a message that displays the amount of tokens that you currently own.

User: carol
--------------------------------------------------------------------------------------
  Token Address | dave
  Token ID      | 0x00
  Amount        | 1
--------------------------------------------------------------------------------------

intmax-rollup-cli's People

Contributors

akira-taniguchi avatar codecd7 avatar hrmk1o3 avatar leohio avatar omahs avatar pucedoteth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intmax-rollup-cli's Issues

error when running register

command

intmax io register --network scroll --maker-amount 1 --receiver-address carol --taker-amount 1000000000000000

errors like this

thread 'main' panicked at 'called Result::unwrap() on an Err value: InvalidHexCharacter { c: 'x', index: 1 }', /root/intmax-rollup-cli/src/controller/mod.rs:1106:70 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Panic error

I encounter an error indicating that the given aggregator URL is invalid. This is strange because I successfully changed the aggregator URL earlier and didn't encounter this error when listing my accounts or attempting to mint tokens.

I also tried to add a new account, but encounter a panic with an error message indicating that there are too many requests for account registration and that I should wait until the next block is approved. This error is also due to the unapproved proposal block.

Error when intmax tx _mint_ ..

Following the readme.md steps:

$ intmax tx mint --amount 10 -i 0x00 
deposit successfully
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: unexpected response from /block/approve: 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>
', /home/user/Personal/intmax/intmax-rollup-cli/src/controller/mod.rs:922:65
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  • intmax:
~/Personal/intmax/intmax-rollup-cli$ intmax -V
intmax 2.2.1-alpha

~/Personal/intmax/intmax-rollup-cli$ cat ~/.intmax/config 
{"aggregator_url":"https://alpha.testnet.intmax.io/"}
  • git log
$ git log
commit 012052e4114d71c647073e19966fed4e60842f38 (HEAD -> staging, tag: v2.2.1-alpha, origin/staging)
Author: Kc <[email protected]>
Date:   Fri Sep 8 11:06:51 2023 +0100

    resolve unapproval blocks (#51)
[..]
  • sysinfo:
~/Personal/intmax/intmax-rollup-cli$ lsb_release -a
No LSB modules are available.
Distributor ID:	Linuxmint
Description:	Linux Mint 21.2
Release:	21.2
Codename:	victoria

~/Personal/intmax/intmax-rollup-cli$ uname -v
#102-Ubuntu SMP Wed Jan 10 09:33:48 UTC 2024

Intermediate backtrace:

$ RUST_BACKTRACE=1 intmax tx mint --amount 10 -i 0x00 
deposit successfully
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: unexpected response from /block/approve: 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>


Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: anyhow::__private::format_err
   2: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   4: intmax::controller::invoke_command::{{closure}}
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   6: tokio::runtime::park::CachedParkThread::block_on
   7: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
   8: tokio::runtime::runtime::Runtime::block_on
   9: intmax::main
  10: std::sys_common::backtrace::__rust_begin_short_backtrace
  11: std::rt::lang_start::{{closure}}
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/ops/function.rs:606:13
  13: std::panicking::try::do_call
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:483:40
  14: std::panicking::try
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:447:19
  15: std::panic::catch_unwind
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panic.rs:137:14
  16: std::rt::lang_start_internal::{{closure}}
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/rt.rs:148:48
  17: std::panicking::try::do_call
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:483:40
  18: std::panicking::try
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:447:19
  19: std::panic::catch_unwind
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panic.rs:137:14
  20: std::rt::lang_start_internal
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/rt.rs:148:20
  21: main
  22: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  23: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:392:3
  24: _start', /home/aweil/Personal/intmax/intmax-rollup-cli/src/controller/mod.rs:922:65
stack backtrace:
   0: rust_begin_unwind
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/panicking.rs:65:14
   2: core::result::unwrap_failed
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/result.rs:1791:5
   3: core::result::Result<T,E>::unwrap
   4: intmax::controller::invoke_command::{{closure}}
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   6: tokio::runtime::park::CachedParkThread::block_on
   7: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
   8: tokio::runtime::runtime::Runtime::block_on
   9: intmax::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

full backtrace

$ RUST_BACKTRACE=full intmax tx mint --amount 10 -i 0x00 
deposit successfully
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: unexpected response from /block/approve: 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>502 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>


Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: anyhow::__private::format_err
   2: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   4: intmax::controller::invoke_command::{{closure}}
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   6: tokio::runtime::park::CachedParkThread::block_on
   7: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
   8: tokio::runtime::runtime::Runtime::block_on
   9: intmax::main
  10: std::sys_common::backtrace::__rust_begin_short_backtrace
  11: std::rt::lang_start::{{closure}}
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/ops/function.rs:606:13
  13: std::panicking::try::do_call
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:483:40
  14: std::panicking::try
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:447:19
  15: std::panic::catch_unwind
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panic.rs:137:14
  16: std::rt::lang_start_internal::{{closure}}
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/rt.rs:148:48
  17: std::panicking::try::do_call
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:483:40
  18: std::panicking::try
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:447:19
  19: std::panic::catch_unwind
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panic.rs:137:14
  20: std::rt::lang_start_internal
             at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/rt.rs:148:20
  21: main
  22: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  23: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:392:3
  24: _start', /home/aweil/Personal/intmax/intmax-rollup-cli/src/controller/mod.rs:922:65
stack backtrace:
   0:     0x5581fb94fc30 - std::backtrace_rs::backtrace::libunwind::trace::hf6d6ec7fb2a9f0bf
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x5581fb94fc30 - std::backtrace_rs::backtrace::trace_unsynchronized::hfd1a36a53305c28b
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x5581fb94fc30 - std::sys_common::backtrace::_print_fmt::h72e336d500c35f75
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x5581fb94fc30 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6f7ff3379d918948
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x5581fb9712be - core::fmt::write::h3afa65668df6f55a
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/fmt/mod.rs:1208:17
   5:     0x5581fb94a695 - std::io::Write::write_fmt::h7382492158d29038
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/io/mod.rs:1682:15
   6:     0x5581fb94f9f5 - std::sys_common::backtrace::_print::h946e0c8633f9c803
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x5581fb94f9f5 - std::sys_common::backtrace::print::hd6913daf34dac590
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x5581fb95125f - std::panicking::default_hook::{{closure}}::hffbe4fd1fe7c3e3b
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:267:22
   9:     0x5581fb950f9a - std::panicking::default_hook::h34712d52926a4a55
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:286:9
  10:     0x5581fb95195c - std::panicking::rust_panic_with_hook::h2b1dd2899955f83e
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:688:13
  11:     0x5581fb9516f7 - std::panicking::begin_panic_handler::{{closure}}::h8e2a4871c56530a6
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:579:13
  12:     0x5581fb9500dc - std::sys_common::backtrace::__rust_end_short_backtrace::h5dabfdb8d1388f1f
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/sys_common/backtrace.rs:137:18
  13:     0x5581fb951412 - rust_begin_unwind
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:575:5
  14:     0x5581fb3879a3 - core::panicking::panic_fmt::h50d38f71cc566a11
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/panicking.rs:65:14
  15:     0x5581fb387c63 - core::result::unwrap_failed::ha112bd852a781407
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/result.rs:1791:5
  16:     0x5581fb4f12b6 - core::result::Result<T,E>::unwrap::h7372f0d058347c37
  17:     0x5581fb504e84 - intmax::controller::invoke_command::{{closure}}::hec39d7226a11a541
  18:     0x5581fb5261fb - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h3a867cc06085a019
  19:     0x5581fb4f45f6 - tokio::runtime::park::CachedParkThread::block_on::hb852d350f23c912c
  20:     0x5581fb3d41a0 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::hed1aa783da09d571
  21:     0x5581fb40558d - tokio::runtime::runtime::Runtime::block_on::h04d55616b010eb38
  22:     0x5581fb465731 - intmax::main::h3aa81e5e3108e214
  23:     0x5581fb3fc633 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5dfbb7958aeff177
  24:     0x5581fb4106a9 - std::rt::lang_start::{{closure}}::h10053639f1881237
  25:     0x5581fb94497b - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h15ddbf90b732db0b
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/core/src/ops/function.rs:606:13
  26:     0x5581fb94497b - std::panicking::try::do_call::hd67a904821eb7b2d
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:483:40
  27:     0x5581fb94497b - std::panicking::try::hfec4a80d475e966c
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:447:19
  28:     0x5581fb94497b - std::panic::catch_unwind::h7bd3bd134c65ceab
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panic.rs:137:14
  29:     0x5581fb94497b - std::rt::lang_start_internal::{{closure}}::hea069f2da23b3c02
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/rt.rs:148:48
  30:     0x5581fb94497b - std::panicking::try::do_call::h8140d2c5d0fa34d6
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:483:40
  31:     0x5581fb94497b - std::panicking::try::h444993acbd0c0629
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panicking.rs:447:19
  32:     0x5581fb94497b - std::panic::catch_unwind::ha4fa5098eff5530c
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/panic.rs:137:14
  33:     0x5581fb94497b - std::rt::lang_start_internal::h33bb8f2385eabf94
                               at /rustc/e9493d63c2a57b91556dccd219e21821432c7445/library/std/src/rt.rs:148:20
  34:     0x5581fb465815 - main
  35:     0x7f282b77bd90 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  36:     0x7f282b77be40 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:392:3
  37:     0x5581fb387e45 - _start
  38:                0x0 - <unknown>

error: failed to run custom build command for `openssl-sys v0.9.78` (Ubuntu)

I got following error when I run cargo buile -release on Ubuntu 20.04.

error: failed to run custom build command for `openssl-sys v0.9.78`
                                           
Caused by:                                                                             
  process didn't exit successfully: `/home/shidokamo/intmax-rollup-cli/target/release/build/openssl-sys-d698e8ba1f4afc3d/build-script-main` (exit status: 101)   

It seems that this is a typical Rust issue on Ubuntu.
It was resolved by installing following packages.

sudo apt-get install -y pkg-config libssl-dev

I think it's good to add some note on README so that people who is not familar with Rust user can try it smoothly.

tx command accepted --receiver-address 0x

Below is my observation with cli. "0x" is meaningless I feel.


~ % intmax tx send --receiver-address 0x -i 0xaa --amount 1
WARNING: DO NOT interrupt execution of this program while a transaction is being sent.
start proving: user_tx_proof
prove: 1.925 sec
transaction hash is 0xf222ab6c4aac70e327133ca8bfddeff9dcdd0c4ea73250e2e40fc557e09de972
broadcast transaction successfully
start proving: received_signature
prove: 0.023 sec
send received signature successfully

Error during setup

While running the command on Windows:
intmax config aggregator-url https://prealpha.testnet.intmax.io/

This is the error I get:
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 183, kind: AlreadyExists, message: "Cannot create a file when that file already exists." }', src\controller\mod.rs:263:40
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

attempt to add with overflow

When I tried to check my balance after minting a large amount, I received an Overflow Error.

The original text of the error is as follows

$ intmax assets
thread 'main' panicked at 'attempt to add with overflow', src/utils/key_management/types.rs:77:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Generating Environment

Macbook M1Pro
DevContainer

Linux ccb1ef3cc310 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 aarch64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.