Skip to content

Instantly share code, notes, and snippets.

pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'Victus' token contract
//
// Symbol : W2W
// Name : Victus
// Total supply: 100000000000
// Decimals : 16
//
let { ROPSTEN_NETWORK_ID, MATIC_NETWORK_ID } = require('./constants');
const ROPSTEN_CONFIGS = {
rpcUrl: 'https://ropsten.infura.io/v3/"INFURA API KEY",
networkId: ROPSTEN_NETWORK_ID,
chainId: ROPSTEN_NETWORK_ID,
};
const MATIC_CONFIGS = {
#!/usr/bin/env node
import { devConstants, web3Factory } from '@0x/dev-utils';
import { logUtils } from '@0x/utils';
import { MnemonicWalletSubprovider, RPCSubprovider, Web3ProviderEngine } from '@0x/subproviders';
import { Web3Wrapper } from '@0x/web3-wrapper';
import { runMigrationsAsync } from './migration';
import { providerUtils } from '@0x/utils';
const Web3 = require('web3');
const web3 = new Web3(provider);
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "seedwords";
var provider = new HDWalletProvider(mnemonic, "https://testnetv3.matic.network", 0, 10);
let contractAddress = "0x479868D862A3d24E546112dD59e3540d95A72B47";
let contractAbi = [
{
[
{
"constant": false,
"inputs": [
{
"name": "_approved",
"type": "address"
},
{
"name": "_tokenId",
module.exports = {
MATIC_PROVIDER: 'https://testnetv3.matic.network', // This is the MATIC testnet RPC
PARENT_PROVIDER: 'https://ropsten.infura.io/v3/70645f042c3a409599c60f96f6dd9fbc', // This is the Ropsten testnet RPC
ROOTCHAIN_ADDRESS: '0x82a72315E16cE224f28E1F1fB97856d3bF83f010', // The address for the main Plasma contract in Ropsten testnet
WITHDRAWMANAGER_ADDRESS: '0x3cf9aD3395028a42EAfc949e2EC4588396b8A7D4', // An address for the WithdrawManager contract on Ropsten testnet
DEPOSITMANAGER_ADDRESS: '0x3Bc6701cA1C32BBaC8D1ffA2294EE3444Ad93989', // An address for a DepositManager contract in Ropsten testnet
PRIVATE_KEY: 'pvt_key', // A sample private key prefix with `0x`
FROM_ADDRESS: 'address',// Your address
ROPSTEN_TEST_TOKEN: '0xb3F619c65aebC6E89FbBA95cA356A3394A20dAd7', // Contract for ERC20 in Ropsten
MATIC_TEST_TOKEN: '0x635816d95c915Bc96D2366978797Ec2B7540d8a0', // Contract for ERC20 in Matic testnet
{
erc20Proxy: '0xed13914560569d8f902fe1eaa945578a738f7a63',
erc721Proxy: '0xdff51569f6dd4cb74054cd8e14c3aeca06734f47',
erc1155Proxy: '0x7f482ef7427ad95d41a890347a808cf385e68f49',
zrxToken: '0x728135bc0206c497998f31d63134ff5a2de8d7d0',
etherToken: '0x99c2f0c10a64fdbf466a5f4f24794f7c112c23a4',
exchange: '0x299c212a6c4e4d549cd08859c1034f1a90d3e426',
assetProxyOwner: '0x0000000000000000000000000000000000000000',
erc20BridgeProxy: '0xa2ba88cfe6aacd2de352150ab10ce39703f5924d',
zeroExGovernor: '0x0000000000000000000000000000000000000000',
pragma solidity >=0.5.0 <0.6.7;
contract Grant {
// Event fired when permission is granted to a user.
event permissionGranted(address _from,address _to);
// To store the permission details
mapping (address => address) grant;
{
"erc20Proxy": "0x0b47076aaa5246411458fcf85494f41bbfdb8470",
"erc721Proxy": "0xff7ca10af37178bdd056628ef42fd7f799fac77c",
"erc1155Proxy": "0x53d791f18155c211ff8b58671d0f7e9b50e596ad",
"zrxToken": "0x5af2b282779c7d4ffc69ca4e6e16676747f5c56b",
"etherToken": "0x5b5e11e4818cceba3e82ca9b97cd0ab80be75ad3",
"exchange": "0x533dc89624dcc012c7323b41f286bd2df478800b",
"erc20BridgeProxy": "0x5638a4b19f121adc4436de3f0e845173b33b594c",
"forwarder": "0x6dcf02d3a963f22dbf85c4025b86a834fef16c15",
"coordinatorRegistry": "0x6f5b9e0456c4849224c7b59dc15f05c48641c4e3",
/**
*Submitted for verification at Etherscan.io on 2020-06-09
*/
// File: @openzeppelin/upgrades/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.6.0;
/**
* @title Initializable