Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
test with actual large polynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Oct 2, 2023
1 parent 57a1857 commit a843e4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 224 deletions.
15 changes: 11 additions & 4 deletions src/Huffd1.huff
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@
///////////////////////////////////////////////////////////////////////////////
//// TABLE ////
///////////////////////////////////////////////////////////////////////////////
// #define table Basis {
// 0x01050700020c000607
// }
// #define constant TOTAL_SUPPLY = 0x03
// #define constant ORDER = 0x0d
// #define constant COEFF_SIZE = 0x01
#define table Basis {
0x01050700020c000607
0x0000000000000000000000000000000000000001aed4ed4ed4ed4ed4ed4ed4ed4ed4ed4ed4ed4eb2716596596596596596596596596596596596595467bb5f442d26609eed7d10b499827bb5f442d251a1ffffffffffffffffffffffffffffffffffffe306795ceb240795ceb240795ceb240795ceb240780eaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa83d3a3e4e8f93a3e4e8f93a3e4e8f93a3e4e8f92fddefbefbefbefbefbefbefbefbefbefbefbefbc7a5bc18334a5116d889fa66c2ddf4fbc18334a4f300000000000000000000000000000000000000000000000000000000000000000000000000000009257c57c57c57c57c57c57c57c57c57c57c57c565220ea0ea0ea0ea0ea0ea0ea0ea0ea0ea0ea0ea15c7a4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4f7b79a4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4f90b3e93e93e93e93e93e93e93e93e93e93e93e93c837e93e93e93e93e93e93e93e93e93e93e93e93df5ef56f56f56f56f56f56f56f56f56f56f56f56e42c6326326326326326326326326326326326325b0000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffbfb507507507507507507507507507507507507510615f15f15f15f15f15f15f15f15f15f15f15f128e582d82d82d82d82d82d82d82d82d82d82d82d6a0ec16c16c16c16c16c16c16c16c16c16c16c16ba92d82d82d82d82d82d82d82d82d82d82d82d82be416c16c16c16c16c16c16c16c16c16c16c16c160d29da9da9da9da9da9da9da9da9da9da9da9da774e736736736736736736736736736736736736650000000000000000000000000000000000000000000000000000000000000000000000000000001c749f49f49f49f49f49f49f49f49f49f49f49f444e3518a6dfc3518a6dfc3518a6dfc3518a6dfc36b4eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeebf7cfa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4ed3444444444444444444444444444444444444439016c16c16c16c16c16c16c16c16c16c16c16c16c082d82d82d82d82d82d82d82d82d82d82d82d82c9e480f2b9d6480f2b9d6480f2b9d6480f2b9d62b00000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffc95ccccccccccccccccccccccccccccccccccccd0de3333333333333333333333333333333333332b8f53e93e93e93e93e93e93e93e93e93e93e93e93cce4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa1d27a4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa03be93e93e93e93e93e93e93e93e93e93e93e93de864fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa379293e93e93e93e93e93e93e93e93e93e93e93e79000000000000000000000000000000000000000033333333333333333333333333333333333333433fffffffffffffffffffffffffffffffffffffb2d00000000000000000000000000000000000001e2c71c71c71c71c71c71c71c71c71c71c71c71c452e7d27d27d27d27d27d27d27d27d27d27d27d280ac71c71c71c71c71c71c71c71c71c71c71c71c5060e38e38e38e38e38e38e38e38e38e38e38e38d2e71c71c71c71c71c71c71c71c71c71c71c71c6f26d6c16c16c16c16c16c16c16c16c16c16c16c1580000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffc31b05b05b05b05b05b05b05b05b05b05b05b05b2626480f2b9d6480f2b9d6480f2b9d6480f2b9d61a5a22222222222222222222222222222222222227b305b05b05b05b05b05b05b05b05b05b05b05ade6dddddddddddddddddddddddddddddddddddddcbc4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4d61cfa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4fa4f561b7f0d4629b7f0d4629b7f0d4629b7f0d4629a60000000000000000000000000000000000000000b6db6db6db6db6db6db6db6db6db6db6db6db6bf541d41d41d41d41d41d41d41d41d41d41d41d4002ea0ea0ea0ea0ea0ea0ea0ea0ea0ea0ea0ea0ea740b60b60b60b60b60b60b60b60b60b60b60b60a2013e93e93e93e93e93e93e93e93e93e93e93e941460b60b60b60b60b60b60b60b60b60b60b60b5fee7b87b87b87b87b87b87b87b87b87b87b87b878ea521521521521521521521521521521521521503b18c98c98c98c98c98c98c98c98c98c98c98c96c00000000000000000000000000000000000000001ffffffffffffffffffffffffffffffffffffff95f50750750750750750750750750750750750742cc57c57c57c57c57c57c57c57c57c57c57c57c2fe4d82d82d82d82d82d82d82d82d82d82d82d82b0c65b05b05b05b05b05b05b05b05b05b05b05b0365182d82d82d82d82d82d82d82d82d82d82d82d7479b05b05b05b05b05b05b05b05b05b05b05b059a6a54854854854854854854854854854854854841d39cd9cd9cd9cd9cd9cd9cd9cd9cd9cd9cd9cd760000000000000000000000000000000000000000c71c71c71c71c71c71c71c71c71c71c71c71c6f8d4374374374374374374374374374374374374105d116d889fa66c2ddf4fbc18334a5116d889fa56c0888888888888888888888888888888888888657cb9d6480f2b9d6480f2b9d6480f2b9d6480f2a39cccccccccccccccccccccccccccccccccccccb084d4629b7f0d4629b7f0d4629b7f0d4629b7f0bc4e736736736736736736736736736736736736655a43e7ccb5aee9277605993d220b043e7ccb5ade
}
#define constant TOTAL_SUPPLY = 0x03
#define constant ORDER = 0x0d
#define constant COEFF_SIZE = 0x01
#define constant TOTAL_SUPPLY = 0xa // 10 tokens
#define constant COEFF_SIZE = 0x14 // 20 byte
#define constant ORDER = 0xffffffffffffffffffffffffffffffffffffffd1


///////////////////////////////////////////////////////////////////////////////
//// INTERFACES ////
Expand Down
219 changes: 0 additions & 219 deletions src/main.huff

This file was deleted.

2 changes: 1 addition & 1 deletion test/Huffd1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {console} from "forge-std/console.sol";
contract Huffd1Test is Test {
Huffd1 huffd1;
address constant OWNER = address(0x1); // small address to work for all orders
uint256 constant TOTAL_SUPPLY = 0x03;
uint256 constant TOTAL_SUPPLY = 10; // 3

/// @dev Set-up to run before each test.
function setUp() public {
Expand Down

0 comments on commit a843e4c

Please sign in to comment.