Skip to content

Instantly share code, notes, and snippets.

View sparrowDom's full-sized avatar

Domen Grabec sparrowDom

  • Origin Protocol
  • Slovenia
View GitHub Profile
let re = /\D*/g
input
.map(item => {
// replace map
digiMap =
[
['one', '1'],
['two', '2'],
['three', '3'],
['four', '4'],
let re = /\D*/g
input
.map(item => {
// replace map
digiMap =
[
['one', '1'],
['two', '2'],
['three', '3'],
['four', '4'],
let re = /\D*/g
input
.map(item => {
// replace map
digiMap =
[
['one', '1'],
['two', '2'],
['three', '3'],
['four', '4'],
sq5fivetwothree1
six5gc
txb3qfzsbzbxlzslfourone1vqxgfive
3onethreebrth
cseven7nqqxnkzngndtddfiverkxkxqjjsr
2lvpmzh4
threeqxqndvjrz15
threetwo1drtzsixtwofourppvg
zxhsndseven2vbnhdtfpr3bt86
onethreelqqqqvj7eightnine5
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)
pragma solidity ^0.8.0;
import "draft-IERC1822Upgradeable.sol";
import "ERC1967UpgradeUpgradeable.sol";
import "Initializable.sol";
/**
# STEAL FUNDS VIA MINT AND REDEEM
from world import *
LUSD="0x5f98805A4E8be255a32880FDeC7F6728C6568bA0"
LIQUITY_ST_POOL="0x66017D22b0f8556afDd19FC67041899Eb65a21bb"
ATTACKER="0x5E687f547d26732A3F1213e1C31432C3EF6810bc"
LUSD_POOL="0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca"
DAI_BAGS="0x075e72a5eDf65F0A5f44699c7654C1a76941Ddc8"
lusd = load_contract('ERC20', LUSD)
### Keybase proof
I hereby claim:
* I am sparrowdom on github.
* I am domeng (https://keybase.io/domeng) on keybase.
* I have a public key ASCmoV-8q6TbeNqfAGzYnI2GFiwZGvkTbpGZKN_4MmAKVQo
To claim this, I am signing this object:
MacBook-Pro-2:zerion domen-privat$ npm run test:adapters
> zerion-defi-sdk@1.0.0 test:adapters /Users/domen-privat/projects/OriginProtocol/zerion
> TEST_FILES=./test/adapters/*.js ./scripts/test.sh
Starting our own ganache instance
Using network 'development'.
Compiling your contracts...
@sparrowDom
sparrowDom / gist:a686f0081e1cc1d72a647f0fa78f3d7f
Created February 12, 2021 12:47
npm run test:core output
MacBook-Pro-2:zerion domen-privat$ npm run test:core
> zerion-defi-sdk@1.0.0 test:core /Users/domen-privat/projects/OriginProtocol/zerion
> TEST_FILES=./test/core/*.js ./scripts/test.sh
Starting our own ganache instance
Using network 'development'.
Compiling your contracts...
import React, { Component, Fragment } from 'react'
import { Image, ScrollView, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native'
import ImagePicker from 'react-native-image-picker'
import ImageResizer from 'react-native-image-resizer'
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
import { SafeAreaView, withNavigation, NavigationEvents } from 'react-navigation'
import ActionSheet from 'react-native-actionsheet'
import Button from 'components/button'
import TextField from 'components/text-field'