set mock platform fee nfthash

This commit is contained in:
Hossein Zoda 2026-05-31 17:18:11 +03:00
parent 366823cf02
commit 874e9f0231

View file

@ -64,7 +64,6 @@ const SECONDS_PER_DAY: i64 = 86_400;
static MIN_OFFERING_DURATION: LazyLock<BigInt> = LazyLock::new(|| BigInt::from(SECONDS_PER_DAY)); // 1 day static MIN_OFFERING_DURATION: LazyLock<BigInt> = LazyLock::new(|| BigInt::from(SECONDS_PER_DAY)); // 1 day
static MAX_OFFERING_DURATION: LazyLock<BigInt> = LazyLock::new(|| BigInt::from(30 * SECONDS_PER_DAY)); // 30 days static MAX_OFFERING_DURATION: LazyLock<BigInt> = LazyLock::new(|| BigInt::from(30 * SECONDS_PER_DAY)); // 30 days
const CHIPNET_DELPHI_TOKEN_ID: &[u8; 32] = &[ const CHIPNET_DELPHI_TOKEN_ID: &[u8; 32] = &[
0x1b, 0x94, 0x82, 0x40, 0xc9, 0xcf, 0xaa, 0x82, 0x24, 0x1b, 0x94, 0x82, 0x40, 0xc9, 0xcf, 0xaa, 0x82, 0x24,
0x38, 0x3d, 0xb1, 0x6e, 0x47, 0x35, 0xef, 0xa0, 0x9c, 0x38, 0x3d, 0xb1, 0x6e, 0x47, 0x35, 0xef, 0xa0, 0x9c,
@ -78,20 +77,10 @@ const MAINNET_DELPHI_TOKEN_ID: &[u8; 32] = &[
0xdd, 0xd7, 0x30, 0x6c, 0x88 0xdd, 0xd7, 0x30, 0x6c, 0x88
]; ];
// TODO:: set the platform fee nfth // TODO:: set the platform fee nfth
const CHIPNET_PLATFORM_FEE_NFTH: &[u8; 32] = &[ const CHIPNET_PLATFORM_FEE_NFTH: LazyLock<Vec<u8>> = LazyLock::new(|| hex::decode("ab3aba01311b672808aa06f5e7f332d930e4ed0c99407343f7fc5d743d15ff55").unwrap());
0x07, 0x2d, 0x5f, 0xbe, 0xcf, 0xa1, 0xbc, 0x37, // TODO:: set a mock nfthash for mainnet
0xa1, 0x3f, 0x58, 0xb1, 0x88, 0xf5, 0x0a, 0x5b, const MAINNET_PLATFORM_FEE_NFTH: LazyLock<Vec<u8>> = LazyLock::new(|| hex::decode("").unwrap());
0xc1, 0xdf, 0xb9, 0xab, 0x8a, 0xe0, 0xbf, 0x5d,
0x3d, 0x9a, 0x63, 0xf6, 0xf8, 0x1e, 0xfc, 0x0b,
];
const MAINNET_PLATFORM_FEE_NFTH: &[u8; 32] = &[
0x4a, 0xa4, 0xe6, 0x09, 0xb3, 0xfb, 0x97, 0x3b,
0x44, 0x10, 0x9a, 0x9c, 0x08, 0x4e, 0x75, 0xdc,
0xc8, 0xe2, 0x6e, 0x1f, 0x7f, 0x8e, 0xfa, 0xc2,
0x0c, 0x80, 0xb8, 0x94, 0x29, 0x42, 0x13, 0x0e,
];
const IDO_SIGNATURE: &[u8] = &[ const IDO_SIGNATURE: &[u8] = &[
0x12, 0x43, 0x61, 0x75, 0x6c, 0x64, 0x72, 0x6f, 0x6e, 0x49, 0x12, 0x43, 0x61, 0x75, 0x6c, 0x64, 0x72, 0x6f, 0x6e, 0x49,