plugblockchain / plug-api-types Goto Github PK
View Code? Open in Web Editor NEWAPI type definitions for the Plug blockchain runtime
License: Apache License 2.0
API type definitions for the Plug blockchain runtime
License: Apache License 2.0
Upstream fix merged: polkadot-js/api#1611
Can remove this temporary fix after updating to the new @polkadot/types version
Lines 19 to 31 in 041ec4d
When running the api-template against the latest plug-api-types, we get the following warnings:
hoani@Hoani-MBP api-template % node index.js
Connecting to ws://localhost:9944
2020-06-22 14:42:40 API/INIT: RPC methods not decorated: genericAsset_registeredAssets, state_queryStorageAt}
Unable to resolve type AssetInfo, it will fail on constrution
Unknown signed extensions [OptionSignedExtension] found, treating them as no-efect
Unknown signed extensions [OptionSignedExtension] found, treating them as no-efect
Unknown types found, no types for AssetInfo,schnorrkel::Randomness,schnorrkel::RawVRFOutput
Unknown signed extensions [OptionSignedExtension] found, treating them as no-efect
Unknown signed extensions [OptionSignedExtension] found, treating them as no-efect
You are connected to chain Development using Plug Node v2.0.0-alpha.5
First mentioned in PR #15
These warnings should be addressed.
Setup a circleci pipeline for PRs
Setup prettier & eslint
Following:
When trying to do a balances.transfer
, get:
2020-04-28 10:10:44 RPC-CORE: submitExtrinsic(extrinsic: Extrinsic): Hash:: 1002: Verification Error: Execution(ApiError("Could not convert parameter `tx` between node and runtime: No such variant in enum MultiSignature")): RuntimeApi("Execution(ApiError(\"Could not convert parameter `tx` between node and runtime: No such
Error: Error: submitExtrinsic(extrinsic: Extrinsic): Hash:: 1002: Verification Error: Execution(ApiError("Could not convert parameter `tx` between node and runtime: No such variant in enum MultiSignature")): RuntimeApi("Execution(ApiError(\"Could not convert parameter `tx` between node and runtime: No such
at CatchSubscriber.selector (/Users/hoani/git/plugblockchain/api-template/node_modules/@polkadot/rpc-core/index.js:195:38)
at CatchSubscriber.error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/operators/catchError.js:48:31)
at MapSubscriber.Subscriber._error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/Subscriber.js:72:18)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/OuterSubscriber.js:26:26)
at InnerSubscriber._error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/InnerSubscriber.js:31:21)
at InnerSubscriber.Subscriber.error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/Subscriber.js:72:18)
at CombineLatestSubscriber.OuterSubscriber.notifyError (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/OuterSubscriber.js:26:26)
at InnerSubscriber._error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/InnerSubscriber.js:31:21)
at InnerSubscriber.Subscriber.error (/Users/hoani/git/plugblockchain/api-template/node_modules/rxjs/internal/Subscriber.js:72:18)
API initialisation:
const provider = new WsProvider(address);
const api = await ApiPromise.create({
provider,
types: PlugRuntimeTypes.default
});
Package.json details:
"resolutions": {
"@polkadot/types": "1.2.1",
"@polkadot/metadata": "1.2.1",
"@polkadot/api": "1.2.1",
"@polkadot/api-derive": "1.2.1",
"@polkadot/rpc-core": "1.2.1"
},
"dependencies": {
"@plugnet/plug-api-types": "git+https://github.com/plugblockchain/plug-api-types.git#develop",
"@polkadot/api": "1.2.1"
}
Running plug from develop (24 April 2020).
Create a release pipeline to @PlugNet npm
Attestation types are missing. We should add them since Attestation belongs to Pl^g
It works if I add:
const api = await ApiPromise.create({
provider,
types: {
...PlugRuntimeTypes.default,
AttestationTopic: 'U256',
AttestationValue: 'U256',
}
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.