Skip to content

Instantly share code, notes, and snippets.

pragma solidity ^0.4.23;
contract Hot {
event CreateEvent(uint id, uint bid, string name, string link);
event SupportEvent(uint id, uint bid);
struct Record {
uint index;
uint bid;
contract Partner {
function exchangeTokensFromOtherContract(address _source, address _recipient, uint256 _RequestedTokens);
}
contract Target {
function transfer(address _to, uint _value);
}
contract COE {
@hiqua
hiqua / expecting.md
Created September 11, 2017 11:53 — forked from ksafranski/expecting.md
Basic principles of using tcl-expect scripts

Intro

TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl extension and a different #! call.

Setup Your Script

The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect we use the following:

#!/usr/bin/expect