mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
sneding js tracer from golang
This commit is contained in:
parent
bf5b379025
commit
34b2b9b7b9
14 changed files with 1043 additions and 731 deletions
|
|
@ -265,12 +265,12 @@ func GetBlockReceipts(db DatabaseReader, hash common.Hash, number uint64) types.
|
|||
// GetTxLookupEntry retrieves the positional metadata associated with a transaction
|
||||
// hash to allow retrieving the transaction or receipt by hash.
|
||||
func GetTxLookupEntry(db DatabaseReader, hash common.Hash) (common.Hash, uint64, uint64) {
|
||||
fmt.Println("[GetTxLookupEntry FUNCTION RAN]")
|
||||
// Load the positional metadata from disk and bail if it fails
|
||||
fmt.Println("INSIDE GetTxLookupEntry ")
|
||||
fmt.Println("the db is ")
|
||||
fmt.Println(db)
|
||||
fmt.Println("the hash is")
|
||||
fmt.Println(hash)
|
||||
//fmt.Println("INSIDE GetTxLookupEntry ")
|
||||
//fmt.Println("the db is ")
|
||||
//fmt.Println(db)
|
||||
fmt.Println("the hash is", hash.String())
|
||||
data, _ := db.Get(append(lookupPrefix, hash.Bytes()...))
|
||||
fmt.Println("the data is ")
|
||||
fmt.Println(data)
|
||||
|
|
|
|||
|
|
@ -14,9 +14,6 @@ _ "github.com/lib/pq"
|
|||
"github.com/ethereum/go-ethereum/core/types"
|
||||
Rewards "github.com/ethereum/go-ethereum/consensus/ethash"
|
||||
"github.com/ethereum/go-ethereum/shyfttracerinterface"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
"reflect"
|
||||
|
||||
)
|
||||
|
||||
var IShyftTracer shyfttracerinterface.IShyftTracer
|
||||
|
|
@ -175,18 +172,11 @@ func SwriteTransactions(sqldb *sql.DB, tx *types.Transaction, blockHash common.H
|
|||
Data: tx.Data(),
|
||||
}
|
||||
|
||||
hash := txData.TxHash
|
||||
fmt.Println(reflect.TypeOf(hash))
|
||||
//hash := txData.TxHash
|
||||
txHash := txData.TxHash.Hex()
|
||||
//IShyftTracer.MyTraceTransaction(txHash)
|
||||
|
||||
//
|
||||
var stack *node.Node
|
||||
fmt.Println(reflect.TypeOf(stack))
|
||||
|
||||
prayer, err := IShyftTracer.GetTracerToRun(hash, stack)
|
||||
fmt.Println("THIS IS A PRAYER", prayer)
|
||||
fmt.Println(err)
|
||||
//prayer, _ := IShyftTracer.GetTracerToRun(hash)
|
||||
//fmt.Printf("%+v\n", prayer)
|
||||
|
||||
from := txData.From.Hex()
|
||||
blockHasher := txData.BlockHash
|
||||
|
|
|
|||
|
|
@ -530,229 +530,16 @@ func (api *PrivateDebugAPI) computeStateDB(block *types.Block, reexec uint64) (*
|
|||
return statedb, nil
|
||||
}
|
||||
|
||||
|
||||
//func GetTracerToRun(hash common.Hash) (interface{}, error) {
|
||||
// config2 := params.ShyftNetworkChainConfig
|
||||
// var cfg *Config
|
||||
// fmt.Println(reflect.TypeOf(cfg))
|
||||
// var ctx context.Context
|
||||
// var config *TraceConfig
|
||||
// var fullNode *Ethereum
|
||||
// var stack *node.Node
|
||||
// fmt.Println(reflect.TypeOf(stack))
|
||||
// err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
|
||||
// fullNode, err := New(ctx, cfg)
|
||||
// return fullNode, err
|
||||
// })
|
||||
// fmt.Println(err)
|
||||
// privateAPI := NewPrivateDebugAPI(config2, fullNode)
|
||||
// return privateAPI.TraceTransaction(ctx, hash, config)
|
||||
//}
|
||||
|
||||
|
||||
// TraceTransaction returns the structured logs created during the execution of EVM
|
||||
// and returns them as a JSON object.
|
||||
func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, hash common.Hash, config *TraceConfig) (interface{}, error) {
|
||||
fmt.Println("TRACE TRANSACTION ++++++!+!+!+!+!+!+!+!+!+!+!+!++!")
|
||||
_, file, no, ok := runtime.Caller(1)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(2)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(3)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(4)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(5)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(6)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(7)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(8)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(9)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(10)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(11)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(12)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(13)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(14)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(15)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(16)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(17)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(18)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(19)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(20)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(21)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(22)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(23)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(24)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(25)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(26)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(27)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(28)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(29)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(30)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(31)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(32)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(33)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(34)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(35)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(36)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(37)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(38)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(39)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(40)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
fmt.Println("////////////// ++++++++++++++++ /////////////////// Phantom *(!*!*!*!*!*!**!*!*")
|
||||
_, file, no, ok = runtime.Caller(41)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(42)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(43)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
_, file, no, ok = runtime.Caller(44)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
fmt.Println("////////////// ++++++++++++++++ /////////////////// TraceTransaction *(!*!*!*!*!*!**!*!*")
|
||||
_, file, no, ok = runtime.Caller(45)
|
||||
if ok {
|
||||
fmt.Printf("called from %s#%d\n", file, no)
|
||||
}
|
||||
// NOTE:SHYFT
|
||||
fmt.Printf("\n\t[API_TRACER.GO api.config] %+v", api.config)
|
||||
fmt.Printf("\n\t[API_TRACER.GO api.eth] %+v\n", api.eth)
|
||||
// Retrieve the transaction and assemble its EVM context
|
||||
//fmt.Println("IN TRACE TRANSACTION the chaindb is ")
|
||||
//fmt.Println(chaindb)
|
||||
//fmt.Println("IN TRACE TRANSACTION the common hash is ")
|
||||
//fmt.Println(hash)
|
||||
|
||||
tx, blockHash, _, index := core.GetTransaction(api.eth.ChainDb(), hash)
|
||||
if tx == nil {
|
||||
return nil, fmt.Errorf("transaction %x not found", hash)
|
||||
}
|
||||
|
||||
fmt.Println("the tx is in TraceTransaction")
|
||||
fmt.Println(tx)
|
||||
fmt.Println(blockHash)
|
||||
fmt.Println(index)
|
||||
fmt.Println("TX IN TRACETRANSACTION", tx)
|
||||
reexec := defaultTraceReexec
|
||||
if config != nil && config.Reexec != nil {
|
||||
reexec = *config.Reexec
|
||||
|
|
@ -761,10 +548,6 @@ func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, hash common.Ha
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Trace the transaction and return
|
||||
//fmt.Println("\n\n\t\tRETURN")
|
||||
//fmt.Println(api.traceTx(ctx, msg, vmctx, statedb, config))
|
||||
//fmt.Println("RETURN FINISHED")
|
||||
return api.traceTx(ctx, msg, vmctx, statedb, config)
|
||||
}
|
||||
|
||||
|
|
@ -773,6 +556,8 @@ func (api *PrivateDebugAPI) TraceTransaction(ctx context.Context, hash common.Ha
|
|||
// be tracer dependent.
|
||||
func (api *PrivateDebugAPI) traceTx(ctx context.Context, message core.Message, vmctx vm.Context, statedb *state.StateDB, config *TraceConfig) (interface{}, error) {
|
||||
// Assemble the structured logger or the JavaScript tracer
|
||||
fmt.Println("\n [API_TRACER.GO traceTX func]")
|
||||
// fmt.Printf("%+v", config, "THIS IS CONFIG")
|
||||
var (
|
||||
tracer vm.Tracer
|
||||
err error
|
||||
|
|
@ -787,6 +572,7 @@ func (api *PrivateDebugAPI) traceTx(ctx context.Context, message core.Message, v
|
|||
}
|
||||
}
|
||||
// Constuct the JavaScript tracer to execute with
|
||||
fmt.Printf("%+v \n", *config.Tracer)
|
||||
if tracer, err = tracers.New(*config.Tracer); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -822,6 +608,7 @@ func (api *PrivateDebugAPI) traceTx(ctx context.Context, message core.Message, v
|
|||
}, nil
|
||||
|
||||
case *tracers.Tracer:
|
||||
fmt.Println("THIS RAN MF")
|
||||
return tracer.GetResult()
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -102,12 +102,47 @@ func (s *Ethereum) AddLesServer(ls LesServer) {
|
|||
ls.SetBloomBitsIndexer(s.bloomIndexer)
|
||||
}
|
||||
|
||||
func SNew(config *Config) (*Ethereum, error) {
|
||||
stopDbUpgrade := upgradeDeduplicateData(Chaindb_global)
|
||||
chainConfig, _, _ := core.SetupGenesisBlock(Chaindb_global, config.Genesis)
|
||||
|
||||
eth := &Ethereum{
|
||||
config: config,
|
||||
chainDb: Chaindb_global,
|
||||
chainConfig: chainConfig,
|
||||
//eventMux: ctx.EventMux,
|
||||
//accountManager: ctx.AccountManager,
|
||||
//engine: CreateConsensusEngine(ctx, &config.Ethash, chainConfig, Chaindb_global),
|
||||
shutdownChan: make(chan bool),
|
||||
stopDbUpgrade: stopDbUpgrade,
|
||||
networkId: config.NetworkId,
|
||||
gasPrice: config.GasPrice,
|
||||
etherbase: config.Etherbase,
|
||||
bloomRequests: make(chan chan *bloombits.Retrieval),
|
||||
bloomIndexer: NewBloomIndexer(Chaindb_global, params.BloomBitsBlocks),
|
||||
}
|
||||
|
||||
//var (
|
||||
// vmConfig = vm.Config{EnablePreimageRecording: config.EnablePreimageRecording}
|
||||
// cacheConfig = &core.CacheConfig{Disabled: config.NoPruning, TrieNodeLimit: config.TrieCache, TrieTimeLimit: config.TrieTimeout}
|
||||
//)
|
||||
//
|
||||
//eth.blockchain, err = core.NewBlockChain(chainDb, cacheConfig, eth.chainConfig, eth.engine, vmConfig)
|
||||
//
|
||||
//BlockchainObject = eth.blockchain
|
||||
|
||||
eth.blockchain = BlockchainObject
|
||||
|
||||
return eth, nil
|
||||
}
|
||||
|
||||
// New creates a new Ethereum object (including the
|
||||
// initialisation of the common Ethereum object)
|
||||
func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
||||
|
||||
shyft_tracer := new(ShyftTracer)
|
||||
core.SetIShyftTracer(shyft_tracer)
|
||||
setGlobalConfig(config)
|
||||
|
||||
_, file, no, ok := runtime.Caller(1)
|
||||
if ok {
|
||||
|
|
@ -125,8 +160,6 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// @TODO: Create Genesis Block
|
||||
|
||||
stopDbUpgrade := upgradeDeduplicateData(chainDb)
|
||||
chainConfig, genesisHash, genesisErr := core.SetupGenesisBlock(chainDb, config.Genesis)
|
||||
if _, ok := genesisErr.(*params.ConfigCompatError); genesisErr != nil && !ok {
|
||||
|
|
@ -222,7 +255,6 @@ func makeExtraData(extra []byte) []byte {
|
|||
|
||||
// CreateDB creates the chain database.
|
||||
func CreateDB(ctx *node.ServiceContext, config *Config, name string) (ethdb.Database, error) {
|
||||
fmt.Println("in create db")
|
||||
db, err := ctx.OpenDatabase(name, config.DatabaseCache, config.DatabaseHandles)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
|
|
@ -2,32 +2,42 @@ package eth
|
|||
|
||||
import (
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"fmt"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var EthereumObject interface{}
|
||||
|
||||
type ShyftTracer struct {}
|
||||
|
||||
func (st ShyftTracer) GetTracerToRun(hash common.Hash, stack *node.Node) (interface{}, error) {
|
||||
//(
|
||||
func (st ShyftTracer) GetTracerToRun (hash common.Hash) (interface{}, error) {
|
||||
config2 := params.ShyftNetworkChainConfig
|
||||
var cfg *Config
|
||||
var ctx context.Context
|
||||
var config *TraceConfig
|
||||
var fullNode *Ethereum
|
||||
|
||||
err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
|
||||
fullNode, err := New(ctx, cfg)
|
||||
return fullNode, err
|
||||
})
|
||||
fmt.Println(err)
|
||||
jsTracer := "callTracer"
|
||||
|
||||
//
|
||||
//var cfg *Config
|
||||
var ctx2 context.Context
|
||||
config := &TraceConfig{
|
||||
LogConfig: nil,
|
||||
Tracer: &jsTracer, // needs to be non-nil
|
||||
Timeout: nil,
|
||||
Reexec: nil,
|
||||
}
|
||||
fmt.Printf("%+v", config, "THIS IS CONFIG IN SHYFT_TRACER")
|
||||
//var fullNode *Ethereum
|
||||
fullNode, _ := SNew(Global_config)
|
||||
privateAPI := NewPrivateDebugAPI(config2, fullNode)
|
||||
return privateAPI.TraceTransaction(ctx, hash, config)
|
||||
return privateAPI.TraceTransaction(ctx2, hash, config)
|
||||
}
|
||||
|
||||
func setEthObject(ethobj interface{}){
|
||||
EthereumObject = ethobj
|
||||
}
|
||||
|
||||
var Global_config *Config
|
||||
|
||||
func setGlobalConfig(c *Config) {
|
||||
Global_config = c
|
||||
}
|
||||
|
|
@ -307,10 +307,14 @@ type Tracer struct {
|
|||
// which must evaluate to an expression returning an object with 'step', 'fault'
|
||||
// and 'result' functions.
|
||||
func New(code string) (*Tracer, error) {
|
||||
fmt.Println("\n [TRACER.GO New func]", code)
|
||||
// Resolve any tracers by name and assemble the tracer object
|
||||
if tracer, ok := tracer(code); ok {
|
||||
code = tracer
|
||||
fmt.Println("\n [ok]", ok)
|
||||
}
|
||||
fmt.Println("\n [tracer]", tracer)
|
||||
|
||||
tracer := &Tracer{
|
||||
vm: duktape.New(),
|
||||
ctx: make(map[string]interface{}),
|
||||
|
|
@ -497,7 +501,9 @@ func wrapError(context string, err error) error {
|
|||
// CaptureStart implements the Tracer interface to initialize the tracing operation.
|
||||
func (jst *Tracer) CaptureStart(from common.Address, to common.Address, create bool, input []byte, gas uint64, value *big.Int) error {
|
||||
//fmt.Println("\n\n\t\t type: ", reflect.TypeOf(input))
|
||||
fmt.Println("\t\t [TRACER INPUT]:", input)
|
||||
fmt.Println("\t\t [TRACER TO]:", to.String())
|
||||
fmt.Println("\t\t [TRACER FROM]:", from.String())
|
||||
fmt.Println("\t\t [TRACER VALUE]:", value.String())
|
||||
fmt.Println("\t\t [TRACER INPUT STRING]:", string(input[:len(input)]), "\n\n")
|
||||
jst.ctx["type"] = "CALL"
|
||||
if create {
|
||||
|
|
@ -568,8 +574,8 @@ func (jst *Tracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost
|
|||
// CaptureEnd is called after the call finishes to finalize the tracing.
|
||||
func (jst *Tracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) error {
|
||||
//fmt.Println("\n\n\t\t", reflect.TypeOf(output))
|
||||
fmt.Println("\t\t [TRACER OUTPUT]:", output[:len(output)])
|
||||
fmt.Println("\t\t [TRACER OUTPUT STRING]:", string(output[:len(output)]), "\n\n")
|
||||
//fmt.Println("\t\t [TRACER OUTPUT]:", output[:len(output)])
|
||||
//fmt.Println("\t\t [TRACER OUTPUT STRING]:", string(output[:len(output)]), "\n\n")
|
||||
jst.ctx["output"] = output
|
||||
jst.ctx["gasUsed"] = gasUsed
|
||||
jst.ctx["time"] = t.String()
|
||||
|
|
|
|||
|
|
@ -64,14 +64,14 @@
|
|||
"type": "function"
|
||||
}
|
||||
],
|
||||
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a7230582081dfbd8174037e45d69fcbe70d6680c7a2138f79ab9ba39bdffaa14fb7854aa50029",
|
||||
"deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a7230582081dfbd8174037e45d69fcbe70d6680c7a2138f79ab9ba39bdffaa14fb7854aa50029",
|
||||
"sourceMap": "26:480:0:-;;;115:50;8:9:-1;5:2;;;30:1;27;20:12;5:2;115:50:0;150:10;142:5;;:18;;;;;;;;;;;;;;;;;;26:480;;;;;;",
|
||||
"deployedSourceMap": "26:480:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;339:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;339:165:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;74:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74:36:0;;;;;;;;;;;;;;;;;;;;;;;50:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;232:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;232:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;339:165;401:19;215:5;;;;;;;;;;;201:19;;:10;:19;;;197:26;;;434:11;401:45;;452:8;:21;;;474:24;;452:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;452:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;452:47:0;;;;197:26;339:165;;:::o;74:36::-;;;;:::o;50:20::-;;;;;;;;;;;;;:::o;232:103::-;215:5;;;;;;;;;;;201:19;;:10;:19;;;197:26;;;321:9;294:24;:36;;;;197:26;232:103;:::o",
|
||||
"source": "pragma solidity ^0.4.23;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n constructor() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n",
|
||||
"sourcePath": "/Users/gregmarkou/Jobs/Jobs/ChainSafe/shyftNetwork/shyft_go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol",
|
||||
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a723058204322c068e2f4ea0c2c75a1ad943ff4d1badcc839aea20ef91d899284e74d911b0029",
|
||||
"deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a723058204322c068e2f4ea0c2c75a1ad943ff4d1badcc839aea20ef91d899284e74d911b0029",
|
||||
"sourceMap": "26:488:0:-;;;115:58;8:9:-1;5:2;;;30:1;27;20:12;5:2;115:58:0;158:10;150:5;;:18;;;;;;;;;;;;;;;;;;26:488;;;;;;",
|
||||
"deployedSourceMap": "26:488:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;347:165:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;74:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74:36:0;;;;;;;;;;;;;;;;;;;;;;;50:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;240:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;240:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;409:19;223:5;;;;;;;;;;;209:19;;:10;:19;;;205:26;;;442:11;409:45;;460:8;:21;;;482:24;;460:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;460:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;460:47:0;;;;205:26;347:165;;:::o;74:36::-;;;;:::o;50:20::-;;;;;;;;;;;;;:::o;240:103::-;223:5;;;;;;;;;;;209:19;;:10;:19;;;205:26;;;329:9;302:24;:36;;;;205:26;240:103;:::o",
|
||||
"source": "pragma solidity ^0.4.23;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n function Migrations() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n",
|
||||
"sourcePath": "/Users/dustinbrickwood/go/src/github.com/ethereum/go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol",
|
||||
"ast": {
|
||||
"absolutePath": "/Users/gregmarkou/Jobs/Jobs/ChainSafe/shyftNetwork/shyft_go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol",
|
||||
"absolutePath": "/Users/dustinbrickwood/go/src/github.com/ethereum/go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol",
|
||||
"exportedSymbols": {
|
||||
"Migrations": [
|
||||
56
|
||||
|
|
@ -160,7 +160,7 @@
|
|||
"body": {
|
||||
"id": 13,
|
||||
"nodeType": "Block",
|
||||
"src": "136:29:0",
|
||||
"src": "144:29:0",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
|
|
@ -177,7 +177,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 3,
|
||||
"src": "142:5:0",
|
||||
"src": "150:5:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -194,7 +194,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 264,
|
||||
"src": "150:3:0",
|
||||
"src": "158:3:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_message",
|
||||
"typeString": "msg"
|
||||
|
|
@ -208,13 +208,13 @@
|
|||
"memberName": "sender",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": null,
|
||||
"src": "150:10:0",
|
||||
"src": "158:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"src": "142:18:0",
|
||||
"src": "150:18:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -222,7 +222,7 @@
|
|||
},
|
||||
"id": 12,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "142:18:0"
|
||||
"src": "150:18:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -232,23 +232,23 @@
|
|||
"isConstructor": true,
|
||||
"isDeclaredConst": false,
|
||||
"modifiers": [],
|
||||
"name": "",
|
||||
"name": "Migrations",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 6,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "126:2:0"
|
||||
"src": "134:2:0"
|
||||
},
|
||||
"payable": false,
|
||||
"returnParameters": {
|
||||
"id": 7,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "136:0:0"
|
||||
"src": "144:0:0"
|
||||
},
|
||||
"scope": 56,
|
||||
"src": "115:50:0",
|
||||
"src": "115:58:0",
|
||||
"stateMutability": "nonpayable",
|
||||
"superFunction": null,
|
||||
"visibility": "public"
|
||||
|
|
@ -257,7 +257,7 @@
|
|||
"body": {
|
||||
"id": 22,
|
||||
"nodeType": "Block",
|
||||
"src": "191:37:0",
|
||||
"src": "199:37:0",
|
||||
"statements": [
|
||||
{
|
||||
"condition": {
|
||||
|
|
@ -280,7 +280,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 264,
|
||||
"src": "201:3:0",
|
||||
"src": "209:3:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_message",
|
||||
"typeString": "msg"
|
||||
|
|
@ -294,7 +294,7 @@
|
|||
"memberName": "sender",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": null,
|
||||
"src": "201:10:0",
|
||||
"src": "209:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -309,13 +309,13 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 3,
|
||||
"src": "215:5:0",
|
||||
"src": "223:5:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"src": "201:19:0",
|
||||
"src": "209:19:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
|
|
@ -324,11 +324,11 @@
|
|||
"falseBody": null,
|
||||
"id": 21,
|
||||
"nodeType": "IfStatement",
|
||||
"src": "197:26:0",
|
||||
"src": "205:26:0",
|
||||
"trueBody": {
|
||||
"id": 20,
|
||||
"nodeType": "PlaceholderStatement",
|
||||
"src": "222:1:0"
|
||||
"src": "230:1:0"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -341,16 +341,16 @@
|
|||
"id": 15,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "188:2:0"
|
||||
"src": "196:2:0"
|
||||
},
|
||||
"src": "169:59:0",
|
||||
"src": "177:59:0",
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 34,
|
||||
"nodeType": "Block",
|
||||
"src": "288:47:0",
|
||||
"src": "296:47:0",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
|
|
@ -367,7 +367,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 5,
|
||||
"src": "294:24:0",
|
||||
"src": "302:24:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -382,13 +382,13 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 25,
|
||||
"src": "321:9:0",
|
||||
"src": "329:9:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"src": "294:36:0",
|
||||
"src": "302:36:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -396,7 +396,7 @@
|
|||
},
|
||||
"id": 33,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "294:36:0"
|
||||
"src": "302:36:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -416,14 +416,14 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 23,
|
||||
"src": "277:10:0",
|
||||
"src": "285:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_modifier$__$",
|
||||
"typeString": "modifier ()"
|
||||
}
|
||||
},
|
||||
"nodeType": "ModifierInvocation",
|
||||
"src": "277:10:0"
|
||||
"src": "285:10:0"
|
||||
}
|
||||
],
|
||||
"name": "setCompleted",
|
||||
|
|
@ -438,7 +438,7 @@
|
|||
"name": "completed",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 35,
|
||||
"src": "254:14:0",
|
||||
"src": "262:14:0",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
|
|
@ -449,7 +449,7 @@
|
|||
"id": 24,
|
||||
"name": "uint",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "254:4:0",
|
||||
"src": "262:4:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -459,17 +459,17 @@
|
|||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "253:16:0"
|
||||
"src": "261:16:0"
|
||||
},
|
||||
"payable": false,
|
||||
"returnParameters": {
|
||||
"id": 29,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "288:0:0"
|
||||
"src": "296:0:0"
|
||||
},
|
||||
"scope": 56,
|
||||
"src": "232:103:0",
|
||||
"src": "240:103:0",
|
||||
"stateMutability": "nonpayable",
|
||||
"superFunction": null,
|
||||
"visibility": "public"
|
||||
|
|
@ -478,7 +478,7 @@
|
|||
"body": {
|
||||
"id": 54,
|
||||
"nodeType": "Block",
|
||||
"src": "395:109:0",
|
||||
"src": "403:109:0",
|
||||
"statements": [
|
||||
{
|
||||
"assignments": [
|
||||
|
|
@ -491,7 +491,7 @@
|
|||
"name": "upgraded",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 55,
|
||||
"src": "401:19:0",
|
||||
"src": "409:19:0",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
|
|
@ -504,7 +504,7 @@
|
|||
"name": "Migrations",
|
||||
"nodeType": "UserDefinedTypeName",
|
||||
"referencedDeclaration": 56,
|
||||
"src": "401:10:0",
|
||||
"src": "409:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_contract$_Migrations_$56",
|
||||
"typeString": "contract Migrations"
|
||||
|
|
@ -525,7 +525,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 37,
|
||||
"src": "434:11:0",
|
||||
"src": "442:11:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -544,7 +544,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 56,
|
||||
"src": "423:10:0",
|
||||
"src": "431:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_type$_t_contract$_Migrations_$56_$",
|
||||
"typeString": "type(contract Migrations)"
|
||||
|
|
@ -558,14 +558,14 @@
|
|||
"lValueRequested": false,
|
||||
"names": [],
|
||||
"nodeType": "FunctionCall",
|
||||
"src": "423:23:0",
|
||||
"src": "431:23:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_contract$_Migrations_$56",
|
||||
"typeString": "contract Migrations"
|
||||
}
|
||||
},
|
||||
"nodeType": "VariableDeclarationStatement",
|
||||
"src": "401:45:0"
|
||||
"src": "409:45:0"
|
||||
},
|
||||
{
|
||||
"expression": {
|
||||
|
|
@ -578,7 +578,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 5,
|
||||
"src": "474:24:0",
|
||||
"src": "482:24:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -599,7 +599,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 43,
|
||||
"src": "452:8:0",
|
||||
"src": "460:8:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_contract$_Migrations_$56",
|
||||
"typeString": "contract Migrations"
|
||||
|
|
@ -613,7 +613,7 @@
|
|||
"memberName": "setCompleted",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 35,
|
||||
"src": "452:21:0",
|
||||
"src": "460:21:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
|
||||
"typeString": "function (uint256) external"
|
||||
|
|
@ -627,7 +627,7 @@
|
|||
"lValueRequested": false,
|
||||
"names": [],
|
||||
"nodeType": "FunctionCall",
|
||||
"src": "452:47:0",
|
||||
"src": "460:47:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_tuple$__$",
|
||||
"typeString": "tuple()"
|
||||
|
|
@ -635,7 +635,7 @@
|
|||
},
|
||||
"id": 53,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "452:47:0"
|
||||
"src": "460:47:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -655,14 +655,14 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 23,
|
||||
"src": "384:10:0",
|
||||
"src": "392:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_modifier$__$",
|
||||
"typeString": "modifier ()"
|
||||
}
|
||||
},
|
||||
"nodeType": "ModifierInvocation",
|
||||
"src": "384:10:0"
|
||||
"src": "392:10:0"
|
||||
}
|
||||
],
|
||||
"name": "upgrade",
|
||||
|
|
@ -677,7 +677,7 @@
|
|||
"name": "new_address",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 55,
|
||||
"src": "356:19:0",
|
||||
"src": "364:19:0",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
|
|
@ -688,7 +688,7 @@
|
|||
"id": 36,
|
||||
"name": "address",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "356:7:0",
|
||||
"src": "364:7:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -698,30 +698,30 @@
|
|||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "355:21:0"
|
||||
"src": "363:21:0"
|
||||
},
|
||||
"payable": false,
|
||||
"returnParameters": {
|
||||
"id": 41,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "395:0:0"
|
||||
"src": "403:0:0"
|
||||
},
|
||||
"scope": 56,
|
||||
"src": "339:165:0",
|
||||
"src": "347:165:0",
|
||||
"stateMutability": "nonpayable",
|
||||
"superFunction": null,
|
||||
"visibility": "public"
|
||||
}
|
||||
],
|
||||
"scope": 57,
|
||||
"src": "26:480:0"
|
||||
"src": "26:488:0"
|
||||
}
|
||||
],
|
||||
"src": "0:507:0"
|
||||
"src": "0:515:0"
|
||||
},
|
||||
"legacyAST": {
|
||||
"absolutePath": "/Users/gregmarkou/Jobs/Jobs/ChainSafe/shyftNetwork/shyft_go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol",
|
||||
"absolutePath": "/Users/dustinbrickwood/go/src/github.com/ethereum/go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Migrations.sol",
|
||||
"exportedSymbols": {
|
||||
"Migrations": [
|
||||
56
|
||||
|
|
@ -810,7 +810,7 @@
|
|||
"body": {
|
||||
"id": 13,
|
||||
"nodeType": "Block",
|
||||
"src": "136:29:0",
|
||||
"src": "144:29:0",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
|
|
@ -827,7 +827,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 3,
|
||||
"src": "142:5:0",
|
||||
"src": "150:5:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -844,7 +844,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 264,
|
||||
"src": "150:3:0",
|
||||
"src": "158:3:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_message",
|
||||
"typeString": "msg"
|
||||
|
|
@ -858,13 +858,13 @@
|
|||
"memberName": "sender",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": null,
|
||||
"src": "150:10:0",
|
||||
"src": "158:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"src": "142:18:0",
|
||||
"src": "150:18:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -872,7 +872,7 @@
|
|||
},
|
||||
"id": 12,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "142:18:0"
|
||||
"src": "150:18:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -882,23 +882,23 @@
|
|||
"isConstructor": true,
|
||||
"isDeclaredConst": false,
|
||||
"modifiers": [],
|
||||
"name": "",
|
||||
"name": "Migrations",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 6,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "126:2:0"
|
||||
"src": "134:2:0"
|
||||
},
|
||||
"payable": false,
|
||||
"returnParameters": {
|
||||
"id": 7,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "136:0:0"
|
||||
"src": "144:0:0"
|
||||
},
|
||||
"scope": 56,
|
||||
"src": "115:50:0",
|
||||
"src": "115:58:0",
|
||||
"stateMutability": "nonpayable",
|
||||
"superFunction": null,
|
||||
"visibility": "public"
|
||||
|
|
@ -907,7 +907,7 @@
|
|||
"body": {
|
||||
"id": 22,
|
||||
"nodeType": "Block",
|
||||
"src": "191:37:0",
|
||||
"src": "199:37:0",
|
||||
"statements": [
|
||||
{
|
||||
"condition": {
|
||||
|
|
@ -930,7 +930,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 264,
|
||||
"src": "201:3:0",
|
||||
"src": "209:3:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_message",
|
||||
"typeString": "msg"
|
||||
|
|
@ -944,7 +944,7 @@
|
|||
"memberName": "sender",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": null,
|
||||
"src": "201:10:0",
|
||||
"src": "209:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -959,13 +959,13 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 3,
|
||||
"src": "215:5:0",
|
||||
"src": "223:5:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"src": "201:19:0",
|
||||
"src": "209:19:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
|
|
@ -974,11 +974,11 @@
|
|||
"falseBody": null,
|
||||
"id": 21,
|
||||
"nodeType": "IfStatement",
|
||||
"src": "197:26:0",
|
||||
"src": "205:26:0",
|
||||
"trueBody": {
|
||||
"id": 20,
|
||||
"nodeType": "PlaceholderStatement",
|
||||
"src": "222:1:0"
|
||||
"src": "230:1:0"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
@ -991,16 +991,16 @@
|
|||
"id": 15,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "188:2:0"
|
||||
"src": "196:2:0"
|
||||
},
|
||||
"src": "169:59:0",
|
||||
"src": "177:59:0",
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 34,
|
||||
"nodeType": "Block",
|
||||
"src": "288:47:0",
|
||||
"src": "296:47:0",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
|
|
@ -1017,7 +1017,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 5,
|
||||
"src": "294:24:0",
|
||||
"src": "302:24:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -1032,13 +1032,13 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 25,
|
||||
"src": "321:9:0",
|
||||
"src": "329:9:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"src": "294:36:0",
|
||||
"src": "302:36:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -1046,7 +1046,7 @@
|
|||
},
|
||||
"id": 33,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "294:36:0"
|
||||
"src": "302:36:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -1066,14 +1066,14 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 23,
|
||||
"src": "277:10:0",
|
||||
"src": "285:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_modifier$__$",
|
||||
"typeString": "modifier ()"
|
||||
}
|
||||
},
|
||||
"nodeType": "ModifierInvocation",
|
||||
"src": "277:10:0"
|
||||
"src": "285:10:0"
|
||||
}
|
||||
],
|
||||
"name": "setCompleted",
|
||||
|
|
@ -1088,7 +1088,7 @@
|
|||
"name": "completed",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 35,
|
||||
"src": "254:14:0",
|
||||
"src": "262:14:0",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
|
|
@ -1099,7 +1099,7 @@
|
|||
"id": 24,
|
||||
"name": "uint",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "254:4:0",
|
||||
"src": "262:4:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -1109,17 +1109,17 @@
|
|||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "253:16:0"
|
||||
"src": "261:16:0"
|
||||
},
|
||||
"payable": false,
|
||||
"returnParameters": {
|
||||
"id": 29,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "288:0:0"
|
||||
"src": "296:0:0"
|
||||
},
|
||||
"scope": 56,
|
||||
"src": "232:103:0",
|
||||
"src": "240:103:0",
|
||||
"stateMutability": "nonpayable",
|
||||
"superFunction": null,
|
||||
"visibility": "public"
|
||||
|
|
@ -1128,7 +1128,7 @@
|
|||
"body": {
|
||||
"id": 54,
|
||||
"nodeType": "Block",
|
||||
"src": "395:109:0",
|
||||
"src": "403:109:0",
|
||||
"statements": [
|
||||
{
|
||||
"assignments": [
|
||||
|
|
@ -1141,7 +1141,7 @@
|
|||
"name": "upgraded",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 55,
|
||||
"src": "401:19:0",
|
||||
"src": "409:19:0",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
|
|
@ -1154,7 +1154,7 @@
|
|||
"name": "Migrations",
|
||||
"nodeType": "UserDefinedTypeName",
|
||||
"referencedDeclaration": 56,
|
||||
"src": "401:10:0",
|
||||
"src": "409:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_contract$_Migrations_$56",
|
||||
"typeString": "contract Migrations"
|
||||
|
|
@ -1175,7 +1175,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 37,
|
||||
"src": "434:11:0",
|
||||
"src": "442:11:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -1194,7 +1194,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 56,
|
||||
"src": "423:10:0",
|
||||
"src": "431:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_type$_t_contract$_Migrations_$56_$",
|
||||
"typeString": "type(contract Migrations)"
|
||||
|
|
@ -1208,14 +1208,14 @@
|
|||
"lValueRequested": false,
|
||||
"names": [],
|
||||
"nodeType": "FunctionCall",
|
||||
"src": "423:23:0",
|
||||
"src": "431:23:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_contract$_Migrations_$56",
|
||||
"typeString": "contract Migrations"
|
||||
}
|
||||
},
|
||||
"nodeType": "VariableDeclarationStatement",
|
||||
"src": "401:45:0"
|
||||
"src": "409:45:0"
|
||||
},
|
||||
{
|
||||
"expression": {
|
||||
|
|
@ -1228,7 +1228,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 5,
|
||||
"src": "474:24:0",
|
||||
"src": "482:24:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
|
|
@ -1249,7 +1249,7 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 43,
|
||||
"src": "452:8:0",
|
||||
"src": "460:8:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_contract$_Migrations_$56",
|
||||
"typeString": "contract Migrations"
|
||||
|
|
@ -1263,7 +1263,7 @@
|
|||
"memberName": "setCompleted",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 35,
|
||||
"src": "452:21:0",
|
||||
"src": "460:21:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
|
||||
"typeString": "function (uint256) external"
|
||||
|
|
@ -1277,7 +1277,7 @@
|
|||
"lValueRequested": false,
|
||||
"names": [],
|
||||
"nodeType": "FunctionCall",
|
||||
"src": "452:47:0",
|
||||
"src": "460:47:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_tuple$__$",
|
||||
"typeString": "tuple()"
|
||||
|
|
@ -1285,7 +1285,7 @@
|
|||
},
|
||||
"id": 53,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "452:47:0"
|
||||
"src": "460:47:0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -1305,14 +1305,14 @@
|
|||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 23,
|
||||
"src": "384:10:0",
|
||||
"src": "392:10:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_modifier$__$",
|
||||
"typeString": "modifier ()"
|
||||
}
|
||||
},
|
||||
"nodeType": "ModifierInvocation",
|
||||
"src": "384:10:0"
|
||||
"src": "392:10:0"
|
||||
}
|
||||
],
|
||||
"name": "upgrade",
|
||||
|
|
@ -1327,7 +1327,7 @@
|
|||
"name": "new_address",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 55,
|
||||
"src": "356:19:0",
|
||||
"src": "364:19:0",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
|
|
@ -1338,7 +1338,7 @@
|
|||
"id": 36,
|
||||
"name": "address",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "356:7:0",
|
||||
"src": "364:7:0",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
|
|
@ -1348,27 +1348,27 @@
|
|||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "355:21:0"
|
||||
"src": "363:21:0"
|
||||
},
|
||||
"payable": false,
|
||||
"returnParameters": {
|
||||
"id": 41,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "395:0:0"
|
||||
"src": "403:0:0"
|
||||
},
|
||||
"scope": 56,
|
||||
"src": "339:165:0",
|
||||
"src": "347:165:0",
|
||||
"stateMutability": "nonpayable",
|
||||
"superFunction": null,
|
||||
"visibility": "public"
|
||||
}
|
||||
],
|
||||
"scope": 57,
|
||||
"src": "26:480:0"
|
||||
"src": "26:488:0"
|
||||
}
|
||||
],
|
||||
"src": "0:507:0"
|
||||
"src": "0:515:0"
|
||||
},
|
||||
"compiler": {
|
||||
"name": "solc",
|
||||
|
|
@ -1379,7 +1379,7 @@
|
|||
"events": {},
|
||||
"links": {},
|
||||
"address": "0xfaeccae8c1af6bdfd71095e1b6a2f61c61c8a7e7",
|
||||
"transactionHash": "0xeee5c7819e1a662e45a8244d02305b531d2c4e11e67383dace9b458dc76f22dc"
|
||||
"transactionHash": "0x79d68857d23437507895cbdcd033462f3a799fd1b94d51b7e624f6710cfb6c9a"
|
||||
},
|
||||
"1528420224459": {
|
||||
"events": {},
|
||||
|
|
@ -1388,6 +1388,6 @@
|
|||
"transactionHash": "0x1d1b9f147f05f37206bbfa1143bb5ec43c8a1e193d17513471b6d6f58911779c"
|
||||
}
|
||||
},
|
||||
"schemaVersion": "2.0.0",
|
||||
"updatedAt": "2018-06-08T15:58:27.900Z"
|
||||
"schemaVersion": "2.0.1",
|
||||
"updatedAt": "2018-07-06T18:05:39.259Z"
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -16,14 +16,14 @@
|
|||
"type": "function"
|
||||
}
|
||||
],
|
||||
"bytecode": "0x608060405234801561001057600080fd5b5060ed8061001f6000396000f300608060405260043610603f576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631a695230146044575b600080fd5b6076600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506078565b005b8073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801560bd573d6000803e3d6000fd5b50505600a165627a7a72305820e95f74106a3328ffadd8b0adb916d92497daab65998ee73cf40afff57dc4b29b0029",
|
||||
"deployedBytecode": "0x608060405260043610603f576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631a695230146044575b600080fd5b6076600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506078565b005b8073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801560bd573d6000803e3d6000fd5b50505600a165627a7a72305820e95f74106a3328ffadd8b0adb916d92497daab65998ee73cf40afff57dc4b29b0029",
|
||||
"bytecode": "0x608060405234801561001057600080fd5b5060ed8061001f6000396000f300608060405260043610603f576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631a695230146044575b600080fd5b6076600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506078565b005b8073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801560bd573d6000803e3d6000fd5b50505600a165627a7a723058206b9724f2a2dbdc5e27a309b647c1d11903393ac90b5e54ab4925de752e5f6e760029",
|
||||
"deployedBytecode": "0x608060405260043610603f576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631a695230146044575b600080fd5b6076600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506078565b005b8073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801560bd573d6000803e3d6000fd5b50505600a165627a7a723058206b9724f2a2dbdc5e27a309b647c1d11903393ac90b5e54ab4925de752e5f6e760029",
|
||||
"sourceMap": "26:106:2:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:106:2;;;;;;;",
|
||||
"deployedSourceMap": "26:106:2:-;;;;;;;;;;;;;;;;;;;;;;;;49:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101:5;:14;;:25;116:9;101:25;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;101:25:2;49:81;:::o",
|
||||
"source": "pragma solidity ^0.4.19;\n\ncontract Transfers2 {\n\tfunction transfer(address _addr) public payable {\n\t\t_addr.transfer(msg.value);\n\t}\n}",
|
||||
"sourcePath": "/Users/gregmarkou/Jobs/Jobs/ChainSafe/shyftNetwork/shyft_go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Transfers2.sol",
|
||||
"sourcePath": "/Users/dustinbrickwood/go/src/github.com/ethereum/go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Transfers2.sol",
|
||||
"ast": {
|
||||
"absolutePath": "/Users/gregmarkou/Jobs/Jobs/ChainSafe/shyftNetwork/shyft_go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Transfers2.sol",
|
||||
"absolutePath": "/Users/dustinbrickwood/go/src/github.com/ethereum/go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Transfers2.sol",
|
||||
"exportedSymbols": {
|
||||
"Transfers2": [
|
||||
249
|
||||
|
|
@ -212,7 +212,7 @@
|
|||
"src": "0:132:2"
|
||||
},
|
||||
"legacyAST": {
|
||||
"absolutePath": "/Users/gregmarkou/Jobs/Jobs/ChainSafe/shyftNetwork/shyft_go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Transfers2.sol",
|
||||
"absolutePath": "/Users/dustinbrickwood/go/src/github.com/ethereum/go-ethereum/shyft-cli/web3/transfer-through-master/contracts/Transfers2.sol",
|
||||
"exportedSymbols": {
|
||||
"Transfers2": [
|
||||
249
|
||||
|
|
@ -409,7 +409,7 @@
|
|||
"events": {},
|
||||
"links": {},
|
||||
"address": "0xa863f8203ad95e9078f6300e7857a4cca4fb4c60",
|
||||
"transactionHash": "0xb836110657221cb8ac728c0345ae03da1cb4313cfa0bb61285f31b780907af50"
|
||||
"transactionHash": "0x7d4888a4f369e8b635a8418deb115db390b4ef963da86ade26feff951cf25d7c"
|
||||
},
|
||||
"1528420224459": {
|
||||
"events": {},
|
||||
|
|
@ -418,6 +418,6 @@
|
|||
"transactionHash": "0x43f3fed1df72adfe12dd0c2432f0625b4b50b0c151f9583a166722ed74786ce3"
|
||||
}
|
||||
},
|
||||
"schemaVersion": "2.0.0",
|
||||
"updatedAt": "2018-06-08T15:58:27.899Z"
|
||||
"schemaVersion": "2.0.1",
|
||||
"updatedAt": "2018-07-06T18:05:39.254Z"
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ contract Migrations {
|
|||
address public owner;
|
||||
uint public last_completed_migration;
|
||||
|
||||
constructor() public {
|
||||
function Migrations() public {
|
||||
owner = msg.sender;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ contract Transfers {
|
|||
Transfers2 t;
|
||||
address t_addr;
|
||||
|
||||
constructor() public {
|
||||
function Transfers() public {
|
||||
t = new Transfers2();
|
||||
t_addr = address(t);
|
||||
}
|
||||
|
|
|
|||
487
shyft-cli/web3/transfer-through-master/package-lock.json
generated
487
shyft-cli/web3/transfer-through-master/package-lock.json
generated
|
|
@ -1,5 +1,490 @@
|
|||
{
|
||||
"name": "transfers",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"ansi-regex": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
|
||||
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
|
||||
},
|
||||
"balanced-match": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
||||
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.11",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||
"requires": {
|
||||
"balanced-match": "1.0.0",
|
||||
"concat-map": "0.0.1"
|
||||
}
|
||||
},
|
||||
"builtin-modules": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
|
||||
"integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8="
|
||||
},
|
||||
"camelcase": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
|
||||
"integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo="
|
||||
},
|
||||
"cliui": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz",
|
||||
"integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=",
|
||||
"requires": {
|
||||
"string-width": "1.0.2",
|
||||
"strip-ansi": "3.0.1",
|
||||
"wrap-ansi": "2.1.0"
|
||||
}
|
||||
},
|
||||
"code-point-at": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
|
||||
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
|
||||
},
|
||||
"concat-map": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
|
||||
},
|
||||
"decamelize": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
||||
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
|
||||
},
|
||||
"error-ex": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
|
||||
"integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
|
||||
"requires": {
|
||||
"is-arrayish": "0.2.1"
|
||||
}
|
||||
},
|
||||
"find-up": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
|
||||
"integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
|
||||
"requires": {
|
||||
"path-exists": "2.1.0",
|
||||
"pinkie-promise": "2.0.1"
|
||||
}
|
||||
},
|
||||
"fs-extra": {
|
||||
"version": "0.30.0",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz",
|
||||
"integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=",
|
||||
"requires": {
|
||||
"graceful-fs": "4.1.11",
|
||||
"jsonfile": "2.4.0",
|
||||
"klaw": "1.3.1",
|
||||
"path-is-absolute": "1.0.1",
|
||||
"rimraf": "2.6.2"
|
||||
}
|
||||
},
|
||||
"fs.realpath": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||
},
|
||||
"get-caller-file": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz",
|
||||
"integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U="
|
||||
},
|
||||
"glob": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
|
||||
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
|
||||
"requires": {
|
||||
"fs.realpath": "1.0.0",
|
||||
"inflight": "1.0.6",
|
||||
"inherits": "2.0.3",
|
||||
"minimatch": "3.0.4",
|
||||
"once": "1.4.0",
|
||||
"path-is-absolute": "1.0.1"
|
||||
}
|
||||
},
|
||||
"graceful-fs": {
|
||||
"version": "4.1.11",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
|
||||
"integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg="
|
||||
},
|
||||
"hosted-git-info": {
|
||||
"version": "2.6.1",
|
||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.1.tgz",
|
||||
"integrity": "sha512-Ba4+0M4YvIDUUsprMjhVTU1yN9F2/LJSAl69ZpzaLT4l4j5mwTS6jqqW9Ojvj6lKz/veqPzpJBqGbXspOb533A=="
|
||||
},
|
||||
"inflight": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||
"requires": {
|
||||
"once": "1.4.0",
|
||||
"wrappy": "1.0.2"
|
||||
}
|
||||
},
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
||||
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
|
||||
},
|
||||
"invert-kv": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz",
|
||||
"integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY="
|
||||
},
|
||||
"is-arrayish": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
|
||||
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="
|
||||
},
|
||||
"is-builtin-module": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz",
|
||||
"integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=",
|
||||
"requires": {
|
||||
"builtin-modules": "1.1.1"
|
||||
}
|
||||
},
|
||||
"is-fullwidth-code-point": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
|
||||
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
|
||||
"requires": {
|
||||
"number-is-nan": "1.0.1"
|
||||
}
|
||||
},
|
||||
"is-utf8": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
|
||||
"integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI="
|
||||
},
|
||||
"jsonfile": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz",
|
||||
"integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=",
|
||||
"requires": {
|
||||
"graceful-fs": "4.1.11"
|
||||
}
|
||||
},
|
||||
"klaw": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz",
|
||||
"integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=",
|
||||
"requires": {
|
||||
"graceful-fs": "4.1.11"
|
||||
}
|
||||
},
|
||||
"lcid": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz",
|
||||
"integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=",
|
||||
"requires": {
|
||||
"invert-kv": "1.0.0"
|
||||
}
|
||||
},
|
||||
"load-json-file": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
|
||||
"integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
|
||||
"requires": {
|
||||
"graceful-fs": "4.1.11",
|
||||
"parse-json": "2.2.0",
|
||||
"pify": "2.3.0",
|
||||
"pinkie-promise": "2.0.1",
|
||||
"strip-bom": "2.0.0"
|
||||
}
|
||||
},
|
||||
"lodash.assign": {
|
||||
"version": "4.2.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz",
|
||||
"integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc="
|
||||
},
|
||||
"memorystream": {
|
||||
"version": "0.3.1",
|
||||
"resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz",
|
||||
"integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI="
|
||||
},
|
||||
"minimatch": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
||||
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
|
||||
"requires": {
|
||||
"brace-expansion": "1.1.11"
|
||||
}
|
||||
},
|
||||
"normalize-package-data": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
|
||||
"integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
|
||||
"requires": {
|
||||
"hosted-git-info": "2.6.1",
|
||||
"is-builtin-module": "1.0.0",
|
||||
"semver": "5.5.0",
|
||||
"validate-npm-package-license": "3.0.3"
|
||||
}
|
||||
},
|
||||
"number-is-nan": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
|
||||
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
|
||||
},
|
||||
"once": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||
"requires": {
|
||||
"wrappy": "1.0.2"
|
||||
}
|
||||
},
|
||||
"os-locale": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
|
||||
"integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=",
|
||||
"requires": {
|
||||
"lcid": "1.0.0"
|
||||
}
|
||||
},
|
||||
"parse-json": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
|
||||
"integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
|
||||
"requires": {
|
||||
"error-ex": "1.3.2"
|
||||
}
|
||||
},
|
||||
"path-exists": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
|
||||
"integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
|
||||
"requires": {
|
||||
"pinkie-promise": "2.0.1"
|
||||
}
|
||||
},
|
||||
"path-is-absolute": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
|
||||
},
|
||||
"path-type": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
|
||||
"integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
|
||||
"requires": {
|
||||
"graceful-fs": "4.1.11",
|
||||
"pify": "2.3.0",
|
||||
"pinkie-promise": "2.0.1"
|
||||
}
|
||||
},
|
||||
"pify": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
|
||||
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="
|
||||
},
|
||||
"pinkie": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
|
||||
"integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA="
|
||||
},
|
||||
"pinkie-promise": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
|
||||
"integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
|
||||
"requires": {
|
||||
"pinkie": "2.0.4"
|
||||
}
|
||||
},
|
||||
"read-pkg": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
|
||||
"integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
|
||||
"requires": {
|
||||
"load-json-file": "1.1.0",
|
||||
"normalize-package-data": "2.4.0",
|
||||
"path-type": "1.1.0"
|
||||
}
|
||||
},
|
||||
"read-pkg-up": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
|
||||
"integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
|
||||
"requires": {
|
||||
"find-up": "1.1.2",
|
||||
"read-pkg": "1.1.0"
|
||||
}
|
||||
},
|
||||
"require-directory": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||
"integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
|
||||
},
|
||||
"require-from-string": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-1.2.1.tgz",
|
||||
"integrity": "sha1-UpyczvJzgK3+yaL5ZbZJu+5jZBg="
|
||||
},
|
||||
"require-main-filename": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
|
||||
"integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE="
|
||||
},
|
||||
"rimraf": {
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz",
|
||||
"integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==",
|
||||
"requires": {
|
||||
"glob": "7.1.2"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
|
||||
"integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA=="
|
||||
},
|
||||
"set-blocking": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
|
||||
"integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
|
||||
},
|
||||
"solc": {
|
||||
"version": "0.4.24",
|
||||
"resolved": "https://registry.npmjs.org/solc/-/solc-0.4.24.tgz",
|
||||
"integrity": "sha512-2xd7Cf1HeVwrIb6Bu1cwY2/TaLRodrppCq3l7rhLimFQgmxptXhTC3+/wesVLpB09F1A2kZgvbMOgH7wvhFnBQ==",
|
||||
"requires": {
|
||||
"fs-extra": "0.30.0",
|
||||
"memorystream": "0.3.1",
|
||||
"require-from-string": "1.2.1",
|
||||
"semver": "5.5.0",
|
||||
"yargs": "4.8.1"
|
||||
}
|
||||
},
|
||||
"spdx-correct": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz",
|
||||
"integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==",
|
||||
"requires": {
|
||||
"spdx-expression-parse": "3.0.0",
|
||||
"spdx-license-ids": "3.0.0"
|
||||
}
|
||||
},
|
||||
"spdx-exceptions": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz",
|
||||
"integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg=="
|
||||
},
|
||||
"spdx-expression-parse": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
|
||||
"integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
|
||||
"requires": {
|
||||
"spdx-exceptions": "2.1.0",
|
||||
"spdx-license-ids": "3.0.0"
|
||||
}
|
||||
},
|
||||
"spdx-license-ids": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz",
|
||||
"integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA=="
|
||||
},
|
||||
"string-width": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
|
||||
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
|
||||
"requires": {
|
||||
"code-point-at": "1.1.0",
|
||||
"is-fullwidth-code-point": "1.0.0",
|
||||
"strip-ansi": "3.0.1"
|
||||
}
|
||||
},
|
||||
"strip-ansi": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
|
||||
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
|
||||
"requires": {
|
||||
"ansi-regex": "2.1.1"
|
||||
}
|
||||
},
|
||||
"strip-bom": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
|
||||
"integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
|
||||
"requires": {
|
||||
"is-utf8": "0.2.1"
|
||||
}
|
||||
},
|
||||
"validate-npm-package-license": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz",
|
||||
"integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==",
|
||||
"requires": {
|
||||
"spdx-correct": "3.0.0",
|
||||
"spdx-expression-parse": "3.0.0"
|
||||
}
|
||||
},
|
||||
"which-module": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz",
|
||||
"integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8="
|
||||
},
|
||||
"window-size": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz",
|
||||
"integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU="
|
||||
},
|
||||
"wrap-ansi": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
|
||||
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
|
||||
"requires": {
|
||||
"string-width": "1.0.2",
|
||||
"strip-ansi": "3.0.1"
|
||||
}
|
||||
},
|
||||
"wrappy": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
|
||||
},
|
||||
"y18n": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
|
||||
"integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE="
|
||||
},
|
||||
"yargs": {
|
||||
"version": "4.8.1",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz",
|
||||
"integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=",
|
||||
"requires": {
|
||||
"cliui": "3.2.0",
|
||||
"decamelize": "1.2.0",
|
||||
"get-caller-file": "1.0.2",
|
||||
"lodash.assign": "4.2.0",
|
||||
"os-locale": "1.4.0",
|
||||
"read-pkg-up": "1.0.1",
|
||||
"require-directory": "2.1.1",
|
||||
"require-main-filename": "1.0.1",
|
||||
"set-blocking": "2.0.0",
|
||||
"string-width": "1.0.2",
|
||||
"which-module": "1.0.0",
|
||||
"window-size": "0.2.0",
|
||||
"y18n": "3.2.1",
|
||||
"yargs-parser": "2.4.1"
|
||||
}
|
||||
},
|
||||
"yargs-parser": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz",
|
||||
"integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=",
|
||||
"requires": {
|
||||
"camelcase": "3.0.0",
|
||||
"lodash.assign": "4.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,5 +11,8 @@
|
|||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"solc": "^0.4.24"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@ package shyfttracerinterface
|
|||
|
||||
import (
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
)
|
||||
|
||||
type IShyftTracer interface {
|
||||
GetTracerToRun(hash common.Hash, stack *node.Node) (interface{}, error)
|
||||
GetTracerToRun(hash common.Hash) (interface{}, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue