From 5cd0e836f467ed3981cb2dc563d61f47e77a3833 Mon Sep 17 00:00:00 2001 From: Makoto Inoue <2630+makoto@users.noreply.github.com> Date: Sat, 28 Aug 2021 09:47:53 +0100 Subject: [PATCH 1/2] Add polygon and mumbai address --- deployedAddresses.json | 93 +++--------------------------------------- truffle-config.js | 9 ++-- 2 files changed, 11 insertions(+), 91 deletions(-) diff --git a/deployedAddresses.json b/deployedAddresses.json index ed3dd0f..abf9cc0 100644 --- a/deployedAddresses.json +++ b/deployedAddresses.json @@ -121,90 +121,7 @@ "transactionHash": "0x5ad9910eeaade4c937c92925693e5c1de88155844afd4a055c66213fcc6fc743" }, "100": { - "events": { - "0x57d380dbcddc47e0e592a9fd9ac9ab20c72572944143ef72b0e201536e0174f9": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "deployedAddress", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "deployer", - "type": "address" - } - ], - "name": "NewParty", - "type": "event", - "signature": "0x57d380dbcddc47e0e592a9fd9ac9ab20c72572944143ef72b0e201536e0174f9" - }, - "0xc2802121e9239e612e9e568ba6f77d1fb6a93b7c717366bd73ec2be342d1f0f6": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "clearFee", - "type": "uint256" - } - ], - "name": "ClearFeeChanged", - "type": "event", - "signature": "0xc2802121e9239e612e9e568ba6f77d1fb6a93b7c717366bd73ec2be342d1f0f6" - }, - "0x1c4e23de8d72c94b22992bd4d7b6786b215ba876af214ff63e6a0ca38fc97af4": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "AdminGranted", - "type": "event", - "signature": "0x1c4e23de8d72c94b22992bd4d7b6786b215ba876af214ff63e6a0ca38fc97af4" - }, - "0x631ff1c4e1a02c54b480a34b810e03bcee61fe38efcb243930a7f820914923e2": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "AdminRevoked", - "type": "event", - "signature": "0x631ff1c4e1a02c54b480a34b810e03bcee61fe38efcb243930a7f820914923e2" - }, - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0": { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event", - "signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0" - } - }, + "events": {}, "links": {}, "address": "0x779051814b0D1C6714a484a24ba65185ED310139", "transactionHash": "0xed49348bd031c5eefd91f48114430cede9b6b389540e300623e92d0970b17d32" @@ -212,13 +129,13 @@ "137": { "events": {}, "links": {}, - "address": "0xC5ddF439194f84AF79db7d7cd534aD01cC58910d", - "transactionHash": "0x666fe195281dd361995a88786b4534824beafb46852c3a16e8016cabe5e2cb0c" + "address": "0x206adBE01B6f85B60B5dc9B0FF91173375A953Fd", + "transactionHash": "0x4930cb243e051cd6e7056343de41e5b024c876970857c44f40f6a6de52fbbdb0" }, "80001": { "events": {}, "links": {}, - "address": "0xc1d24FB1a9c6b5051c28b0e963473D3cE3EB3491", - "transactionHash": "0xb85a097a92e729c9b83fea2263a8e2fd227a295c349cfbe866421c333625b1e6" + "address": "0x52917f7846cF25eF414F9696eD8DE70ce16A5Ca6", + "transactionHash": "0x768f331c5a9fb2eec5189d5e119c55ec2e50c93dcd14f6ed266f1126d6a90e32" } } \ No newline at end of file diff --git a/truffle-config.js b/truffle-config.js index 96b585f..558174b 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -50,9 +50,12 @@ module.exports = { gasPrice: 0x01, // <-- Use this low gas price network_id: 100 }, - polygon: { - provider: (num_addresses = 1) => new HDWalletProvider(mnemonic, `https://polygon-mainnet.infura.io/v3/${infuraKey}`, 0, num_addresses), - gasPrice: 1000000000, // 1 gwei + polygon: { + provider: (num_addresses = 1) => new HDWalletProvider(mnemonic, 'https://polygon-rpc.com', 0, num_addresses), + // provider: (num_addresses = 1) => new HDWalletProvider(mnemonic, `https://polygon-mainnet.infura.io/v3/${infuraKey}`, 0, num_addresses), + // provider: (num_addresses = 1) => new HDWalletProvider(mnemonic, `https://rpc-mainnet.maticvigil.com/v1/${maticKey}`, 0, num_addresses), + gasPrice: 5000000000, // 5 gwei + gas: 15000000, network_id: 137 }, mumbai:{ From bb5e90349f8d2592b57d4e29a9639ad983393a9f Mon Sep 17 00:00:00 2001 From: Makoto Inoue <2630+makoto@users.noreply.github.com> Date: Sun, 29 Aug 2021 20:34:22 +0100 Subject: [PATCH 2/2] Add new polygon deployment address and bump version to 1.5.0 --- README.md | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6d7371..02e28c3 100644 --- a/README.md +++ b/README.md @@ -402,4 +402,5 @@ For all the latest deployed deployer contracts, see refer to `deployedAddresses. ### Polygon deployer contract versions -- "0xc1d24FB1a9c6b5051c28b0e963473D3cE3EB3491" +- npm version "1.4.6 "0xC5ddF439194f84AF79db7d7cd534aD01cC58910d" +- npm version "1.5.0 "0x206adBE01B6f85B60B5dc9B0FF91173375A953Fd" diff --git a/package.json b/package.json index 0e7d084..9965935 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wearekickback/contracts", - "version": "1.4.6", + "version": "1.5.0", "description": "Kickback smart contracts", "main": "index.js", "publishConfig": {