Skip to content

Instantly share code, notes, and snippets.

@patrickxrivera
patrickxrivera / addresses.js
Created April 14, 2021 20:49
Power to the Person Twitter Airdrop Script
export const ADDRESSES = [
"0x90968f6009c6F001674f952Fee37Af1b911F05B9",
"0x8d0000fBd5A5077CA722e008e5c27dBa5fF317E5",
"0x5856cbC9e64586dB97ff0AbcC087547aEf589f75",
"0x84feF68daC5766380fa074Bbf9B943e1e6fB86e4",
"0x24eeE7cbc1EF514064eDF15bfA8628eD0fEA2Fa2",
"0x81ae2b76f7316472124Ec7da84F6Bda62170Ef20",
"0x0B62e5CaFF1b4f9605E78C3Ca8016c0A4B4e23Cb",
"0x7E925f2b8F0e0f63b383D303Bd978F55ceBED08B",
"0xAE15f6E6A23E02Bc8Be4838E1a0f7A120DaFDF49",
{
"container": {
"title": "Start Saving with Express!",
"path": "next_gen/express/savings?source=web&source_type=express_savings_delivery_options_placement",
"initial_step": null,
"modules": [
{
"id": "subscriptions_savings_trial_modal_ac992d963e0bdc35",
"data": {
"cashback_image": {
@patrickxrivera
patrickxrivera / checkout_totals.json
Last active May 30, 2019 18:15
Checkout Totals Module Data
{
"module_data": {
"apple_pay_request": {
"countryCode": "US",
"currencyCode": "USD",
"lineItems": [
{
"type": "final",
"label": "Subtotal",
"amount": "89.91"
@patrickxrivera
patrickxrivera / delivery_options_container.json
Last active May 30, 2019 18:14
Delivery Options Container
{
"service_options": {
"price_minimum": null,
"formatted_error": null,
"options_explanation": null,
"days": [
{
"day": "Today",
"day_full": "Today",
"date": "May 30",
@patrickxrivera
patrickxrivera / paid_modal_container.json
Last active May 30, 2019 18:13
Paid modal container
{
"container": {
"title": "Start Saving with Express!",
"path": "next_gen/express/savings",
"initial_step": null,
"modules": [
{
"id": "subscriptions_savings_paid_modal_b89817bee76aa6c6",
"data": {
"cashback_image": {
@patrickxrivera
patrickxrivera / trial_modal_container.json
Last active June 7, 2019 22:52
Trial Modal Container
{
"container": {
"title": "Start Saving with Express!",
"path": "next_gen/express/savings?source=web&source_type=start_saving_storefront_banner",
"initial_step": null,
"modules": [
{
"id": "subscriptions_savings_trial_modal_ac992d963e0bdc35",
"data": {
"cashback_image": {
@patrickxrivera
patrickxrivera / start_saving_banner_module.json
Created May 15, 2019 21:51
Module for the start saving banner. Trial version.
{
"id": "subscriptions_start_saving_banner_263a00fa2d7ae26f",
"data": {
"cashback_image": {
"url": "http://localhost:3000/assets/express/shop-as-usual-web@3x-fbab625a5bca43c18c6c8683099b757a6ca44080e3404f50150c471bd73a71da.png",
"alt": null,
"responsive": null,
"sizes": []
},
"header_formatted": {
@patrickxrivera
patrickxrivera / start_saving_modal_container.json
Created May 15, 2019 21:46
Container for the start saving modal. Includes the trial module.
{
"container": {
"title": "Start Saving with Express!",
"path": "next_gen/express/start_saving",
"initial_step": null,
"modules": [
{
"id": "subscriptions_start_saving_trial_modal_c795d8f6abe5e8d8",
"data": {
"cashback_image": {
#<Faraday::Response:0x00007f9d037a87d8
@env=
#<struct Faraday::Env
method=:post,
body=
"{\"message\":\"Valid data must be provided in the 'attributes', 'events', or 'purchases' fields.\",\"errors\":[{\"type\":\"'price' is not valid\",\"input_array\":\"purchases\",\"index\":0},{\"type\":\"'price' is not valid\",\"input_array\":\"purchases\",\"index\":1},{\"type\":\"'price' is not valid\",\"input_array\":\"purchases\",\"index\":2}]}",
url=#<URI::HTTPS https://rest.iad-03.braze.com/users/track>,
request=#<struct Faraday::RequestOptions params_encoder=nil, proxy=nil, bind=nil, timeout=nil, open_timeout=nil, boundary=nil, oauth=nil, context=nil>,
request_headers={"User-Agent"=>"Faraday v0.12.2", "Content-Type"=>"application/x-www-form-urlencoded"},
ssl=
{:api_key=>"89a484f8-a4b6-4864-acc7-b28e00ecde4d",
:purchases=>
[{"external_id"=>"42848718",
"product_id"=>"pencil",
"currency"=>"USD",
"price"=>50.33,
"time"=>"2013-07-17T19:20:20+01:00",
"properties"=>{"number"=>2, "sharpened"=>true}},
{"external_id"=>"42848718",
"product_id"=>"pencil",