diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index a9746f9..52746cc 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -12,12 +12,22 @@ jobs: runs-on: ubuntu-latest steps: - - name: Get MiniMina + - name: 🤌 Get MiniMina uses: piotr-iohk/install-minimina-action@v1 - - name: Default network + - name: 👌 Default network run: | minimina network create minimina network start minimina network stop minimina network delete + + - name: 📥 Checkout + uses: actions/checkout@v4 + + - name: 👍 Network from topology + run: | + minimina network create -n small -t tests/data/small-network/topology.json -g tests/data/small-network/genesis_ledger.json + minimina network start -n small + minimina network stop -n small + minimina network delete -n small diff --git a/README.md b/README.md index 98d33ca..84aea9d 100644 --- a/README.md +++ b/README.md @@ -12,5 +12,6 @@ jobs: - uses: MinaFoundation/install-minimina-action@v1 with: stream: 'stable' # or 'unstable' - ``` + +See [examples.yml](/.github/workflows/examples.yml) workflow for more details. diff --git a/tests/data/small_network/block_producer_keys/receiver.json b/tests/data/small_network/block_producer_keys/receiver.json new file mode 100644 index 0000000..2ee72f9 --- /dev/null +++ b/tests/data/small_network/block_producer_keys/receiver.json @@ -0,0 +1 @@ +{"box_primitive":"xsalsa20poly1305","pw_primitive":"argon2i","nonce":"7m5g15znscwWpkMvY5qp27mHomNvkrJsZJ31nZr","pwsalt":"8PAdNrBn69LoxVNkWj7CvQQQ9gN4","pwdiff":[134217728,6],"ciphertext":"BVkvZ6Lh8jWB56NRpGRJngJ3JRipzfX5Tw5PBHshrrffc6r7qun7nkHPSief7gpYq6HGGs9hg"} \ No newline at end of file diff --git a/tests/data/small_network/genesis_ledger.json b/tests/data/small_network/genesis_ledger.json new file mode 100644 index 0000000..cf9f02e --- /dev/null +++ b/tests/data/small_network/genesis_ledger.json @@ -0,0 +1,539 @@ +{ + "daemon": { + "txpool_max_size": 10000000 + }, + "genesis": { + "k": 20, + "delta": 0, + "slots_per_epoch": 480, + "slots_per_sub_window": 2, + "genesis_state_timestamp": "2023-09-11 20:05:53.217229Z" + }, + "proof": { + "level": "full", + "work_delay": 1, + "block_window_duration_ms": 120000, + "transaction_capacity": { + "2_to_the": 2 + } + }, + "ledger": { + "accounts": [ + { + "pk": "B62qjsFXPCKWseqopuLs1q1fkvuAphbLWmGfn5WLV7DfnNr9mxWN7oe", + "sk": "EKDyUS6K9wkVGiYrvJhtZHSMjeW4JEMiWCXGNco4ZEkbMN9qSeQk", + "balance": "0" + }, + { + "pk": "B62qmabsxin5ukW6E1UJXhTx1wKn6WurScBRjPs42Z6mriP7FKhvWmy", + "sk": "EKFFrQVB9tmtHVxAGBqvZYUy9Wm2e5ERwNh4dgZpjyLsT6nfpmPS", + "balance": "9999999" + }, + { + "pk": "B62qo1s8vYZPvnSTX1GnNKoDBswZCgBKycNaEoD21XcsEcGfEWTnarR", + "sk": "EKEPbhrsH3EoX5Lhu9aGNR9GdXfEBsAQbsPv2v8UVNzQXVP2grGQ", + "balance": "10000" + }, + { + "pk": "B62qpD8FfGoKL494pckX9V4PcuCayW6BJktJhCkU2XpJdC1F6CW2jqu", + "sk": "EKDnjygo2ysxUr4dDD7j6138BS6ndikfV2P7KP1pYhGwuHCNv8T6", + "balance": "10000" + }, + { + "pk": "B62qkYZxbeMntae9zqBt8jymDPKHtY4B8xsVhcmYa7KaZGmfGNvrKN7", + "sk": "EKEwYQvNCMGYYSkswzSjdJu5p49PxeeGRDBBC4LsKmG9xy6tpzAf", + "balance": "10000" + }, + { + "pk": "B62qp9xaaSKBfqXZ9c2rVVQprXaK5LP1xUBPGJ2PecojRWmA55aks3q", + "sk": "EKFD7nHBCny212vXSm7a4o9aP9E7jsMKDj9NZ34qhbxT7HKiVtJL", + "balance": "10000" + }, + { + "pk": "B62qoNJ17y5rDMEoKm1fKE1EQhyg8eyvFS5mMwDKopoJR4qKScrcxu8", + "sk": "EKDyJuukTEi23o7ypMzSGyKR5XVKYrWtnV9PGtpqR53c1aKB3Ux4", + "balance": "10000" + }, + { + "pk": "B62qmLLo8nZSRTyjHxBb6VH5rM59PDVCMW4hrsEm8XbqD2jKtUEccps", + "sk": "EKF9eCu6p15YE6EasBhNxkSUTXosmSahSvMps8BTHLgHjuwZfKof", + "balance": "10000" + }, + { + "pk": "B62qpkGoYmmsDHp9E51ut4ZecdExUimgNgjSo2zVJqrLpYqBPbXNvwk", + "sk": "EKEUczhchA65eTG97Cpro4d6sBPiGeC5V4GGrrcDwb61VARw1xKF", + "balance": "10000" + }, + { + "pk": "B62qqDZRj4tvcQ4SzCSJ1W9W6W6M88qHWsiQAVLBgPbamuSkLkn4zYe", + "sk": "EKDkn49dk38dvNjfd2v1xnxuWdbcmtr7kWbYtA21Xkef9me6f1Zk", + "balance": "10000" + }, + { + "pk": "B62qo1ifzBNkoVojyd7nJvGtDviRyyzc28mYU3pt3bVMX8cxW5Py56A", + "sk": "EKEt94dX6YStcHndFsGiTUCL7BmNtKaSxU8LnfvqKTarVLMxuonc", + "balance": "10000" + }, + { + "pk": "B62qnAeQj243iPtm9zSDPEZCnosnyJeHXC113EBuG8uc4v2Dtndsrdy", + "sk": "EKDkjWx3xxg8MEwd8qYoZiV4iNCHMe9rhaRRPaSHq5N7T94ydKUg", + "balance": "10000" + }, + { + "pk": "B62qqEzSc5maou9LVsBVsQYEoD33efDBEKmRDoZQ7EoVha9NUUkxhaK", + "sk": "EKEc44XEUKKVt9jF8nCPsEtoQDpTuPj3UCmSngv2U7tJf2U4mL3A", + "balance": "10000" + }, + { + "pk": "B62qpYabYAZQz5tp1V4tBfwGSswAwoypvhZ79wXYwqW4EwsXAxgkvby", + "sk": "EKFM6WDpw2BVPoyimiTvyyS64XF6JziPAhQX5pBUjA91mrafdMbH", + "balance": "10000" + }, + { + "pk": "B62qro49hzuTXNDzFZM8SvMNJB5PX36Zhy1muLejZz5bx87bH1ATijA", + "sk": "EKEMmcWuwT3tgJXRZymfPbtzoSFVXUi897Ttkw3MCXdCEMpyF6mj", + "balance": "10000" + }, + { + "pk": "B62qnWo1RVzwm5e4WtD6mv7fny5nRVmemWMPvb9aKtr1mj77cnq23GH", + "sk": "EKDmCPF9QfhEZRayMGqfSxaaKtTgKKYDSUakepZrXN17Yn81GwJi", + "balance": "10000" + }, + { + "pk": "B62qmsCEigEvPmBJ9aA2ayEdm5w777epcAsj41cKtm9VEULqrdkD5mA", + "sk": "EKFKAVKss6XEhquLwMsnc3URdqq7J541zsF864d4DiRGa6ZEoobw", + "balance": "10000" + }, + { + "pk": "B62qqGogFx4JxS1u26Sys9L4yCotwXz3nnQz5vyQo4wkcX1P7j1VoDt", + "sk": "EKEB8SaUVZJxmnbwPdvaWdprpTnm7d53X81J5XWvWSmBsezjf6o6", + "balance": "10000" + }, + { + "pk": "B62qpQj3pwWkrvZAQEpXgxrNk2XDPGqXpDGpMimxuadd1CkyEN1vUXC", + "sk": "EKE71UDjE1kkz7wXXHQiuRqsk2tvTG9NMZ8wGBHP8Ld26v6AojVY", + "balance": "10000" + }, + { + "pk": "B62qnFMJAG1z4UfhthW9RD3YH9BqkdbKLkKWiRptsqcysJNQC46iHtg", + "sk": "EKEXSekwQZXGGaNgG7yhFksw31CBg8AYDYtzJbdusBthoi6qJ6tA", + "balance": "10000" + }, + { + "pk": "B62qmiD769jvLmxpxjdXxdC84zigNWqtySMxeL1jGSPdPoHt8UAqGGn", + "sk": "EKFJhjpCt7ctis3TTJVoe5yHE5fZaeRg5neUvfADnupngeven1o1", + "balance": "10000" + }, + { + "pk": "B62qofmEFh4d93JGArZV3ZBmJZBzhnZqDoZkateU26neVdR1pcMPpic", + "sk": "EKEFePdTQzQ9rbvJpKG8zgmJZQHQ38Dq2HJpqYQRNwkR8LwbjnjX", + "balance": "10000" + }, + { + "pk": "B62qiUes8C1N5joWCNhBM7ddNem8x516qRDwdnJS3jyuRneetGX8jPa", + "sk": "EKEk6xb8aeM4aLfCHvsXjH3mQu2o3zvVEr3ci6xRYWi4mgjpwCa5", + "balance": "10000" + }, + { + "pk": "B62qoZjJZkqzYWh9cwd1y74p6oapFK6V3B8hYo3BEaMRGpoMDs1Evoj", + "sk": "EKF2Ce5pVskr398TrYDUDNbeQa4RW6zteaeMqEZuwVYAP3opJ1j4", + "balance": "10000" + }, + { + "pk": "B62qpVYDQo9fkn8d2DgubEwmWSp5ewHV86Xmfi1Pi7gULMRP2nPFEFk", + "sk": "EKFY3Lcemkiip2zh1aDt6VKi5PpVSXfjY9q3qTTCR1YJUaBqGVNt", + "balance": "10000" + }, + { + "pk": "B62qkpeZw8u8uc7tmSmH2yP8fpiLSTerPiJRz9YqsSStayWCYtZmgdB", + "sk": "EKFPznfkiWDpZDh86KgZBd2ucxrETGpEJbmfXWj3m1HkB5kxAkks", + "balance": "10000" + }, + { + "pk": "B62qqnuJmShCsb8ZEHSHfNZ4sYpq8TWg6wUhvMTANf1praaFcbMwPXF", + "sk": "EKE1yAM5yW7MHJs7aFDERpmhUzvxWsNyHMiEcfVFE7rgkkWEKdCN", + "balance": "10000" + }, + { + "pk": "B62qkF6N3MoSrYwSHMm3mPnxHVvzmqojjUoB9C7eLC4gzYN7ctVHoiZ", + "sk": "EKDr4g1uKdfF2o5GRWsD5CXf1i5mPfThEKzDX9mrrXj7oLmf7U3n", + "balance": "10000" + }, + { + "pk": "B62qjJjYnJydUHaqJS6n6NAZJzYVJ3UUQW9UMNLBRdk32c6prgUoryg", + "sk": "EKE1wKPg4h7LBcDgoMmAydwFyTGuRsSUGuqsbjqgVzcxy8V7Gshp", + "balance": "10000" + }, + { + "pk": "B62qkXjgbn3CFb1CFGXvRGntoFSL9wfXYex25opCFhgMm3is6neQFZe", + "sk": "EKEEmtyn9kzTR24snpSuDAE2WVdrn8d8zc4hUt4qLWFNS1Hx8E5L", + "balance": "10000" + }, + { + "pk": "B62qjov6R2VgazferPngZaAFmc7UEUKEda6YQgRNu1pszeJhUk9mLYY", + "sk": "EKF2xYgJbYvHQEfozjhAw55j5JC2VzBwtQEd2nAnRxaKV8o9axgM", + "balance": "10000" + }, + { + "pk": "B62qqP6cTvAB8n1CqpufViy2A3U34DMCwHtAge9nw7HSxLgC4J45s1e", + "sk": "EKE87ShqKmBxCfgwb3M9mnVV1oELohPCTSTUACa8gLhRfLyF1qR7", + "balance": "10000" + }, + { + "pk": "B62qiVbjp1tx5pwJzQ5xsSbBL9SEjEzXaq1KiWsvNSjhbF1JonBxMMU", + "sk": "EKEQ8UHdQirsZMJqdWuN1QBu6vsiE3WbMoPf66d2s81vL25huBgR", + "balance": "10000" + }, + { + "pk": "B62qijyroJH76RtLEw6zoepUYry8CkgB9Gu9xC1j3oGmEfvYGUJjmvr", + "sk": "EKDxnRJwjmizwjs6wkoe98X2VdzfJQD4gcrUMU5WWv8diN9sV4Qv", + "balance": "10000" + }, + { + "pk": "B62qrgxZNLxBvTuZFTRzLx1zSZpF5g3wzMz27pQVTkisZAmWQPCZ8Qk", + "sk": "EKFbwHt1vQ3oPRnLLSr9zbsufqZPNQsKvDfvvJ3TvpYFY4gR1aGe", + "balance": "10000" + }, + { + "pk": "B62qqA5vcJRUf5xjsxZeVECyMS5khrAEjA9u3NpYdZaTsK3EkYXNUzW", + "sk": "EKEPzKZBpGHthsN36NQnyZaa9B3iHA2cAVBFM6aCFnrMLsJSNtz1", + "balance": "10000" + }, + { + "pk": "B62qk6dkyyuuRrrYDmbbnYzQnWFnnm3rEmkuYtWBD9xZm7u9ZvBsGRm", + "sk": "EKEzX8xhAbU9meCRdLuYEJ4SVhoEAj1ndP8egB7g1zK9g5gMdM6y", + "balance": "10000" + }, + { + "pk": "B62qmeaj54jXcR23cEDb1yeHNTFCYJ9Fjsv6aLgcwR8NpsvLJuiS19T", + "sk": "EKE3cAhWR9ouKiKsS9j254zQR39o71H1NSzFrxXJG4ggyLgtpqxY", + "balance": "10000" + }, + { + "pk": "B62qnH9upYQkNwqwJWMwmCvRWHrLFLy6YHqTdzwtnuFpbmCMxRAYFu8", + "sk": "EKE38PWYfQiKw6LE7xaE3nyhQerSf5q5XzYVAK6Z7ZEFFSWGTxHw", + "balance": "10000" + }, + { + "pk": "B62qjnGMEwMQgDzGNDt4gpe8gg38NSoSdYmFEphsmazpY9EbVRDqWVp", + "sk": "EKEqeqG1scAag2ebmQ79yhUnutNbrXwDQWtBfGKMjhWSxd4hRJjp", + "balance": "10000" + }, + { + "pk": "B62qobpzWHbZmc9tV91nWeNCazLDhxALsBYNUxNiZ7yBMkdKSH5tWfE", + "sk": "EKDuDqUdVaqja7sWpPJEbotz5nDiHcEEYxYBJq7TBiUfuf5MbNMj", + "balance": "10000" + }, + { + "pk": "B62qkWL3WaJNp1HKY7A6bV4drbjYJ5DRiFNFHE8Q8h2RCK4W27LJ2L9", + "sk": "EKDry3N5KgGj9RJUYDYhhr4NntEr8jf1qWQNPNBn19cNzcVYvqJ2", + "balance": "10000" + }, + { + "pk": "B62qoSyqWG8yJoMVeePYsqKWLfKz1UqWURkUEvy8TTPHUDj3D3XTQ18", + "sk": "EKFKhGJk6QxQd1LDvbXr1fzasmP3kpkCAhA7hrLaQ7esNCS2Z46Y", + "balance": "10000" + }, + { + "pk": "B62qoPjLycCDMYN5pexJhX92ZvdnRdS9TWUnAbVGJcSykPZ4AoMHQZt", + "sk": "EKF1zbaqbzhzhEDNcmDrGEdT4pHtxifpaZdzdnTMxKyhPdEmEGCS", + "balance": "10000" + }, + { + "pk": "B62qmNdRXzRJHEn1s6hxKP6aH53RNdLLYiEesXHijbG13UcKEvmdeyP", + "sk": "EKFGuqDPU6NxVW7UNTCVJ99WEtSLWrRXQMT6GmLeG2KaxV2d8v7N", + "balance": "10000" + }, + { + "pk": "B62qp9yRJwZMtHBHkH7JJCpoNHuUbY18viRJiQniUztMjXUQxahL6WT", + "sk": "EKFRDExFsYwBYECFwXN8ubxQZq8q5LW4Utm7U3rPmfCB32Ro2PHs", + "balance": "10000" + }, + { + "pk": "B62qkewfzuj3uWw74dQdoakN74mxa3gsNshAUNe3UtAo2ZH4WovfB2q", + "sk": "EKE81JsXz8wkocYoKRrzUD2crRtimwo4FCpGFKh3tZbvXSAtP9Eb", + "balance": "10000" + }, + { + "pk": "B62qoGJikhpQGffmgGavZxeC2BLSnMmHNSoaR7NnWVHL8R8ACuoNRtj", + "sk": "EKE231NE5jSVrcoGgRnBCMamevcPQYZEHYb4kCGDNs3hoNrtXTKq", + "balance": "10000" + }, + { + "pk": "B62qkyq9mEtasSf1nP1NqMC3tRtq3BCdHY7JJ9ECqu7btAB9qwmfDwj", + "sk": "EKEXH1T5k1wJxpwWWerEw2rMWupXSCBXy1kQuty8ZBTPaoqSRH8A", + "balance": "10000" + }, + { + "pk": "B62qoEdc4ocHFR49PVnjrXY1MPioatXeqgohMgs1MicaqtBB7ZS84u7", + "sk": "EKEAm9zjr6or2GxEDngg97AuuQiWTuLqKYEbEfm7K7JV65WBH4ek", + "balance": "10000" + }, + { + "pk": "B62qoM1nZUbNE8qgKgqhDRgnpbJinm2nAd57rY7FYpt6QbyhHxvNzCL", + "sk": "EKDs6LfcDYwY7hQmbYx7TuqwKKoBG96z47ddtZSTUiW7MEm7aPax", + "balance": "10000" + }, + { + "pk": "B62qpYH347zbSVQHjnMFzCCy9PmSJaoojP3dji92qN3d54uNRtfBfvk", + "sk": "EKF2jKDzyj54Sk22ZdNeXSaZK1Dw1TuMUT3KyvwfpXh6QJG4dEhY", + "balance": "10000" + }, + { + "pk": "B62qrcBwia3retZhHHT11amaDbd5ZnUosEJWGyyt2KRsrGWgWWyVSmW", + "sk": "EKEqVNQoeq9yquHo4cGphaTxKV9osajS17aaEYBu3TZyTofWz3gs", + "balance": "10000" + }, + { + "pk": "B62qqrefK894jSVQJrfnkNqZCKk4C23kkCoQbqBd1DADcgxsxSH3Yox", + "sk": "EKEjo6GUvyEmxhfVLFDU1hXK7LwACuKoccfiEnWWw6KMjfbToMF1", + "balance": "10000" + }, + { + "pk": "B62qjgbuGoeZNqbnac2B3dQDHYY131wSgMV7UzFpfpxirCFUPQH9rJ4", + "sk": "EKEuheb21BNba2PyTNZLouord8uPhC3xUj6N1XmvB9TFthMjoAME", + "balance": "10000" + }, + { + "pk": "B62qrkJj296jzfaYC96adKfYQf92jpjFWshU2YpxxbhRRmC4PRtrS6Z", + "sk": "EKF7WCCEcmLEqXJagw7qTMocBAebJxXQLksa4XWWwCMFD492b1aj", + "balance": "10000" + }, + { + "pk": "B62qqRxPiWwXT2MbrphXiCf9dYWgsoSXURwP5r7oj7fuh9iJAupZWm7", + "sk": "EKE1wkwiLKqUi1N2icYRNtWj9ACNo6CP7xfHXqi6Qs3s5rF86Spp", + "balance": "10000" + }, + { + "pk": "B62qkGuKYLtWu68eiFEFLsUuwTQv3ACBigWwF2rMduBhdxZapycp1JP", + "sk": "EKFRspNgPPhXKdWTsrmWLtTpoJaz6jcvkX7Q2sLWAvyWkhbr194L", + "balance": "10000" + }, + { + "pk": "B62qmzBhDqYNxUspXZbzDYCXStuq58AF5auBaDNiMfc1aZKPi3uvk2a", + "sk": "EKENWUvZRLf1BzNv9DmM6PamBWV4qugoNybeEvqfyHwavNLEAsnz", + "balance": "10000" + }, + { + "pk": "B62qqfL8bLBbzGzMSPYoA2Tf2Sr4sN7Nu5MHfcKchv5kA2ReJyRwV96", + "sk": "EKFdpxmW2eBZgTjiNuFzfVxNmBCbujjJLVXvygBPt7zgdDH1fkXA", + "balance": "10000" + }, + { + "pk": "B62qiezysccmHTK8tLp7QSrXNQytYMoUAHjEwv3Pbsq4uZR7QDHMmwC", + "sk": "EKDkitFD4sqtKPXQivsF7Fh2Lx4g6t2YzN1kUudedrJbdSnznoXK", + "balance": "10000" + }, + { + "pk": "B62qmrqoXWyG3rq3eKvmSTfJSba49oQMmvj1x5H6xU7beCXyGVKraaG", + "sk": "EKEub4sdi2QPELxeVBVHdZfp7J1E7A8zriwAJ4x8WrC3MPCTdsGD", + "balance": "10000" + }, + { + "pk": "B62qo8Yh9XvsyvpoDJxidWHDj5RvMVJ3nQ8n4Ty6TMTor6QkieJg3dA", + "sk": "EKFTDUPsHvsAx72YsYTyUswY9g4PRitQTtsJohgFcHj88zkdnfJM", + "balance": "10000" + }, + { + "pk": "B62qiZaTYaP7UsZUHN5FaY18FAjGs4cXmXtrbPshQqm8XMpDanxGrua", + "sk": "EKE55JRefhYKCqGfpzqG92GWLeK1Y9kvSLn9Py5x5qrPa42caFby", + "balance": "10000" + }, + { + "pk": "B62qpME54tCHZrXHi5kjdH3ddQXmzPDCsks3QM8ES3F5KRaqjeMBawh", + "sk": "EKELZDM8Zt5GCtvQrA6U44fyzSVjHd3AV6zBJhKLjserwRHiFvUr", + "balance": "10000" + }, + { + "pk": "B62qoZwMHazgmw7izwWm8BkxoihguCuztDnzyAfM1dcuPdCCmkiLpUg", + "sk": "EKFKsQNDJFXacYwj5VjwWCb7JZ7r26DN9EdXNSBkYDFyM5QR53n7", + "balance": "10000" + }, + { + "pk": "B62qmibYnTvjb6A93we4G5Gw9SDqN1bMZTJeqzykCBsR8bJY4hRaEsh", + "sk": "EKF6D4Pyc6Z2gokbUmNCxSHpwRBVNRJNtLV14PLEqnFWggRBxrmr", + "balance": "10000" + }, + { + "pk": "B62qqbHRFhG5QzUMdQtj8da3nZ26Msrv1jJM31Zy7fWTUV6XC1gS6ec", + "sk": "EKEAuFhtKxEjAtKFuTAmNMiQd3ghG3A19e5BFgtH5ozk8EQZqNxe", + "balance": "10000" + }, + { + "pk": "B62qj46unvQYL59ok38TQorQm36kow3BwZz6e1TUjs6C7LVqiqdkdA6", + "sk": "EKEtKwaCMEsiNmVXVxJDpQvZNc9yLJGvpK25kV4YLKoWfn7uGpvR", + "balance": "10000" + }, + { + "pk": "B62qnE25uPXArT8hUWW7PR4V2EhDuqcDg3ye1h5nSNo9LjQcA4wmmSw", + "sk": "EKDtxqJSE1xDKvcV7x8WhMfZrL2qb1W49HXuVPGzBf5K3g1bVzef", + "balance": "10000" + }, + { + "pk": "B62qoLUp5Uo8XG7yBn7QwBeB3CpTdmnP3BaWfESZsxzX5D6yUKcDAPY", + "sk": "EKDjAYCUZQ1PC81dPjeJ5Zhan95RoMcH5KY1WJi63dg4VYeuo9TE", + "balance": "10000" + }, + { + "pk": "B62qrLSUp2Uh2woWYZvHkdZJKM25sTmvffgfCWT9AsbgZBEVF9kQ1Wj", + "sk": "EKERLhV5verHzVQqFsLppQ3MSsmo5vwLYNQSeAuYDsXi8kyU3Gry", + "balance": "10000" + }, + { + "pk": "B62qn4xdNNrHqSf4xwKAMyeW5NLCh4mAaUCrhdqqocgBqjXLwJeLwK8", + "sk": "EKEPVRx689s6E43Dd1tWo7YEc1y2jgWAyQtc57f5YnuLzTyj5mJz", + "balance": "10000" + }, + { + "pk": "B62qjmiogCVpJWbnAXnMFgD7BQFzhuNZomTYcBFJLfxWMmJsnGDhYrj", + "sk": "EKEYfu6ZhcbT7rBB8xL9X1iyCyrq1GdW411F29yHEyZasvVKRxrg", + "balance": "10000" + }, + { + "pk": "B62qp7nVtkSn7YAS2RFzmdFLN7S8yKth7FBV3iWeFDZVZJ64KuByLAc", + "sk": "EKEF6gJGTqF5jw3CfetNePFcSaMvoFfpQPehE1Vg7Wb1N8THm3of", + "balance": "10000" + }, + { + "pk": "B62qjC62zFmptjPM31eKcMkDeYQB3JR1yY3CM4LoguTgWJeUgj9LDDp", + "sk": "EKDvvJ5bmrsVuKSTwrumWwhnsmzCMWASjEgJBL8xEfJs7hDLuqUk", + "balance": "10000" + }, + { + "pk": "B62qo5nm4cDmzHKdLy38TiZLmCbmc1CdPEFFiVcdmbbpBeBMuxuji6t", + "sk": "EKFHF1xKEmvN3zvGrgigEVg3oSSHsFLucSqufmBzK9viAnTWyDKT", + "balance": "10000" + }, + { + "pk": "B62qpri5n5sq9aJyVjLYGn6GDzGPVVS1fBPZ7DLKKJgTvDxZZrThh1Q", + "sk": "EKDy7WP3zH2EKwFbDBrz6emyFmmm1iNiwCbC5zVuPXkrBc4Kmoyg", + "balance": "10000" + }, + { + "pk": "B62qqBpMYevhydZWsBBh24zNLpeYECxj7yTMvVBwyAfaA4s5AdcMCU3", + "sk": "EKFX6uZU4QZzKaAhbHt4BHzFw4N1D2LHtKQvcaQwurgx1CcbMDtm", + "balance": "10000" + }, + { + "pk": "B62qifjMP9vndK6scGjov9Mq7Ho8kuASeMnsfAh7hmfwoDCXjzNiuHk", + "sk": "EKF95HbfvjcpTj69RcyBVXdCpcgPu9w7wYUXj7vrYQUCu4wHcLoj", + "balance": "10000" + }, + { + "pk": "B62qm7udM49A79QKkiiL6GQnXBjBWjXN4fQPV9hN1RzLA7wZ3BF42xT", + "sk": "EKEkcJMYjiDWYBWoY6keQmmSi2k5rKSWGpdxX8GgZBykcZkVe3XJ", + "balance": "10000" + }, + { + "pk": "B62qqjvsrF4QQreweZpc2JamprptmxT3mYTD4DPX2JDpoQVQRX7dveo", + "sk": "EKEXsJCSMPZx12Z4tZ3XkrnZ9CAy1L2qFeUy1rRhbeqHRDD1i8zv", + "balance": "10000" + }, + { + "pk": "B62qrXZY3uwiJmM5X5LSU2AULGmNBHv3TwpLjT9n6hn5PcQJwJf7y4V", + "sk": "EKE8huaHuzhGd6tHtNfT2GYCMbyUQipgyXxofKzErs7Sigic4XKN", + "balance": "10000" + }, + { + "pk": "B62qmq9qtbSKDHMKBCdxT61oNR5hS8kBJodgk7HQiZNpumu9vW3LfGu", + "sk": "EKE2ztgU62RneX2ZQxEPTL273d3NaKmzWfU57N2gZjPr71Qjck8N", + "balance": "10000" + }, + { + "pk": "B62qqK3m2sj5p7y4vesXp66GF72vjoBDiXzj6GdbLErN5Z5r638yVxn", + "sk": "EKFJwefFSMPFXcoUgJCFFJfGXEnS7eqtoaECmAJ3wE13bMccv9bj", + "balance": "10000" + }, + { + "pk": "B62qm4TpwUDpxKiaY6ypBnCkyBjnpCXNCixk4Y8SAn6XBtYyZc6vWhr", + "sk": "EKE2oc493aqM43HvprEXMeeDXRMwiCWYRPPETnoetq86ruuXVak7", + "balance": "10000" + }, + { + "pk": "B62qppYLp9gHFiq3i4Mw5zfEP5ZJL4SoGDurMK6YJJRBpmARTFYP38o", + "sk": "EKEURUSeGB5P5uXyEuabe5PMCmnb9hhu5xsjZfLLZhAT5QLTwrqW", + "balance": "10000" + }, + { + "pk": "B62qrtcaUT7ruM3pNfWwFuFyMugxdX4gxSSKeQpBxzWygdsEDu4a7dV", + "sk": "EKECMjXbYENAu6ic3rN5waRniQcRPmieJoEUBEXARaQFxsjT9beV", + "balance": "10000" + }, + { + "pk": "B62qnhuKuTkbfnm1tBD4hXoALP6rhnqduGhkJP8hUSMfANjaKEiyLDr", + "sk": "EKEjwampHwSE8RdJaoLU1RwxLWQMM5o4BuP8RXXNajzrk2fHgFcg", + "balance": "10000" + }, + { + "pk": "B62qm2fWCiG8nRv4iNk7BC96dM8oXjo6hRw7axYVMfatCiXxEo1iWpN", + "sk": "EKEZ2KbeN2w1gVKfdvqhXBXG3XNEkepRA5De4cKsLfJbuirUo9kV", + "balance": "10000" + }, + { + "pk": "B62qjPA94vtq5mv14z4VajVZGtwVziZojK39PkVXQfLc4SaranoQ5Ev", + "sk": "EKFVQLJwCW3UFoQQZzi61kHgYcpiVkvFmj5HCqHyCd2k3QnttE7H", + "balance": "10000" + }, + { + "pk": "B62qoYKtF7Cci66YAFrnLge39cnumdcoYyiv21s5kztj4h9hzGi9aW8", + "sk": "EKFJv5UoE3DR4kjeqtcfD9WiJWYNy4ZW9ZSpCox4NjLGytKsBbCY", + "balance": "10000" + }, + { + "pk": "B62qptCgus2mac3JLKedmTEPEr2fbDC3NnGzeoiFU7n1Z4HNg2LTxTe", + "sk": "EKEyYUXuSuFKnsYatQXhytBvxtDhUD5chTSoAExz12vXjRLk4LdX", + "balance": "10000" + }, + { + "pk": "B62qn83UKrFZXFywQahBPgNHFdYzGX4JRDhA7B9Z3wviauevWkKndEy", + "sk": "EKE3fD49pwk8MtQDLaUWzar2EsKDHGypdnL4EBxMBMWDDBRkC41x", + "balance": "10000" + }, + { + "pk": "B62qjF6huKLaiiZR78SsGDap3j4QNSzjRmgmWNxZMHSKyJZCP6JmKpx", + "sk": "EKE5P1D7BrUMjSyz6wi1rv4EoaNVKnn5dsY2bxN9D9qtveEpMbLh", + "balance": "10000" + }, + { + "pk": "B62qooau9JeXx6wLhfJ2ddJo8c5qxX4nAeFLj5fXanCvyWViU3mSzBR", + "sk": "EKEQ1VYh6GQKcZXnTpPTeGx1UU8L1heVAgkLVg1kxgPUtACTV6ZP", + "balance": "10000" + }, + { + "pk": "B62qq4ibe5T2UJzXGb514UgsHsmgJqEbZZ7sw4c5ExEjLeF22y62Dp6", + "sk": "EKELkCYVioHwXHFhX5BUhJtVGh4iemPfdwKHubZmVBwv93y52J4M", + "balance": "10000" + }, + { + "pk": "B62qqRH2JEFbGyvKEowjGvVvQmBtC9iUwtQCbXFaQcUDRKrNKi3eJ8u", + "sk": "EKEdYcbvbbHSaYCjuX1iWDGYUyofs5uRZwNqnpMok1rRT1Zyt2Ka", + "balance": "10000" + }, + { + "pk": "B62qjg1hM71dsmu5YzEVAL7jmbfmfiDUkFs95EMYFdpSkvB2Pr8Hey9", + "sk": "EKEM6nTw4xLSfdPM28Z7RQZfawWzppxMp2Kr4TdFYfN9rcSySSyb", + "balance": "10000" + }, + { + "pk": "B62qk2mXQceF6rpxkYNjtP4XTddb3pofgyXHw7LPWdjZetqos69rApU", + "sk": "EKEJH92LrvPAqSeYJY9y6F1ugw4uGXofJriVNkhxsBz1GHQRRYa3", + "balance": "10000" + }, + { + "pk": "B62qqpA7QHzXiSyCqkUGdDi8UhzKgqcViouBbtv9d5wpFCV2MvaHjVd", + "sk": "EKEFRZCxYr5TjGsjeT1HLatW5Ww6PS42bagxAVFLDvb6DEM399tx", + "balance": "10000" + }, + { + "pk": "B62qizauHMhSGaE28k2DenJvJELY7MBHuXjw1UjX9HXBovrkxLh6jjN", + "sk": "EKEZrD2RHkP5nd3UqQqap2svVmyekR8iGgzRPNTqwPzvjM4zER5z", + "balance": "10000" + }, + { + "pk": "B62qo6gSzdHRcmxYrig48ynMZsDcvgdRmEbHMPqgZcp86h6yT2yK7WF", + "sk": "EKF4Rx9sTkbS3Ywnw5MF4whiTLJTsWgF3eCKgUM6D6DbTxfDVNiS", + "balance": "0" + } + ] + } +} diff --git a/tests/data/small_network/libp2p_keys/receiver.json b/tests/data/small_network/libp2p_keys/receiver.json new file mode 100644 index 0000000..ebc4dff --- /dev/null +++ b/tests/data/small_network/libp2p_keys/receiver.json @@ -0,0 +1 @@ +{"box_primitive":"xsalsa20poly1305","pw_primitive":"argon2i","nonce":"7k8rgRbRLaFLoDEQUc1Fx1RXbK3XRUscs2FdZaG","pwsalt":"BTMRm2WJ1QAN1wpYMXznspujvpE4","pwdiff":[134217728,6],"ciphertext":"8CPahZRVNk42dJ4xf5ifBeZckeoskTDHydPatdh8uS6jKH5maHvPUnjbYSMZm5kaT6He5vQVkCy82YpWopMksrGvK9DaGdsTt6iBQyDBQBzSRzVMSQcFnD7RjdR5a7yBkqjebTFZK9imfUfsV1TUTCSR4H3V6y2dxLGpC7bmxy6NNNA1XanVi3YWgwKLyj3FwAXDZ3RTWZvrLNk3PhodkuzrUeT8pbpPjvmNDQEwRmhBHDs5Bs8sX4uBPsrpf5JriD6CHqZK1RSnksdVYJJpnqGUGPsqkcnhgZoDr"} \ No newline at end of file diff --git a/tests/data/small_network/libp2p_keys/receiver.json.peerid b/tests/data/small_network/libp2p_keys/receiver.json.peerid new file mode 100644 index 0000000..72921c0 --- /dev/null +++ b/tests/data/small_network/libp2p_keys/receiver.json.peerid @@ -0,0 +1 @@ +12D3KooWLrGMoFa7wVsg5pLGxiENMcPm7macqEVmb1trjiUnjKsV \ No newline at end of file diff --git a/tests/data/small_network/libp2p_keys/seed-0.json b/tests/data/small_network/libp2p_keys/seed-0.json new file mode 100644 index 0000000..6fb9b79 --- /dev/null +++ b/tests/data/small_network/libp2p_keys/seed-0.json @@ -0,0 +1 @@ +{"box_primitive":"xsalsa20poly1305","pw_primitive":"argon2i","nonce":"8XXAh3zkvxL5txVyYTvLSRRw65ufFxRLagbXzxv","pwsalt":"BKHpmPcLun4N2GEsCkEYiNhr6aHL","pwdiff":[134217728,6],"ciphertext":"9Fbj5DiYYy24bVSVSCHfDQL4bScKVe5kXGJywpCgTRdszt4MkHhPvuyJNDAxvc2iNAi5os5tsZa9sMqRTih9Q1oGRQuAEdWQXo9Yg2tpHjqxACj1D9vBBSERNPbQb69ykfwDCZNKdEby9fFsiLjzqmr38gQiZK4frY9UhjisaWVD7zSB68qhPyugM2BzVawL6KgZ6faXpzDHMzK1psBxsuRRSnP5SmqX87B2DfHbg5Dq1M8MHS9MLrLYxUmuuV6jRtbFt94A4WkFeZX2DxdtyRVPQ2GF6TWk1PAu3"} \ No newline at end of file diff --git a/tests/data/small_network/libp2p_keys/seed-0.json.peerid b/tests/data/small_network/libp2p_keys/seed-0.json.peerid new file mode 100644 index 0000000..799de04 --- /dev/null +++ b/tests/data/small_network/libp2p_keys/seed-0.json.peerid @@ -0,0 +1 @@ +12D3KooWE9mzv3PRfz2ALZnq2xH1sg2S4xGJYnRV5TnuRH5igy6h \ No newline at end of file diff --git a/tests/data/small_network/topology.json b/tests/data/small_network/topology.json new file mode 100644 index 0000000..e2270f4 --- /dev/null +++ b/tests/data/small_network/topology.json @@ -0,0 +1,46 @@ +{ + "receiver": { + "pk": "B62qmabsxin5ukW6E1UJXhTx1wKn6WurScBRjPs42Z6mriP7FKhvWmy", + "sk": "EKFFrQVB9tmtHVxAGBqvZYUy9Wm2e5ERwNh4dgZpjyLsT6nfpmPS", + "privkey_path": "./tests/data/small_network/block_producer_keys/receiver.json", + "role": "Block_producer", + "docker_image": "gcr.io/o1labs-192920/mina-daemon:2.0.0rampup5-55b7818-bullseye-berkeley", + "git_build": null, + "libp2p_pass": "naughty blue worm", + "libp2p_keyfile": "./tests/data/small_network/libp2p_keys/receiver.json", + "libp2p_keypair": { + "box_primitive": "xsalsa20poly1305", + "pw_primitive": "argon2i", + "nonce": "7k8rgRbRLaFLoDEQUc1Fx1RXbK3XRUscs2FdZaG", + "pwsalt": "BTMRm2WJ1QAN1wpYMXznspujvpE4", + "pwdiff": [ + 134217728, + 6 + ], + "ciphertext": "8CPahZRVNk42dJ4xf5ifBeZckeoskTDHydPatdh8uS6jKH5maHvPUnjbYSMZm5kaT6He5vQVkCy82YpWopMksrGvK9DaGdsTt6iBQyDBQBzSRzVMSQcFnD7RjdR5a7yBkqjebTFZK9imfUfsV1TUTCSR4H3V6y2dxLGpC7bmxy6NNNA1XanVi3YWgwKLyj3FwAXDZ3RTWZvrLNk3PhodkuzrUeT8pbpPjvmNDQEwRmhBHDs5Bs8sX4uBPsrpf5JriD6CHqZK1RSnksdVYJJpnqGUGPsqkcnhgZoDr" + }, + "libp2p_peerid": "12D3KooWLrGMoFa7wVsg5pLGxiENMcPm7macqEVmb1trjiUnjKsV" + }, + "seed-0": { + "pk": "B62qjsFXPCKWseqopuLs1q1fkvuAphbLWmGfn5WLV7DfnNr9mxWN7oe", + "sk": "EKDyUS6K9wkVGiYrvJhtZHSMjeW4JEMiWCXGNco4ZEkbMN9qSeQk", + "privkey_path": null, + "role": "Seed_node", + "docker_image": "gcr.io/o1labs-192920/mina-daemon:2.0.0rampup5-55b7818-bullseye-berkeley", + "git_build": null, + "libp2p_pass": "naughty blue worm", + "libp2p_keyfile": "./tests/data/small_network/libp2p_keys/seed-0.json", + "libp2p_keypair": { + "box_primitive": "xsalsa20poly1305", + "pw_primitive": "argon2i", + "nonce": "8XXAh3zkvxL5txVyYTvLSRRw65ufFxRLagbXzxv", + "pwsalt": "BKHpmPcLun4N2GEsCkEYiNhr6aHL", + "pwdiff": [ + 134217728, + 6 + ], + "ciphertext": "9Fbj5DiYYy24bVSVSCHfDQL4bScKVe5kXGJywpCgTRdszt4MkHhPvuyJNDAxvc2iNAi5os5tsZa9sMqRTih9Q1oGRQuAEdWQXo9Yg2tpHjqxACj1D9vBBSERNPbQb69ykfwDCZNKdEby9fFsiLjzqmr38gQiZK4frY9UhjisaWVD7zSB68qhPyugM2BzVawL6KgZ6faXpzDHMzK1psBxsuRRSnP5SmqX87B2DfHbg5Dq1M8MHS9MLrLYxUmuuV6jRtbFt94A4WkFeZX2DxdtyRVPQ2GF6TWk1PAu3" + }, + "libp2p_peerid": "12D3KooWE9mzv3PRfz2ALZnq2xH1sg2S4xGJYnRV5TnuRH5igy6h" + } +} \ No newline at end of file