-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7eca632
commit e0dc2f1
Showing
20 changed files
with
2,026 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ artifacts | |
all.json | ||
all.txt | ||
exec.json | ||
runall.ts | ||
.idea | ||
deployments | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"metadata":"{\"compiler\":{\"version\":\"0.8.9\"},\"sources\":{\"contracts/Mathematitian.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\nimport \\\"./libraries/Maths.sol\\\";\\n\\nlibrary Mathematitian {\\n using Maths for uint32;\\n\\n function calculateStuff(uint32 startingPoint)\\n public\\n pure\\n returns (uint256, uint256)\\n {\\n return (\\n startingPoint.sumOfArithmeticProgression(2, 4),\\n startingPoint.sumOfGeometricProgression(2, 4)\\n );\\n }\\n}\\n\"},\"contracts/libraries/Maths.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\nlibrary Maths {\\n function sumOfArithmeticProgression(\\n uint32 firstVal,\\n uint32 step,\\n uint32 lastIdx\\n ) public pure returns (uint32) {\\n //n/2(2a+(n-1)d)\\n return (lastIdx * (2 * firstVal + (lastIdx - 1) * step)) / 2;\\n }\\n\\n function sumOfGeometricProgression(\\n uint32 firstVal,\\n uint32 step,\\n uint32 lastIdx\\n ) public pure returns (uint32) {\\n //2a+(2n−1)d(2a−d)\\n return 2 * firstVal + (2 * lastIdx - 1) * step * (2 * firstVal - step);\\n }\\n\\n function sin(int32 rads) public pure returns (int32) {\\n return rads;\\n }\\n}\\n\"}}}","address":"0x43De0B869Fab3458f73249E789d95Db2f27782a8","bytecode":"0x6103a1610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c80632490ece41461003a575b600080fd5b610054600480360381019061004f91906101f4565b61006b565b60405161006292919061023a565b60405180910390f35b6000808263ffffffff1673__$72453d3f86756092f85c686cceda113dff$__639415fe0e9091600260046040518463ffffffff1660e01b81526004016100b3939291906102f2565b60206040518083038186803b1580156100cb57600080fd5b505af41580156100df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610103919061033e565b8363ffffffff1673__$72453d3f86756092f85c686cceda113dff$__634c337c909091600260046040518463ffffffff1660e01b8152600401610148939291906102f2565b60206040518083038186803b15801561016057600080fd5b505af4158015610174573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610198919061033e565b8163ffffffff1691508063ffffffff16905091509150915091565b600080fd5b600063ffffffff82169050919050565b6101d1816101b8565b81146101dc57600080fd5b50565b6000813590506101ee816101c8565b92915050565b60006020828403121561020a576102096101b3565b5b6000610218848285016101df565b91505092915050565b6000819050919050565b61023481610221565b82525050565b600060408201905061024f600083018561022b565b61025c602083018461022b565b9392505050565b61026c816101b8565b82525050565b6000819050919050565b6000819050919050565b60006102a161029c61029784610272565b61027c565b6101b8565b9050919050565b6102b181610286565b82525050565b6000819050919050565b60006102dc6102d76102d2846102b7565b61027c565b6101b8565b9050919050565b6102ec816102c1565b82525050565b60006060820190506103076000830186610263565b61031460208301856102a8565b61032160408301846102e3565b949350505050565b600081519050610338816101c8565b92915050565b600060208284031215610354576103536101b3565b5b600061036284828501610329565b9150509291505056fea26469706673582212202f1359cf5e01940da1a3c16c89ddfd883a6ff3b85369c8a661a788aaaa0df5b264736f6c63430008090033","deployedBytecode":"0x73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c80632490ece41461003a575b600080fd5b610054600480360381019061004f91906101f4565b61006b565b60405161006292919061023a565b60405180910390f35b6000808263ffffffff1673__$72453d3f86756092f85c686cceda113dff$__639415fe0e9091600260046040518463ffffffff1660e01b81526004016100b3939291906102f2565b60206040518083038186803b1580156100cb57600080fd5b505af41580156100df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610103919061033e565b8363ffffffff1673__$72453d3f86756092f85c686cceda113dff$__634c337c909091600260046040518463ffffffff1660e01b8152600401610148939291906102f2565b60206040518083038186803b15801561016057600080fd5b505af4158015610174573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610198919061033e565b8163ffffffff1691508063ffffffff16905091509150915091565b600080fd5b600063ffffffff82169050919050565b6101d1816101b8565b81146101dc57600080fd5b50565b6000813590506101ee816101c8565b92915050565b60006020828403121561020a576102096101b3565b5b6000610218848285016101df565b91505092915050565b6000819050919050565b61023481610221565b82525050565b600060408201905061024f600083018561022b565b61025c602083018461022b565b9392505050565b61026c816101b8565b82525050565b6000819050919050565b6000819050919050565b60006102a161029c61029784610272565b61027c565b6101b8565b9050919050565b6102b181610286565b82525050565b6000819050919050565b60006102dc6102d76102d2846102b7565b61027c565b6101b8565b9050919050565b6102ec816102c1565b82525050565b60006060820190506103076000830186610263565b61031460208301856102a8565b61032160408301846102e3565b949350505050565b600081519050610338816101c8565b92915050565b600060208284031215610354576103536101b3565b5b600061036284828501610329565b9150509291505056fea26469706673582212202f1359cf5e01940da1a3c16c89ddfd883a6ff3b85369c8a661a788aaaa0df5b264736f6c63430008090033","abi":[{"inputs":[{"internalType":"uint32","name":"startingPoint","type":"uint32"}],"name":"calculateStuff","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]} | ||
{"metadata":"{\"compiler\":{\"version\":\"0.8.9\"},\"sources\":{\"contracts/Mathematitian.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\nimport \\\"./libraries/Maths.sol\\\";\\n\\nlibrary Mathematitian {\\n using Maths for uint32;\\n\\n function calculateStuff(uint32 startingPoint)\\n public\\n pure\\n returns (uint256, uint256)\\n {\\n return (\\n startingPoint.sumOfArithmeticProgression(2, 4),\\n startingPoint.sumOfGeometricProgression(2, 4)\\n );\\n }\\n}\\n\"},\"contracts/libraries/Maths.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity ^0.8.9;\\n\\nlibrary Maths {\\n function sumOfArithmeticProgression(\\n uint32 firstVal,\\n uint32 step,\\n uint32 lastIdx\\n ) public pure returns (uint32) {\\n //n/2(2a+(n-1)d)\\n return (lastIdx * (2 * firstVal + (lastIdx - 1) * step)) / 2;\\n }\\n\\n function sumOfGeometricProgression(\\n uint32 firstVal,\\n uint32 step,\\n uint32 lastIdx\\n ) public pure returns (uint32) {\\n //2a+(2n−1)d(2a−d)\\n return 2 * firstVal + (2 * lastIdx - 1) * step * (2 * firstVal - step);\\n }\\n\\n function sin(int32 rads) public pure returns (int32) {\\n return rads;\\n }\\n}\\n\"}}}","address":"0xCF9587EB542c664c0e7c0FC4F700748A9CbF0824","bytecode":"0x6103a1610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c80632490ece41461003a575b600080fd5b610054600480360381019061004f91906101f4565b61006b565b60405161006292919061023a565b60405180910390f35b6000808263ffffffff1673__$72453d3f86756092f85c686cceda113dff$__639415fe0e9091600260046040518463ffffffff1660e01b81526004016100b3939291906102f2565b60206040518083038186803b1580156100cb57600080fd5b505af41580156100df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610103919061033e565b8363ffffffff1673__$72453d3f86756092f85c686cceda113dff$__634c337c909091600260046040518463ffffffff1660e01b8152600401610148939291906102f2565b60206040518083038186803b15801561016057600080fd5b505af4158015610174573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610198919061033e565b8163ffffffff1691508063ffffffff16905091509150915091565b600080fd5b600063ffffffff82169050919050565b6101d1816101b8565b81146101dc57600080fd5b50565b6000813590506101ee816101c8565b92915050565b60006020828403121561020a576102096101b3565b5b6000610218848285016101df565b91505092915050565b6000819050919050565b61023481610221565b82525050565b600060408201905061024f600083018561022b565b61025c602083018461022b565b9392505050565b61026c816101b8565b82525050565b6000819050919050565b6000819050919050565b60006102a161029c61029784610272565b61027c565b6101b8565b9050919050565b6102b181610286565b82525050565b6000819050919050565b60006102dc6102d76102d2846102b7565b61027c565b6101b8565b9050919050565b6102ec816102c1565b82525050565b60006060820190506103076000830186610263565b61031460208301856102a8565b61032160408301846102e3565b949350505050565b600081519050610338816101c8565b92915050565b600060208284031215610354576103536101b3565b5b600061036284828501610329565b9150509291505056fea26469706673582212202f1359cf5e01940da1a3c16c89ddfd883a6ff3b85369c8a661a788aaaa0df5b264736f6c63430008090033","deployedBytecode":"0x73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c80632490ece41461003a575b600080fd5b610054600480360381019061004f91906101f4565b61006b565b60405161006292919061023a565b60405180910390f35b6000808263ffffffff1673__$72453d3f86756092f85c686cceda113dff$__639415fe0e9091600260046040518463ffffffff1660e01b81526004016100b3939291906102f2565b60206040518083038186803b1580156100cb57600080fd5b505af41580156100df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610103919061033e565b8363ffffffff1673__$72453d3f86756092f85c686cceda113dff$__634c337c909091600260046040518463ffffffff1660e01b8152600401610148939291906102f2565b60206040518083038186803b15801561016057600080fd5b505af4158015610174573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610198919061033e565b8163ffffffff1691508063ffffffff16905091509150915091565b600080fd5b600063ffffffff82169050919050565b6101d1816101b8565b81146101dc57600080fd5b50565b6000813590506101ee816101c8565b92915050565b60006020828403121561020a576102096101b3565b5b6000610218848285016101df565b91505092915050565b6000819050919050565b61023481610221565b82525050565b600060408201905061024f600083018561022b565b61025c602083018461022b565b9392505050565b61026c816101b8565b82525050565b6000819050919050565b6000819050919050565b60006102a161029c61029784610272565b61027c565b6101b8565b9050919050565b6102b181610286565b82525050565b6000819050919050565b60006102dc6102d76102d2846102b7565b61027c565b6101b8565b9050919050565b6102ec816102c1565b82525050565b60006060820190506103076000830186610263565b61031460208301856102a8565b61032160408301846102e3565b949350505050565b600081519050610338816101c8565b92915050565b600060208284031215610354576103536101b3565b5b600061036284828501610329565b9150509291505056fea26469706673582212202f1359cf5e01940da1a3c16c89ddfd883a6ff3b85369c8a661a788aaaa0df5b264736f6c63430008090033","abi":[{"inputs":[{"internalType":"uint32","name":"startingPoint","type":"uint32"}],"name":"calculateStuff","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]} |
Oops, something went wrong.