Skip to content

Instantly share code, notes, and snippets.

View octavioamu's full-sized avatar
:octocat:
Working from home

Octavio Amuchástegui octavioamu

:octocat:
Working from home
View GitHub Profile
did:3:bafyreig64tymoczznje25vhyk5rvrqllvubdh2mew2afje5f3qlbkvrnku
@octavioamu
octavioamu / metamask snippets
Created March 13, 2020 23:05
metamask methods
// https://medium.com/metamask/breaking-changes-to-the-metamask-inpage-provider-b4dde069dd0a
// https://docs.metamask.io/guide/ethereum-provider.html#methods-new-api
// avoid auto reload
ethereum.autoRefreshOnNetworkChange = false
// not working
ethereum.on('chainChanged', function(chainId){console.log(chainId)})
// change network
ethereum.on('networkChanged', function (networkId) {
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' fill='none'%3E%3Cpath fill='url(%23paint0_radial)' fill-rule='evenodd' d='M256 0c141.385 0 256 114.615 256 256S397.385 512 256 512 0 397.385 0 256 114.615 0 256 0z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='M165 243v-78h78v78h-78zm16.25-61.75v45.5h45.5v-45.5h-45.5zM269 165h78v78h-78v-78zm61.75 61.75v-45.5h-45.5v45.5h45.5zM165 347v-78h78v78h-78zm16.25-61.75v45.5h45.5v-45.5h-45.5zm13 13h19.5v19.5h-19.5v-19.5zm0-104h19.5v19.5h-19.5v-19.5zm123.5 19.5h-19.5v-19.5h19.5v19.5zM334 269h13v52h-52v-13h-13v39h-13v-78h39v13h26v-13zm0 65h13v13h-13v-13zm-26 0h13v13h-13v-13z'/%3E%3Cdefs%3E%3CradialGradient id='paint0_radial' cx='0' cy='0' r='1' gradientTransform='translate(9.283 256) scale(502.717)' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%237C89FF'/%3E%3Cstop offset='1' stop-color='%231E34FF'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E

Test with random wallets changing between metamask, metamsk mobile, web3 browser, fortmatic

Bounties (eth and ERC20)

  • create bounty (token not enabled, insufficient funds eth and erc20,
  • Update bounty
  • Increase value
  • Kill bounty
  • submit work
  • payout basic
  • payout advanced bulk payout
@octavioamu
octavioamu / User onbard.md
Last active July 29, 2020 23:14
Onboard user experience.

Problem

User

  • What is Gitcoin?
  • What can I do here?

System

  • Which persona is this user?
    • Is this a buyer or a user?
  • Is this a funder or contributor?
@octavioamu
octavioamu / Mautic.md
Last active January 19, 2021 23:39
mautic integration

Mautic integration

Mautic is integrated on the system by 2 diff ways

SDK mtc() provided by mautic platform but very limited API api/v1/mautic/

API

mautic API docs endpoints https://developer.mautic.org/#endpoints Our backend hold the keys to communicate with our mautic instance, to be able to make requests add into your .env file:

did:3:kjzl6cwe1jw147b6n7d5y4x77ka61qw980fng1zavgnobvufk7hgsmk1q003blh
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},