Skip to content

Commit

Permalink
Solidity: update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
sept-en committed Jan 29, 2022
1 parent e39385a commit 6f88deb
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 25 deletions.
7 changes: 3 additions & 4 deletions erc20-connector/dist/ERC20Locker.full.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ contract Locker {
// OutcomeReciptId -> Used
mapping(bytes32 => bool) public usedProofs_;

constructor(bytes memory nearTokenFactory, INearProver prover, uint64 minBlockAcceptanceHeight) public {
constructor(bytes memory nearTokenFactory, INearProver prover, uint64 minBlockAcceptanceHeight) {
require(nearTokenFactory.length > 0, "Invalid Near Token Factory address");
require(address(prover) != address(0), "Invalid Near prover address");

Expand Down Expand Up @@ -1336,7 +1336,6 @@ contract ERC20Locker is Locker, AdminControlled {
uint pausedFlags)
AdminControlled(_admin, pausedFlags)
Locker(nearTokenFactory, prover, minBlockAcceptanceHeight)
public
{
}

Expand Down Expand Up @@ -1368,7 +1367,7 @@ contract ERC20Locker is Locker, AdminControlled {
result.token = address(uint160(token));
bytes20 recipient = borshData.decodeBytes20();
result.recipient = address(uint160(recipient));
require(borshData.finished(), "Parse error: EOI expected");
borshData.done();
}

// tokenFallback implements the ContractReceiver interface from ERC223-token-standard.
Expand All @@ -1384,4 +1383,4 @@ contract ERC20Locker is Locker, AdminControlled {
token.safeTransfer(destination, amount);
}
}
Done in 0.90s.
Done in 0.94s.
4 changes: 2 additions & 2 deletions erc20-connector/dist/Locker.full.sol
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ contract Locker {
// OutcomeReciptId -> Used
mapping(bytes32 => bool) public usedProofs_;

constructor(bytes memory nearTokenFactory, INearProver prover, uint64 minBlockAcceptanceHeight) public {
constructor(bytes memory nearTokenFactory, INearProver prover, uint64 minBlockAcceptanceHeight) {
require(nearTokenFactory.length > 0, "Invalid Near Token Factory address");
require(address(prover) != address(0), "Invalid Near prover address");

Expand Down Expand Up @@ -594,4 +594,4 @@ contract Locker {
require(!result.unknown, "Cannot use unknown execution outcome for unlocking the tokens");
}
}
Done in 0.83s.
Done in 0.78s.
4 changes: 2 additions & 2 deletions erc20-connector/dist/Migrations.full.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract Migrations {
}
}

constructor() public {
constructor() {
owner = msg.sender;
}

Expand All @@ -28,4 +28,4 @@ contract Migrations {
upgraded.setCompleted(lastCompletedMigration);
}
}
Done in 0.50s.
Done in 0.46s.
4 changes: 2 additions & 2 deletions erc20-connector/dist/NearProverMock.full.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ interface INearProver {
pragma solidity ^0.8;

contract NearProverMock is INearProver {
function proveOutcome(bytes memory proofData, uint64 blockHeight) override public view returns(bool) {
function proveOutcome(bytes memory /*proofData*/, uint64 /*blockHeight*/) override public pure returns(bool) {
return true;
}
}
Done in 0.43s.
Done in 0.44s.
4 changes: 2 additions & 2 deletions erc20-connector/dist/TToken.full.sol
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@ contract ERC20 is Context, IERC20, IERC20Metadata {
pragma solidity ^0.8;

contract TToken is ERC20 {
constructor() public ERC20("TestToken", "TT") {
constructor() ERC20("TestToken", "TT") {
_mint(msg.sender, 1000000000);
}

function mint(address beneficiary, uint256 amount) public {
_mint(beneficiary, amount);
}
}
Done in 0.63s.
Done in 0.59s.
4 changes: 2 additions & 2 deletions res/ERC20Locker.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions res/Locker.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b506040516105c13803806105c183398101604081905261002f91610222565b60008351116100905760405162461bcd60e51b815260206004820152602260248201527f496e76616c6964204e65617220546f6b656e20466163746f7279206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0382166100e65760405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964204e6561722070726f766572206164647265737300000000006044820152606401610087565b82516100f9906001906020860190610140565b50600080546001600160a01b0319166001600160a01b039390931692909217909155600280546001600160401b0319166001600160401b039092169190911790555061034f565b82805461014c90610314565b90600052602060002090601f01602090048101928261016e57600085556101b4565b82601f1061018757805160ff19168380011785556101b4565b828001600101855582156101b4579182015b828111156101b4578251825591602001919060010190610199565b506101c09291506101c4565b5090565b5b808211156101c057600081556001016101c5565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b038116811461020657600080fd5b919050565b80516001600160401b038116811461020657600080fd5b60008060006060848603121561023757600080fd5b83516001600160401b038082111561024e57600080fd5b818601915086601f83011261026257600080fd5b815181811115610274576102746101d9565b604051601f8201601f19908116603f0116810190838211818310171561029c5761029c6101d9565b816040528281526020935089848487010111156102b857600080fd5b600091505b828210156102da57848201840151818301850152908301906102bd565b828211156102eb5760008484830101525b96506102fb9150508682016101ef565b9350505061030b6040850161020b565b90509250925092565b600181811c9082168061032857607f821691505b6020821081141561034957634e487b7160e01b600052602260045260246000fd5b50919050565b6102638061035e6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631c420a201461005157806384c1c51914610083578063bb00b698146100b6578063fc63e129146100e1575b600080fd5b6002546100659067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b6100a6610091366004610184565b60036020526000908152604090205460ff1681565b604051901515815260200161007a565b6000546100c9906001600160a01b031681565b6040516001600160a01b03909116815260200161007a565b6100e96100f6565b60405161007a919061019d565b60018054610103906101f2565b80601f016020809104026020016040519081016040528092919081815260200182805461012f906101f2565b801561017c5780601f106101515761010080835404028352916020019161017c565b820191906000526020600020905b81548152906001019060200180831161015f57829003601f168201915b505050505081565b60006020828403121561019657600080fd5b5035919050565b600060208083528351808285015260005b818110156101ca578581018301518582016040015282016101ae565b818111156101dc576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061020657607f821691505b6020821081141561022757634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220f59d021db1a439427a934b5ee8bd9bd9f671acff1f247bebfef27c14bd58aa4664736f6c634300080b0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80631c420a201461005157806384c1c51914610083578063bb00b698146100b6578063fc63e129146100e1575b600080fd5b6002546100659067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b6100a6610091366004610184565b60036020526000908152604090205460ff1681565b604051901515815260200161007a565b6000546100c9906001600160a01b031681565b6040516001600160a01b03909116815260200161007a565b6100e96100f6565b60405161007a919061019d565b60018054610103906101f2565b80601f016020809104026020016040519081016040528092919081815260200182805461012f906101f2565b801561017c5780601f106101515761010080835404028352916020019161017c565b820191906000526020600020905b81548152906001019060200180831161015f57829003601f168201915b505050505081565b60006020828403121561019657600080fd5b5035919050565b600060208083528351808285015260005b818110156101ca578581018301518582016040015282016101ae565b818111156101dc576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061020657607f821691505b6020821081141561022757634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220f59d021db1a439427a934b5ee8bd9bd9f671acff1f247bebfef27c14bd58aa4664736f6c634300080b0033",
"bytecode": "0x608060405234801561001057600080fd5b506040516105c13803806105c183398101604081905261002f91610222565b60008351116100905760405162461bcd60e51b815260206004820152602260248201527f496e76616c6964204e65617220546f6b656e20466163746f7279206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0382166100e65760405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964204e6561722070726f766572206164647265737300000000006044820152606401610087565b82516100f9906001906020860190610140565b50600080546001600160a01b0319166001600160a01b039390931692909217909155600280546001600160401b0319166001600160401b039092169190911790555061034f565b82805461014c90610314565b90600052602060002090601f01602090048101928261016e57600085556101b4565b82601f1061018757805160ff19168380011785556101b4565b828001600101855582156101b4579182015b828111156101b4578251825591602001919060010190610199565b506101c09291506101c4565b5090565b5b808211156101c057600081556001016101c5565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b038116811461020657600080fd5b919050565b80516001600160401b038116811461020657600080fd5b60008060006060848603121561023757600080fd5b83516001600160401b038082111561024e57600080fd5b818601915086601f83011261026257600080fd5b815181811115610274576102746101d9565b604051601f8201601f19908116603f0116810190838211818310171561029c5761029c6101d9565b816040528281526020935089848487010111156102b857600080fd5b600091505b828210156102da57848201840151818301850152908301906102bd565b828211156102eb5760008484830101525b96506102fb9150508682016101ef565b9350505061030b6040850161020b565b90509250925092565b600181811c9082168061032857607f821691505b6020821081141561034957634e487b7160e01b600052602260045260246000fd5b50919050565b6102638061035e6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631c420a201461005157806384c1c51914610083578063bb00b698146100b6578063fc63e129146100e1575b600080fd5b6002546100659067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b6100a6610091366004610184565b60036020526000908152604090205460ff1681565b604051901515815260200161007a565b6000546100c9906001600160a01b031681565b6040516001600160a01b03909116815260200161007a565b6100e96100f6565b60405161007a919061019d565b60018054610103906101f2565b80601f016020809104026020016040519081016040528092919081815260200182805461012f906101f2565b801561017c5780601f106101515761010080835404028352916020019161017c565b820191906000526020600020905b81548152906001019060200180831161015f57829003601f168201915b505050505081565b60006020828403121561019657600080fd5b5035919050565b600060208083528351808285015260005b818110156101ca578581018301518582016040015282016101ae565b818111156101dc576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061020657607f821691505b6020821081141561022757634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212200230b2b843dad9aadc081db5d62ebff7ac360e9dffa4add415657b13568d13a264736f6c634300080b0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80631c420a201461005157806384c1c51914610083578063bb00b698146100b6578063fc63e129146100e1575b600080fd5b6002546100659067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020015b60405180910390f35b6100a6610091366004610184565b60036020526000908152604090205460ff1681565b604051901515815260200161007a565b6000546100c9906001600160a01b031681565b6040516001600160a01b03909116815260200161007a565b6100e96100f6565b60405161007a919061019d565b60018054610103906101f2565b80601f016020809104026020016040519081016040528092919081815260200182805461012f906101f2565b801561017c5780601f106101515761010080835404028352916020019161017c565b820191906000526020600020905b81548152906001019060200180831161015f57829003601f168201915b505050505081565b60006020828403121561019657600080fd5b5035919050565b600060208083528351808285015260005b818110156101ca578581018301518582016040015282016101ae565b818111156101dc576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061020657607f821691505b6020821081141561022757634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212200230b2b843dad9aadc081db5d62ebff7ac360e9dffa4add415657b13568d13a264736f6c634300080b0033",
"linkReferences": {},
"deployedLinkReferences": {}
}
4 changes: 2 additions & 2 deletions res/Migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101d4806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f010146100515780638da5cb5b14610066578063fbdbad3c14610096578063fdacd576146100ad575b600080fd5b61006461005f366004610155565b6100c0565b005b600054610079906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009f60015481565b60405190815260200161008d565b6100646100bb366004610185565b61013d565b6000546001600160a01b031633141561013a57600154604051637ed66abb60e11b815282916001600160a01b0383169163fdacd576916101069160040190815260200190565b600060405180830381600087803b15801561012057600080fd5b505af1158015610134573d6000803e3d6000fd5b50505050505b50565b6000546001600160a01b031633141561013a57600155565b60006020828403121561016757600080fd5b81356001600160a01b038116811461017e57600080fd5b9392505050565b60006020828403121561019757600080fd5b503591905056fea2646970667358221220bc423bd677947161a053eaeb6b44467aef9d757e0d35c92a38550251b161f98764736f6c634300080b0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f010146100515780638da5cb5b14610066578063fbdbad3c14610096578063fdacd576146100ad575b600080fd5b61006461005f366004610155565b6100c0565b005b600054610079906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009f60015481565b60405190815260200161008d565b6100646100bb366004610185565b61013d565b6000546001600160a01b031633141561013a57600154604051637ed66abb60e11b815282916001600160a01b0383169163fdacd576916101069160040190815260200190565b600060405180830381600087803b15801561012057600080fd5b505af1158015610134573d6000803e3d6000fd5b50505050505b50565b6000546001600160a01b031633141561013a57600155565b60006020828403121561016757600080fd5b81356001600160a01b038116811461017e57600080fd5b9392505050565b60006020828403121561019757600080fd5b503591905056fea2646970667358221220bc423bd677947161a053eaeb6b44467aef9d757e0d35c92a38550251b161f98764736f6c634300080b0033",
"bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101d4806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f010146100515780638da5cb5b14610066578063fbdbad3c14610096578063fdacd576146100ad575b600080fd5b61006461005f366004610155565b6100c0565b005b600054610079906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009f60015481565b60405190815260200161008d565b6100646100bb366004610185565b61013d565b6000546001600160a01b031633141561013a57600154604051637ed66abb60e11b815282916001600160a01b0383169163fdacd576916101069160040190815260200190565b600060405180830381600087803b15801561012057600080fd5b505af1158015610134573d6000803e3d6000fd5b50505050505b50565b6000546001600160a01b031633141561013a57600155565b60006020828403121561016757600080fd5b81356001600160a01b038116811461017e57600080fd5b9392505050565b60006020828403121561019757600080fd5b503591905056fea2646970667358221220785e4b6c5183956c38a018afa3997c19e8865b1ec6a57d132ff60a2e5b0c5cb764736f6c634300080b0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f010146100515780638da5cb5b14610066578063fbdbad3c14610096578063fdacd576146100ad575b600080fd5b61006461005f366004610155565b6100c0565b005b600054610079906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009f60015481565b60405190815260200161008d565b6100646100bb366004610185565b61013d565b6000546001600160a01b031633141561013a57600154604051637ed66abb60e11b815282916001600160a01b0383169163fdacd576916101069160040190815260200190565b600060405180830381600087803b15801561012057600080fd5b505af1158015610134573d6000803e3d6000fd5b50505050505b50565b6000546001600160a01b031633141561013a57600155565b60006020828403121561016757600080fd5b81356001600160a01b038116811461017e57600080fd5b9392505050565b60006020828403121561019757600080fd5b503591905056fea2646970667358221220785e4b6c5183956c38a018afa3997c19e8865b1ec6a57d132ff60a2e5b0c5cb764736f6c634300080b0033",
"linkReferences": {},
"deployedLinkReferences": {}
}
10 changes: 5 additions & 5 deletions res/NearProverMock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"inputs": [
{
"internalType": "bytes",
"name": "proofData",
"name": "",
"type": "bytes"
},
{
"internalType": "uint64",
"name": "blockHeight",
"name": "",
"type": "uint64"
}
],
Expand All @@ -24,12 +24,12 @@
"type": "bool"
}
],
"stateMutability": "view",
"stateMutability": "pure",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610185806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806392d68dfd14610030575b600080fd5b61004661003e36600461008d565b600192915050565b604051901515815260200160405180910390f35b634e487b7160e01b600052604160045260246000fd5b803567ffffffffffffffff8116811461008857600080fd5b919050565b600080604083850312156100a057600080fd5b823567ffffffffffffffff808211156100b857600080fd5b818501915085601f8301126100cc57600080fd5b8135818111156100de576100de61005a565b604051601f8201601f19908116603f011681019083821181831017156101065761010661005a565b8160405282815288602084870101111561011f57600080fd5b82602086016020830137600060208483010152809650505050505061014660208401610070565b9050925092905056fea26469706673582212204b9578e6aa9b08687147641f6ed76962bf0f1ca15ceab1e9210aa121fd27980164736f6c634300080b0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806392d68dfd14610030575b600080fd5b61004661003e36600461008d565b600192915050565b604051901515815260200160405180910390f35b634e487b7160e01b600052604160045260246000fd5b803567ffffffffffffffff8116811461008857600080fd5b919050565b600080604083850312156100a057600080fd5b823567ffffffffffffffff808211156100b857600080fd5b818501915085601f8301126100cc57600080fd5b8135818111156100de576100de61005a565b604051601f8201601f19908116603f011681019083821181831017156101065761010661005a565b8160405282815288602084870101111561011f57600080fd5b82602086016020830137600060208483010152809650505050505061014660208401610070565b9050925092905056fea26469706673582212204b9578e6aa9b08687147641f6ed76962bf0f1ca15ceab1e9210aa121fd27980164736f6c634300080b0033",
"bytecode": "0x608060405234801561001057600080fd5b50610185806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806392d68dfd14610030575b600080fd5b61004661003e36600461008d565b600192915050565b604051901515815260200160405180910390f35b634e487b7160e01b600052604160045260246000fd5b803567ffffffffffffffff8116811461008857600080fd5b919050565b600080604083850312156100a057600080fd5b823567ffffffffffffffff808211156100b857600080fd5b818501915085601f8301126100cc57600080fd5b8135818111156100de576100de61005a565b604051601f8201601f19908116603f011681019083821181831017156101065761010661005a565b8160405282815288602084870101111561011f57600080fd5b82602086016020830137600060208483010152809650505050505061014660208401610070565b9050925092905056fea26469706673582212205e98c6e8e00d7e3249b54cc63d8bedc2f6b2b77b49e12581b3a5e9f492593d5264736f6c634300080b0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806392d68dfd14610030575b600080fd5b61004661003e36600461008d565b600192915050565b604051901515815260200160405180910390f35b634e487b7160e01b600052604160045260246000fd5b803567ffffffffffffffff8116811461008857600080fd5b919050565b600080604083850312156100a057600080fd5b823567ffffffffffffffff808211156100b857600080fd5b818501915085601f8301126100cc57600080fd5b8135818111156100de576100de61005a565b604051601f8201601f19908116603f011681019083821181831017156101065761010661005a565b8160405282815288602084870101111561011f57600080fd5b82602086016020830137600060208483010152809650505050505061014660208401610070565b9050925092905056fea26469706673582212205e98c6e8e00d7e3249b54cc63d8bedc2f6b2b77b49e12581b3a5e9f492593d5264736f6c634300080b0033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading

0 comments on commit 6f88deb

Please sign in to comment.