parent
febab2efc2
commit
0c4348a6ee
@ -1,24 +1,20 @@ |
|||||||
|
export function methods (): Record<string, unknown> { |
||||||
export class Net { |
|
||||||
|
|
||||||
methods () { |
|
||||||
return { |
return { |
||||||
net_version: this.net_version, |
net_version: this.net_version, |
||||||
net_listening: this.net_listening, |
net_listening: this.net_listening, |
||||||
net_peerCount: this.net_peerCount |
net_peerCount: this.net_peerCount |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
net_version (payload, cb) { |
export function net_version (payload, cb): void { |
||||||
// should be configured networkId
|
// should be configured networkId
|
||||||
cb(null, 1337) |
cb(null, 1337) |
||||||
} |
} |
||||||
|
|
||||||
net_listening (payload, cb) { |
export function net_listening (payload, cb): void { |
||||||
cb(null, true) |
cb(null, true) |
||||||
} |
} |
||||||
|
|
||||||
net_peerCount (payload, cb) { |
export function net_peerCount (payload, cb): void { |
||||||
cb(null, 0) |
cb(null, 0) |
||||||
} |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue