Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocknative Integration #48

Open
bonedaddy opened this issue Jan 29, 2021 · 2 comments
Open

Blocknative Integration #48

bonedaddy opened this issue Jan 29, 2021 · 2 comments

Comments

@bonedaddy
Copy link
Owner

types:

type AutoGenerated struct {
	ConnectionID string `json:"connectionId"`
	Event        struct {
		Blockchain struct {
			Network string `json:"network"`
			System  string `json:"system"`
		} `json:"blockchain"`
		CategoryCode string `json:"categoryCode"`
		ContractCall struct {
			ContractAddress string `json:"contractAddress"`
			ContractType    string `json:"contractType"`
			MethodName      string `json:"methodName"`
			Params          struct {
				AmountIn     string   `json:"amountIn"`
				AmountOutMin string   `json:"amountOutMin"`
				Deadline     string   `json:"deadline"`
				Path         []string `json:"path"`
				To           string   `json:"to"`
			} `json:"params"`
		} `json:"contractCall"`
		DappID      string    `json:"dappId"`
		EventCode   string    `json:"eventCode"`
		TimeStamp   time.Time `json:"timeStamp"`
		Transaction struct {
			Asset                string    `json:"asset"`
			BlockHash            string    `json:"blockHash"`
			BlockNumber          int       `json:"blockNumber"`
			BlockTimeStamp       time.Time `json:"blockTimeStamp"`
			BlocksPending        int       `json:"blocksPending"`
			Counterparty         string    `json:"counterparty"`
			Direction            string    `json:"direction"`
			From                 string    `json:"from"`
			Gas                  int       `json:"gas"`
			GasPrice             string    `json:"gasPrice"`
			GasUsed              string    `json:"gasUsed"`
			Hash                 string    `json:"hash"`
			Input                string    `json:"input"`
			InternalTransactions []struct {
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractName     string `json:"contractName"`
					ContractType     string `json:"contractType"`
					DecimalValue     string `json:"decimalValue"`
					MethodName       string `json:"methodName"`
					Params           struct {
						From  string `json:"_from"`
						To    string `json:"_to"`
						Value string `json:"_value"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				From         string `json:"from"`
				Gas          int    `json:"gas"`
				GasUsed      int    `json:"gasUsed"`
				Input        string `json:"input"`
				To           string `json:"to"`
				Type         string `json:"type"`
				Value        string `json:"value"`
				ContractCall struct {
					ContractAddress string `json:"contractAddress"`
					ContractAlias   string `json:"contractAlias"`
					ContractType    string `json:"contractType"`
					MethodName      string `json:"methodName"`
					Params          struct {
						To    string `json:"_to"`
						Value string `json:"_value"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress string `json:"contractAddress"`
					ContractAlias   string `json:"contractAlias"`
					ContractType    string `json:"contractType"`
					MethodName      string `json:"methodName"`
					Params          struct {
						Owner string `json:"_owner"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress string `json:"contractAddress"`
					ContractAlias   string `json:"contractAlias"`
					ContractType    string `json:"contractType"`
					MethodName      string `json:"methodName"`
					Params          struct {
						Owner string `json:"_owner"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractType     string `json:"contractType"`
					DecimalValue     string `json:"decimalValue"`
					MethodName       string `json:"methodName"`
					Params           struct {
						To    string `json:"_to"`
						Value string `json:"_value"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractType     string `json:"contractType"`
					MethodName       string `json:"methodName"`
					Params           struct {
						Owner string `json:"_owner"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
			} `json:"internalTransactions"`
			MonitorID         string `json:"monitorId"`
			MonitorVersion    string `json:"monitorVersion"`
			NetBalanceChanges []struct {
				Address        string `json:"address"`
				BalanceChanges []struct {
					Asset struct {
						ContractAddress string `json:"contractAddress"`
						Symbol          string `json:"symbol"`
						Type            string `json:"type"`
					} `json:"asset"`
					Breakdown []struct {
						Amount       string `json:"amount"`
						Counterparty string `json:"counterparty"`
					} `json:"breakdown"`
					Delta string `json:"delta"`
				} `json:"balanceChanges"`
			} `json:"netBalanceChanges"`
			Nonce              int       `json:"nonce"`
			PendingBlockNumber int       `json:"pendingBlockNumber"`
			PendingTimeStamp   time.Time `json:"pendingTimeStamp"`
			Status             string    `json:"status"`
			TimePending        string    `json:"timePending"`
			To                 string    `json:"to"`
			TransactionIndex   int       `json:"transactionIndex"`
			Value              string    `json:"value"`
			WatchedAddress     string    `json:"watchedAddress"`
		} `json:"transaction"`
	} `json:"event"`
	ServerVersion string    `json:"serverVersion"`
	Status        string    `json:"status"`
	TimeStamp     time.Time `json:"timeStamp"`
	UserAgent     string    `json:"userAgent"`
	Version       int       `json:"version"`
}
@bonedaddy
Copy link
Owner Author

type AutoGenerated struct {
	ConnectionID string `json:"connectionId"`
	Event        struct {
		Blockchain struct {
			Network string `json:"network"`
			System  string `json:"system"`
		} `json:"blockchain"`
		CategoryCode string `json:"categoryCode"`
		ContractCall struct {
			ContractAddress  string `json:"contractAddress"`
			ContractDecimals int    `json:"contractDecimals"`
			ContractName     string `json:"contractName"`
			ContractType     string `json:"contractType"`
			DecimalValue     string `json:"decimalValue"`
			MethodName       string `json:"methodName"`
			Params           struct {
				Spender string `json:"_spender"`
				Value   string `json:"_value"`
			} `json:"params"`
		} `json:"contractCall"`
		DappID      string    `json:"dappId"`
		EventCode   string    `json:"eventCode"`
		TimeStamp   time.Time `json:"timeStamp"`
		Transaction struct {
			Asset              string      `json:"asset"`
			BlockHash          interface{} `json:"blockHash"`
			BlockNumber        interface{} `json:"blockNumber"`
			Counterparty       string      `json:"counterparty"`
			Direction          string      `json:"direction"`
			From               string      `json:"from"`
			Gas                int         `json:"gas"`
			GasPrice           string      `json:"gasPrice"`
			Hash               string      `json:"hash"`
			Input              string      `json:"input"`
			MonitorID          string      `json:"monitorId"`
			MonitorVersion     string      `json:"monitorVersion"`
			Nonce              int         `json:"nonce"`
			PendingBlockNumber int         `json:"pendingBlockNumber"`
			PendingTimeStamp   time.Time   `json:"pendingTimeStamp"`
			Status             string      `json:"status"`
			To                 string      `json:"to"`
			Value              string      `json:"value"`
			WatchedAddress     string      `json:"watchedAddress"`
		} `json:"transaction"`
	} `json:"event"`
	ServerVersion string    `json:"serverVersion"`
	Status        string    `json:"status"`
	TimeStamp     time.Time `json:"timeStamp"`
	UserAgent     string    `json:"userAgent"`
	Version       int       `json:"version"`
}

@bonedaddy
Copy link
Owner Author

type AutoGenerated struct {
	ConnectionID string `json:"connectionId"`
	Event        struct {
		Blockchain struct {
			Network string `json:"network"`
			System  string `json:"system"`
		} `json:"blockchain"`
		CategoryCode string    `json:"categoryCode"`
		DappID       string    `json:"dappId"`
		EventCode    string    `json:"eventCode"`
		TimeStamp    time.Time `json:"timeStamp"`
		Transaction  struct {
			Asset                string    `json:"asset"`
			BlockHash            string    `json:"blockHash"`
			BlockNumber          int       `json:"blockNumber"`
			BlockTimeStamp       time.Time `json:"blockTimeStamp"`
			BlocksPending        int       `json:"blocksPending"`
			Counterparty         string    `json:"counterparty"`
			Direction            string    `json:"direction"`
			From                 string    `json:"from"`
			Gas                  int       `json:"gas"`
			GasPrice             string    `json:"gasPrice"`
			GasUsed              string    `json:"gasUsed"`
			Hash                 string    `json:"hash"`
			Input                string    `json:"input"`
			InternalTransactions []struct {
				From         string `json:"from"`
				Gas          int    `json:"gas"`
				GasUsed      int    `json:"gasUsed"`
				Input        string `json:"input"`
				To           string `json:"to"`
				Type         string `json:"type"`
				Value        string `json:"value"`
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractName     string `json:"contractName"`
					ContractType     string `json:"contractType"`
					DecimalValue     string `json:"decimalValue"`
					MethodName       string `json:"methodName"`
					Params           struct {
						To    string `json:"_to"`
						Value string `json:"_value"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractName     string `json:"contractName"`
					ContractType     string `json:"contractType"`
					MethodName       string `json:"methodName"`
					Params           struct {
						Owner string `json:"_owner"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractName     string `json:"contractName"`
					ContractType     string `json:"contractType"`
					MethodName       string `json:"methodName"`
					Params           struct {
						Owner string `json:"_owner"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
				ContractCall struct {
					ContractAddress  string `json:"contractAddress"`
					ContractAlias    string `json:"contractAlias"`
					ContractDecimals int    `json:"contractDecimals"`
					ContractName     string `json:"contractName"`
					ContractType     string `json:"contractType"`
					MethodName       string `json:"methodName"`
					Params           struct {
						Owner string `json:"_owner"`
					} `json:"params"`
				} `json:"contractCall,omitempty"`
			} `json:"internalTransactions"`
			MonitorID         string `json:"monitorId"`
			MonitorVersion    string `json:"monitorVersion"`
			NetBalanceChanges []struct {
				Address        string `json:"address"`
				BalanceChanges []struct {
					Asset struct {
						Symbol string `json:"symbol"`
						Type   string `json:"type"`
					} `json:"asset,omitempty"`
					Breakdown []struct {
						Amount       string `json:"amount"`
						Counterparty string `json:"counterparty"`
					} `json:"breakdown"`
					Delta string `json:"delta"`
					Asset struct {
						ContractAddress string `json:"contractAddress"`
						Symbol          string `json:"symbol"`
						Type            string `json:"type"`
					} `json:"asset,omitempty"`
					Asset struct {
						ContractAddress string `json:"contractAddress"`
						Symbol          string `json:"symbol"`
						Type            string `json:"type"`
					} `json:"asset,omitempty"`
					Asset struct {
						ContractAddress string `json:"contractAddress"`
						Symbol          string `json:"symbol"`
						Type            string `json:"type"`
					} `json:"asset,omitempty"`
				} `json:"balanceChanges"`
			} `json:"netBalanceChanges"`
			Nonce              int       `json:"nonce"`
			PendingBlockNumber int       `json:"pendingBlockNumber"`
			PendingTimeStamp   time.Time `json:"pendingTimeStamp"`
			Status             string    `json:"status"`
			TimePending        string    `json:"timePending"`
			To                 string    `json:"to"`
			TransactionIndex   int       `json:"transactionIndex"`
			Value              string    `json:"value"`
			WatchedAddress     string    `json:"watchedAddress"`
		} `json:"transaction"`
	} `json:"event"`
	ServerVersion string    `json:"serverVersion"`
	Status        string    `json:"status"`
	TimeStamp     time.Time `json:"timeStamp"`
	UserAgent     string    `json:"userAgent"`
	Version       int       `json:"version"`
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant