Skip to content

Commit

Permalink
Companion for dotflow-ink/#76 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo authored Sep 7, 2023
1 parent 39fdd5c commit 243ab8b
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 223 deletions.
3 changes: 0 additions & 3 deletions __tests__/crossChainRouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@ describe("TransactionRouter Cross-chain reserve transfer", () => {
);

await addChain(identityContract, alice, 1000, {
rpcUrls: [WS_ASSET_HUB_LOCAL],
accountType: AccountType.accountId32,
});

await addChain(identityContract, alice, 1836, {
rpcUrls: [WS_TRAPPIST_LOCAL],
accountType: AccountType.accountId32,
});

await addChain(identityContract, alice, 3000, {
rpcUrls: ["ws://127.0.0.1:9930"],
accountType: AccountType.accountId32,
});
});
Expand Down
2 changes: 0 additions & 2 deletions __tests__/teleport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ describe("TransactionRouter Cross-chain teleport", () => {
);

await addChain(identityContract, alice, 0, {
rpcUrls: [WS_ROROCO_LOCAL],
accountType: AccountType.accountId32,
});

await addChain(identityContract, alice, 1000, {
rpcUrls: [WS_ASSET_HUB_LOCAL],
accountType: AccountType.accountId32,
});
});
Expand Down
3 changes: 0 additions & 3 deletions __tests__/transferAsset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ describe("TransactionRouter e2e tests", () => {
// First lets add a chain and create an identity.

await addChain(identityContract, alice, 1836, {
rpcUrls: ["ws://127.0.0.1:9910"],
accountType: AccountType.accountId32,
});

Expand Down Expand Up @@ -100,7 +99,6 @@ describe("TransactionRouter e2e tests", () => {

// First lets add a chain.
await addChain(identityContract, alice, 0, {
rpcUrls: ["ws://127.0.0.1:9900"],
accountType: AccountType.accountId32,
});

Expand Down Expand Up @@ -184,7 +182,6 @@ describe("TransactionRouter e2e tests", () => {

// First lets add a chain.
await addChain(identityContract, alice, 1836, {
rpcUrls: ["ws://127.0.0.1:9920"],
accountType: AccountType.accountId32,
});

Expand Down
4 changes: 1 addition & 3 deletions types/build-extrinsic/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,14 @@ export default class Methods {
* updateChain
*
* @param { (number | string | BN) } chainId,
* @param { string | null } newRpcUrl,
* @param { ArgumentTypes.AccountType | null } newAddressType,
*/
"updateChain" (
chainId: (number | string | BN),
newRpcUrl: string | null,
newAddressType: ArgumentTypes.AccountType | null,
__options: GasLimit,
){
return buildSubmittableExtrinsic( this.__apiPromise, this.__nativeContract, "updateChain", [chainId, newRpcUrl, newAddressType], __options);
return buildSubmittableExtrinsic( this.__apiPromise, this.__nativeContract, "updateChain", [chainId, newAddressType], __options);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions types/contract-info/address_book.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions types/contract-info/identity.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 243ab8b

Please sign in to comment.