Skip to content

Commit

Permalink
updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aalavandhan committed Jun 14, 2024
1 parent 770e3ed commit 436a515
Show file tree
Hide file tree
Showing 26 changed files with 5,064 additions and 9,735 deletions.
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ plugins:
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.2.1.cjs

checksumBehavior: update
45 changes: 29 additions & 16 deletions spot-contracts/external-artifacts/BondController.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions spot-contracts/external-artifacts/BondFactory.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "BondFactory",
"sourceName": "button-tranche/contracts/BondFactory.sol",
"sourceName": "contracts/BondFactory.sol",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -141,8 +141,8 @@
"type": "function"
}
],
"bytecode": "0x60c060405234801561001057600080fd5b506040516105d63803806105d683398101604081905261002f91610069565b6001600160601b0319606092831b8116608052911b1660a05261009b565b80516001600160a01b038116811461006457600080fd5b919050565b6000806040838503121561007b578182fd5b6100848361004d565b91506100926020840161004d565b90509250929050565b60805160601c60a05160601c6105046100d2600039600081816061015261018401526000818160e1015261013901526105046000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80639ee2addd1461005c578063a217fddf146100a0578063c19312e6146100b6578063c7bfded5146100c9578063d4b83992146100dc575b600080fd5b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100a8600081565b604051908152602001610097565b6100836100c43660046103e6565b610103565b6100836100d7366004610391565b61011a565b6100837f000000000000000000000000000000000000000000000000000000000000000081565b600061011185858585610131565b95945050505050565b60006101298484846000610131565b949350505050565b60008061015d7f000000000000000000000000000000000000000000000000000000000000000061023b565b604051632a76ef3160e01b81529091506001600160a01b03821690632a76ef31906101b6907f0000000000000000000000000000000000000000000000000000000000000000908a9033908b908b908b90600401610442565b600060405180830381600087803b1580156101d057600080fd5b505af11580156101e4573d6000803e3d6000fd5b505050507f535735cdac5d586cb40b3eb153bfced0b96d144cfe9b8947f5f9ed69895ae80b6102103390565b604080516001600160a01b03928316815291841660208301520160405180910390a195945050505050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b0381166102d75760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b604482015260640160405180910390fd5b919050565b80356001600160a01b03811681146102d757600080fd5b600082601f830112610303578081fd5b8135602067ffffffffffffffff80831115610320576103206104b8565b8260051b604051601f19603f83011681018181108482111715610345576103456104b8565b60405284815283810192508684018288018501891015610363578687fd5b8692505b85831015610385578035845292840192600192909201918401610367565b50979650505050505050565b6000806000606084860312156103a5578283fd5b6103ae846102dc565b9250602084013567ffffffffffffffff8111156103c9578283fd5b6103d5868287016102f3565b925050604084013590509250925092565b600080600080608085870312156103fb578081fd5b610404856102dc565b9350602085013567ffffffffffffffff81111561041f578182fd5b61042b878288016102f3565b949794965050505060408301359260600135919050565b6001600160a01b038781168252868116602080840191909152908616604083015260c06060830181905285519083018190526000918681019160e085019190845b8181101561049f57845184529382019392820192600101610483565b5050506080840195909552505060a00152949350505050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212201d3328caa6f3a541ca68c2f7d28e1c79b5912fcfd7e850ad05145d8e81ba35c664736f6c63430008030033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80639ee2addd1461005c578063a217fddf146100a0578063c19312e6146100b6578063c7bfded5146100c9578063d4b83992146100dc575b600080fd5b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100a8600081565b604051908152602001610097565b6100836100c43660046103e6565b610103565b6100836100d7366004610391565b61011a565b6100837f000000000000000000000000000000000000000000000000000000000000000081565b600061011185858585610131565b95945050505050565b60006101298484846000610131565b949350505050565b60008061015d7f000000000000000000000000000000000000000000000000000000000000000061023b565b604051632a76ef3160e01b81529091506001600160a01b03821690632a76ef31906101b6907f0000000000000000000000000000000000000000000000000000000000000000908a9033908b908b908b90600401610442565b600060405180830381600087803b1580156101d057600080fd5b505af11580156101e4573d6000803e3d6000fd5b505050507f535735cdac5d586cb40b3eb153bfced0b96d144cfe9b8947f5f9ed69895ae80b6102103390565b604080516001600160a01b03928316815291841660208301520160405180910390a195945050505050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b0381166102d75760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b604482015260640160405180910390fd5b919050565b80356001600160a01b03811681146102d757600080fd5b600082601f830112610303578081fd5b8135602067ffffffffffffffff80831115610320576103206104b8565b8260051b604051601f19603f83011681018181108482111715610345576103456104b8565b60405284815283810192508684018288018501891015610363578687fd5b8692505b85831015610385578035845292840192600192909201918401610367565b50979650505050505050565b6000806000606084860312156103a5578283fd5b6103ae846102dc565b9250602084013567ffffffffffffffff8111156103c9578283fd5b6103d5868287016102f3565b925050604084013590509250925092565b600080600080608085870312156103fb578081fd5b610404856102dc565b9350602085013567ffffffffffffffff81111561041f578182fd5b61042b878288016102f3565b949794965050505060408301359260600135919050565b6001600160a01b038781168252868116602080840191909152908616604083015260c06060830181905285519083018190526000918681019160e085019190845b8181101561049f57845184529382019392820192600101610483565b5050506080840195909552505060a00152949350505050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212201d3328caa6f3a541ca68c2f7d28e1c79b5912fcfd7e850ad05145d8e81ba35c664736f6c63430008030033",
"bytecode": "0x60c060405234801561001057600080fd5b5060405161067838038061067883398101604081905261002f91610069565b6001600160601b0319606092831b8116608052911b1660a05261009b565b80516001600160a01b038116811461006457600080fd5b919050565b6000806040838503121561007b578182fd5b6100848361004d565b91506100926020840161004d565b90509250929050565b60805160601c60a05160601c6105a66100d260003960008181607101526101c701526000818160fe015261015601526105a66000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063c19312e611610050578063c19312e6146100d3578063c7bfded5146100e6578063d4b83992146100f957610067565b80639ee2addd1461006c578063a217fddf146100bd575b600080fd5b6100937f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100c5600081565b6040519081526020016100b4565b6100936100e136600461048c565b610120565b6100936100f4366004610437565b610137565b6100937f000000000000000000000000000000000000000000000000000000000000000081565b600061012e8585858561014e565b95945050505050565b6000610146848484600061014e565b949350505050565b60008061017a7f000000000000000000000000000000000000000000000000000000000000000061028b565b6040517f2a76ef3100000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff821690632a76ef31906101f9907f0000000000000000000000000000000000000000000000000000000000000000908a9033908b908b908b906004016104e8565b600060405180830381600087803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b505050507f535735cdac5d586cb40b3eb153bfced0b96d144cfe9b8947f5f9ed69895ae80b6102533390565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a195945050505050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f0905073ffffffffffffffffffffffffffffffffffffffff8116610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015260640160405180910390fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461035257600080fd5b600082601f83011261038b578081fd5b8135602067ffffffffffffffff808311156103a8576103a861056a565b8260051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811084821117156103eb576103eb61056a565b60405284815283810192508684018288018501891015610409578687fd5b8692505b8583101561042b57803584529284019260019290920191840161040d565b50979650505050505050565b60008060006060848603121561044b578283fd5b61045484610357565b9250602084013567ffffffffffffffff81111561046f578283fd5b61047b8682870161037b565b925050604084013590509250925092565b600080600080608085870312156104a1578081fd5b6104aa85610357565b9350602085013567ffffffffffffffff8111156104c5578182fd5b6104d18782880161037b565b949794965050505060408301359260600135919050565b600060c0820173ffffffffffffffffffffffffffffffffffffffff808a1684526020818a1681860152818916604086015260c06060860152829150875180845260e0860192508189019350845b8181101561055157845184529382019392820192600101610535565b5050506080840195909552505060a00152949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000803000a",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100675760003560e01c8063c19312e611610050578063c19312e6146100d3578063c7bfded5146100e6578063d4b83992146100f957610067565b80639ee2addd1461006c578063a217fddf146100bd575b600080fd5b6100937f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100c5600081565b6040519081526020016100b4565b6100936100e136600461048c565b610120565b6100936100f4366004610437565b610137565b6100937f000000000000000000000000000000000000000000000000000000000000000081565b600061012e8585858561014e565b95945050505050565b6000610146848484600061014e565b949350505050565b60008061017a7f000000000000000000000000000000000000000000000000000000000000000061028b565b6040517f2a76ef3100000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff821690632a76ef31906101f9907f0000000000000000000000000000000000000000000000000000000000000000908a9033908b908b908b906004016104e8565b600060405180830381600087803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b505050507f535735cdac5d586cb40b3eb153bfced0b96d144cfe9b8947f5f9ed69895ae80b6102533390565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a195945050505050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f0905073ffffffffffffffffffffffffffffffffffffffff8116610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015260640160405180910390fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461035257600080fd5b600082601f83011261038b578081fd5b8135602067ffffffffffffffff808311156103a8576103a861056a565b8260051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811084821117156103eb576103eb61056a565b60405284815283810192508684018288018501891015610409578687fd5b8692505b8583101561042b57803584529284019260019290920191840161040d565b50979650505050505050565b60008060006060848603121561044b578283fd5b61045484610357565b9250602084013567ffffffffffffffff81111561046f578283fd5b61047b8682870161037b565b925050604084013590509250925092565b600080600080608085870312156104a1578081fd5b6104aa85610357565b9350602085013567ffffffffffffffff8111156104c5578182fd5b6104d18782880161037b565b949794965050505060408301359260600135919050565b600060c0820173ffffffffffffffffffffffffffffffffffffffff808a1684526020818a1681860152818916604086015260c06060860152829150875180845260e0860192508189019350845b8181101561055157845184529382019392820192600101610535565b5050506080840195909552505060a00152949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000803000a",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading

0 comments on commit 436a515

Please sign in to comment.