@authorship specified - epic days shall be remembered

This commit is contained in:
romanman 2014-06-07 22:59:26 +01:00
parent 037e1f230c
commit bee4ea0771
71 changed files with 125 additions and 63 deletions

View File

@ -12,7 +12,7 @@ import org.slf4j.LoggerFactory;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 22/05/2014 19:22
*/
public class SystemProperties {

View File

@ -19,6 +19,13 @@ import java.util.List;
* the comprised transactions, R, and a set of other blockheaders U that are known
* to have a parent equal to the present blocks parents parent
* (such blocks are known as uncles).
*
*
* www.ethereumJ.com
* @authors: Roman Mandeleil,
* Nick Savers
* Created on: 20/05/2014 10:44
*
*/
public class Block {

View File

@ -14,6 +14,13 @@ import java.util.*;
import static org.ethereum.core.Denomination.*;
/*
*
* www.ethereumJ.com
* @author: Nick Savers
* Created on: 20/05/2014 10:44
*
*/
public class Blockchain extends ArrayList<Block> {
private static final long serialVersionUID = -143590724563460486L;

View File

@ -13,8 +13,13 @@ package org.ethereum.crypto;
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* www.ethereumJ.com
* @author: Nick Savers
* Created on: 20/05/2014 10:44
*
*/
import static org.ethereum.util.ByteUtil.bigIntegerToBytes;
import java.io.Serializable;

View File

@ -12,7 +12,7 @@ import com.maxmind.geoip.LookupService;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 24/04/14 20:11
*/
public class IpGeoDB { // change

View File

@ -13,7 +13,7 @@ import java.awt.event.*;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 15/05/14 12:36
*/
public class BlockChainTable extends JFrame {

View File

@ -6,7 +6,7 @@ import javax.swing.table.AbstractTableModel;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 15/05/14 12:42
*/
public class BlockTableModel extends AbstractTableModel {

View File

@ -8,7 +8,7 @@ import org.fife.ui.rsyntaxtextarea.*;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 24/04/14 11:52
*/
public class ConsoleTokenMaker extends AbstractTokenMaker {

View File

@ -27,7 +27,7 @@ import java.util.Collection;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 18/05/14 22:21
*/
class ContractCallDialog extends JDialog implements MessageAwareDialog{

View File

@ -25,7 +25,7 @@ import java.util.Collection;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 18/05/14 22:21
*/
class ContractSubmitDialog extends JDialog implements MessageAwareDialog {

View File

@ -18,7 +18,7 @@ import static org.ethereum.config.SystemProperties.CONFIG;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 26/05/2014 12:27
*/
public class DialogWorker extends SwingWorker {

View File

@ -13,7 +13,7 @@ import java.util.Arrays;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 23/05/2014 13:51
*/

View File

@ -20,7 +20,7 @@ import javax.swing.*;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 18/05/14 22:21
*/
class PayOutDialog extends JDialog implements MessageAwareDialog {

View File

@ -2,7 +2,7 @@ package org.ethereum.gui;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 30/04/14 11:32
*/
public interface PeerListener {

View File

@ -16,7 +16,7 @@ import com.maxmind.geoip.Location;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 25/04/14 07:04
*/
public class PeersTableModel extends AbstractTableModel {

View File

@ -16,7 +16,7 @@ import static org.ethereum.config.SystemProperties.CONFIG;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 25/04/14 07:11
*/
public class PeersTableWindow extends JFrame{

View File

@ -15,7 +15,7 @@ import java.util.List;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 02/06/2014 16:58
*/

View File

@ -16,11 +16,9 @@ import static org.ethereum.config.SystemProperties.CONFIG;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 24/04/14 11:32
*/
public class SerpentEditor extends JFrame {
private String codeSample = "\n\n\n" +

View File

@ -9,7 +9,7 @@ import org.fife.ui.rsyntaxtextarea.*;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 24/04/14 11:52
*/

View File

@ -9,7 +9,7 @@ import javax.swing.table.TableCellRenderer;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 15/05/14 13:08
*/
public class TableCellLongTextRenderer extends JEditorPane implements TableCellRenderer{

View File

@ -15,7 +15,7 @@ import java.awt.event.WindowEvent;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 30/04/14 06:29
*/
public class ToolBar extends JFrame {

View File

@ -17,7 +17,7 @@ import java.net.URL;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 17/05/14 12:32
*/
public class WalletAddressPanel extends JPanel{

View File

@ -14,7 +14,7 @@ import java.net.URL;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 17/05/14 12:32
*/
public class WalletSumPanel extends JPanel{

View File

@ -15,7 +15,7 @@ import java.net.URL;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 17/05/14 12:00
*/
public class WalletWindow extends JFrame implements Wallet.WalletListener{

View File

@ -25,7 +25,7 @@ import com.maxmind.geoip.Location;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 21/04/14 20:35
*/
public class MainData {

View File

@ -20,7 +20,13 @@ import java.util.List;
import java.util.Map;
/**
*
* WorldManager is the main class to handle the processing of transactions and managing the world state.
*
* www.ethereumJ.com
* @author: Roman Mandeleil
* Created on: 01/06/2014 10:44
*
*/
public class WorldManager {

View File

@ -2,7 +2,7 @@ package org.ethereum.net;
/**
* www.openchain.info
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 04/04/14 00:51
*/
public class MessageDeserializer {

View File

@ -24,7 +24,7 @@ import static org.ethereum.config.SystemProperties.CONFIG;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 10/04/14 12:28
*/
public class ClientPeer {

View File

@ -8,7 +8,7 @@ import java.util.List;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 13/04/14 21:51
*/
public class EthereumFrameDecoder extends ByteToMessageDecoder {

View File

@ -32,7 +32,7 @@ import org.spongycastle.util.encoders.Hex;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 10/04/14 08:19
*/
public class EthereumProtocolHandler extends ChannelInboundHandlerAdapter {

View File

@ -7,7 +7,7 @@ import java.net.UnknownHostException;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 13/04/14 17:36
*/
public class PeerData {

View File

@ -12,7 +12,7 @@ import org.ethereum.util.RLPList;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class BlocksMessage extends Message {

View File

@ -9,7 +9,7 @@ import static org.ethereum.net.message.ReasonCode.DISCONNECT_REQUESTED;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class DisconnectMessage extends Message {

View File

@ -14,7 +14,7 @@ import org.spongycastle.util.encoders.Hex;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class GetChainMessage extends Message {

View File

@ -13,7 +13,7 @@ import java.nio.ByteBuffer;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class HelloMessage extends Message {

View File

@ -4,7 +4,7 @@ import org.ethereum.util.RLPList;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:58
*/
public abstract class Message {

View File

@ -10,7 +10,7 @@ import org.spongycastle.util.encoders.Hex;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class NotInChainMessage extends Message {

View File

@ -13,7 +13,7 @@ import org.ethereum.util.RLPList;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class PeersMessage extends Message {

View File

@ -5,7 +5,7 @@ import org.spongycastle.util.encoders.Hex;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 13/04/14 20:19
*/
public class StaticMessages {

View File

@ -15,7 +15,7 @@ import java.util.List;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 06/04/14 14:56
*/
public class TransactionsMessage extends Message {

View File

@ -23,7 +23,7 @@ import static org.ethereum.net.Command.*;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 10/04/14 08:19
*/
public class EthereumPeerTasterHandler extends ChannelInboundHandlerAdapter {

View File

@ -9,7 +9,7 @@ import static org.ethereum.config.SystemProperties.CONFIG;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 22/05/2014 09:10
*/

View File

@ -14,7 +14,7 @@ import static org.ethereum.config.SystemProperties.CONFIG;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 10/04/14 12:28
*/
public class PeerTaster {

View File

@ -8,7 +8,7 @@ import java.util.concurrent.ThreadPoolExecutor;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 22/05/2014 10:31
*/

View File

@ -8,7 +8,7 @@ import java.util.concurrent.ThreadPoolExecutor;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 22/05/2014 09:26
*/

View File

@ -8,7 +8,7 @@ import org.ethereum.core.Transaction;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 23/05/2014 19:07
*/

View File

@ -12,7 +12,7 @@ import static java.lang.Thread.sleep;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 23/05/2014 18:33
*/
public class TransactionTask implements Callable<Transaction> {

View File

@ -4,7 +4,7 @@ import org.ethereum.core.Transaction;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 23/05/2014 18:41
*/

View File

@ -8,7 +8,7 @@ import org.apache.maven.plugin.MojoFailureException;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 25/04/14 17:06
*/
public class ParserGenerator {

View File

@ -1,3 +1,7 @@
// www.ethereumj.com
// @author Roman Mandeleil
// Created on: 22/03/2014 19:22
grammar Serpent;
tokens {

View File

@ -18,7 +18,7 @@ import java.util.regex.Pattern;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 13/05/14 19:37
*/
public class SerpentCompiler {

View File

@ -12,7 +12,7 @@ import java.util.regex.Pattern;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 05/05/14 13:41
*/
public class SerpentToAssemblyCompiler extends SerpentBaseVisitor<String> {

View File

@ -8,6 +8,11 @@ import org.ethereum.crypto.HashUtil;
import org.ethereum.util.Value;
import org.iq80.leveldb.DB;
/*
* www.ethereumJ.com
* @author: Nick Savers
* Created on: 20/05/2014 10:44
*/
public class Cache {
private Map<byte[], Node> nodes;

View File

@ -38,6 +38,10 @@ import org.ethereum.util.Value;
* in a persistent lookup table when you create a node with length >= 32,
* but if the node is shorter than that then you do not need to store anything
* when length < 32 for the obvious reason that the function f(x) = x is reversible.
*
* www.ethereumJ.com
* @author: Nick Savers
* Created on: 20/05/2014 10:44
*/
public class Node {

View File

@ -26,6 +26,10 @@ import org.iq80.leveldb.DB;
* store the cached value.
*
* Please note that the data isn't persisted unless `sync` is explicitly called.
*
* www.ethereumJ.com
* @author: Nick Savers
* Created on: 20/05/2014 10:44
*/
public class Trie {

View File

@ -5,6 +5,11 @@ import java.util.List;
import org.ethereum.util.Value;
import static org.ethereum.util.CompactEncoder.unpackToNibbles;
/*
* www.ethereumJ.com
* @author: Nick Savers
* Created on: 20/05/2014 10:44
*/
public class TrieIterator {
private Trie trie;

View File

@ -42,6 +42,11 @@ import org.ethereum.util.RLPList;
* are used and no knowledge about the content of the strings is implied.
*
* See: https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP
*
* www.ethereumJ.com
* @author: Roman Mandeleil
* Created on: 01/04/2014 10:45
*
*/
public class RLP {

View File

@ -4,6 +4,11 @@ import java.io.Serializable;
/**
* Wrapper class for decoded elements from an RLP encoded byte array.
*
* www.ethereumJ.com
* @author: Roman Mandeleil
* Created on: 01/04/2014 10:45
*
*/
public interface RLPElement extends Serializable {

View File

@ -3,7 +3,7 @@ package org.ethereum.util;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 21/04/14 16:26
*/
public class RLPItem implements RLPElement {

View File

@ -4,7 +4,7 @@ import java.util.ArrayList;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 21/04/14 16:26
*/
public class RLPList extends ArrayList<RLPElement> implements RLPElement {

View File

@ -9,6 +9,10 @@ import java.nio.ByteBuffer;
/**
* DataWord is the 32-byte array representation of a 256-bit number
* Calculations can be done on this word with other DataWords
*
* www.ethereumJ.com
* @author: Roman Mandeleil
* Created on: 01/06/2014 10:45
*/
public class DataWord {

View File

@ -11,10 +11,9 @@ import java.util.*;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 01/06/2014 10:45
*/
public class Program {
Logger logger = LoggerFactory.getLogger("VM");

View File

@ -2,7 +2,7 @@ package org.ethereum.vm;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 03/06/2014 14:59
*/

View File

@ -4,7 +4,7 @@ import java.nio.ByteBuffer;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 07/06/2014 17:45
*/

View File

@ -10,7 +10,7 @@ import java.nio.ByteBuffer;
import static org.ethereum.vm.OpCode.PUSH1;
/**
* The Ethereum Virtual Machine (EVM) is responsible for initialization
* The Ethereum Virtual Machine (EVM) is responsible for initialization
* and executing a transaction on a contract.
*
* It is a quasi-Turing-complete machine; the quasi qualification
@ -42,6 +42,10 @@ import static org.ethereum.vm.OpCode.PUSH1;
* Here, the machine halts immediately and reports the issue to
* the execution agent (either the transaction processor or, recursively,
* the spawning execution environment) and which will deal with it separately.
*
* www.ethereumJ.com
* @author: Roman Mandeleil
* Created on: 01/06/2014 10:44
*/
public class VM {

View File

@ -13,7 +13,7 @@ import java.math.BigInteger;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 17/05/14 17:06
*/
public class WalletTest {

View File

@ -7,7 +7,7 @@ import org.spongycastle.util.encoders.Hex;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 28/05/2014 20:05
*/

View File

@ -11,7 +11,7 @@ import java.util.regex.Pattern;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 13/05/14 10:07
*/
public class SerpentCompileTest {

View File

@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 17/05/14 15:38
*/
public class UtilsTest {

View File

@ -6,7 +6,7 @@ import org.spongycastle.util.encoders.Hex;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 03/06/2014 15:00
*/

View File

@ -9,7 +9,7 @@ import static org.junit.Assert.fail;
/**
* www.ethereumJ.com
* User: Roman Mandeleil
* @author: Roman Mandeleil
* Created on: 01/06/2014 11:05
*/