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
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
did:3:kjzl6cwe1jw147b6n7d5y4x77ka61qw980fng1zavgnobvufk7hgsmk1q003blh
@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:

@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?

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
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
@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) {
did:3:bafyreig64tymoczznje25vhyk5rvrqllvubdh2mew2afje5f3qlbkvrnku
@octavioamu
octavioamu / fav.js
Created August 14, 2019 22:09
favorites
var getFav = fetchData('api/v0.1/favorites/bounty', 'GET')
$.when(getFav).then((response, status, statusCode) => {
console.log(response, status, statusCode)
})
var postFav = fetchData('api/v0.1/favorites/user/2', 'POST')
$.when(postFav).then((response, status, statusCode) => {
console.log(response, status, statusCode)
})
@octavioamu
octavioamu / changelog
Last active August 14, 2019 13:30
Gitcoin Updates
<h2>This is a gist for updates</h2>
<p>Hello again from the Gitcoin team – here’s what the core team and our community have been busy working on in the last month.</p>
<p>A user directory, inviting contributors to bounties, and more. We’re back to let you in on new features to help you power your workflow and grow open source!</p>
<h2>User Directory</h2>
<p>In April we spent some time thinking about user discovery and ways to connect funders to coders. Under the explore menu, you’ll find the user directory where it’s easy to search for contributors by skills, bounties completed, leaderboard rank and star ratings. We’ve also included a one click invite contributor to a bounty which pulls up issues that are currently funded. Give it a try here!</p>
<h3>Images</h3>
<img src="https://user-images.githubusercontent.com/1358093/62988432-f1273980-be33-11e9-80e6-cc6367636c63.png">