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.5.5; | |
import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; | |
import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; | |
contract VanityURL is Ownable, Pausable { | |
mapping (string => address) private vanityAddress; | |
mapping (address => string ) private addressVanity; | |
event VanityReserved(address indexed to, string vanityUrl); |
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.5.5; | |
import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; | |
import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; | |
import "tabookey-gasless/contracts/IRelayHub.sol"; | |
import "tabookey-gasless/contracts/RelayRecipient.sol"; | |
contract GaslessVanityURL is Ownable, Pausable, RelayRecipient { | |
mapping (string => address) private vanityAddress; |
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
async function sendTransaction() { | |
const tx = { | |
gasPrice: '0x09184e72a000', | |
gasLimit: '0x2710', | |
to: '0x0000000000000000000000000000000000000000', | |
value: '0x00', | |
data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057' | |
} |
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
async function initializeWallet(encryptedMnemonic) { | |
let address = await SpringWallet.initializeAndUnlockWallet(encryptedMnemonic); | |
return 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
async function encryptUserMnemonic(plainTextMnemonic) { | |
let encryptedMnemonic = await SpringWallet.encryptMnemonic(plainTextMnemonic); | |
return encryptedMnemonic; | |
} |