internal/web3ext: enforce mixed caps variable names #19059 (#1519)

This commit is contained in:
Daniel Liu 2025-09-21 18:56:21 +08:00 committed by GitHub
parent 7c69d03a88
commit 2e545959dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,23 +18,23 @@
package web3ext package web3ext
var Modules = map[string]string{ var Modules = map[string]string{
"admin": Admin_JS, "admin": AdminJs,
"chequebook": Chequebook_JS, "chequebook": ChequebookJs,
"clique": Clique_JS, "clique": CliqueJs,
"XDPoS": XDPoS_JS, "XDPoS": XdposJs,
"debug": Debug_JS, "debug": DebugJs,
"eth": Eth_JS, "eth": EthJs,
"miner": Miner_JS, "miner": MinerJs,
"net": Net_JS, "net": NetJs,
"rpc": RPC_JS, "rpc": RpcJs,
"shh": Shh_JS, "shh": ShhJs,
"XDCx": XDCX_JS, "XDCx": XdcxJs,
"XDCxlending": XDCXLending_JS, "XDCxlending": XdcxLendingJs,
"swarmfs": SWARMFS_JS, "swarmfs": SwarmfsJs,
"txpool": TxPool_JS, "txpool": TxpoolJs,
} }
const Chequebook_JS = ` const ChequebookJs = `
web3._extend({ web3._extend({
property: 'chequebook', property: 'chequebook',
methods: [ methods: [
@ -65,7 +65,7 @@ web3._extend({
}); });
` `
const Clique_JS = ` const CliqueJs = `
web3._extend({ web3._extend({
property: 'clique', property: 'clique',
methods: [ methods: [
@ -111,7 +111,7 @@ web3._extend({
}); });
` `
const XDPoS_JS = ` const XdposJs = `
web3._extend({ web3._extend({
property: 'XDPoS', property: 'XDPoS',
methods: [ methods: [
@ -188,7 +188,7 @@ web3._extend({
}); });
` `
const Admin_JS = ` const AdminJs = `
web3._extend({ web3._extend({
property: 'admin', property: 'admin',
methods: [ methods: [
@ -278,7 +278,7 @@ web3._extend({
}); });
` `
const Debug_JS = ` const DebugJs = `
web3._extend({ web3._extend({
property: 'debug', property: 'debug',
methods: [ methods: [
@ -488,7 +488,7 @@ web3._extend({
}); });
` `
const Eth_JS = ` const EthJs = `
web3._extend({ web3._extend({
property: 'eth', property: 'eth',
methods: [ methods: [
@ -606,7 +606,7 @@ web3._extend({
}); });
` `
const Miner_JS = ` const MinerJs = `
web3._extend({ web3._extend({
property: 'miner', property: 'miner',
methods: [ methods: [
@ -646,7 +646,7 @@ web3._extend({
}); });
` `
const Net_JS = ` const NetJs = `
web3._extend({ web3._extend({
property: 'net', property: 'net',
methods: [], methods: [],
@ -659,7 +659,7 @@ web3._extend({
}); });
` `
const RPC_JS = ` const RpcJs = `
web3._extend({ web3._extend({
property: 'rpc', property: 'rpc',
methods: [], methods: [],
@ -672,7 +672,7 @@ web3._extend({
}); });
` `
const Shh_JS = ` const ShhJs = `
web3._extend({ web3._extend({
property: 'shh', property: 'shh',
methods: [ methods: [
@ -692,7 +692,7 @@ web3._extend({
}); });
` `
const XDCX_JS = ` const XdcxJs = `
web3._extend({ web3._extend({
property: 'XDCx', property: 'XDCx',
methods: [ methods: [
@ -893,7 +893,7 @@ web3._extend({
}); });
` `
const XDCXLending_JS = ` const XdcxLendingJs = `
web3._extend({ web3._extend({
property: 'XDCxlending', property: 'XDCxlending',
methods: [ methods: [
@ -1012,7 +1012,7 @@ web3._extend({
}); });
*/ */
const SWARMFS_JS = ` const SwarmfsJs = `
web3._extend({ web3._extend({
property: 'swarmfs', property: 'swarmfs',
methods: methods:
@ -1036,7 +1036,7 @@ web3._extend({
}); });
` `
const TxPool_JS = ` const TxpoolJs = `
web3._extend({ web3._extend({
property: 'txpool', property: 'txpool',
methods: [], methods: [],