parent
f5918abb65
commit
820fc46b64
11
package.json
11
package.json
@ -26,8 +26,7 @@
|
||||
"@polkadot/wasm-crypto": "^4.1.2",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"styled-components": "^5.2.0",
|
||||
"typescript": "^4.3.5",
|
||||
"webpack": "5.41.1"
|
||||
"typescript": "^4.3.5"
|
||||
},
|
||||
"scripts": {
|
||||
"analyze": "yarn clean && BUILD_ANALYZE=1 yarn run build:code && yarn source-map-explorer packages/apps/build/main.*.js",
|
||||
@ -74,12 +73,12 @@
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@crustio/crust-pin": "^0.0.1",
|
||||
"@pinata/sdk": "^1.1.23",
|
||||
"@polkadot/dev": "^0.62.59",
|
||||
"@polkadot/dev": "^0.62.60",
|
||||
"@polkadot/ts": "^0.4.4",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"@types/chart.js": "^2.9.34",
|
||||
"@types/file-saver": "^2.0.3",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/react-beautiful-dnd": "^13.1.1",
|
||||
"@types/react-copy-to-clipboard": "^5.0.1",
|
||||
"@types/react-dom": "^17.0.9",
|
||||
@ -102,8 +101,8 @@
|
||||
"stylelint": "^13.13.1",
|
||||
"stylelint-config-recommended": "^5.0.0",
|
||||
"stylelint-config-styled-components": "^0.1.1",
|
||||
"webpack": "^5.42.0",
|
||||
"webpack-cli": "^4.7.2"
|
||||
"webpack": "^5.50.0",
|
||||
"webpack-cli": "^4.8.0"
|
||||
},
|
||||
"packageManager": "yarn@3.0.1"
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
"@bifrost-finance/type-definitions": "1.2.8",
|
||||
"@crustio/type-definitions": "0.0.10",
|
||||
"@darwinia/types": "1.1.6",
|
||||
"@digitalnative/type-definitions": "1.1.10",
|
||||
"@digitalnative/type-definitions": "1.1.11",
|
||||
"@docknetwork/node-types": "0.4.7",
|
||||
"@edgeware/node-types": "3.6.2-wako",
|
||||
"@equilab/definitions": "1.3.1",
|
||||
|
||||
@ -90,13 +90,6 @@ export function createTesting (t: TFunction, firstOnly?: boolean): LinkOption[]
|
||||
'DCloud Foundation': 'wss://api.decloudf.com/'
|
||||
}
|
||||
},
|
||||
// {
|
||||
// info: 'rocky',
|
||||
// text: t('rpc.test.crust.network', 'Crust Rocky', { ns: 'apps-config' }),
|
||||
// providers: {
|
||||
// Pinknode: 'wss://rpc.pinknode.io/rocky/explorer' // https://github.com/polkadot-js/apps/issues/5721
|
||||
// }
|
||||
// },
|
||||
{
|
||||
info: 'datahighway',
|
||||
isDisabled: true,
|
||||
@ -309,7 +302,7 @@ export function createTesting (t: TFunction, firstOnly?: boolean): LinkOption[]
|
||||
},
|
||||
{
|
||||
info: 'origintrail-parachain-testnet',
|
||||
text: t('rpc.origintrail', 'OriginTrail Parachain Testnet', { ns: 'apps-config' }),
|
||||
text: t('rpc.test.origintrail', 'OriginTrail Parachain Testnet', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Trace Labs': 'wss://parachain-rpc.origin-trail.network'
|
||||
}
|
||||
|
||||
@ -305,7 +305,7 @@ export function createRococo (t: TFunction): EndpointOption {
|
||||
{
|
||||
info: 'rococoOriginTrail',
|
||||
paraId: 2037,
|
||||
text: t('rpc.origintrail', 'OriginTrail Parachain', { ns: 'apps-config' }),
|
||||
text: t('rpc.rococo.origintrail', 'OriginTrail Parachain', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Trace Labs': 'wss://polkadot-js-second.origin-trail.network'
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ export function expandEndpoint (t: TFunction, { dnslink, genesisHash, homepage,
|
||||
isRelay: false,
|
||||
textBy: value.startsWith('light://')
|
||||
? t('lightclient.experimental', 'light client (experimental)', { ns: 'apps-config' })
|
||||
: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host } }),
|
||||
: t('rpc.hosted.via', 'via {{host}}', { ns: 'apps-config', replace: { host } }),
|
||||
value
|
||||
}));
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.62.59",
|
||||
"@polkadot/dev": "^0.62.60",
|
||||
"@polkadot/react-components": "^0.95.2-15",
|
||||
"electron-log": "^4.3.5",
|
||||
"electron-updater": "^4.3.10"
|
||||
@ -21,6 +21,6 @@
|
||||
"react-dom": "^17.0.2",
|
||||
"thread-loader": "^3.0.4",
|
||||
"tmp": "^0.2.1",
|
||||
"webpack": "^5.42.0"
|
||||
"webpack": "^5.50.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/apps-config": "^0.95.2-15",
|
||||
"@polkadot/apps-routing": "^0.95.2-15",
|
||||
"@polkadot/dev": "^0.62.59",
|
||||
"@polkadot/dev": "^0.62.60",
|
||||
"@polkadot/react-api": "^0.95.2-15",
|
||||
"@polkadot/react-components": "^0.95.2-15",
|
||||
"@polkadot/react-hooks": "^0.95.2-15",
|
||||
@ -39,9 +39,9 @@
|
||||
"process": "^0.11.10",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.42.0",
|
||||
"webpack-cli": "^4.7.2",
|
||||
"webpack-dev-server": "^4.0.0-beta.3",
|
||||
"webpack": "^5.50.0",
|
||||
"webpack-cli": "^4.8.0",
|
||||
"webpack-dev-server": "^4.0.0-rc.0",
|
||||
"webpack-merge": "^5.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,7 +13,8 @@
|
||||
"rpc.header.rococo.relay": "Test Rococo & parachains",
|
||||
"rpc.header.test": "Test networks",
|
||||
"rpc.header.westend.relay": "Test Westend & parachains",
|
||||
"rpc.hosted.by": "via {{host}}",
|
||||
"rpc.hosted.by": "hosted by {{host}}",
|
||||
"rpc.hosted.via": "via {{host}}",
|
||||
"rpc.kusama.altair": "Altair",
|
||||
"rpc.kusama.basilisk": "Basilisk",
|
||||
"rpc.kusama.bifrost": "Bifrost",
|
||||
@ -85,7 +86,7 @@
|
||||
"rpc.rococo.hydrate": "Hydrate",
|
||||
"rpc.rococo.idavoll": "Idavoll",
|
||||
"rpc.rococo.integritee": "Integritee PC1",
|
||||
"rpc.rococo.interbtc": "InterBTC",
|
||||
"rpc.rococo.interbtc": "InterBTC PC1",
|
||||
"rpc.rococo.jupiter": "Patract Jupiter PC1",
|
||||
"rpc.rococo.kilt": "KILT PC1",
|
||||
"rpc.rococo.konomi": "Komomi Network",
|
||||
@ -93,6 +94,7 @@
|
||||
"rpc.rococo.manta": "Manta PC1",
|
||||
"rpc.rococo.mathchain": "MathChain PC1",
|
||||
"rpc.rococo.moonrock": "Moonrock",
|
||||
"rpc.rococo.origintrail": "OriginTrail Parachain",
|
||||
"rpc.rococo.parami": "Parami PC2",
|
||||
"rpc.rococo.phala": "Phala PC1",
|
||||
"rpc.rococo.phoenix": "PHOENIX PC1",
|
||||
@ -114,7 +116,7 @@
|
||||
"rpc.test.aleph": "Aleph Zero",
|
||||
"rpc.test.amber": "Amber",
|
||||
"rpc.test.beresheet": "Beresheet",
|
||||
"rpc.test.bifrost": "Bifrost Asgard",
|
||||
"rpc.test.bifrost": "Bifrost",
|
||||
"rpc.test.bitcountry": "Bit.Country Tewai",
|
||||
"rpc.test.canvas": "Canvas",
|
||||
"rpc.test.clover.finance": "Clover",
|
||||
@ -145,8 +147,9 @@
|
||||
"rpc.test.nodle-arcadia": "Arcadia",
|
||||
"rpc.test.oak": "OAK Testnet",
|
||||
"rpc.test.opportunity": "Opportunity",
|
||||
"rpc.test.origintrail": "OriginTrail Parachain Testnet",
|
||||
"rpc.test.pangolin": "Pangolin",
|
||||
"rpc.test.phala": "Phala PoC-4",
|
||||
"rpc.test.phala": "Chala (Para1)",
|
||||
"rpc.test.phoenix": "Phoenix Mashnet",
|
||||
"rpc.test.polkadex": "Polkadex",
|
||||
"rpc.test.polymesh": "Polymesh ITN",
|
||||
@ -164,7 +167,7 @@
|
||||
"rpc.test.unitv": "Unit Network",
|
||||
"rpc.test.vodka": "Vodka",
|
||||
"rpc.test.web3games": "Web3Games",
|
||||
"rpc.test.zCloak": "zCloack",
|
||||
"rpc.test.zCloak": "zCloak-network",
|
||||
"rpc.test.zeitgeist": "Zeitgeist Battery Park",
|
||||
"rpc.test.zero": "Zero",
|
||||
"rpc.westend": "Westend",
|
||||
@ -174,7 +177,6 @@
|
||||
"rpc.westend.kilt": "WILT",
|
||||
"rpc.westend.moonshadow": "Moonshadow",
|
||||
"rpc.westend.shell": "Westmint",
|
||||
"rpc.westend.shibuya": "Shibuya",
|
||||
"rpc.westend.wendala": "Wendala",
|
||||
"rpc.westend.whala": "Whala",
|
||||
"ss58.default": "Default for the connected node",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/phishing": "^0.6.257",
|
||||
"@polkadot/phishing": "^0.6.261",
|
||||
"@polkadot/react-components": "^0.95.2-15",
|
||||
"@polkadot/vanitygen": "^0.45.1",
|
||||
"detect-browser": "^5.2.0",
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/react": "^11.2.7",
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"testcontainers": "^7.19.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"version": "0.95.2-15",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@testing-library/react": "^11.2.7",
|
||||
"@testing-library/react": "^12.0.0",
|
||||
"testcontainers": "^7.19.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -4,14 +4,7 @@
|
||||
import { createApi } from '@polkadot/test-support/api';
|
||||
import { aliceSigner } from '@polkadot/test-support/keyring';
|
||||
|
||||
import { multiAcceptCurator,
|
||||
multiApproveBounty,
|
||||
multiAwardBounty,
|
||||
multiClaimBounty,
|
||||
multiProposeBounty,
|
||||
multiProposeCurator,
|
||||
multiWaitForBountyFunded,
|
||||
multiWaitForClaim } from './lib/multiFunctions';
|
||||
import { multiAcceptCurator, multiApproveBounty, multiAwardBounty, multiClaimBounty, multiProposeBounty, multiProposeCurator, multiWaitForBountyFunded, multiWaitForClaim } from './lib/multiFunctions';
|
||||
|
||||
(async () => {
|
||||
const api = await createApi(9944);
|
||||
|
||||
@ -9,12 +9,7 @@ import { execute } from '@polkadot/test-support/transaction';
|
||||
|
||||
import { waitForBountyState, waitForClaim } from './bountyWaitFunctions';
|
||||
import { FUNDING_TIME, PAYOUT_TIME } from './constants';
|
||||
import { extractHashesFromProposals,
|
||||
extractIndexesFromProposals,
|
||||
fillTreasury,
|
||||
multiAcceptMotion,
|
||||
multiGetMotion,
|
||||
multiProposeMotion } from './helpers';
|
||||
import { extractHashesFromProposals, extractIndexesFromProposals, fillTreasury, multiAcceptMotion, multiGetMotion, multiProposeMotion } from './helpers';
|
||||
|
||||
export async function multiProposeBounty (api: ApiPromise, numberOfBounties: number, signer: KeyringPair): Promise<number[]> {
|
||||
const initialIndex = await api.query.bounties.bountyCount();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user