Skip to content

Commit

Permalink
refactor: isHTTPSNodesOnly moved to NetworkApi constructor, deleted u…
Browse files Browse the repository at this point in the history
…nused code
  • Loading branch information
jackkru69 committed May 30, 2024
1 parent a04ce9d commit 11696bc
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 496 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/register/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default class Upload extends Command {

let acc:RegisteredAccount;
if (network === 'devnet') {
acc = await WalletApi.registerCertainChain(1);
acc = await WalletApi.registerCertainChain({ chain: 1 });
} else {
acc = await WalletApi.registerRandomChain(network);
acc = await WalletApi.registerRandomChain({ network });
}
ux.action.stop();

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/tasklist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class TaskList extends Command {
const { address } = config;
this.log(color.whiteBright(`Task list for ${address} account`));

const storageSc = await EvmApi.build(storageScAddress, chainNumber, abiJson.abi);
const storageSc = await EvmApi.build({ scAddress: storageScAddress, chain: chainNumber, abiJSON: abiJson.abi });

const tasksCount = await storageSc.scGet(
'storageTasksCount',
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class Upload extends Command {
} = config;

const dir = resolve(source);
const storageSc = await EvmApi.build(storageScAddress, 1, abiJson.abi);
const storageSc = await EvmApi.build({ scAddress: storageScAddress, chain: 1, abiJSON: abiJson.abi });
let taskId = await storageSc.scGet(
'taskIdByName',
[AddressApi.textAddressToEvmAddress(address), projectId],
Expand Down
190 changes: 13 additions & 177 deletions packages/tssdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,344 +7,180 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.35](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-05-15)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.34](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-02-28)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.33](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-01-22)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.32](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-01-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.31](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-01-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.30](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-01-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.29](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-12-06)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.28](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-11-04)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.27](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-11-01)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.26](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-10-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.25](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-10-16)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.24](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-09-20)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.23](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-09-12)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.22](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-08-17)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.21](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-06-11)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.20](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-05-26)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.19](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-26)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.18](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-21)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.17](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-20)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.16](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.15](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.14](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-19)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.13](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-18)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.12](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-13)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.11](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-04-03)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.10](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-03-01)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.9](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-01-26)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.8](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2023-01-15)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.7](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-12-22)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.6](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-12-21)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.15.5](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-22)


### Bug Fixes

* **tssdk:** exports fix ([3273bc3](https://github.com/thepower/power_hub/commit/3273bc391fc9b9b5a317d9dc6405e2960eb24372))




- **tssdk:** exports fix ([3273bc3](https://github.com/thepower/power_hub/commit/3273bc391fc9b9b5a317d9dc6405e2960eb24372))

## [1.15.4](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-22)


### Bug Fixes

* **tssdk, cli:** register account refactored ([40d35a0](https://github.com/thepower/power_hub/commit/40d35a0c54a232bc0de5e69e968338a2bdcc73e7))




- **tssdk, cli:** register account refactored ([40d35a0](https://github.com/thepower/power_hub/commit/40d35a0c54a232bc0de5e69e968338a2bdcc73e7))

## [1.15.3](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-22)


### Bug Fixes

* **cli, tssdk:** refactored account reg ([61dab0b](https://github.com/thepower/power_hub/commit/61dab0b0c825fae8daf9572df1705d8aa9c5a9a0))




- **cli, tssdk:** refactored account reg ([61dab0b](https://github.com/thepower/power_hub/commit/61dab0b0c825fae8daf9572df1705d8aa9c5a9a0))

## [1.15.2](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-10)


### Bug Fixes

* **cicd:** fix ([308d329](https://github.com/thepower/power_hub/commit/308d329b1ffee6031b5191d153b2c6ed92935ad2))
* **tssdk:** register random chain fix ([08df28f](https://github.com/thepower/power_hub/commit/08df28f75cd5906306a2e7dc5ddac806ad4848d4))
* **tssdk:** review fixes ([4902113](https://github.com/thepower/power_hub/commit/4902113057e682fcd18dbb489280dc785fbe820e))
* **tssdk:** ver up ([2fc12ed](https://github.com/thepower/power_hub/commit/2fc12ed789921cb6c4cac491b64f49852106aaf9))




- **cicd:** fix ([308d329](https://github.com/thepower/power_hub/commit/308d329b1ffee6031b5191d153b2c6ed92935ad2))
- **tssdk:** register random chain fix ([08df28f](https://github.com/thepower/power_hub/commit/08df28f75cd5906306a2e7dc5ddac806ad4848d4))
- **tssdk:** review fixes ([4902113](https://github.com/thepower/power_hub/commit/4902113057e682fcd18dbb489280dc785fbe820e))
- **tssdk:** ver up ([2fc12ed](https://github.com/thepower/power_hub/commit/2fc12ed789921cb6c4cac491b64f49852106aaf9))

# [1.15.0](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-08)


### Bug Fixes

* **cli:** review fixes ([734531b](https://github.com/thepower/power_hub/commit/734531be0eea85bfc480d080807ac10ac1fdbd70))

- **cli:** review fixes ([734531b](https://github.com/thepower/power_hub/commit/734531be0eea85bfc480d080807ac10ac1fdbd70))

### Features

* **cli:** register with random chain from network ([2ebcef4](https://github.com/thepower/power_hub/commit/2ebcef44ee943ef44620c59923956e4867bd7060))
* **tssdk:** register random chain ([143a0d9](https://github.com/thepower/power_hub/commit/143a0d928bf74d3da55a684516014ae2f9e8b919))




- **cli:** register with random chain from network ([2ebcef4](https://github.com/thepower/power_hub/commit/2ebcef44ee943ef44620c59923956e4867bd7060))
- **tssdk:** random chain ([143a0d9](https://github.com/thepower/power_hub/commit/143a0d928bf74d3da55a684516014ae2f9e8b919))

## [1.14.2](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-04)

**Note:** Version bump only for package @thepowereco/tssdk





## [1.14.1](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-04)


### Bug Fixes

* **cli:** register fix ([5297bd0](https://github.com/thepower/power_hub/commit/5297bd01b3c941377f3e2187eb269054388ff3df))




- **cli:** register fix ([5297bd0](https://github.com/thepower/power_hub/commit/5297bd01b3c941377f3e2187eb269054388ff3df))

# [1.14.0](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-03)


### Features

* **hub:** login page fixes ([306e3eb](https://github.com/thepower/power_hub/commit/306e3ebd2b4267ff757ac5cb2724b08952360e25))
* **send:** add send trx page ([06b2ee1](https://github.com/thepower/power_hub/commit/06b2ee14f89423aa183885526e56bc8229f245b1))




- **hub:** login page fixes ([306e3eb](https://github.com/thepower/power_hub/commit/306e3ebd2b4267ff757ac5cb2724b08952360e25))
- **send:** add send trx page ([06b2ee1](https://github.com/thepower/power_hub/commit/06b2ee14f89423aa183885526e56bc8229f245b1))

# [1.13.0](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2022-11-02)

Expand Down
2 changes: 1 addition & 1 deletion packages/tssdk/src/evm/examples/loadScNew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function testVm() {
const scAddress = 'AA100000001677721810';
const mapAddress = '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c';

const sc = await EvmApi.build(scAddress, 1, abiJson.abi);
const sc = await EvmApi.build({ scAddress, chain: 1, abiJSON: abiJson.abi });

const greeting = await sc.scGet('getGreeting', []);
console.log('getGreeting:', greeting);
Expand Down
Loading

0 comments on commit 11696bc

Please sign in to comment.