Skip to content

Commit

Permalink
Merge pull request #698 from PolymathNetwork/release
Browse files Browse the repository at this point in the history
Release 2.4.1
  • Loading branch information
FahdW authored Jan 20, 2020
2 parents 537ac68 + 3556fca commit 269e2e3
Show file tree
Hide file tree
Showing 14 changed files with 98 additions and 38 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions packages/polymath-issuer/src/pages/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@ class HomePage extends Component {
<div className="splash-background" />
<div>
<h1 className="pui-h0">
The Next Mega-Trend
Start Your Security Token
<br />
in Crypto is the Emergence
<br /> of Securities Tokens
Journey Here
</h1>
<h3 className="pui-h3">
Polymath enables trillions of dollars of securities to be issued
<br /> and traded on the blockchain.
Easily reserve your ticker, mint your tokens, and <br />
prepare distribution of your STO.
</h3>
<br />
<br />
<p>
<Link to="/account">
<Button id="create-token-btn" icon="arrow--right">
Configure your security token
Connect Metamask
</Button>
</Link>
</p>
Expand Down
40 changes: 18 additions & 22 deletions packages/polymath-issuer/src/pages/providers/ApplyForm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Form, Button } from 'carbon-components-react';
import { Form, Button, InlineNotification } from 'carbon-components-react';
import { connect } from 'react-redux';
import { withFormik } from 'formik';
import {
Expand Down Expand Up @@ -70,6 +70,21 @@ export const ApplyFormComponent = props => {
return (
<Form onSubmit={handleSubmit}>
<Grid>
{networkId !== 1 && (
<InlineNotification
hideCloseButton
title="You are using Token Studio in a testnet environment. When you
click submit, an email WILL NOT be sent to the providers you have
selected. To send an email to the selected providers, please log
into Token Studio with mainnet.
None of this information is stored on Polymath servers, only your
browser's cache. To clear this information, simply clear your
browser's cache."
subtitle=""
kind="warning"
/>
)}
<FormItem name="companyName">
<FormItem.Label>Company Name</FormItem.Label>
<FormItem.Input
Expand Down Expand Up @@ -142,37 +157,18 @@ export const ApplyFormComponent = props => {
Cancel
</Button>
<Button type="submit" style={{ width: '154px' }}>
Submit
{networkId === 1 ? 'Submit' : 'Send test email'}
</Button>
</p>

{/*
We are not going to compare networkId to MAINNET_NETWORK_ID constant.
The former is a number and the later is a string. Fortunately, mainnet ID is 1 and will always be 1
*/}
{networkId === 1 ? (
{networkId === 1 && (
<p className="pui-input-hint">
When you click submit, an email which contains the information entered
on that screen will be sent to the Advisory firm(s) you have selected.
None of this information is stored on Polymath servers, only your
browser&apos;s cache. To clear this information, simply clear your
browser&apos;s cache.
</p>
) : (
<p className="pui-input-hint">
<strong>
<em>
You are using Token Studio in a testnet environment. When you
click submit, an email WILL NOT be sent to the providers you have
selected. To send an email to the selected providers, please log
into Token Studio with mainnet.
<br />
None of this information is stored on Polymath servers, only your
browser&apos;s cache. To clear this information, simply clear your
browser&apos;s cache.
</em>
</strong>
</p>
)}
<br />
</Form>
Expand Down
44 changes: 43 additions & 1 deletion packages/polymath-issuer/src/pages/providers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const providers: Array<ServiceProvider> = [
'and communications while our Corporate team focuses on the interaction with our technology ecosystem.',
},
{
id: 23,
id: 58,
cat: 0,
title: 'Chain Partners',
logo: '/providers/advisory/chain-par.png',
Expand Down Expand Up @@ -262,6 +262,21 @@ const providers: Array<ServiceProvider> = [
investing in the U.S., Latin America, Africa, and the Caribbean, Logos Capital is based in Miami, FL and comprised of \
personnel from around the world.',
},
{
id: 56,
cat: 0,
title: 'Bitcoin Suisse AG',
logo: '/providers/advisory/bitcoin-suisse.png',
background: '/providers/advisory/bg/img-bitcoin-suisse.png',
desc:
"Founded in 2013, Bitcoin Suisse AG (BTCS) has been a pioneer in providing crypto-financial services. \
It has helped to shape the crypto- and blockchain-ecosystem in Switzerland and has been a driving force \
in the development of the 'Crypto Valley' and 'Crypto Nation Switzerland'. As a regulated Swiss financial \
intermediary (SRO – VQF member) since 2014, BTCS has become a market leader in prime brokerage, storage, \
lending, staking, tokenization, and other crypto-financial services catered to the needs of private, institutional, \
and corporate clients. BTCS built a team of over 110 highly qualified experts at its locations in Zug, Copenhagen, \
and Liechtenstein.",
},

// LEGAL
{
Expand Down Expand Up @@ -453,6 +468,20 @@ const providers: Array<ServiceProvider> = [
managers as well as for exchanges, trading facilities, trade repositories, representative \
offices or applications to self-regulatory organizations for anti-money laundering compliance.',
},
{
id: 59,
cat: 1,
title: 'Nellis & Katz LLP',
logo: '/providers/legal/nelliskatz.png',
background: '/providers/legal/bg/img-nelliskatz.png',
desc:
'Nellis & Katz LLP is a team of Wall Street trained lawyers with years of experience. \
Our passion is helping clients build better businesses. As seasoned securities lawyers, we work \
alongside our clients in helping them achieve their fundraising and business goals. As an evolving practice, \
we advise our clients in respect of both traditional and innovative fundraising platforms, which has led to the \
establishment of our blockchain and digital securities practice. Our knowledge of securities law and deep engagement \
with new technology positions us to be a valued provider to issuers and platforms for digital securities.',
},

// KYC/AML
{
Expand Down Expand Up @@ -729,6 +758,19 @@ const providers: Array<ServiceProvider> = [
maximum user-friendliness with the highest security levels available in the market. \
\nFinoa is aiming to become a regulated custodial institution starting in 2020.',
},
{
id: 57,
cat: 4,
title: 'Koine',
logo: '/providers/custody/koine.png',
background: '/providers/custody/bg/img-koine.png',
desc:
"Headquartered in London, Koine is regulated by the FCA exclusively as a payment institution for the issuance of electronic money. \
Koine's offer also includes custody, distribution and DVP settlement of digital assets and FIAT to institutional investors, brokers \
and non-security token issuers. Following the best practices of traditional custodians and thanks to a blend of ground-up architecture, \
governance, team and systems, Koine model eliminates settlement and counterparty risks by enforcing DVP, responding to the needs of the \
institutional world.",
},

// TOKEN SALE PLATFORMS
{
Expand Down
5 changes: 3 additions & 2 deletions packages/polymath-issuer/src/pages/providers/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.tag-my-own {
background-color: #5596e6 !important;
margin-top: 5px;
}

.providers-controls {
Expand Down Expand Up @@ -125,7 +126,6 @@

.bx--tabs__nav-link {
padding: 16px 24px 36px 24px;
width: 200px;
font-size: 16px;
font-weight: 600;
color: #5a6872;
Expand All @@ -135,8 +135,9 @@
}

div {
display: inline-flex;
display: flex;
align-items: center;
flex-direction: column;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable jsx-a11y/label-has-for */

import React, { Component, Fragment } from 'react';
import { Button, Icon } from 'carbon-components-react';
import { Button, Icon, InlineNotification } from 'carbon-components-react';
import {
Box,
Grid,
Expand Down Expand Up @@ -41,6 +41,24 @@ export default class STOTemplateComponent extends Component<Props> {
<Paragraph>{stoModule.description}</Paragraph>
</LabeledItem>
);
const investorsNote = (
<InlineNotification
hideCloseButton
title={
<p>
Please make note to your investors that they may need to{' '}
<a href="https://metamask.zendesk.com/hc/en-us/articles/360015488771-How-to-Adjust-Gas-Price-and-Gas-Limit-">
adjust the gas limit in metamask
</a>{' '}
to 450,000 in order to successfully participate in your STO. If gas
limit of 450,000 does not work, please ask them to increase the
limit slightly by 150,000 until the transaction goes through.
</p>
}
subtitle=""
kind="warning"
/>
);
const verifiedOnEtherscan = (
<LabeledItem>
<LabeledItem.Label>Verified on Etherscan</LabeledItem.Label>
Expand Down Expand Up @@ -99,6 +117,7 @@ export default class STOTemplateComponent extends Component<Props> {
<Grid.Col gridSpan={[12, 8]}>
{authorAddress}
{desc}
{investorsNote}
</Grid.Col>
<Grid.Col gridColumn={['1 / 13', '9 / span 4', '10 / span 3']}>
{verifiedOnEtherscan}
Expand Down
9 changes: 6 additions & 3 deletions packages/polymath-js/src/contracts/Contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,12 @@ export default class Contract {
};

try {
receipt = await method.send(params);
const { transactionHash } = receipt;
Contract._params.txHashCallback(transactionHash);
receipt = await method.send(params, (error, hash) => {
if (!error) {
txHash = hash;
Contract._params.txHashCallback(hash);
}
});
} catch (e) {
if (e.message.includes('not mined within 50 blocks')) {
return new Promise(resolve => {
Expand Down
2 changes: 1 addition & 1 deletion packages/polymath-js/src/contracts/CountTransferManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export default class CountTransferManager extends Contract {
}

async changeHolderCount(count: number): Promise<Web3Receipt> {
return this._tx(this._methods.changeHolderCount(count));
return this._tx(this._methods.changeHolderCount(count), null, 1.5, 15);
}
}
4 changes: 2 additions & 2 deletions packages/polymath-js/src/contracts/SecurityTokenRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class SecurityTokenRegistry extends Contract {
token.isDivisible
),
null,
1.05,
1.5,
15
);
}
Expand All @@ -251,7 +251,7 @@ class SecurityTokenRegistry extends Contract {
0 // if _protocolVersion == 0 then latest version of securityToken will be generated
),
null,
1.05,
1.5,
15
);
}
Expand Down

0 comments on commit 269e2e3

Please sign in to comment.