This file contains hidden or 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
// Procedrual script that gets the contract addresses from the build | |
// folder after migration. This file can be used inside of the RNS | |
// Manager React application to use the local RKS network. | |
// The code isn't pretty, but it works. | |
// | |
// TO RUN: | |
// Set the two variables below, and then in the console, run: | |
// node getConfig.js | |
// | |
// the output is a json script that can be copied and pasted into the |
This file contains hidden or 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
export const concatAddress = addr => `${addr.substr(0, 6)}...${addr.substr(addr.length - 4)}`; |
This file contains hidden or 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": "ce9f6b5b30d6d4278e8975e46c5952ad7255e0f85b8b6014037c1c5389feb6a0b68ecee51e726a309ce87d54ee6874cde3bf55c2d4e48ff9bd46cb183615a271"} |
This file contains hidden or 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
{ | |
"vc": { | |
"@context": [ | |
"https://www.w3.org/2018/credentials/v1" | |
], | |
"type": [ | |
"VerifiableCredential", | |
"VaccineRecord" | |
], | |
"credentialSubject": { |
This file contains hidden or 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
{ | |
"vc": { | |
"@context": [ | |
"https://www.w3.org/2018/credentials/v1" | |
], | |
"type": [ | |
"VerifiableCredential", | |
"VaccineRecord" | |
], | |
"credentialSubject": { |
This file contains hidden or 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
const addNetwork = () => { | |
const params = [{ | |
chainId: '0x1e', | |
chainName: 'RSK Mainnet', | |
nativeCurrency: { | |
name: 'RSK BTC', | |
symbol: 'RBTC', | |
decimals: 18 | |
}, | |
rpcUrls: ['https://public-node.rsk.co'], |
This file contains hidden or 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
const params = addToken({ | |
type: 'ERC20', | |
options: { | |
address: '0x2acc95758f8b5f583470ba265eb685a8f45fc9d5', | |
symbol: 'RIF', | |
decimals: 18, | |
image: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3701.png' | |
} | |
}) |
This file contains hidden or 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
// SPDX-License-Identifier:MIT | |
pragma solidity ^0.6.12; | |
pragma experimental ABIEncoderV2; | |
import "@openzeppelin/contracts/cryptography/ECDSA.sol"; | |
import "../interfaces/ISmartWalletFactory.sol"; | |
import "../utils/RSKAddrValidator.sol"; | |
/* solhint-disable no-inline-assembly */ | |
/* solhint-disable avoid-low-level-calls */ |
This file contains hidden or 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
import { React, ReactElement, useState } from 'react' | |
import { StyleSheet, View } from 'react-native' | |
import {selectSomeGlobalState} from './somefolder' | |
// Props described as an interface(always use on objects) | |
// type keyword is usually used to describe union types, | |
// navigation types. | |
interface Props { | |
// required props in the beginning | |
children: ReactElement |
This file contains hidden or 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
## This file must *NOT* be checked into Version Control Systems, | |
# as it contains information specific to your local configuration. | |
# | |
# Location of the SDK. This is only used by Gradle. | |
# For customization when using a Version Control System, please read the | |
# header note. | |
storePassword= | |
sdk.dir= | |
keyAlias= |