POST https://api.tdax.com/api/qr-deposits/
Authorization: TDAX-API <Api-Key>
Signature: <Your-Signed-Request-Signature>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const { ethers } = require('ethers'); | |
const app = express(); | |
const port = 3000; | |
const provider = new ethers.providers.JsonRpcProvider('https://bsc-dataseed.binance.org/'); | |
const contract = { | |
factory: '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73', // PancakeSwap V2 factory | |
router: '0x10ED43C718714eb63d5aA57B78B54704E256024E', // PancakeSwap V2 router |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************\ | |
!!! คำเตือน โปรดระวัง !!! | |
การใช้บอท มีความเสี่ยงที่จะถูกแบนได้ | |
แนะนำให้สร้างบัญชีใหม่มาบอทโดยเฉพาะ | |
\******************************/ | |
class TLMBot { | |
constructor(minWaitTime = 5000, maxWaitTime = 15000) { | |
this.minWaitTime = minWaitTime; | |
this.maxWaitTime = maxWaitTime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getExchangeRate(pair, start, end) { | |
return { | |
Satang: await getSatangExchangeRate(pair, start, end), | |
Bitkub: await getBitkubExchangeRate(pair, start, end) | |
} | |
} | |
async function getSatangExchangeRate(pair, start, end) { | |
start = start.getTime() - 86399999; | |
end = end.getTime() + 86400000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file agm_voting.sol | |
* @author DomeCloud co., ltd. | |
*/ | |
pragma solidity ^0.5.0; | |
contract Ballot { | |
struct vote{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function saveExcel(data, filename){ | |
var datenum = function (v, date1904) { | |
if(date1904) v+=1462; | |
var epoch = Date.parse(v); | |
return (epoch - new Date(Date.UTC(1899, 11, 30))) / (24 * 60 * 60 * 1000); | |
}, | |
sheet_from_array_of_arrays = function (data, opts) { | |
var ws = {}; | |
var range = {s: {c:10000000, r:10000000}, e: {c:0, r:0 }}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ajax = { | |
x: [], | |
abortAll: function() { | |
var i; | |
for (i in ajax.x) { | |
if (Object.prototype.hasOwnProperty.call(ajax.x, i)) { | |
ajax.x[i].abort(); | |
} | |
} |
NewerOlder