0x14239926414769f216664efbcb5e5a12b17b7de99e32b2c9e2322652ebc7e5db
Please retweet if this helps you!
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
🧐 Source maps
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
{ | |
"language": "Solidity", | |
"sources": { | |
"src/AContract.sol": { | |
"content": "pragma solidity 0.6.5;\r\n\r\nimport \"./ALibrary.sol\";\r\n\r\ncontract AContract {\r\n using ALibrary for uint256;\r\n\r\n function times4(uint256 t) external pure returns (uint256) {\r\n return t.twice().twice();\r\n }\r\n}\r\n" | |
}, | |
"src/ALibrary.sol": { | |
"content": "pragma solidity 0.6.5;\r\n\r\nlibrary ALibrary {\r\n function twice(uint256 t) external pure returns (uint256) {\r\n return t * 2;\r\n }\r\n}\r\n" | |
}, | |
"src/diamon_test/ActionFacet.sol": { |
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
{ | |
"language": "Solidity", | |
"sources": { | |
"src/contracts_common/src/BaseWithStorage/Admin.sol": { | |
"content": "pragma solidity ^0.6.0;\n\n\ncontract Admin {\n address internal _admin;\n\n /// @dev emitted when the contract administrator is changed.\n /// @param oldAdmin address of the previous administrator.\n /// @param newAdmin address of the new administrator.\n event AdminChanged(address oldAdmin, address newAdmin);\n\n /// @dev gives the current administrator of this contract.\n /// @return the current administrator of this contract.\n function getAdmin() external view returns (address) {\n return _admin;\n }\n\n /// @dev change the administrator to be `newAdmin`.\n /// @param newAdmin address of the new administrator.\n function changeAdmin(address newAdmin) external {\n require(msg.sender == _admin, \"only admin can change admin\");\n emit AdminChanged(_admin, newAdmin);\n _admin = newAdmin;\n }\n\n modifier onlyAdmin() {\n |
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
Machine({ | |
id: 'planet', | |
initial: 'idle', | |
context: { | |
error: undefined | |
}, | |
on: { | |
PROBE: { | |
target: '.probing', | |
in: 'idle', |
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
Machine({ | |
id: 'planet', | |
initial: 'unknown', | |
on :{ | |
PROBE: { | |
target: '.probing', | |
in: 'unknown', | |
}, | |
RETRY: { | |
target: '.probing', |
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
Machine({ | |
id: 'wallet', | |
type: "parallel", | |
context: { | |
address: undefined, | |
}, | |
states: { | |
builtin: { | |
initial: 'unknown', |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
NewerOlder