From c871e96b252c005cb5c54dd5e0a5b9fb29cc2c30 Mon Sep 17 00:00:00 2001 From: Moudy Date: Mon, 29 Sep 2025 11:04:39 +0200 Subject: [PATCH] adapted numbers for test --- .../configs/debug/node/node_config.json | 253 ++++++++++++++++++ .../configs/debug/wallet/curr_accounts.json | 113 ++++++++ wallet/src/lib.rs | 4 +- 3 files changed, 368 insertions(+), 2 deletions(-) create mode 100644 integration_tests/configs/debug/node/node_config.json create mode 100644 integration_tests/configs/debug/wallet/curr_accounts.json diff --git a/integration_tests/configs/debug/node/node_config.json b/integration_tests/configs/debug/node/node_config.json new file mode 100644 index 0000000..ec27ac4 --- /dev/null +++ b/integration_tests/configs/debug/node/node_config.json @@ -0,0 +1,253 @@ +{ + "home": "./node", + "override_rust_log": null, + "sequencer_addr": "http://127.0.0.1:3040", + "seq_poll_timeout_secs": 10, + "port": 3041, + "gas_config": { + "gas_fee_per_byte_deploy": 100, + "gas_fee_per_input_buffer_runtime": 1000, + "gas_fee_per_byte_runtime": 10, + "gas_cost_runtime": 100, + "gas_cost_deploy": 1000, + "gas_limit_deploy": 30000000, + "gas_limit_runtime": 30000000 + }, + "shapshot_frequency_in_blocks": 10, + "initial_accounts": [ + { + "address": [ + 13, + 150, + 223, + 204, + 65, + 64, + 25, + 56, + 12, + 157, + 222, + 12, + 211, + 220, + 229, + 170, + 201, + 15, + 181, + 68, + 59, + 248, + 113, + 16, + 135, + 65, + 174, + 175, + 222, + 85, + 42, + 215 + ], + "balance": 10000, + "key_holder": { + "address": [ + 13, + 150, + 223, + 204, + 65, + 64, + 25, + 56, + 12, + 157, + 222, + 12, + 211, + 220, + 229, + 170, + 201, + 15, + 181, + 68, + 59, + 248, + 113, + 16, + 135, + 65, + 174, + 175, + 222, + 85, + 42, + 215 + ], + "nullifer_public_key": "03A340BECA9FAAB444CED0140681D72EA1318B5C611704FEE017DA9836B17DB718", + "pub_account_signing_key": [ + 133, + 143, + 177, + 187, + 252, + 66, + 237, + 236, + 234, + 252, + 244, + 138, + 5, + 151, + 3, + 99, + 217, + 231, + 112, + 217, + 77, + 211, + 58, + 218, + 176, + 68, + 99, + 53, + 152, + 228, + 198, + 190 + ], + "top_secret_key_holder": { + "secret_spending_key": "7BC46784DB1BC67825D8F029436846712BFDF9B5D79EA3AB11D39A52B9B229D4" + }, + "utxo_secret_key_holder": { + "nullifier_secret_key": "BB54A8D3C9C51B82C431082D1845A74677B0EF829A11B517E1D9885DE3139506", + "viewing_secret_key": "AD923E92F6A5683E30140CEAB2702AFB665330C1EE4EFA70FAF29767B6B52BAF" + }, + "viewing_public_key": "0361220C5D277E7A1709340FD31A52600C1432B9C45B9BCF88A43581D58824A8B6" + }, + "utxos": {} + }, + { + "address": [ + 151, + 72, + 112, + 233, + 190, + 141, + 10, + 192, + 138, + 168, + 59, + 63, + 199, + 167, + 166, + 134, + 41, + 29, + 135, + 50, + 80, + 138, + 186, + 152, + 179, + 96, + 128, + 243, + 156, + 44, + 243, + 100 + ], + "balance": 20000, + "key_holder": { + "address": [ + 151, + 72, + 112, + 233, + 190, + 141, + 10, + 192, + 138, + 168, + 59, + 63, + 199, + 167, + 166, + 134, + 41, + 29, + 135, + 50, + 80, + 138, + 186, + 152, + 179, + 96, + 128, + 243, + 156, + 44, + 243, + 100 + ], + "nullifer_public_key": "02172F50274DE67C4087C344F5D58E11DF761D90285B095060E0994FAA6BCDE271", + "pub_account_signing_key": [ + 54, + 90, + 62, + 225, + 71, + 225, + 228, + 148, + 143, + 53, + 210, + 23, + 137, + 158, + 171, + 156, + 48, + 7, + 139, + 52, + 117, + 242, + 214, + 7, + 99, + 29, + 122, + 184, + 59, + 116, + 144, + 107 + ], + "top_secret_key_holder": { + "secret_spending_key": "80A186737C8D38B4288A03F0F589957D9C040D79C19F3E0CC4BA80F8494E5179" + }, + "utxo_secret_key_holder": { + "nullifier_secret_key": "746928E63F0984F6F4818933493CE9C067562D9CB932FDC06D82C86CDF6D7122", + "viewing_secret_key": "89176CF4BC9E673807643FD52110EF99D4894335AFB10D881AC0B5041FE1FCB7" + }, + "viewing_public_key": "026072A8F83FEC3472E30CDD4767683F30B91661D25B1040AD9A5FC2E01D659F99" + }, + "utxos": {} + } + ] +} \ No newline at end of file diff --git a/integration_tests/configs/debug/wallet/curr_accounts.json b/integration_tests/configs/debug/wallet/curr_accounts.json new file mode 100644 index 0000000..152f7c7 --- /dev/null +++ b/integration_tests/configs/debug/wallet/curr_accounts.json @@ -0,0 +1,113 @@ +[ + { + "address": "1b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f", + "pub_sign_key": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + }, + { + "address": "4d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d0766", + "pub_sign_key": [ + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2 + ] + }, + { + "address": "bd3a932f7995d54a4763137ac0dd70c0acabd08962d97fc3523e549941b77d45", + "pub_sign_key": [ + 100, + 254, + 91, + 222, + 201, + 164, + 168, + 150, + 117, + 2, + 110, + 170, + 173, + 238, + 127, + 32, + 102, + 52, + 31, + 82, + 203, + 122, + 202, + 141, + 251, + 242, + 235, + 41, + 137, + 122, + 42, + 186 + ] + } +] \ No newline at end of file diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index 13d1c38..2b14b23 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -94,7 +94,7 @@ impl WalletCore { solution: u128, ) -> Result { let addresses = vec![pinata_addr, winner_addr]; - let program_id = nssa::program::Program::pinata().id(); + let program_id = nssa::program::Program::authenticated_transfer_program().id(); let message = nssa::public_transaction::Message::try_new(program_id, addresses, vec![], solution) .unwrap(); @@ -121,7 +121,7 @@ impl WalletCore { }; let addresses = vec![from, to]; - let program_id = nssa::program::Program::authenticated_transfer_program().id(); + let program_id = [4009390658, 295818534, 2287042879, 2991817555, 298425691, 3426172222, 3671663086, 1858988641]; let message = nssa::public_transaction::Message::try_new( program_id, addresses,