-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2678 from princesinha19/debug-methods
Implementation of Geth node debugging API's (web3-eth-debug).
- Loading branch information
Showing
66 changed files
with
3,118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/BackTraceAtMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file BackTraceAtMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class BackTraceAtMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_backtraceAt', 1, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/BlockProfileMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file BlockProfileMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class BlockProfileMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_blockProfile', 2, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/CpuProfileMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file CpuProfileMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class CpuProfileMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_cpuProfile', 2, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/DumpBlockMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file DumpBlockMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class DumpBlockMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_dumpBlock', 1, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/GcStatsMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file GcStatsMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class GcStatsMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_gcStats', 0, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/GetBlockRlpMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file GetBlockRlpMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class GetBlockRlpMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_getBlockRlp', 1, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/GoTraceMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file GoTraceMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class GoTraceMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_goTrace', 2, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/MemStatsMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file MemStatsMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class MemStatsMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_memStats', 0, utils, formatters, moduleInstance); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/web3-core-method/src/methods/debug/SeedHashMethod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
This file is part of web3.js. | ||
web3.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
web3.js is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with web3.js. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @file SeedHashMethod.js | ||
* @author Prince Sinha <sinhaprince013@gmail.com> | ||
* @date 2019 | ||
*/ | ||
|
||
import AbstractMethod from '../../../lib/methods/AbstractMethod'; | ||
|
||
export default class SeedHashMethod extends AbstractMethod { | ||
/** | ||
* @param {Utils} utils | ||
* @param {Object} formatters | ||
* @param {AbstractWeb3Module} moduleInstance | ||
* | ||
* @constructor | ||
*/ | ||
constructor(utils, formatters, moduleInstance) { | ||
super('debug_seedHash', 0, utils, formatters, moduleInstance); | ||
} | ||
} |
Oops, something went wrong.