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 x = require('emvqr-parser') | |
const seabank = "00020101021127580012com.p2pqrpay0111LAUIPHM2XXX0208999644030411101445657935204601653036085802PH5912MARK HUGH N.6009Pagsanjan63049870" | |
const gcash = "00020101021127830012com.p2pqrpay0111GXCHPHM2XXX02089996440303152170200000006560417DWQM4TK3JDNWFSG045204601653036085802PH5912MA*K HU*H N.6014PASAY CITY CEN610412346304FB92" | |
const bpi = "00020101021127610012com.p2pqrpay0111BOPIPHMMXXX0208999644030414000000192887495204601653036085802PH5910marknickna6011Makati City63043A12" | |
const union = "00020101021127590012com.p2pqrpay0111UBPHPHMMXXX02089996440304121094540584575204601653036085802PH5914Mark Hugh Neri6010PASAY CITY63044F24" | |
const data = x.decodeQrData(union) | |
// 04 bank account? | |
const x27 = data['27'].data |
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
// Order memory takerOrder, | |
// Order[] memory makerOrders, | |
// uint256 takerFillAmount, | |
// uint256[] memory makerFillAmounts | |
// https://polygonscan.com/inputdatadecoder?tx=0xe129d9a624b609a01624119cefbbbc7f2563e60e99962b54e20d53c1836ddc04 | |
const matchOrdersPayload = { | |
takerOrder: { | |
salt: 95879542108, | |
maker: '0xA81c167004C5EE07F68d0B9F7a8395517897b597', |
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
{ | |
"name" : "Selyo - Building on Base", | |
"description" : "Selyo now supports its first EVM network", | |
"image": "https://i.imgur.com/gjF0I39.jpeg", | |
"symbol" : "EVM-SELYO-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
{ | |
"name" : "Crush Kita NFT", | |
"description" : "Happy Valentines Crush! <3", | |
"image": "https://i.imgur.com/rx6S8QX.jpeg" | |
} |
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
{ | |
"name": "SOON SVM SELYO", | |
"symbol": "SOON-SELYO-NFT", | |
"description": "SOON Mock NFT", | |
"image": "https://i.imgur.com/LbYJabY.jpeg", | |
"attributes": [ | |
{ | |
"trait_type": "network", | |
"value": "soon-devnet" | |
} |
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
{ | |
"name": "Break Point Fistbump", | |
"symbol": "ZELYOBUMP", | |
"description": "Break Point Fistbump by Project Selyo", | |
"image": "https://i.imgur.com/cwj1WST.jpeg", | |
"attributes": [ | |
{ | |
"trait_type": "giver", | |
"value": "9upc6r3ZNcvMWA5DWvZ14Hh3xHs3nxMBK2x7MS5acVN" | |
}, |
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
{ | |
"name": "ECOSYSTEM CALL", | |
"symbol": "SELYO-TEST", | |
"image": "https://i.imgur.com/sCY1vNT.jpeg", | |
"attributes": [ | |
{ "trait_type": "project", "value": "quest" }, | |
{ "trait_type": "event", "value": "Superteam Philippines Ecosystem Call" }, | |
{ "trait_type": "organization", "value": "flareblox" } | |
] | |
} |
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
{ | |
"name": "Zelyo", | |
"symbol": "QUEST", | |
"image": "https://i.imgur.com/o1Tp72Z.jpeg", | |
"attributes": [ | |
{ "trait_type": "project", "value": "quest" }, | |
{ "trait_type": "organization", "value": "flareblox" } | |
] | |
} |
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
// these are just illustration and not complete code | |
// this is using solana wallet adapter | |
// need to be base64 encoded as this is meant to be verified at a backend http api | |
const { publicKey, signMessage } = useWallet() | |
const handleClickCreateCampaign = async () => { | |
if (signMessage) { | |
const message = JSON.stringify(newCampaign) | |
const signature = await signMessage(Buffer.from(message)) | |
const encodedSignature = Buffer.from(signature).toString("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
import { Elysia } from "elysia"; | |
import { Surreal } from "surrealdb.node" | |
// const ethers = require('ethers'); | |
import { ethers } from 'ethers' | |
const db = new Surreal(); | |
await db.connect('ws://localhost:8000/'); |
NewerOlder