Skip to content

Commit

Permalink
provider-telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
GIvanovWaves committed Dec 5, 2024
1 parent fa2494d commit c26223a
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions docs/main.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ object-assign
* @license MIT
*/

/*! #__NO_SIDE_EFFECTS__ */

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Expand All @@ -34,6 +36,8 @@ PERFORMANCE OF THIS SOFTWARE.

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! js-cookie v3.0.5 | MIT */

/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
Expand All @@ -52,6 +56,36 @@ PERFORMANCE OF THIS SOFTWARE.
* @license MIT
*/

/**
* @vue/compiler-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

/**
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

/**
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

/**
* vue v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

/** @license React v0.19.1
* scheduler.production.min.js
*
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"@waves/provider-keeper": "1.1.1",
"@waves/provider-ledger": "0.2.1",
"@waves/provider-metamask": "1.1.6",
"@waves/signer": "1.1.0"
"@waves/signer": "1.1.0",
"waves-provider-telegram": "1.0.11"
},
"scripts": {
"build": "tsc & webpack"
Expand Down
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const provider_keeper_1 = require("@waves/provider-keeper");
const provider_ledger_1 = require("@waves/provider-ledger");
const provider_metamask_1 = require("@waves/provider-metamask");
const provider_mailbox_1 = require("@waves.exchange/provider-mailbox");
const waves_provider_telegram_1 = require("waves-provider-telegram");
const package_json_1 = __importDefault(require("./../package.json"));
const CONFIG = {
wxUrl: "https://testnet.wx.network",
Expand Down Expand Up @@ -87,6 +88,11 @@ function initSigners() {
});
signerMailbox.setProvider(new provider_mailbox_1.ProviderMailbox(wxUrlObj.origin + "/signer-mailbox"));
allSigners.push({ signer: signerMailbox, name: "MAILBOX" });
const signerTelegram = new signer_1.Signer({
NODE_URL: CONFIG.nodeUrl,
});
signerTelegram.setProvider(new waves_provider_telegram_1.ProviderTelegram());
allSigners.push({ signer: signerTelegram, name: "TELEGRAM" });
//Draw provider blocks
clearAllSignerBlock();
for (const signer of allSigners) {
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ProviderKeeper } from "@waves/provider-keeper";
import { ProviderLedger } from "@waves/provider-ledger";
import { ProviderMetamask } from "@waves/provider-metamask";
import { ProviderMailbox } from "@waves.exchange/provider-mailbox";
import { ProviderTelegram } from "waves-provider-telegram";
import PackagesFile from './../package.json';

interface SignerWithName {
Expand Down Expand Up @@ -102,6 +103,12 @@ function initSigners() {
signerMailbox.setProvider(new ProviderMailbox(wxUrlObj.origin + "/signer-mailbox"));
allSigners.push({ signer: signerMailbox, name: "MAILBOX" });

const signerTelegram = new Signer({
NODE_URL: CONFIG.nodeUrl,
});
signerTelegram.setProvider(new ProviderTelegram());
allSigners.push({ signer: signerTelegram, name: "TELEGRAM" });

//Draw provider blocks
clearAllSignerBlock();
for (const signer of allSigners) {
Expand Down

0 comments on commit c26223a

Please sign in to comment.