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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.17; | |
import "./../interfaces/ICar.sol"; | |
enum Status { | |
EARLY_GAME, | |
LATE_GAME | |
} |
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
class ESTContract: FungibleTokenContract(), Contract { | |
} | |
@BelongsToContract(ESTContract::class) | |
data class ESTFungible(override val amount: Amount<IssuedTokenType>, | |
override val holder: AbstractParty, | |
override val tokenTypeJarHash: SecureHash? = amount.token.tokenType.getAttachmentIdForGenericParam() | |
): FungibleToken(amount, holder, tokenTypeJarHash) { |
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
pragma solidity ^0.5.2; | |
contract Ecrecover { | |
function recover(bytes32 message, bytes memory sig) public pure returns(address) { | |
(uint8 v, bytes32 r, bytes32 s) = splitSignature(sig); | |
return ecrecover(message, v, r, s); | |
} | |
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
pragma solidity ^0.4.24; | |
contract Test { | |
uint256[] x = [1,2,3]; | |
uint256[] y = [1]; | |
uint256[] x1 = [1,2,3]; | |
uint256[] y1 = [1]; | |
function testx() public { |
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
var price = 50000000000000000; | |
status.command({ | |
name: 'hours', | |
description: 'How many hours do you want to book the ...?', | |
color: '#CCCCCC', | |
sequentialParams: true, | |
params: [{ | |
name: 'hours', | |
type: status.types.NUMBER, |
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
var booked; | |
var price = 0; | |
status.command({ | |
name: "start", | |
description: "Start a new session", | |
color: "#CCCCCC", | |
handler: function (params) { | |
return { | |
"text-message": { |
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
0xa0027Dc549b38fb24fc62619c1A7e276CB157F04 |
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
0x279319821c3762350aCD513011C764Dbe5FeF31e |