@dioxide-js/silas
Version:
RPC utility for Silas
32 lines (30 loc) • 617 B
JavaScript
class SingleProvider {
constructor() {
this.token = '';
this.dioxide = '';
this.rpc = '';
}
get apiKey() {
return this.token;
}
get() {
return {
dioxide: this.dioxide,
rpc: this.rpc,
};
}
set(endpoint, rpc) {
if (endpoint) {
this.dioxide = endpoint;
}
if (rpc) {
this.rpc = endpoint;
}
}
setApiKey(apiKey) {
this.token = apiKey;
}
}
var provider = new SingleProvider();
export { provider as default };
//# sourceMappingURL=provider.mjs.map