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