Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@polkadot/api": "^7.2.1",
"@polkadot/util": "^8.2.2",
"@polkadot/util-crypto": "^8.2.2",
"@snowfork/snowbridge-types": "file:../types",
"@types/node": "^16.4.2",
"@types/yargs": "^17.0.2",
"bignumber.js": "^9.0.0",
Expand Down
2 changes: 0 additions & 2 deletions test/scripts/helpers/subscribeBeefyJustifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const { ApiPromise, WsProvider } = require('@polkadot/api');
const WebSocket = require('ws');
const { base58Decode, addressToEvm, secp256k1Expand, secp256k1Compress, decodeAddress, encodeAddress, ethereumEncode, blake2AsHex, keccakAsHex } = require("@polkadot/util-crypto");
const { hexToU8a, u8aToHex, u8aToU8a } = require("@polkadot/util");
let { bundle } = require("@snowfork/snowbridge-types");

const RELAY_CHAIN_RPC_ENDPOINT = 'ws://localhost:9944';
const RELAY_CHAIN_HTTP_RPC_ENDPOINT = 'http://localhost:30444';
Expand Down Expand Up @@ -196,7 +195,6 @@ async function getParaHeadData(paraHead) {
const parachainWsProvider = new WsProvider(PARACHAIN_RPC_ENDPOINT);
const parachainApi = await ApiPromise.create({
provider: parachainWsProvider,
typesBundle: bundle,
});

const truncatedHead = paraHead.toHuman().slice(0, 66);
Expand Down
2 changes: 0 additions & 2 deletions test/scripts/make-xcm-transfer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ApiPromise, WsProvider } from "@polkadot/api";
import { createType } from "@polkadot/types";
import { Keyring } from "@polkadot/api";
import { bundle } from "@snowfork/snowbridge-types";
import yargs from "yargs"

import type { MultiLocation } from "@polkadot/types/interfaces/xcm/types";
Expand Down Expand Up @@ -96,7 +95,6 @@ let main = async () => {

let api = await ApiPromise.create({
provider,
typesBundle: bundle as any,
});

const keyring = new Keyring({ type: "sr25519" });
Expand Down
2 changes: 0 additions & 2 deletions test/src/subclient/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
let { ApiPromise, WsProvider, Keyring } = require('@polkadot/api');
let { bundle } = require("@snowfork/snowbridge-types");
const { default: BigNumber } = require('bignumber.js');

class SubClient {
Expand All @@ -14,7 +13,6 @@ class SubClient {
const provider = new WsProvider(this.endpoint);
this.api = await ApiPromise.create({
provider,
typesBundle: bundle,
})

this.keyring = new Keyring({ type: 'sr25519' });
Expand Down
9 changes: 1 addition & 8 deletions test/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@
"@babel/runtime" "^7.16.7"
"@polkadot/util" "^8.2.2"

"@polkadot/[email protected]", "@polkadot/types@^7.2.1":
"@polkadot/[email protected]":
version "7.2.1"
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-7.2.1.tgz#b8b1d8a8c38fad979df00ff20e3724d52328edfb"
integrity sha512-9LDi13JjULcCMMRM8lHcQm/qlEoh+nebqBd1k3f1jbbLnhV0ddTFp1s/ldkbpeL4eXIIV2E3+uENfuTcDdEruQ==
Expand Down Expand Up @@ -688,13 +688,6 @@
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==

"@snowfork/snowbridge-types@file:../types":
version "0.2.7"
dependencies:
"@polkadot/api" "^7.2.1"
"@polkadot/keyring" "^8.2.2"
"@polkadot/types" "^7.2.1"

"@szmarczak/http-timer@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
Expand Down
5 changes: 4 additions & 1 deletion types/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Snowbridge Types

Type definitions for the Snowbridge parachain
_Note: This package is obsolete and is slated for removal._

Type definitions for the Snowbridge parachain.


## Development

Expand Down