Skip to content

Commit

Permalink
Update to include launchpad-crowdsales types
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 11, 2022
1 parent cd9ec04 commit 4f4095e
Show file tree
Hide file tree
Showing 21 changed files with 367 additions and 80 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Changes:

- Update

## 3.2.0 (3.x - 3.2.0) Mar 3, 2021
## 3.2.0 (3.x - 3.2.0) Mar 3, 2022

Changes: **Full Changelog**: https://github.com/setheum-js/setheum.js/compare/v2.1.0...v3.2.0

Expand All @@ -33,17 +33,25 @@ Changes: **Full Changelog**: https://github.com/setheum-js/setheum.js/compare/v2
- Update polkadot-js to v7.1.1
- Update to setheum v1.0.0 spec

## 3.3.0 Mar 16, 2021
## 3.3.0 Mar 16, 2022

Changes: **Full Changelog**: https://github.com/setheum-js/setheum.js/compare/v3.2.0...v3.3.0

- Update latest Setheum types
- Update to setheum v1.0.0 spec

## 3.3.1 Mar 17, 2021
## 3.3.1 Mar 17, 2022

Changes: **Full Changelog**: https://github.com/setheum-js/setheum.js/compare/v3.3.0...v3.3.1

- Update latest chain types
- Update chain metadata
- Update to the latest setheum v1.0.0 spec

## 3.3.10 April 11, 2022

Changes: **Full Changelog**: https://github.com/setheum-js/setheum.js/compare/v3.3.0...v3.3.1

- Update latest chain types (for `launchpad-crowdsales`)
- Update chain metadata (for `launchpad-crowdsales`)
- Update to the latest setheum v1.0.0 `launchpad-crowdsales` spec (for `launchpad-crowdsales`)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"HuangLeiWan. <[email protected]>"
],
"license": "Apache-2",
"version": "3.3.1",
"version": "3.3.10",
"private": true,
"engines": {
"yarn": "^1.22.10"
Expand Down
4 changes: 2 additions & 2 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/api-derive",
"version": "3.3.1",
"version": "3.3.10",
"description": "Additional polkadot.js derives for Setheum Network",
"main": "index.js",
"author": "Setheum Labs",
Expand All @@ -15,7 +15,7 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum.js/types": "3.3.1",
"@setheum.js/types": "3.3.10",
"@babel/runtime": "^7.10.2",
"@open-web3/orml-types": "^1.0.2-0",
"@polkadot/api-derive": "^7.1.1"
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/api",
"version": "3.3.1",
"version": "3.3.10",
"description": "Setheum JS API",
"main": "index.js",
"author": "Setheum Developers",
Expand All @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum.js/api-derive": "3.3.1",
"@setheum.js/types": "3.3.1",
"@setheum.js/api-derive": "3.3.10",
"@setheum.js/types": "3.3.10",
"@babel/runtime": "^7.10.2",
"@open-web3/orml-api-derive": "^1.0.2-0",
"@polkadot/api": "^7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/app-util",
"version": "3.3.1",
"version": "3.3.10",
"description": "Utilities to work with Setheum Network",
"author": "Setheum Labs",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/sdk-core",
"version": "3.3.1",
"version": "3.3.10",
"description": "The core of the Setheum Network SDK in Javascript",
"main": "index.js",
"author": "Setheum Labs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-loan/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/sdk-loan",
"version": "3.3.1",
"version": "3.3.10",
"description": "the loan sub module in Setheum Network sdk",
"main": "index.js",
"author": "Setheum Labs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/sdk-swap",
"version": "3.3.1",
"version": "3.3.10",
"description": "The swap (DEX - SetSwap) sub module in SetheumJS SDK",
"main": "index.js",
"author": "Setheum Labs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/sdk-wallet",
"version": "3.3.1",
"version": "3.3.10",
"description": "The Setheum wallet JS SDK for Setheum Network",
"main": "index.js",
"author": "Setgheum Labs",
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/sdk",
"version": "3.3.1",
"version": "3.3.10",
"description": "Setheum JS SDK - Setheum SDK for JavaScript",
"main": "index.js",
"author": "Setheum Developers",
Expand All @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum.js/api": "3.3.1",
"@setheum.js/type-definitions": "3.3.1",
"@setheum.js/api": "3.3.10",
"@setheum.js/type-definitions": "3.3.10",
"@polkadot/api": "^7.1.1",
"@polkadot/types": "^7.1.1",
"@types/events": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@setheum.js/type-definitions",
"version": "3.3.1",
"version": "3.3.10",
"description": "Polkadot.js type definations for Setheum Network",
"main": "index.js",
"author": "Setheum Labs",
Expand Down
29 changes: 28 additions & 1 deletion packages/type-definitions/src/json/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,35 @@
"ERC20": "EvmAddress"
}
},
"TradingPair": "(CurrencyId, CurrencyId)",
"CurrencyIdOf": "CurrencyId",
"CampaignId": "u32",
"CampaignIdOf": "CampaignId",
"CampaignInfo": {
"origin": "AccountId",
"beneficiary": "AccountId",
"raiseCurrency": "CurrencyId",
"saleToken": "CurrencyId",
"crowdAllocation": "Balance",
"goal": "Balance",
"raised": "Balance",
"contributorsCount": "u32",
"contributions": "BTreeMap<AccountId, (Balance, Balance, bool)>",
"period": "BlockNumber",
"campaignStart": "BlockNumber",
"campaignEnd": "BlockNumber",
"campaignRetirementPeriod": "BlockNumber",
"proposalRetirementPeriod": "BlockNumber",
"isApproved": "bool",
"isRejected": "bool",
"isWaiting": "bool",
"isActive": "bool",
"isSuccessful": "bool",
"isFailed": "bool",
"isEnded": "bool",
"isClaimed": "bool"
},
"CampaignInfoOf": "CampaignInfo",
"TradingPair": "(CurrencyId, CurrencyId)",
"TokenSymbol": {
"_enum": {
"SETM": 0,
Expand Down
Loading

0 comments on commit 4f4095e

Please sign in to comment.