aboutsummaryrefslogblamecommitdiff
path: root/plugin/evm/service.go
blob: 350992925c20a50f5fc43d7a012d712bf7a2f25d (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                     
                

                  

                  
 
                                             
                                             



                                                          

                                                        
                                             


       
                                 







                                                                                              


                                                                  

                                                       
 















                                                                                              
                          
                                                              
                                       


                                   
 


                                                                 








                                                                             

                                                   


                                                         
                                                                                                      
                                         
 
                                                     



                                                                                        



                                                                                         

                        
                            

                                       
                                                                            
         
                                                                                                  
                                                        
                  








                                                    
                                                                                                       
                                                                                   
 


                                                                                             
 





                                                                                           
                                             
                                                                      
                       
                                                                         
         
                                                   
 
                                        
                                                           










                                                                                    


                  

                                                            
                    



                                               



                                                           
                                              
                                                                                                     


                                                  
                                                                        
                                                    
                                                                                                 
                                          




                                                                                          
 
                                           



                                                                                        




                                                                                    
                        
 
                            




                                                                                      
                                                                






                                     




                                                 


                                       






                                                                                  
                                                          
                                                              
                                                                                                         














                                                              
                                                                                                 
                                      
                                      

                                                        














                                                                                         

                        







                                                                                           
                                               











                                                                            
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package evm

import (
	"context"
	"errors"
	"fmt"
	"math/big"
	"net/http"
	"strings"

	"github.com/ava-labs/avalanchego/api"
	"github.com/ava-labs/avalanchego/ids"
	"github.com/ava-labs/avalanchego/utils/constants"
	"github.com/ava-labs/avalanchego/utils/crypto"
	"github.com/ava-labs/avalanchego/utils/formatting"
	"github.com/ava-labs/avalanchego/utils/json"
	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/common/hexutil"
	"github.com/ethereum/go-ethereum/log"
)

const (
	version