Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
chore: update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon committed Sep 28, 2022
1 parent ad12f74 commit 9c4ae39
Show file tree
Hide file tree
Showing 6 changed files with 8,363 additions and 2,361 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phala/sdk",
"version": "0.3.2",
"version": "0.3.3",
"description": "Phala JS SDK",
"homepage": "https:/Phala-Network/js-sdk/tree/main/packages/sdk#readme",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/scripts/build_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ downloadProto "pruntime_rpc"

echo "Generating static code from proto files"
rm -rf src/proto/*
pbjs -w es6 -t static-module --keep-case -o src/proto/index.js proto/*.proto
pbjs -w es6 -t static-module -o src/proto/index.js proto/*.proto
pbts -o src/proto/index.d.ts src/proto/index.js

echo "Done"
2 changes: 1 addition & 1 deletion packages/sdk/src/certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {hexAddPrefix, hexToU8a, u8aToHex} from '@polkadot/util'
import {decodeAddress} from '@polkadot/util-crypto'
import {sr25519KeypairFromSeed, waitReady} from '@polkadot/wasm-crypto'
import {randomHex} from './lib/hex'
import {pruntimeRpc} from './proto'
import {pruntime_rpc as pruntimeRpc} from './proto'

export type CertificateData = {
certificate: pruntimeRpc.ICertificate
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {from} from 'rxjs'
import type {CertificateData} from './certificate'
import {decrypt, encrypt} from './lib/aes-256-gcm'
import {randomHex} from './lib/hex'
import {prpc, pruntimeRpc} from './proto'
import {prpc, pruntime_rpc as pruntimeRpc} from './proto'

export type Query = (
encodedQuery: string,
Expand Down
Loading

0 comments on commit 9c4ae39

Please sign in to comment.