From c61e77129199c8f98b2d1599d582acc8f7e29e06 Mon Sep 17 00:00:00 2001 From: Remon Nashid Date: Thu, 7 Nov 2019 14:03:00 -0800 Subject: [PATCH 1/5] GT-87 initial compliance tabs --- .../src/pages/compliance/CompliancePage.js | 313 ++++++++++-------- .../src/pages/compliance/style.scss | 8 - 2 files changed, 168 insertions(+), 153 deletions(-) diff --git a/packages/polymath-issuer/src/pages/compliance/CompliancePage.js b/packages/polymath-issuer/src/pages/compliance/CompliancePage.js index 0e3b90a18..c7b60ce4c 100644 --- a/packages/polymath-issuer/src/pages/compliance/CompliancePage.js +++ b/packages/polymath-issuer/src/pages/compliance/CompliancePage.js @@ -8,6 +8,8 @@ import { NotFoundPage, Page, Grid, + Remark, + FormItem, } from '@polymathnetwork/ui'; import { BigNumber } from 'bignumber.js'; import { @@ -23,7 +25,10 @@ import { OverflowMenuItem, TextInput, Toggle, + Tabs, + Tab, } from 'carbon-components-react'; +import { Heading, CardFeatureState, icons } from '@polymathnetwork/new-ui'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { reset } from 'redux-form'; @@ -593,69 +598,55 @@ class CompliancePage extends Component { return ( - - - -

Token Compliance

-

- Manage compliance requirements of your tokens. You can import - and export your whitelist, manage ownership percentages, add 3rd - party whitelist managers, and manage approval of token transfers - between wallets. -

-
- - - - - - {/* */} - - - - - - - - -
- - -
-
-
- {/* +

Token Compliance

+

+ Manage compliance requirements of your tokens. You can import and + export your whitelist, manage ownership percentages, add 3rd party + whitelist managers, and manage approval of token transfers between + wallets. +

+ + + + + +

Whitelist

+

+ Whitelisted addresses may hold, buy, or sell the security + token and may participate into the STO. +

+ + Security token buy/sell operations may be subject to + additional restrictions. + +
+ + + + + + + + + + { : this.handleFreezeModalOpen } /> - */} +
+ + + + +
+
+
+

Whitelist Management

+
+
+ + +
+
+ +
+
+
+
+
+ + + + + + + +

Ownership Restrictions

-
-
- +

+ Ownership + Restrictions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +

+
+ +
+ + +
+
+ + + + + Enable Ownership Restrictions + +
{ ? !isPercentagePaused : this.state.isPercentageToggled } - id="percentageToggle" + id="volumeRestrictionToggle" />
- -
- -
- - -
-
-
-
-
-
-
- -
-
-
-

Whitelist Management

-
-
- - -
- -
- -
-
-
-
-
- - - + + + + + + ); } diff --git a/packages/polymath-issuer/src/pages/compliance/style.scss b/packages/polymath-issuer/src/pages/compliance/style.scss index 5a6c919b3..a922337a6 100644 --- a/packages/polymath-issuer/src/pages/compliance/style.scss +++ b/packages/polymath-issuer/src/pages/compliance/style.scss @@ -86,14 +86,6 @@ } } - &:after { - content: '%'; - position: absolute; - top: 13px; - left: 55px; - color: #8c9ba5; - font-size: 14px; - } } button { From 7e48dbaae5b088108eaf5bf941fefd33e9cb4877 Mon Sep 17 00:00:00 2001 From: Remon Nashid Date: Wed, 13 Nov 2019 14:30:58 -0800 Subject: [PATCH 2/5] GT-85: fix token creation emails --- packages/polymath-offchain/src/startup/setupWeb3.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/polymath-offchain/src/startup/setupWeb3.js b/packages/polymath-offchain/src/startup/setupWeb3.js index c4f4fc008..ed083beb5 100644 --- a/packages/polymath-offchain/src/startup/setupWeb3.js +++ b/packages/polymath-offchain/src/startup/setupWeb3.js @@ -439,7 +439,6 @@ export const registerTickerHandler = async ( */ export const addTickerRegisterListener = async (networkId: string) => { const contract = await getSTRContract(networkId); - contract.events.RegisterTicker({}, (error, result) => registerTickerHandler(contract, networkId, error, result) ); @@ -507,10 +506,11 @@ export const newSecurityTokenHandler = async ( */ export const addTokenCreateListener = async (networkId: string) => { const contract = await getSTRContract(networkId); - - contract.events.NewSecurityToken({}, (error, result) => - newSecurityTokenHandler(contract, networkId, error, result) - ); + contract.events[ + 'NewSecurityToken(string,string,address,address,uint256,address,bool,uint256,uint256,uint256)' + ]({}, (error, result) => { + newSecurityTokenHandler(contract, networkId, error, result); + }); contract.events.SecurityTokenRefreshed({}, (error, result) => newSecurityTokenHandler(contract, networkId, error, result) From 802f20325921463052f81f2a107d6f11edccd510 Mon Sep 17 00:00:00 2001 From: Remon Nashid Date: Mon, 18 Nov 2019 09:23:53 -0800 Subject: [PATCH 3/5] GT-87: add remaining copy --- .../src/pages/compliance/CompliancePage.js | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/packages/polymath-issuer/src/pages/compliance/CompliancePage.js b/packages/polymath-issuer/src/pages/compliance/CompliancePage.js index c7b60ce4c..be56dd20e 100644 --- a/packages/polymath-issuer/src/pages/compliance/CompliancePage.js +++ b/packages/polymath-issuer/src/pages/compliance/CompliancePage.js @@ -667,7 +667,7 @@ class CompliancePage extends Component {

-

Whitelist Management

+

3rd Party Whitelist Management