github.com/jeffallen/go-ethereum@v1.1.4-0.20150910155051-571d3236c49c/rpc/api/debug_js.go (about)

     1  // Copyright 2015 The go-ethereum Authors
     2  // This file is part of the go-ethereum library.
     3  //
     4  // The go-ethereum library is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU Lesser General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // The go-ethereum library is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    12  // GNU Lesser General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU Lesser General Public License
    15  // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
    16  
    17  package api
    18  
    19  const Debug_JS = `
    20  web3._extend({
    21  	property: 'debug',
    22  	methods:
    23  	[
    24  		new web3._extend.Method({
    25  			name: 'printBlock',
    26  			call: 'debug_printBlock',
    27  			params: 1,
    28  			inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
    29  		}),
    30  		new web3._extend.Method({
    31  			name: 'getBlockRlp',
    32  			call: 'debug_getBlockRlp',
    33  			params: 1,
    34  			inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
    35  		}),
    36  		new web3._extend.Method({
    37  			name: 'setHead',
    38  			call: 'debug_setHead',
    39  			params: 1,
    40  			inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
    41  		}),
    42  		new web3._extend.Method({
    43  			name: 'processBlock',
    44  			call: 'debug_processBlock',
    45  			params: 1,
    46  			inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
    47  		}),
    48  		new web3._extend.Method({
    49  			name: 'seedHash',
    50  			call: 'debug_seedHash',
    51  			params: 1,
    52  			inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
    53  		}),
    54  		new web3._extend.Method({
    55  			name: 'dumpBlock',
    56  			call: 'debug_dumpBlock',
    57  			params: 1,
    58  			inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
    59  		}),
    60  		new web3._extend.Method({
    61  			name: 'metrics',
    62  			call: 'debug_metrics',
    63  			params: 1,
    64  			inputFormatter: [null]
    65  		})
    66  	],
    67  	properties:
    68  	[
    69  	]
    70  });
    71  `