This file contains 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
require('dotenv').config(); | |
const Biconomy = require("@biconomy/mexa"); | |
const ethers = require('ethers'); | |
const Web3 = require('web3'); | |
const {abi} = require('../abis/abi'); | |
let biconomy; | |
let web3; | |
const proxyAddress = "<add_your_own_proxy_address>"; |
This file contains 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
// import "@opengsn/gsn/contracts/BaseRelayRecipient.sol"; | |
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/metatx/ERC2771Context.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/metatx/ERC2771Context.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC1155/ERC1155.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/access/Ownable.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/Strings.sol"; |
This file contains 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
pragma solidity ^0.8.9; | |
import "@openzeppelin/contracts/metatx/ERC2771Context.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract Maybe2 is ERC2771Context, ERC721, Ownable { |
This file contains 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 { Biconomy } from "@biconomy/mexa"; | |
let userAddress1 = "0x040a9cbC4453B0eeaE12f3210117B422B890C1ED"; | |
let userAddress2 = "0x4C07E2fa10f9871142883139B32Cb03F2A180494"; | |
let userAddress3 = "0x6561aD57cde7863bCE871977c951Af21bEC2E74C"; | |
let userAddress4 = "0xaa7f52b2bF183CE85c1d291D838030DF41018a44"; | |
let userAddress5 = "0x02649F6d43556e76CF7a515a9f589BB23287378d"; | |
let userAddresses = [userAddress1, userAddress2, userAddress3, userAddress4, userAddress5]; | |
let contracts; | |
let contractInterface; | |
let biconomy; |
This file contains 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 { Biconomy } = require("@biconomy/mexa"); | |
const { ethers } = require("ethers"); | |
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); | |
const privateKey = "0xd952fa86f1e2fed30fb3a6da6e5c24d7deb65b6bb46da3ece5f56fd39e64bbd0"; | |
let userAddress1 = ethers.utils.getAddress("0x040a9cbC4453B0eeaE12f3210117B422B890C1ED"); | |
let userAddress2 = ethers.utils.getAddress("0x4C07E2fa10f9871142883139B32Cb03F2A180494"); | |
let userAddress3 = ethers.utils.getAddress("0x6561aD57cde7863bCE871977c951Af21bEC2E74C"); | |
let userAddress4 = ethers.utils.getAddress("0xaa7f52b2bF183CE85c1d291D838030DF41018a44"); |
This file contains 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 { Biconomy } = require("@biconomy/mexa"); | |
const { ethers } = require("ethers"); | |
const axios = require('axios').default; | |
const privateKey = "0xd952fa86f1e2fed30fb3a6da6e5c24d7deb65b6bb46da3ece5f56fd39e64bbd0"; | |
let userAddress1 = ethers.utils.getAddress("0x040a9cbc4453b0eeae12f3210117b422b890c1ed"); | |
let userAddress2 = ethers.utils.getAddress("0x4c07e2fa10f9871142883139b32cb03f2a180494"); | |
let userAddress3 = ethers.utils.getAddress("0x6561ad57cde7863bce871977c951af21bec2e74c"); | |
let userAddress4 = ethers.utils.getAddress("0xaa7f52b2bf183ce85c1d291d838030df41018a44"); |
This file contains 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
/** | |
*Submitted for verification at Etherscan.io on 2022-03-12 | |
*/ | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/metatx/ERC2771Context.sol"; | |
// SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.9; | |
interface IERC20 { | |
event Approval(address indexed owner, address indexed spender, uint value); |
This file contains 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
/** | |
*Submitted for verification at Etherscan.io on 2022-03-12 | |
*/ | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/metatx/ERC2771Context.sol"; | |
// SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.9; | |
interface IERC20 { | |
event Approval(address indexed owner, address indexed spender, uint value); |
This file contains 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 authToken = '8ee71107-5ce2-4eba-8978-fe51df4bdce2'; | |
const apiKey = 'sCd7Ht3sK.e21885c4-5f31-469a-8e15-969e47ec7842'; | |
const contractAddress = '0x6e56b609E167c79C6C21b356802b3C831E13BF1c'; | |
const fetch = require("node-fetch"); | |
const abi = JSON.stringify([ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", |
This file contains 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
type BiconomyWalletClient = { | |
engine: any | |
biconomyAttributes: any, | |
isSignerWithAccounts = isSignerWithAccounts; | |
provider = provider; | |
targetProvider = targetProvider; | |
walletFactoryAddress: string | |
baseWalletAddress: string, | |
entryPointAddress: string, | |
handlerAddress: string, |
OlderNewer