Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 6831e2b

Browse files
feat: 🎸 Add 7.3 env
ci-runtime image is used for chain which has 0.5s as block time
1 parent dabc4f6 commit 6831e2b

File tree

8 files changed

+24
-19
lines changed

8 files changed

+24
-19
lines changed

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ services:
3838
ARTEMIS_PASSWORD: artemis
3939
AMQ_EXTRA_ARGS: '--nio' # "aio" offers better performance, but less platforms support it
4040

41-
alice:
41+
bob:
4242
healthcheck:
4343
test: "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/9933' && exit 0 || exit 1"
4444
interval: 10s
@@ -55,7 +55,7 @@ services:
5555
volumes:
5656
- './docker/chain-entry.sh:/chain-entry.sh'
5757
entrypoint: '/chain-entry.sh'
58-
command: ['--alice --chain dev']
58+
command: ['--bob --chain dev']
5959

6060
subquery:
6161
image: ${SUBQUERY_INDEXER_IMAGE}
@@ -71,14 +71,14 @@ services:
7171
depends_on:
7272
postgres:
7373
condition: service_started
74-
alice:
74+
bob:
7575
condition: service_healthy
7676
ports:
7777
- 3002:3000
7878
environment:
7979
START_BLOCK: 1
80-
NETWORK_ENDPOINT: ws://alice:9944
81-
NETWORK_HTTP_ENDPOINT: http://alice:9933
80+
NETWORK_ENDPOINT: ws://bob:9944
81+
NETWORK_HTTP_ENDPOINT: http://bob:9933
8282
DB_USER: '${PG_USER:-postgres}'
8383
DB_PASS: '${PG_PASSWORD:-postgres}'
8484
DB_DATABASE: '${PG_DB:-postgres}'
@@ -117,7 +117,7 @@ services:
117117
init: true
118118
restart: unless-stopped
119119
depends_on:
120-
alice:
120+
bob:
121121
condition: service_started
122122
vault:
123123
condition: service_started
@@ -130,7 +130,7 @@ services:
130130
ports:
131131
- ${REST_PORT:-3004}:3000
132132
environment:
133-
POLYMESH_NODE_URL: 'ws://alice:9944'
133+
POLYMESH_NODE_URL: 'ws://bob:9944'
134134
POLYMESH_MIDDLEWARE_V2_URL: 'http://graphql:3000'
135135
VAULT_URL: 'http://vault:8200/v1/transit'
136136
VAULT_TOKEN: 'root'

envs/7.3.0.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CHAIN_IMAGE=polymeshassociation/polymesh-ci:latest-ci-runtime-docker-image-debian
2+
SUBQUERY_INDEXER_IMAGE=polymeshassociation/polymesh-subquery:v18.0.2
3+
4+
SUBQUERY_QUERY_IMAGE=onfinality/subql-query:v2.11.0
5+
REST_IMAGE=polymeshassociation/polymesh-rest-api:v7.0.0

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SCRIPT_DIR=$(dirname "$0")
77
IMAGE_REPO=polymeshassociation/polymesh
88

99
# Chain version to test
10-
VERSION='7.0.0'
10+
VERSION='7.3.0'
1111

1212
# service manifest
1313
ENV_FILE="$SCRIPT_DIR/../envs/$VERSION.env"

src/consts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const prefixedDidLength = 66; // 64 bytes + 2 for `0x`
22

33
export const wellKnown = {
4-
alice: {
5-
did: '0x01'.padEnd(prefixedDidLength, '0'),
6-
mnemonic: '//Alice',
4+
bob: {
5+
did: '0x04'.padEnd(prefixedDidLength, '0'),
6+
mnemonic: '//Bob',
77
},
88
} as const;
99

src/sdk/assets/manageDistributions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const manageDistributions = async (
2323
const signingIdentity = await sdk.getSigningIdentity();
2424
assert(signingIdentity);
2525

26-
const alice = await sdk.identities.getIdentity({ did: wellKnown.alice.did });
26+
const bob = await sdk.identities.getIdentity({ did: wellKnown.bob.did });
2727

2828
// The signing identity should be an agent of the Asset and have appropriate permission
2929
const asset = await sdk.assets.getFungibleAsset({ ticker });
@@ -58,7 +58,7 @@ export const manageDistributions = async (
5858
// (optional) individuals can be excluded from distributions
5959
targets: {
6060
// identities can be specified with an Identity object or DID string
61-
identities: [alice, '0x0200000000000000000000000000000000000000000000000000000000000000'],
61+
identities: [bob, '0x0200000000000000000000000000000000000000000000000000000000000000'],
6262
treatment: TargetTreatment.Exclude,
6363
},
6464
// (optional) individual holders can be targeted with a different rate

src/sdk/connect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const { nodeUrl } = env;
88
let sdk: Polymesh;
99

1010
/**
11-
* This function shows how to create a Polymesh SDK instance configured with `//Alice` as the default signing key
11+
* This function shows how to create a Polymesh SDK instance configured with `//Bob` as the default signing key
1212
*/
1313
export async function getPolymeshSdk(): Promise<Polymesh> {
1414
// Note, different signing managers can be found [here](https://github.com/PolymeshAssociation/signing-managers#projects)
1515
const signingManager = await LocalSigningManager.create({
16-
accounts: [{ uri: '//Alice' }],
16+
accounts: [{ uri: '//Bob' }],
1717
});
1818

1919
if (!sdk) {

src/sdk/settlements/manageTrustedClaimIssuers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export const manageTrustedClaimIssuers = async (
3535
await addClaimIssuerTx.run();
3636
assert(addClaimIssuerTx.isSuccess);
3737

38-
// Make Alice the only trusted issuer for certain claims
38+
// Make Bob the only trusted issuer for certain claims
3939
const setTrustedClaimIssuersTx = await compliance.trustedClaimIssuers.set({
4040
claimIssuers: [
4141
{
42-
identity: wellKnown.alice.did,
42+
identity: wellKnown.bob.did,
4343
trustedFor: [ClaimType.Accredited, ClaimType.Affiliate],
4444
},
4545
],
@@ -52,7 +52,7 @@ export const manageTrustedClaimIssuers = async (
5252

5353
// Remove a trusted issuers. Identities no longer compliant will be able to send, but not receive the Asset
5454
const removeClaimIssuerTx = await compliance.trustedClaimIssuers.remove({
55-
claimIssuers: [wellKnown.alice.did],
55+
claimIssuers: [wellKnown.bob.did],
5656
});
5757
await removeClaimIssuerTx.run();
5858
assert(removeClaimIssuerTx.isSuccess);

src/sdk/settlements/transferRestrictions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const transferRestrictions = async (sdk: Polymesh, asset: FungibleAsset):
7373
// Create a restriction to limit the Asset to have at most 10 holders
7474
const addCountRestrictionTx = await asset.transferRestrictions.count.addRestriction({
7575
count: new BigNumber(10),
76-
exemptedIdentities: [wellKnown.alice.did, identity],
76+
exemptedIdentities: [wellKnown.bob.did, identity],
7777
});
7878
await addCountRestrictionTx.run();
7979
assert(addCountRestrictionTx.isSuccess);

0 commit comments

Comments
 (0)