import {Wallet} from '@ethersproject/wallet'
// import {hexlify} from '@ethersproject/bytes'
import { useCallback, useState } from 'react';
import { AuthMethod, SessionSigs } from '@lit-protocol/types';
import { getProviderByAuthMethod } from '../../utils/lit';
import { LitAbility, LitActionResource } from '@lit-protocol/auth-helpers';
import { IRelayPKP } from '@lit-protocol/types';
import useLocalStorage from '@rehooks/local-storage';
import { litNodeClient } from '@/utils/litClients';
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"; | |
const express = require('express'); | |
const helmet = require('helmet'); | |
const app = express(); | |
const fs = require('fs'); | |
const ContractLoader = function(contractList,web3){ | |
let contracts = [] | |
for(let c in contractList){ | |
try{ | |
let abi = require("./src/contracts/"+contractList[c]+".abi.js") |
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
{ | |
"username": "Reddit username", | |
"client_id": "Register a developer script on Reddit", | |
"client_secret": "See the above", | |
"password": "Your Reddit password" | |
} |
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
[ | |
{ | |
"id": 1, | |
"name": "Afghanistan", | |
"iso3": "AFG", | |
"iso2": "AF", | |
"numeric_code": "004", | |
"phone_code": "93", | |
"capital": "Kabul", | |
"currency": "AFN", |
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
[ | |
{ | |
"id": 1, | |
"name": "Afghanistan", | |
"iso3": "AFG", | |
"iso2": "AF", | |
"numeric_code": "004", | |
"phone_code": "93", | |
"capital": "Kabul", | |
"currency": "AFN", |
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
_prompt_executing="" | |
function __prompt_precmd() { | |
local ret="$?" | |
if [[ "$_prompt_executing" != "1" ]]; then | |
_PROMPT_SAVE_PS1="$PS1" | |
_PROMPT_SAVE_PS2="$PS2" | |
PS1=$'%{\e]133;P;k=i\a%}'$PS1$'%{\e]133;B\a\e]122;> \a%}' | |
PS2=$'%{\e]133;P;k=s\a%}'$PS2$'%{\e]133;B\a%}' | |
fi |
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
;;; Startup | |
;;; PACKAGE LIST | |
(setq package-archives | |
'(("melpa" . "https://melpa.org/packages/") | |
("elpa" . "https://elpa.gnu.org/packages/"))) | |
;;; BOOTSTRAP USE-PACKAGE | |
(package-initialize) | |
(setq use-package-always-ensure t) | |
(unless (package-installed-p 'use-package) |
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
TMUX(1) BSD General Commands Manual TMUX(1) | |
NAME | |
tmux — terminal multiplexer | |
SYNOPSIS | |
tmux [-2CDluvV] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [-T features] | |
[command [flags]] | |
DESCRIPTION |
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
" Vim color file | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let g:colors_name = "1989" |
NewerOlder