Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/reafactor send #6

Merged
merged 6 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update js
  • Loading branch information
TrueCarry committed Feb 2, 2024
commit 12cdc54649b6c6d5db94f69d2bb36974e151c57b
57 changes: 28 additions & 29 deletions send_multigpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,36 +329,35 @@ function sendMinedBoc(wallet, seqno, keyPair, giverAddress, boc) {
}
}
}
return;
}
else {
const wallets = [];
const ton4Client = yield (0, client_1.getTon4Client)();
const tonOrbsClient = yield (0, client_1.getTon4ClientOrbs)();
const w2 = ton4Client.open(wallet);
const w3 = tonOrbsClient.open(wallet);
wallets.push(w2);
wallets.push(w3);
if (args['--api'] === 'lite') {
const liteServerClient = yield (0, client_1.getLiteClient)((_a = args['-c']) !== null && _a !== void 0 ? _a : 'https://ton-blockchain.github.io/global.config.json');
const w1 = liteServerClient.open(wallet);
wallets.push(w1);
}
for (let i = 0; i < 3; i++) {
for (const w of wallets) {
w.sendTransfer({
seqno,
secretKey: keyPair.secretKey,
messages: [(0, core_1.internal)({
to: giverAddress,
value: (0, core_1.toNano)('0.05'),
bounce: true,
body: boc,
})],
sendMode: 3,
}).catch(e => {
//
});
}
const wallets = [];
const ton4Client = yield (0, client_1.getTon4Client)();
const tonOrbsClient = yield (0, client_1.getTon4ClientOrbs)();
const w2 = ton4Client.open(wallet);
const w3 = tonOrbsClient.open(wallet);
wallets.push(w2);
wallets.push(w3);
if (args['--api'] === 'lite') {
const liteServerClient = yield (0, client_1.getLiteClient)((_a = args['-c']) !== null && _a !== void 0 ? _a : 'https://ton-blockchain.github.io/global.config.json');
const w1 = liteServerClient.open(wallet);
wallets.push(w1);
}
for (let i = 0; i < 3; i++) {
for (const w of wallets) {
w.sendTransfer({
seqno,
secretKey: keyPair.secretKey,
messages: [(0, core_1.internal)({
to: giverAddress,
value: (0, core_1.toNano)('0.05'),
bounce: true,
body: boc,
})],
sendMode: 3,
}).catch(e => {
//
});
}
}
});
Expand Down
57 changes: 28 additions & 29 deletions send_universal.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,36 +299,35 @@ function sendMinedBoc(wallet, seqno, keyPair, giverAddress, boc) {
}
}
}
return;
}
else {
const wallets = [];
const ton4Client = yield (0, client_1.getTon4Client)();
const tonOrbsClient = yield (0, client_1.getTon4ClientOrbs)();
const w2 = ton4Client.open(wallet);
const w3 = tonOrbsClient.open(wallet);
wallets.push(w2);
wallets.push(w3);
if (args['--api'] === 'lite') {
const liteServerClient = yield (0, client_1.getLiteClient)((_a = args['-c']) !== null && _a !== void 0 ? _a : 'https://ton-blockchain.github.io/global.config.json');
const w1 = liteServerClient.open(wallet);
wallets.push(w1);
}
for (let i = 0; i < 3; i++) {
for (const w of wallets) {
w.sendTransfer({
seqno,
secretKey: keyPair.secretKey,
messages: [(0, core_1.internal)({
to: giverAddress,
value: (0, core_1.toNano)('0.05'),
bounce: true,
body: boc,
})],
sendMode: 3,
}).catch(e => {
//
});
}
const wallets = [];
const ton4Client = yield (0, client_1.getTon4Client)();
const tonOrbsClient = yield (0, client_1.getTon4ClientOrbs)();
const w2 = ton4Client.open(wallet);
const w3 = tonOrbsClient.open(wallet);
wallets.push(w2);
wallets.push(w3);
if (args['--api'] === 'lite') {
const liteServerClient = yield (0, client_1.getLiteClient)((_a = args['-c']) !== null && _a !== void 0 ? _a : 'https://ton-blockchain.github.io/global.config.json');
const w1 = liteServerClient.open(wallet);
wallets.push(w1);
}
for (let i = 0; i < 3; i++) {
for (const w of wallets) {
w.sendTransfer({
seqno,
secretKey: keyPair.secretKey,
messages: [(0, core_1.internal)({
to: giverAddress,
value: (0, core_1.toNano)('0.05'),
bounce: true,
body: boc,
})],
sendMode: 3,
}).catch(e => {
//
});
}
}
});
Expand Down