Skip to content

Commit

Permalink
wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 21, 2024
1 parent c6927d5 commit a19dc7b
Show file tree
Hide file tree
Showing 46 changed files with 90 additions and 111 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## master

- wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.4.1
- phishing 0.23.7
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 14.0.1
- phishing 0.23.6
Expand Down
2 changes: 1 addition & 1 deletion wasm-bridge/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import type { BridgeBase, InitFn, InitPromise, WasmBaseInstance, WasmImports } from './types.ts';

import { stringToU8a, u8aToString } from 'https://deno.land/x/polkadot@0.2.45/util/mod.ts';
import { stringToU8a, u8aToString } from 'https://deno.land/x/polkadot/util/mod.ts';

import { Wbg } from './wbg.ts';

Expand Down
2 changes: 0 additions & 2 deletions wasm-bridge/detectOther.ts

This file was deleted.

8 changes: 0 additions & 8 deletions wasm-bridge/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion wasm-bridge/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import './detectPackage.ts';
import './packageDetect.ts';

export * from './bundle.ts';
7 changes: 7 additions & 0 deletions wasm-bridge/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';

import { packageInfo } from './packageInfo.ts';

detectPackage(packageInfo, null, []);
2 changes: 1 addition & 1 deletion wasm-bridge/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


export const packageInfo = { name: '@polkadot/wasm-bridge', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.45' };
export const packageInfo = { name: '@polkadot/wasm-bridge', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.4.1' };
2 changes: 1 addition & 1 deletion wasm-bridge/wbg.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import type { BridgeBase, WasmBaseInstance } from './types.ts';

import { getRandomValues } from 'https://deno.land/x/polkadot@0.2.45/x-randomvalues/mod.ts';
import { getRandomValues } from 'https://deno.land/x/polkadot/x-randomvalues/mod.ts';

const DEFAULT_CRYPTO = { getRandomValues };
const DEFAULT_SELF = { crypto: DEFAULT_CRYPTO };
Expand Down
2 changes: 0 additions & 2 deletions wasm-crypto-asmjs/detectOther.ts

This file was deleted.

8 changes: 0 additions & 8 deletions wasm-crypto-asmjs/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion wasm-crypto-asmjs/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import './detectPackage.ts';
import './packageDetect.ts';

export * from './bundle.ts';
7 changes: 7 additions & 0 deletions wasm-crypto-asmjs/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';

import { packageInfo } from './packageInfo.ts';

detectPackage(packageInfo, null, []);
2 changes: 1 addition & 1 deletion wasm-crypto-asmjs/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


export const packageInfo = { name: '@polkadot/wasm-crypto-asmjs', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.45' };
export const packageInfo = { name: '@polkadot/wasm-crypto-asmjs', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.4.1' };
6 changes: 3 additions & 3 deletions wasm-crypto-init/asm.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import type { InitFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/types.ts';
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
import type { WasmCryptoInstance } from './types.ts';

import { createWasmFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/mod.ts';
import { asmJsInit } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-asmjs/mod.ts';
import { createWasmFn } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';
import { asmJsInit } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/mod.ts';

export { packageInfo } from './packageInfo.ts';

Expand Down
8 changes: 4 additions & 4 deletions wasm-crypto-init/both.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

import type { InitFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/types.ts';
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
import type { WasmCryptoInstance } from './types.ts';

import { createWasmFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/mod.ts';
import { asmJsInit } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-asmjs/mod.ts';
import { wasmBytes } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-wasm/mod.ts';
import { createWasmFn } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';
import { asmJsInit } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/mod.ts';
import { wasmBytes } from 'https://deno.land/x/polkadot/wasm-crypto-wasm/mod.ts';

export { packageInfo } from './packageInfo.ts';

Expand Down
6 changes: 0 additions & 6 deletions wasm-crypto-init/detectOther.ts

This file was deleted.

8 changes: 0 additions & 8 deletions wasm-crypto-init/detectPackage.ts

This file was deleted.

4 changes: 2 additions & 2 deletions wasm-crypto-init/none.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import type { InitFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/types.ts';
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
import type { WasmCryptoInstance } from './types.ts';

import { createWasmFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/mod.ts';
import { createWasmFn } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';

export { packageInfo } from './packageInfo.ts';

Expand Down
10 changes: 10 additions & 0 deletions wasm-crypto-init/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
import { packageInfo as bridgeInfo } from 'https://deno.land/x/polkadot/wasm-bridge/packageInfo.ts';
import { packageInfo as asmInfo } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/packageInfo.ts';
import { packageInfo as wasmInfo } from 'https://deno.land/x/polkadot/wasm-crypto-wasm/packageInfo.ts';

import { packageInfo } from './packageInfo.ts';

detectPackage(packageInfo, null, [asmInfo, bridgeInfo, wasmInfo]);
2 changes: 1 addition & 1 deletion wasm-crypto-init/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


export const packageInfo = { name: '@polkadot/wasm-crypto-init', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.45' };
export const packageInfo = { name: '@polkadot/wasm-crypto-init', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.4.1' };
2 changes: 1 addition & 1 deletion wasm-crypto-init/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import type { WasmBaseInstance } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/types.ts';
import type { WasmBaseInstance } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';

/* eslint-disable camelcase */

Expand Down
6 changes: 3 additions & 3 deletions wasm-crypto-init/wasm.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import type { InitFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/types.ts';
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
import type { WasmCryptoInstance } from './types.ts';

import { createWasmFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/mod.ts';
import { wasmBytes } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-wasm/mod.ts';
import { createWasmFn } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';
import { wasmBytes } from 'https://deno.land/x/polkadot/wasm-crypto-wasm/mod.ts';

export { packageInfo } from './packageInfo.ts';

Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto-wasm/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { base64Decode, unzlibSync } from 'https://deno.land/x/polkadot@0.2.45/wasm-util/mod.ts';
import { base64Decode, unzlibSync } from 'https://deno.land/x/polkadot/wasm-util/mod.ts';

import { bytes, lenIn, lenOut } from './deno/bytes.js';

Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto-wasm/deno/bytes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions wasm-crypto-wasm/detectOther.ts

This file was deleted.

8 changes: 0 additions & 8 deletions wasm-crypto-wasm/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion wasm-crypto-wasm/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import './detectPackage.ts';
import './packageDetect.ts';

export * from './bundle.ts';
7 changes: 7 additions & 0 deletions wasm-crypto-wasm/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';

import { packageInfo } from './packageInfo.ts';

detectPackage(packageInfo, null, []);
2 changes: 1 addition & 1 deletion wasm-crypto-wasm/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


export const packageInfo = { name: '@polkadot/wasm-crypto-wasm', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.45' };
export const packageInfo = { name: '@polkadot/wasm-crypto-wasm', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.4.1' };
4 changes: 2 additions & 2 deletions wasm-crypto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Install the package (also requires `@polkadot/util` for `TextEncoder` polyfills
Use it -

```js
import { u8aToHex } from 'https://deno.land/x/polkadot@0.2.45/util/mod.ts';
import { bip39Generate, bip39ToSeed, waitReady } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto/mod.ts';
import { u8aToHex } from 'https://deno.land/x/polkadot/util/mod.ts';
import { bip39Generate, bip39ToSeed, waitReady } from 'https://deno.land/x/polkadot/wasm-crypto/mod.ts';

await waitReady();

Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import type { WasmCryptoInstance } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/types.ts';
import type { WasmCryptoInstance } from 'https://deno.land/x/polkadot/wasm-crypto-init/types.ts';

import { bridge, initBridge } from './init.ts';

Expand Down
8 changes: 0 additions & 8 deletions wasm-crypto/detectOther.ts

This file was deleted.

8 changes: 0 additions & 8 deletions wasm-crypto/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion wasm-crypto/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import './detectPackage.ts';
import './packageDetect.ts';

export * from './bundle.ts';
8 changes: 4 additions & 4 deletions wasm-crypto/init.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import type { InitFn } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/types.ts';
import type { WasmCryptoInstance } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/types.ts';
import type { InitFn } from 'https://deno.land/x/polkadot/wasm-bridge/types.ts';
import type { WasmCryptoInstance } from 'https://deno.land/x/polkadot/wasm-crypto-init/types.ts';

import { Bridge } from 'https://deno.land/x/polkadot@0.2.45/wasm-bridge/mod.ts';
import { createWasm } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/mod.ts';
import { Bridge } from 'https://deno.land/x/polkadot/wasm-bridge/mod.ts';
import { createWasm } from 'https://deno.land/x/polkadot/wasm-crypto-init/mod.ts';

/**
* @name bridge
Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto/initNone.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { createWasm } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/none.ts';
import { createWasm } from 'https://deno.land/x/polkadot/wasm-crypto-init/none.ts';

import { initBridge } from './init.ts';

Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto/initOnlyAsm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { createWasm } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/asm.ts';
import { createWasm } from 'https://deno.land/x/polkadot/wasm-crypto-init/asm.ts';

import { initBridge } from './init.ts';

Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto/initOnlyWasm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { createWasm } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/wasm.ts';
import { createWasm } from 'https://deno.land/x/polkadot/wasm-crypto-init/wasm.ts';

import { initBridge } from './init.ts';

Expand Down
2 changes: 1 addition & 1 deletion wasm-crypto/initWasmAsm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { createWasm } from 'https://deno.land/x/polkadot@0.2.45/wasm-crypto-init/both.ts';
import { createWasm } from 'https://deno.land/x/polkadot/wasm-crypto-init/both.ts';

import { initBridge } from './init.ts';

Expand Down
12 changes: 12 additions & 0 deletions wasm-crypto/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
import { packageInfo as bridgeInfo } from 'https://deno.land/x/polkadot/wasm-bridge/packageInfo.ts';
import { packageInfo as asmInfo } from 'https://deno.land/x/polkadot/wasm-crypto-asmjs/packageInfo.ts';
import { packageInfo as initInfo } from 'https://deno.land/x/polkadot/wasm-crypto-init/packageInfo.ts';
import { packageInfo as wasmInfo } from 'https://deno.land/x/polkadot/wasm-crypto-wasm/packageInfo.ts';
import { packageInfo as utilInfo } from 'https://deno.land/x/polkadot/wasm-util/packageInfo.ts';

import { packageInfo } from './packageInfo.ts';

detectPackage(packageInfo, null, [asmInfo, bridgeInfo, initInfo, utilInfo, wasmInfo]);
2 changes: 1 addition & 1 deletion wasm-crypto/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


export const packageInfo = { name: '@polkadot/wasm-crypto', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.45' };
export const packageInfo = { name: '@polkadot/wasm-crypto', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.4.1' };
4 changes: 0 additions & 4 deletions wasm-util/detectOther.ts

This file was deleted.

8 changes: 0 additions & 8 deletions wasm-util/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion wasm-util/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import './detectPackage.ts';
import './packageDetect.ts';

export * from './bundle.ts';
7 changes: 7 additions & 0 deletions wasm-util/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';

import { packageInfo } from './packageInfo.ts';

detectPackage(packageInfo, null, []);
2 changes: 1 addition & 1 deletion wasm-util/packageInfo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@


export const packageInfo = { name: '@polkadot/wasm-util', path: new URL(import.meta.url).pathname, type: 'deno', version: '0.2.45' };
export const packageInfo = { name: '@polkadot/wasm-util', path: new URL(import.meta.url).pathname, type: 'deno', version: '7.4.1' };

0 comments on commit a19dc7b

Please sign in to comment.