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
import com.binance.dex.api.client.TransactionConverter; | |
import com.binance.dex.api.client.domain.broadcast.Transaction; | |
import com.binance.dex.api.client.encoding.message.MessageType; | |
import com.binance.dex.api.proto.StdTx; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.google.protobuf.CodedInputStream; | |
import org.bouncycastle.util.encoders.Hex; | |
import org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.api.Test; |
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
CREATE TEMP FUNCTION BytesToUUID(data BYTES) | |
RETURNS STRING | |
LANGUAGE js AS """ | |
const tableStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
const atob = function (base64) { | |
if (/(=[^=]+|={3,})$/.test(base64)) throw new Error("String contains an invalid character"); | |
base64 = base64.replace(/=/g, ""); | |
var n = base64.length & 3; | |
if (n === 1) throw new Error("String contains an invalid character"); | |
for (var i = 0, j = 0, len = base64.length / 4, bin = []; i < len; ++i) { |
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
//Use Postman 7.2+ | |
const cryptojs = require('crypto-js'); | |
const Header = require('postman-collection').Header; | |
const moment = require('moment'); | |
//values related to creds | |
const secretKey = 'secret'; | |
const username ='username'; | |
let bodyDigest = cryptojs.SHA256(pm.request.method === 'GET' ? "" : pm.request.body.raw).toString(cryptojs.enc.Base64) |
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
{ | |
"ABIA": [ | |
[5.3918045732398, 7.3196411132812], | |
[5.4246168391946, 7.3388671875], | |
[5.4437565043427, 7.3663330078125], | |
[5.5285105256928, 7.4020385742188], | |
[5.6282859838703, 7.4006652832031], | |
[5.6856833027592, 7.3814392089844], | |
[5.6952489676056, 7.4020385742188], | |
[5.8428131655266, 7.3855590820312], |
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
<div class="cg-busy-default-wrapper"> | |
<material-preloader></material-preloader> | |
</div> |