From 25e9e7016ff52ad28d4c27f55b4bc72fe95cf782 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Thu, 4 Jul 2024 10:36:04 +0200 Subject: [PATCH] update lottery --- contracts/lottery/lottery_end.c | 24 ++++++++++++------------ test/integration/lottery/lottery.test.ts | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/contracts/lottery/lottery_end.c b/contracts/lottery/lottery_end.c index a90a8f3..bc1ae42 100644 --- a/contracts/lottery/lottery_end.c +++ b/contracts/lottery/lottery_end.c @@ -217,26 +217,26 @@ uint8_t lottery_start_ns[32] = { 0x8EU, 0xCCU, 0x4DU, 0xC1U, 0xFFU, 0x58U, 0x5CU, 0xF6U, 0x28U, 0x31U, 0x6DU, 0x70U}; -// uint8_t rate_acct[20] = { -// 0x05U, 0xB5U, 0xF4U, 0x3AU, 0xF7U, 0x17U, 0xB8U, 0x19U, 0x48U, 0x49U, -// 0x1FU, 0xB7U, 0x07U, 0x9EU, 0x4FU, 0x17U, 0x3FU, 0x4EU, 0xCEU, 0xB3U -// }; - uint8_t rate_acct[20] = { - 0x7CU, 0xE1U, 0x83U, 0x29U, 0x70U, 0x51U, 0x4CU, 0x37U, 0x97U, 0xB2U, - 0xABU, 0x5EU, 0x14U, 0x52U, 0x69U, 0x0FU, 0x1DU, 0x6EU, 0xA3U, 0x70U + 0x05U, 0xB5U, 0xF4U, 0x3AU, 0xF7U, 0x17U, 0xB8U, 0x19U, 0x48U, 0x49U, + 0x1FU, 0xB7U, 0x07U, 0x9EU, 0x4FU, 0x17U, 0x3FU, 0x4EU, 0xCEU, 0xB3U }; -// uint8_t issuer_buffer[20] = { -// 0x5BU, 0xEFU, 0x92U, 0x1AU, 0x21U, 0x7DU, 0x57U, 0xFDU, 0xA5U, 0xB5U, -// 0x6DU, 0x5BU, 0x40U, 0xBEU, 0xE4U, 0x0DU, 0x1AU, 0xC1U, 0x12U, 0x7FU +// uint8_t rate_acct[20] = { +// 0x7CU, 0xE1U, 0x83U, 0x29U, 0x70U, 0x51U, 0x4CU, 0x37U, 0x97U, 0xB2U, +// 0xABU, 0x5EU, 0x14U, 0x52U, 0x69U, 0x0FU, 0x1DU, 0x6EU, 0xA3U, 0x70U // }; uint8_t issuer_buffer[20] = { - 0xA4U, 0x07U, 0xAF, 0x58U, 0x56U, 0xCCU, 0xF3U, 0xC4U, 0x26U, 0x19U, - 0xDAU, 0xA9U, 0x25U, 0x81U, 0x3FU, 0xC9U, 0x55U, 0xC7U, 0x29U, 0x83U + 0x5BU, 0xEFU, 0x92U, 0x1AU, 0x21U, 0x7DU, 0x57U, 0xFDU, 0xA5U, 0xB5U, + 0x6DU, 0x5BU, 0x40U, 0xBEU, 0xE4U, 0x0DU, 0x1AU, 0xC1U, 0x12U, 0x7FU }; +// uint8_t issuer_buffer[20] = { +// 0xA4U, 0x07U, 0xAF, 0x58U, 0x56U, 0xCCU, 0xF3U, 0xC4U, 0x26U, 0x19U, +// 0xDAU, 0xA9U, 0x25U, 0x81U, 0x3FU, 0xC9U, 0x55U, 0xC7U, 0x29U, 0x83U +// }; + uint8_t currency_buffer[20] = { 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x55U, 0x53U, 0x44U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U diff --git a/test/integration/lottery/lottery.test.ts b/test/integration/lottery/lottery.test.ts index 6960a8c..327c615 100644 --- a/test/integration/lottery/lottery.test.ts +++ b/test/integration/lottery/lottery.test.ts @@ -35,7 +35,7 @@ import { iHook, padHexString, flipHex, -} from '@transia/hooks-toolkit' +} from '@transia/hooks-toolkit/dist/npm/src' import { // decodeModel, // hexToUInt64, @@ -108,7 +108,7 @@ export async function createLottery( HookParameters: [otxn1param1.toXrpl(), otxn1param2.toXrpl()], } - // console.log(JSON.stringify([otxn1param1.toXrpl(), otxn1param2.toXrpl()])) + console.log(JSON.stringify([otxn1param1.toXrpl(), otxn1param2.toXrpl()])) const result1 = await Xrpld.submit(client, { wallet: wallet, tx: builtTx1,