diff --git a/.token-cli/000015.sst b/.token-cli/000015.sst new file mode 100644 index 0000000..90b4d26 Binary files /dev/null and b/.token-cli/000015.sst differ diff --git a/.token-cli/000028.log b/.token-cli/000028.log new file mode 100644 index 0000000..a2ab4e4 Binary files /dev/null and b/.token-cli/000028.log differ diff --git a/.token-cli/CURRENT b/.token-cli/CURRENT new file mode 100644 index 0000000..52f34be --- /dev/null +++ b/.token-cli/CURRENT @@ -0,0 +1 @@ +MANIFEST-000029 diff --git a/.token-cli/LOCK b/.token-cli/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/.token-cli/MANIFEST-000026 b/.token-cli/MANIFEST-000026 new file mode 100644 index 0000000..04a53d2 Binary files /dev/null and b/.token-cli/MANIFEST-000026 differ diff --git a/.token-cli/MANIFEST-000029 b/.token-cli/MANIFEST-000029 new file mode 100644 index 0000000..31d7a22 Binary files /dev/null and b/.token-cli/MANIFEST-000029 differ diff --git a/.token-cli/OPTIONS-000030 b/.token-cli/OPTIONS-000030 new file mode 100644 index 0000000..03d062b --- /dev/null +++ b/.token-cli/OPTIONS-000030 @@ -0,0 +1,100 @@ +[Version] + pebble_version=0.1 + +[Options] + bytes_per_sync=1048576 + cache_size=1073741824 + cleaner=delete + compaction_debt_concurrency=1073741824 + comparer=leveldb.BytewiseComparator + disable_wal=false + flush_delay_delete_range=0s + flush_delay_range_key=0s + flush_split_bytes=4194304 + format_major_version=1 + l0_compaction_concurrency=10 + l0_compaction_file_threshold=500 + l0_compaction_threshold=4 + l0_stop_writes_threshold=12 + lbase_max_bytes=67108864 + max_concurrent_compactions=12 + max_manifest_file_size=134217728 + max_open_files=4096 + mem_table_size=16777216 + mem_table_stop_writes_threshold=8 + min_deletion_rate=0 + merger=pebble.concatenate + point_tombstone_weight=1.000000 + read_compaction_rate=16000 + read_sampling_multiplier=-1 + strict_wal_tail=true + table_cache_shards=12 + table_property_collectors=[] + validate_on_ingest=false + wal_dir= + wal_bytes_per_sync=1048576 + max_writer_concurrency=0 + force_writer_parallelism=false + +[Level "0"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 + +[Level "1"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 + +[Level "2"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 + +[Level "3"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 + +[Level "4"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 + +[Level "5"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 + +[Level "6"] + block_restart_interval=16 + block_size=65536 + compression=Snappy + filter_policy=rocksdb.BuiltinBloomFilter + filter_type=table + index_block_size=262144 + target_file_size=2097152 diff --git a/build/tHBYNu8ikqo4MWMHehC9iKB9mR5tB3DWzbkYmTfe9buWQ5GZ8 b/build/tHBYNu8ikqo4MWMHehC9iKB9mR5tB3DWzbkYmTfe9buWQ5GZ8 new file mode 100644 index 0000000..a4bef6e Binary files /dev/null and b/build/tHBYNu8ikqo4MWMHehC9iKB9mR5tB3DWzbkYmTfe9buWQ5GZ8 differ diff --git a/build/token-cli b/build/token-cli new file mode 100644 index 0000000..b3a42a1 Binary files /dev/null and b/build/token-cli differ diff --git a/consts/consts.go b/consts/consts.go index 40bbe5a..02bf224 100644 --- a/consts/consts.go +++ b/consts/consts.go @@ -13,11 +13,11 @@ import ( const ( // TODO: choose a human-readable part for your hyperchain - HRP = "" + HRP = "RAHULHRP" // TODO: choose a name for your hyperchain - Name = "" + Name = "RAHUL" // TODO: choose a token symbol - Symbol = "" + Symbol = "RB" ) var ID ids.ID diff --git a/go.sum b/go.sum index 1122b98..10f16e4 100644 --- a/go.sum +++ b/go.sum @@ -71,6 +71,10 @@ github.com/ava-labs/avalanchego v1.10.1 h1:lBeamJ1iNq+p2oKg2nAs+A65m8vhSDjkiTDbw github.com/ava-labs/avalanchego v1.10.1/go.mod h1:ZvSXWlbkUKlbk3BsWx29a+8eVHe/WBsOxh55BSGoeRk= github.com/ava-labs/coreth v0.12.1-rc.0 h1:Zv9mJqddI28BZ5eT0SRgRrzl0sdRCdA/Mm+qZrHAhOs= github.com/ava-labs/coreth v0.12.1-rc.0/go.mod h1:ZGhoIZTWbIaTmzEbprXu0hLtLdoE2PSTEFnCTYr0BRk= +github.com/ava-labs/hypersdk v0.0.7 h1:uhptp5uZM9jJIHAhVOWVGOPYxJYyoTy41gK/yCV5Xw4= +github.com/ava-labs/hypersdk v0.0.7/go.mod h1:enZ9prUkVhV3I3uNGGVdwLMPASwgVYaftjOONMlVADI= +github.com/ava-labs/hypersdk/examples/tokenvm v0.0.0-20230511233943-bdd30e00bdff h1:o3KzbNTeN/oFjPsprrJchvb3SiwfxSPjljxWpTJ8gTE= +github.com/ava-labs/hypersdk/examples/tokenvm v0.0.0-20230511233943-bdd30e00bdff/go.mod h1:tSWJGonQtwnTuD2KN6Q/uaYdBKyHglixlhjCEjor9xs= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/go1.22.4.linux-amd64.tar.gz b/go1.22.4.linux-amd64.tar.gz new file mode 100644 index 0000000..0776d91 Binary files /dev/null and b/go1.22.4.linux-amd64.tar.gz differ diff --git a/main.log b/main.log new file mode 100644 index 0000000..8473454 --- /dev/null +++ b/main.log @@ -0,0 +1,4 @@ +[07-21|18:19:14.823] DEBUG client/client.go:70 dialing server at {"endpoint": "0.0.0.0:12352"} +[07-21|18:19:14.825] INFO client/client.go:139 start +[07-21|18:19:16.600] INFO client/client.go:148 create blockchains +[07-21|18:20:56.162] INFO client/client.go:181 status diff --git a/registry/registry.go b/registry/registry.go index 80ca6b4..6c3d380 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -25,7 +25,11 @@ func init() { consts.ActionRegistry.Register(&actions.Transfer{}, actions.UnmarshalTransfer, false), // TODO: register action: actions.CreateAsset + consts.ActionRegistry.Register(&actions.CreateAsset{}, actions.UnmarshalCreateAsset, false), + // TODO: register action: actions.MintAsset + consts.ActionRegistry.Register(&actions.MintAsset{}, actions.UnmarshalMintAsset, false), + consts.ActionRegistry.Register(&actions.BurnAsset{}, actions.UnmarshalBurnAsset, false), consts.ActionRegistry.Register(&actions.ModifyAsset{}, actions.UnmarshalModifyAsset, false), diff --git a/scripts/build.release.sh b/scripts/build.release.sh old mode 100755 new mode 100644 diff --git a/scripts/build.sh b/scripts/build.sh old mode 100755 new mode 100644 diff --git a/scripts/fix.lint.sh b/scripts/fix.lint.sh old mode 100755 new mode 100644 diff --git a/scripts/run.sh b/scripts/run.sh old mode 100755 new mode 100644 diff --git a/scripts/tests.disk.sh b/scripts/tests.disk.sh old mode 100755 new mode 100644 diff --git a/scripts/tests.integration.sh b/scripts/tests.integration.sh old mode 100755 new mode 100644 diff --git a/scripts/tests.lint.sh b/scripts/tests.lint.sh old mode 100755 new mode 100644 diff --git a/scripts/tests.load.sh b/scripts/tests.load.sh old mode 100755 new mode 100644 diff --git a/scripts/tests.unit.sh b/scripts/tests.unit.sh old mode 100755 new mode 100644 diff --git a/tests/e2e/e2e.test b/tests/e2e/e2e.test old mode 100755 new mode 100644 index 18c594d..062be17 Binary files a/tests/e2e/e2e.test and b/tests/e2e/e2e.test differ