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 * as ethers from "ethers"; | |
import {Provider, Contract, utils, Signer, BrowserProvider, Wallet} from "zksync-ethers"; | |
// Address of the ZeekMessages contract | |
const GREETER_CONTRACT_ADDRESS = "0x2f5Fa95a28EEd40DD80ED3fFC718094EB41253b4"; | |
// Address of the ERC20 token contract | |
const TOKEN_CONTRACT_ADDRESS = "0xF4dF2c515581A9fA5bAa078d04703c0f3Fd9115a"; | |
// Message to be sent to the contract | |
const NEW_MESSAGE = "This tx cost me no ETH!"; |
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.8; | |
import {IPaymaster, ExecutionResult, PAYMASTER_VALIDATION_SUCCESS_MAGIC} | |
from "@matterlabs/zksync-contracts/l2/system-contracts/interfaces/IPaymaster.sol"; | |
import {IPaymasterFlow} from "@matterlabs/zksync-contracts/l2/system-contracts/interfaces/IPaymasterFlow.sol"; | |
import {TransactionHelper, Transaction} from "@matterlabs/zksync-contracts/l2/system-contracts/libraries/TransactionHelper.sol"; | |
import "@matterlabs/zksync-contracts/l2/system-contracts/Constants.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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.16; | |
import "@matterlabs/zksync-contracts/l2/system-contracts/interfaces/IAccount.sol"; | |
import "@matterlabs/zksync-contracts/l2/system-contracts/libraries/TransactionHelper.sol"; | |
// Access zkSync system contracts for nonce validation via NONCE_HOLDER_SYSTEM_CONTRACT | |
import "@matterlabs/zksync-contracts/l2/system-contracts/Constants.sol"; | |
// to call non-view function of system contracts | |
import "@matterlabs/zksync-contracts/l2/system-contracts/libraries/SystemContractsCaller.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
var Web3 = require('web3') | |
const ABI = [ | |
{ | |
constant: true, | |
inputs: [], | |
name: 'name', | |
outputs: [ | |
{ | |
name: '', |
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 { ethers } = require('ethers') | |
const endpoints = [ | |
// main rpc endpoint | |
'http://localhost:8545', | |
// fallback one | |
'https://fallback-rpc-endpoint/12345', | |
// fallback two | |
'https://another-fallback-rpc-endpoint/12345', | |
] |
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
{"version":1,"resource":"file:///Users/antonio/Projects/Golang/webserver/main.go","entries":[{"id":"16Pv.go","timestamp":1655909033736},{"id":"PaA1.go","timestamp":1655909065055},{"id":"YuRI.go","timestamp":1655909287786},{"id":"W3b7.go","timestamp":1655909317411},{"id":"nHEJ.go","timestamp":1655909337878}]} |
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
'use strict' | |
// To use AWS secrets | |
//const AWS = require('aws-sdk'); | |
const MongoClient = require('mongodb').MongoClient | |
//Performance optimization Step 1: declare the database connection object outside | |
//the handler method so it's cached | |
let cachedDb = null |
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
<template> | |
<section id="subscribe" class="bg-white"> | |
<v-container> | |
<v-row row wrap> | |
<v-col sm="10" offset-sm="1" md="8" offset-md="2"> | |
<h2 class="display-2 text-center mb-3">Do you want to know more?</h2> | |
<p class="subheading text-center"> | |
Subscribe to receive updates about the project and be one of the firsts to access! | |
</p> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<!-- Loads socket.io client from server --> | |
<!-- <script src="/socket.io/socket.io.js"></script> --> |
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
/** | |
* calendarService.js | |
* | |
* Methods to interact with the Google Calendar API | |
* | |
*/ | |
const {google} = require('googleapis'); | |
const debug = require('debug')('gcal:calendarService') | |
/** |
NewerOlder