├── .gitignore
├── LICENSE
├── README.md
├── doc
├── allclasses-frame.html
├── allclasses-noframe.html
├── classref.txt
├── constant-values.html
├── deprecated-list.html
├── docfiles
│ ├── examples
│ │ ├── promise
│ │ │ ├── 01_simple_connect
│ │ │ │ └── index.html
│ │ │ ├── 02_listen_to_blocks
│ │ │ │ └── index.html
│ │ │ ├── 03_listen_to_balance_change
│ │ │ │ └── index.html
│ │ │ ├── 04_unsubscribe
│ │ │ │ └── index.html
│ │ │ ├── 05_read_storage
│ │ │ │ └── index.html
│ │ │ ├── 06_make_transfer
│ │ │ │ └── index.html
│ │ │ ├── 08_system_events
│ │ │ │ └── index.html
│ │ │ ├── 09_transfer_events
│ │ │ │ └── index.html
│ │ │ ├── 10_upgrade_chain
│ │ │ │ └── index.html
│ │ │ └── index.html
│ │ └── rx
│ │ │ ├── 01_simple_connect
│ │ │ └── index.html
│ │ │ ├── 02_listen_to_blocks
│ │ │ └── index.html
│ │ │ ├── 03_listen_to_balance_change
│ │ │ └── index.html
│ │ │ ├── 04_unsubscribe
│ │ │ └── index.html
│ │ │ ├── 05_read_storage
│ │ │ └── index.html
│ │ │ ├── 06_make_transfer
│ │ │ └── index.html
│ │ │ ├── 08_system_events
│ │ │ └── index.html
│ │ │ ├── 09_transfer_events
│ │ │ └── index.html
│ │ │ ├── 10_upgrade_chain
│ │ │ └── index.html
│ │ │ └── index.html
│ └── overview.html
├── help-doc.html
├── highlight-LICENSE.txt
├── highlight.css
├── highlight.pack.js
├── index-all.html
├── index.html
├── org
│ └── polkadot
│ │ ├── api
│ │ ├── ApiBase.ApiType.html
│ │ ├── ApiBase.html
│ │ ├── ApiUtils.html
│ │ ├── SubmittableExtrinsic.StatusCb.html
│ │ ├── SubmittableExtrinsic.SubmittableExtrinsicImpl.html
│ │ ├── SubmittableExtrinsic.SubmittableResult.html
│ │ ├── SubmittableExtrinsic.html
│ │ ├── Types.ApiBaseInterface.html
│ │ ├── Types.ApiInterfacePromise.html
│ │ ├── Types.ApiOptions.html
│ │ ├── Types.DecoratedRpc.html
│ │ ├── Types.DecoratedRpcMethod.html
│ │ ├── Types.DecoratedRpcSection.html
│ │ ├── Types.Derive.html
│ │ ├── Types.DeriveMethod.html
│ │ ├── Types.DeriveSection.html
│ │ ├── Types.OnCallDefinition.html
│ │ ├── Types.OnCallFunction.html
│ │ ├── Types.QueryableModuleStorage.html
│ │ ├── Types.QueryableStorage.html
│ │ ├── Types.QueryableStorageFunction.html
│ │ ├── Types.Signer.html
│ │ ├── Types.SubmittableExtrinsicFunction.html
│ │ ├── Types.SubmittableExtrinsics.html
│ │ ├── Types.SubmittableModuleExtrinsics.html
│ │ ├── Types.html
│ │ ├── derive
│ │ │ ├── Index.Derive.html
│ │ │ ├── Index.DeriveCustom.html
│ │ │ ├── Index.DeriveCustomSection.html
│ │ │ ├── Index.DeriveReal.html
│ │ │ ├── Index.DeriveRealSection.html
│ │ │ ├── Index.html
│ │ │ ├── Types.DeriveRealFunction.html
│ │ │ ├── Types.DerivedBalances.html
│ │ │ ├── Types.DerivedBalancesMap.html
│ │ │ ├── Types.DerivedFees.html
│ │ │ ├── Types.DerivedReferendumVote.html
│ │ │ ├── Types.html
│ │ │ ├── accounts
│ │ │ │ ├── AccountFunctions.AccountIdAndIndex.html
│ │ │ │ ├── AccountFunctions.AccountIndexes.html
│ │ │ │ ├── AccountFunctions.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── balances
│ │ │ │ ├── BalancesFunctions.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── chain
│ │ │ │ ├── ChainFunctions.HeaderAndValidators.html
│ │ │ │ ├── ChainFunctions.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── democracy
│ │ │ │ ├── DemocracyFunctions.ReferendumInfoExtended.html
│ │ │ │ ├── DemocracyFunctions.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ ├── package-tree.html
│ │ │ ├── session
│ │ │ │ ├── SessionFunctions.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ └── staking
│ │ │ │ ├── StakingFunctions.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ ├── package-tree.html
│ │ ├── promise
│ │ │ ├── ApiPromise.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ └── rx
│ │ │ ├── ApiRx.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── common
│ │ ├── EventEmitter.EventListener.html
│ │ ├── EventEmitter.EventType.html
│ │ ├── EventEmitter.html
│ │ ├── ExecutorsManager.html
│ │ ├── HttpClient.HeadOptions.html
│ │ ├── HttpClient.HttpResp.html
│ │ ├── HttpClient.Params.html
│ │ ├── HttpClient.html
│ │ ├── NamedThreadFactory.html
│ │ ├── ReflectionUtils.html
│ │ ├── keyring
│ │ │ ├── Defaults.html
│ │ │ ├── Keyring.html
│ │ │ ├── Pairs.KeyringPairMap.html
│ │ │ ├── Pairs.html
│ │ │ ├── Types.KeyringInstance.html
│ │ │ ├── Types.KeyringOptions.html
│ │ │ ├── Types.KeyringPair.html
│ │ │ ├── Types.KeyringPairJson.html
│ │ │ ├── Types.KeyringPairJsonEncoding.html
│ │ │ ├── Types.KeyringPairMeta.html
│ │ │ ├── Types.KeyringPairs.html
│ │ │ ├── Types.html
│ │ │ ├── address
│ │ │ │ ├── AddressCodec.html
│ │ │ │ ├── Defaults.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ ├── package-tree.html
│ │ │ └── pair
│ │ │ │ ├── Defaults.html
│ │ │ │ ├── Index.KeyringPairDefault.html
│ │ │ │ ├── Index.html
│ │ │ │ ├── PairCodec.DecodeResult.html
│ │ │ │ ├── PairCodec.PairStateJson.html
│ │ │ │ ├── PairCodec.html
│ │ │ │ ├── Types.PairInfo.html
│ │ │ │ ├── Types.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
│ │ ├── direct
│ │ ├── IApi.html
│ │ ├── IFunction.html
│ │ ├── IModule.html
│ │ ├── IRpcFunction.SubscribeCallback.html
│ │ ├── IRpcFunction.Unsubscribe.html
│ │ ├── IRpcFunction.html
│ │ ├── IRpcModule.html
│ │ ├── ISection.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
│ │ ├── example
│ │ ├── Democracy.html
│ │ ├── Staking.html
│ │ ├── TestingPairs.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ ├── package-tree.html
│ │ ├── promise
│ │ │ ├── E01_SimpleConnect.html
│ │ │ ├── E02_ListenToBlocks.html
│ │ │ ├── E03_ListenToBalanceChange.html
│ │ │ ├── E04_Unsubscribe.html
│ │ │ ├── E05_ReadStorage.html
│ │ │ ├── E06_MakeTransfer.html
│ │ │ ├── E08_SystemEvent.html
│ │ │ ├── E09_TransferEvents.html
│ │ │ ├── E10_UpgradeChain.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ └── rx
│ │ │ ├── E01_SimpleConnect.html
│ │ │ ├── E02_ListenToBlocks.html
│ │ │ ├── E03_ListenToBalanceChange.html
│ │ │ ├── E04_Unsubscribe.html
│ │ │ ├── E05_ReadStorage.html
│ │ │ ├── E06_MakeTransfer.html
│ │ │ ├── E08_SystemEvent.html
│ │ │ ├── E09_TransferEvents.html
│ │ │ ├── E10_UpgradeChain.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── rpc
│ │ ├── core
│ │ │ ├── IRpc.RpcInterfaceSection.html
│ │ │ ├── IRpc.html
│ │ │ ├── RpcCore.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── json
│ │ │ ├── JsonAuthor.html
│ │ │ ├── JsonChain.html
│ │ │ ├── JsonRpc.html
│ │ │ ├── JsonState.html
│ │ │ ├── JsonSystem.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ ├── package-tree.html
│ │ │ └── types
│ │ │ │ ├── JsonRpcMethod.html
│ │ │ │ ├── JsonRpcMethodOpt.html
│ │ │ │ ├── JsonRpcParam.html
│ │ │ │ ├── JsonRpcSection.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ ├── provider
│ │ │ ├── Constants.html
│ │ │ ├── IProvider.CallbackHandler.html
│ │ │ ├── IProvider.ProviderInterfaceEmitCb.html
│ │ │ ├── IProvider.ProviderInterfaceEmitted.html
│ │ │ ├── IProvider.SubscriptionHandler.html
│ │ │ ├── IProvider.html
│ │ │ ├── IWsProvider.html
│ │ │ ├── Types.JsonRpcError.html
│ │ │ ├── Types.JsonRpcObject.html
│ │ │ ├── Types.JsonRpcRequest.html
│ │ │ ├── Types.JsonRpcResponse.html
│ │ │ ├── Types.SubscriptionParam.html
│ │ │ ├── Types.html
│ │ │ ├── coder
│ │ │ │ ├── RpcCoder.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── http
│ │ │ │ ├── HttpProvider.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ ├── package-tree.html
│ │ │ └── ws
│ │ │ │ ├── WsProvider.WsStateAwaiting.html
│ │ │ │ ├── WsProvider.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ └── rx
│ │ │ ├── RpcRx.html
│ │ │ ├── Types.IRpcRx.html
│ │ │ ├── Types.RpcRxInterface.html
│ │ │ ├── Types.RpcRxInterfaceMethod.html
│ │ │ ├── Types.RpcRxInterfaceSection.html
│ │ │ ├── Types.RpcRxOnCb.html
│ │ │ ├── Types.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── type
│ │ ├── extrinsics
│ │ │ ├── CreateUnchecked.html
│ │ │ ├── FromMetadata.html
│ │ │ ├── Index.html
│ │ │ ├── StaticMetadata.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ └── storage
│ │ │ ├── CreateFunction.CreateItemOptions.html
│ │ │ ├── CreateFunction.html
│ │ │ ├── FromMetadata.html
│ │ │ ├── Substrate.SubstrateMetadata.html
│ │ │ ├── Substrate.html
│ │ │ ├── Types.ModuleStorage.html
│ │ │ ├── Types.Storage.html
│ │ │ ├── Types.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── types
│ │ ├── Codec.html
│ │ ├── CodecTypes.html
│ │ ├── Types.CodecArg.html
│ │ ├── Types.CodecCallback.html
│ │ ├── Types.ConstructorCodec.html
│ │ ├── Types.ConstructorDef.html
│ │ ├── Types.IExtrinsic.html
│ │ ├── Types.IExtrinsicSignature.html
│ │ ├── Types.IHash.html
│ │ ├── Types.IMethod.html
│ │ ├── Types.RegistryTypes.html
│ │ ├── Types.RuntimeVersionInterface.html
│ │ ├── Types.SignatureOptions.html
│ │ ├── Types.html
│ │ ├── TypesUtils.html
│ │ ├── codec
│ │ │ ├── AbstractArray.html
│ │ │ ├── AbstractInt.html
│ │ │ ├── Base.html
│ │ │ ├── CodecUtils.html
│ │ │ ├── Compact.html
│ │ │ ├── Compactable.html
│ │ │ ├── CreateType.TypeDef.html
│ │ │ ├── CreateType.TypeDefInfo.html
│ │ │ ├── CreateType.html
│ │ │ ├── Enum.html
│ │ │ ├── EnumType.EnumConstructor.html
│ │ │ ├── EnumType.html
│ │ │ ├── Linkage.LinkageResult.html
│ │ │ ├── Linkage.html
│ │ │ ├── Option.html
│ │ │ ├── Set.SetValues.html
│ │ │ ├── Set.html
│ │ │ ├── Struct.html
│ │ │ ├── Tuple.html
│ │ │ ├── TypeRegistry.html
│ │ │ ├── U8a.html
│ │ │ ├── U8aFixed.html
│ │ │ ├── UInt.html
│ │ │ ├── Vector.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── metadata
│ │ │ ├── MagicNumber.html
│ │ │ ├── Metadata.html
│ │ │ ├── MetadataUtils.html
│ │ │ ├── MetadataVersioned.MetadataEnum.html
│ │ │ ├── MetadataVersioned.html
│ │ │ ├── Types.MetadataInterface.html
│ │ │ ├── Types.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ ├── package-tree.html
│ │ │ ├── v0
│ │ │ │ ├── Calls.OuterDispatchCall.html
│ │ │ │ ├── Calls.OuterDispatchMetadata.html
│ │ │ │ ├── Calls.html
│ │ │ │ ├── Events.EventMetadata.html
│ │ │ │ ├── Events.OuterEventMetadata.html
│ │ │ │ ├── Events.OuterEventMetadataEvent.html
│ │ │ │ ├── Events.html
│ │ │ │ ├── MetadataV0.html
│ │ │ │ ├── Modules.CallMetadata.html
│ │ │ │ ├── Modules.FunctionArgumentMetadata.html
│ │ │ │ ├── Modules.FunctionMetadata.html
│ │ │ │ ├── Modules.MapType.html
│ │ │ │ ├── Modules.ModuleMetadata.html
│ │ │ │ ├── Modules.PlainType.html
│ │ │ │ ├── Modules.RuntimeModuleMetadata.html
│ │ │ │ ├── Modules.StorageFunctionMetadata.html
│ │ │ │ ├── Modules.StorageFunctionMetadataValue.html
│ │ │ │ ├── Modules.StorageFunctionModifier.html
│ │ │ │ ├── Modules.StorageFunctionType.html
│ │ │ │ ├── Modules.StorageMetadata.html
│ │ │ │ ├── Modules.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── v1
│ │ │ │ ├── Calls.MetadataCall.html
│ │ │ │ ├── Calls.MetadataCallArg.html
│ │ │ │ ├── Calls.html
│ │ │ │ ├── Events.MetadataEvent.html
│ │ │ │ ├── Events.html
│ │ │ │ ├── MetadataV1.MetadataModule.html
│ │ │ │ ├── MetadataV1.html
│ │ │ │ ├── Storage.Default.html
│ │ │ │ ├── Storage.MapType.html
│ │ │ │ ├── Storage.MetadataStorageModifier.html
│ │ │ │ ├── Storage.MetadataStorageType.html
│ │ │ │ ├── Storage.MetadataStorageV1.html
│ │ │ │ ├── Storage.Optional.html
│ │ │ │ ├── Storage.PlainType.html
│ │ │ │ ├── Storage.html
│ │ │ │ ├── ToV0.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ ├── v2
│ │ │ │ ├── MetadataV2.MetadataModule.html
│ │ │ │ ├── MetadataV2.html
│ │ │ │ ├── Storage.Default.html
│ │ │ │ ├── Storage.MapType.html
│ │ │ │ ├── Storage.MetadataStorageType.html
│ │ │ │ ├── Storage.MetadataStorageV2.html
│ │ │ │ ├── Storage.Optional.html
│ │ │ │ ├── Storage.PlainType.html
│ │ │ │ ├── Storage.html
│ │ │ │ ├── ToV1.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ │ └── v3
│ │ │ │ ├── MetadataV3.MetadataModule.html
│ │ │ │ ├── MetadataV3.html
│ │ │ │ ├── Storage.DoubleMapType.html
│ │ │ │ ├── Storage.MetadataStorageType.html
│ │ │ │ ├── Storage.MetadataStorageV3.html
│ │ │ │ ├── Storage.html
│ │ │ │ ├── ToV2.html
│ │ │ │ ├── package-frame.html
│ │ │ │ ├── package-summary.html
│ │ │ │ └── package-tree.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ ├── package-tree.html
│ │ ├── primitive
│ │ │ ├── Bool.html
│ │ │ ├── Bytes.html
│ │ │ ├── H160.html
│ │ │ ├── H256.html
│ │ │ ├── H512.html
│ │ │ ├── I128.html
│ │ │ ├── I16.html
│ │ │ ├── I256.html
│ │ │ ├── I32.html
│ │ │ ├── I64.html
│ │ │ ├── I8.html
│ │ │ ├── Int.html
│ │ │ ├── Method.DecodeMethodInput.html
│ │ │ ├── Method.DecodedMethod.html
│ │ │ ├── Method.MethodFunction.html
│ │ │ ├── Method.MethodIndex.html
│ │ │ ├── Method.Methods.html
│ │ │ ├── Method.ModulesWithMethods.html
│ │ │ ├── Method.html
│ │ │ ├── Moment.MomentOf.html
│ │ │ ├── Moment.html
│ │ │ ├── Null.html
│ │ │ ├── StorageData.html
│ │ │ ├── StorageKey.StorageFunction.html
│ │ │ ├── StorageKey.html
│ │ │ ├── Text.html
│ │ │ ├── Type.html
│ │ │ ├── U128.html
│ │ │ ├── U16.html
│ │ │ ├── U256.html
│ │ │ ├── U32.html
│ │ │ ├── U64.html
│ │ │ ├── U8.html
│ │ │ ├── USize.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ ├── rpc
│ │ │ ├── ChainProperties.html
│ │ │ ├── ExtrinsicStatus.Broadcast.html
│ │ │ ├── ExtrinsicStatus.Dropped.html
│ │ │ ├── ExtrinsicStatus.Finalized.html
│ │ │ ├── ExtrinsicStatus.Future.html
│ │ │ ├── ExtrinsicStatus.Invalid.html
│ │ │ ├── ExtrinsicStatus.Ready.html
│ │ │ ├── ExtrinsicStatus.Usurped.html
│ │ │ ├── ExtrinsicStatus.html
│ │ │ ├── Health.html
│ │ │ ├── Json.html
│ │ │ ├── NetworkState.html
│ │ │ ├── PeerInfo.html
│ │ │ ├── PendingExtrinsics.html
│ │ │ ├── RuntimeVersion.ApiId.html
│ │ │ ├── RuntimeVersion.RuntimeVersionApi.html
│ │ │ ├── RuntimeVersion.html
│ │ │ ├── SignedBlock.SignedBlockValue.html
│ │ │ ├── SignedBlock.html
│ │ │ ├── StorageChangeSet.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ └── type
│ │ │ ├── AccountId.AccountIdOf.html
│ │ │ ├── AccountId.html
│ │ │ ├── AccountIndex.html
│ │ │ ├── AccountInfo.html
│ │ │ ├── Address.html
│ │ │ ├── Amount.html
│ │ │ ├── AssetOf.html
│ │ │ ├── AttestedCandidate.AvailabilityVote.html
│ │ │ ├── AttestedCandidate.BalanceUpload.html
│ │ │ ├── AttestedCandidate.CandidateReceipt.html
│ │ │ ├── AttestedCandidate.CandidateSignature.html
│ │ │ ├── AttestedCandidate.EgressQueueRoot.html
│ │ │ ├── AttestedCandidate.ExplicitCandidateSignature.html
│ │ │ ├── AttestedCandidate.HeadData.html
│ │ │ ├── AttestedCandidate.ValidityAttestation.html
│ │ │ ├── AttestedCandidate.ValidityVote.html
│ │ │ ├── AttestedCandidate.html
│ │ │ ├── AuthorityId.html
│ │ │ ├── Balance.BalanceOf.html
│ │ │ ├── Balance.html
│ │ │ ├── BalanceLock.html
│ │ │ ├── BftAuthoritySignature.BftAuthoritySignatureValue.html
│ │ │ ├── BftAuthoritySignature.BftHashSignature.html
│ │ │ ├── BftAuthoritySignature.BftHashSignatureValue.html
│ │ │ ├── BftAuthoritySignature.html
│ │ │ ├── Block.BlockValue.html
│ │ │ ├── Block.html
│ │ │ ├── BlockNumber.html
│ │ │ ├── CodeHash.html
│ │ │ ├── Digest.AuthoritiesChange.html
│ │ │ ├── Digest.ChangesTrieRoot.html
│ │ │ ├── Digest.Consensus.html
│ │ │ ├── Digest.DigestItem.html
│ │ │ ├── Digest.Other.html
│ │ │ ├── Digest.Seal.html
│ │ │ ├── Digest.html
│ │ │ ├── Event.EventData.Builder.html
│ │ │ ├── Event.EventData.html
│ │ │ ├── Event.EventIndex.html
│ │ │ ├── Event.html
│ │ │ ├── EventRecord.ApplyExtrinsic.html
│ │ │ ├── EventRecord.Finalization.html
│ │ │ ├── EventRecord.Phase.html
│ │ │ ├── EventRecord.html
│ │ │ ├── Exposure.html
│ │ │ ├── Extrinsic.ExtrinsicValue.html
│ │ │ ├── Extrinsic.html
│ │ │ ├── ExtrinsicEra.html
│ │ │ ├── ExtrinsicSignature.html
│ │ │ ├── Extrinsics.html
│ │ │ ├── Gas.html
│ │ │ ├── Hash.html
│ │ │ ├── Header.HeaderExtended.html
│ │ │ ├── Header.HeaderValue.html
│ │ │ ├── Header.html
│ │ │ ├── Index.html
│ │ │ ├── IndividualExposure.html
│ │ │ ├── InherentOfflineReport.html
│ │ │ ├── Justification.RhdJustification.html
│ │ │ ├── Justification.RhdJustificationValue.html
│ │ │ ├── Justification.html
│ │ │ ├── Key.html
│ │ │ ├── KeyValue.KeyValueOption.html
│ │ │ ├── KeyValue.html
│ │ │ ├── LocKPeriods.html
│ │ │ ├── LockIdentifier.html
│ │ │ ├── MisbehaviorReport.BftAtReport.html
│ │ │ ├── MisbehaviorReport.BftAtReportValue.html
│ │ │ ├── MisbehaviorReport.BftAtReportValueSingle.html
│ │ │ ├── MisbehaviorReport.BftDoubleCommit.html
│ │ │ ├── MisbehaviorReport.BftDoublePrepare.html
│ │ │ ├── MisbehaviorReport.BftDoublePropose.html
│ │ │ ├── MisbehaviorReport.BftProposeOutOfTurn.html
│ │ │ ├── MisbehaviorReport.MisbehaviorKind.html
│ │ │ ├── MisbehaviorReport.MisbehaviorReportValue.html
│ │ │ ├── MisbehaviorReport.html
│ │ │ ├── NewAccountOutcome.html
│ │ │ ├── Nonce.html
│ │ │ ├── NonceCompact.html
│ │ │ ├── Origin.html
│ │ │ ├── ParaId.html
│ │ │ ├── Perbill.html
│ │ │ ├── Permill.html
│ │ │ ├── PrefabWasmModule.PrefabWasmModuleReserved.html
│ │ │ ├── PrefabWasmModule.html
│ │ │ ├── PropIndex.html
│ │ │ ├── Proposal.html
│ │ │ ├── ProposalIndex.html
│ │ │ ├── ReferendumIndex.html
│ │ │ ├── ReferendumInfo.ReferendumInfoValue.html
│ │ │ ├── ReferendumInfo.html
│ │ │ ├── RewardDestination.html
│ │ │ ├── Schedule.html
│ │ │ ├── SeedOf.html
│ │ │ ├── SessionKey.html
│ │ │ ├── Signature.Ed25519Signature.html
│ │ │ ├── Signature.Sr25519Signature.html
│ │ │ ├── Signature.html
│ │ │ ├── SignaturePayload.SignaturePayloadValue.html
│ │ │ ├── SignaturePayload.html
│ │ │ ├── StakingLedger.html
│ │ │ ├── StoredPendingChange.NextAuthority.html
│ │ │ ├── StoredPendingChange.NextAuthorityValue.html
│ │ │ ├── StoredPendingChange.StoredPendingChangeValue.html
│ │ │ ├── StoredPendingChange.html
│ │ │ ├── TreasuryProposal.html
│ │ │ ├── UnlockChunk.html
│ │ │ ├── ValidatorPrefs.html
│ │ │ ├── VestingSchedule.html
│ │ │ ├── Vote.html
│ │ │ ├── VoteIndex.html
│ │ │ ├── VoteThreshold.html
│ │ │ ├── WithdrawReasons.html
│ │ │ ├── package-frame.html
│ │ │ ├── package-summary.html
│ │ │ └── package-tree.html
│ │ └── utils
│ │ ├── MapUtils.html
│ │ ├── PackageScanner.html
│ │ ├── RxUtils.html
│ │ ├── Utils.html
│ │ ├── UtilsCrypto.html
│ │ ├── crypto
│ │ ├── Base58.html
│ │ ├── EmptySR25591.html
│ │ ├── ISR25591.html
│ │ ├── JniSR25591.html
│ │ ├── Nacl.Encrypted.html
│ │ ├── Nacl.html
│ │ ├── NaclTest.html
│ │ ├── SR25519.html
│ │ ├── Schnorrkel.html
│ │ ├── TweetNaCl.InvalidCipherTextException.html
│ │ ├── TweetNaCl.InvalidSignatureException.html
│ │ ├── TweetNaCl.html
│ │ ├── Types.Keypair.html
│ │ ├── Types.Seedpair.html
│ │ ├── Types.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
│ │ ├── package-frame.html
│ │ ├── package-summary.html
│ │ └── package-tree.html
├── overview-frame.html
├── overview-summary.html
├── overview-tree.html
├── overview.html
├── package-list
├── script.js
├── serialized-form.html
└── stylesheet.css
├── docfiles
├── examples
│ ├── promise
│ │ ├── 01_simple_connect
│ │ │ └── index.html
│ │ ├── 02_listen_to_blocks
│ │ │ └── index.html
│ │ ├── 03_listen_to_balance_change
│ │ │ └── index.html
│ │ ├── 04_unsubscribe
│ │ │ └── index.html
│ │ ├── 05_read_storage
│ │ │ └── index.html
│ │ ├── 06_make_transfer
│ │ │ └── index.html
│ │ ├── 08_system_events
│ │ │ └── index.html
│ │ ├── 09_transfer_events
│ │ │ └── index.html
│ │ ├── 10_upgrade_chain
│ │ │ └── index.html
│ │ └── index.html
│ └── rx
│ │ ├── 01_simple_connect
│ │ └── index.html
│ │ ├── 02_listen_to_blocks
│ │ └── index.html
│ │ ├── 03_listen_to_balance_change
│ │ └── index.html
│ │ ├── 04_unsubscribe
│ │ └── index.html
│ │ ├── 05_read_storage
│ │ └── index.html
│ │ ├── 06_make_transfer
│ │ └── index.html
│ │ ├── 08_system_events
│ │ └── index.html
│ │ ├── 09_transfer_events
│ │ └── index.html
│ │ ├── 10_upgrade_chain
│ │ └── index.html
│ │ └── index.html
└── overview.html
├── examples
├── .gitignore
├── build.gradle
├── gradle.properties
├── libs
│ ├── libjni.dylib
│ └── polkadot-java-1.0-SNAPSHOT.jar
├── settings.gradle
├── src
│ └── main
│ │ ├── java
│ │ └── org
│ │ │ └── polkadot
│ │ │ └── example
│ │ │ ├── Democracy.java
│ │ │ ├── Staking.java
│ │ │ ├── TestingPairs.java
│ │ │ ├── promise
│ │ │ ├── E01_SimpleConnect.java
│ │ │ ├── E02_ListenToBlocks.java
│ │ │ ├── E03_ListenToBalanceChange.java
│ │ │ ├── E04_Unsubscribe.java
│ │ │ ├── E05_ReadStorage.java
│ │ │ ├── E06_MakeTransfer.java
│ │ │ ├── E08_SystemEvent.java
│ │ │ ├── E09_TransferEvents.java
│ │ │ └── E10_UpgradeChain.java
│ │ │ └── rx
│ │ │ ├── E01_SimpleConnect.java
│ │ │ ├── E02_ListenToBlocks.java
│ │ │ ├── E03_ListenToBalanceChange.java
│ │ │ ├── E04_Unsubscribe.java
│ │ │ ├── E05_ReadStorage.java
│ │ │ ├── E06_MakeTransfer.java
│ │ │ ├── E08_SystemEvent.java
│ │ │ ├── E09_TransferEvents.java
│ │ │ └── E10_UpgradeChain.java
│ │ └── resources
│ │ └── log4j2.xml
└── test.wasm
├── examples_runnable
├── 20190511
│ ├── 01_simple_connect.sh
│ ├── 02_listen_to_blocks_and_unsubscribe.sh
│ ├── lib
│ │ ├── Java-WebSocket-1.4.0.jar
│ │ ├── animal-sniffer-annotations-1.17.jar
│ │ ├── base64-2.3.9.jar
│ │ ├── checker-qual-2.5.2.jar
│ │ ├── commons-collections4-4.2.jar
│ │ ├── commons-lang3-3.8.jar
│ │ ├── error_prone_annotations-2.2.0.jar
│ │ ├── failureaccess-1.0.1.jar
│ │ ├── fastjson-1.2.48.jar
│ │ ├── guava-27.1-jre.jar
│ │ ├── j2objc-annotations-1.1.jar
│ │ ├── jackson-annotations-2.8.5.jar
│ │ ├── jackson-core-2.8.5.jar
│ │ ├── jackson-databind-2.8.5.jar
│ │ ├── jool-java-8-0.9.14.jar
│ │ ├── joor-java-8-0.9.11.jar
│ │ ├── joou-java-6-0.9.4.jar
│ │ ├── jsonrpc4j-1.5.3.jar
│ │ ├── jsr305-3.0.2.jar
│ │ ├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
│ │ ├── log4j-api-2.11.1.jar
│ │ ├── log4j-core-2.11.1.jar
│ │ ├── log4j-slf4j-impl-2.11.1.jar
│ │ ├── lz4-java-1.5.1.jar
│ │ ├── polkadot-java-1.0-SNAPSHOT.jar
│ │ ├── promises-jvm-0.10.3.jar
│ │ ├── reactive-streams-1.0.2.jar
│ │ ├── rxjava-2.2.8.jar
│ │ └── slf4j-api-1.7.25.jar
│ └── log4j2.xml
├── 20190518
│ ├── 01_simple_connect.sh
│ ├── 02_listen_to_blocks.sh
│ ├── 03_listen_to_balance_change.sh
│ ├── 04_unsubscribe.sh
│ ├── 05_read_storage.sh
│ ├── lib
│ │ ├── Java-WebSocket-1.4.0.jar
│ │ ├── animal-sniffer-annotations-1.17.jar
│ │ ├── base64-2.3.9.jar
│ │ ├── bcprov-jdk15on-1.60.jar
│ │ ├── bitcoinj-core-0.15.2.jar
│ │ ├── checker-qual-2.5.2.jar
│ │ ├── commons-collections4-4.2.jar
│ │ ├── commons-lang3-3.8.1.jar
│ │ ├── commons-lang3-3.8.jar
│ │ ├── commons-text-1.6.jar
│ │ ├── error_prone_annotations-2.2.0.jar
│ │ ├── failureaccess-1.0.1.jar
│ │ ├── fastjson-1.2.48.jar
│ │ ├── guava-27.1-jre.jar
│ │ ├── j2objc-annotations-1.1.jar
│ │ ├── jackson-annotations-2.8.5.jar
│ │ ├── jackson-core-2.8.5.jar
│ │ ├── jackson-databind-2.8.5.jar
│ │ ├── jcip-annotations-1.0.jar
│ │ ├── jool-java-8-0.9.14.jar
│ │ ├── joor-java-8-0.9.11.jar
│ │ ├── joou-java-6-0.9.4.jar
│ │ ├── jsonrpc4j-1.5.3.jar
│ │ ├── jsr305-3.0.2.jar
│ │ ├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
│ │ ├── log4j-api-2.11.1.jar
│ │ ├── log4j-core-2.11.1.jar
│ │ ├── log4j-slf4j-impl-2.11.1.jar
│ │ ├── lz4-java-1.5.1.jar
│ │ ├── okhttp-3.12.1.jar
│ │ ├── okio-1.15.0.jar
│ │ ├── polkadot-java-1.0-SNAPSHOT.jar
│ │ ├── promises-jvm-0.10.3.jar
│ │ ├── protobuf-java-3.6.1.jar
│ │ ├── reactive-streams-1.0.2.jar
│ │ ├── rxjava-2.2.8.jar
│ │ ├── scrypt-1.4.0.jar
│ │ └── slf4j-api-1.7.25.jar
│ └── log4j2.xml
├── 20190525
│ ├── 01_simple_connect.sh
│ ├── 02_listen_to_blocks.sh
│ ├── 03_listen_to_balance_change.sh
│ ├── 04_unsubscribe.sh
│ ├── 05_read_storage.sh
│ ├── 06_make_transfer.sh
│ ├── 101_democracy.sh
│ ├── 102_staking.sh
│ ├── lib
│ │ ├── Java-WebSocket-1.4.0.jar
│ │ ├── animal-sniffer-annotations-1.17.jar
│ │ ├── base64-2.3.9.jar
│ │ ├── bcprov-jdk15on-1.60.jar
│ │ ├── bitcoinj-core-0.15.2.jar
│ │ ├── checker-qual-2.5.2.jar
│ │ ├── commons-collections4-4.2.jar
│ │ ├── commons-lang3-3.8.1.jar
│ │ ├── commons-lang3-3.8.jar
│ │ ├── commons-text-1.6.jar
│ │ ├── eddsa-0.3.0.jar
│ │ ├── error_prone_annotations-2.2.0.jar
│ │ ├── failureaccess-1.0.1.jar
│ │ ├── fastjson-1.2.48.jar
│ │ ├── guava-27.1-jre.jar
│ │ ├── j2objc-annotations-1.1.jar
│ │ ├── jackson-annotations-2.8.5.jar
│ │ ├── jackson-core-2.8.5.jar
│ │ ├── jackson-databind-2.8.5.jar
│ │ ├── jcip-annotations-1.0.jar
│ │ ├── jool-java-8-0.9.14.jar
│ │ ├── joor-java-8-0.9.11.jar
│ │ ├── joou-java-6-0.9.4.jar
│ │ ├── jsonrpc4j-1.5.3.jar
│ │ ├── jsr305-3.0.2.jar
│ │ ├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
│ │ ├── log4j-api-2.11.1.jar
│ │ ├── log4j-core-2.11.1.jar
│ │ ├── log4j-slf4j-impl-2.11.1.jar
│ │ ├── lz4-java-1.5.1.jar
│ │ ├── okhttp-3.12.1.jar
│ │ ├── okio-1.15.0.jar
│ │ ├── polkadot-java-1.0-SNAPSHOT.jar
│ │ ├── promises-jvm-0.10.3.jar
│ │ ├── protobuf-java-3.6.1.jar
│ │ ├── reactive-streams-1.0.2.jar
│ │ ├── rxjava-2.2.8.jar
│ │ ├── scrypt-1.4.0.jar
│ │ └── slf4j-api-1.7.25.jar
│ └── log4j2.xml
├── 20190601
│ ├── 01_simple_connect.sh
│ ├── 02_listen_to_blocks.sh
│ ├── 03_listen_to_balance_change.sh
│ ├── 04_unsubscribe.sh
│ ├── 05_read_storage.sh
│ ├── 06_make_transfer.sh
│ ├── 08_system_events.sh
│ ├── 09_transfer_events.sh
│ ├── 101_democracy.sh
│ ├── 102_staking.sh
│ ├── 10_upgrade_chain.sh
│ ├── lib
│ │ ├── Java-WebSocket-1.4.0.jar
│ │ ├── animal-sniffer-annotations-1.17.jar
│ │ ├── base64-2.3.9.jar
│ │ ├── bcprov-jdk15on-1.60.jar
│ │ ├── bitcoinj-core-0.15.2.jar
│ │ ├── checker-qual-2.5.2.jar
│ │ ├── commons-collections4-4.2.jar
│ │ ├── commons-lang3-3.8.1.jar
│ │ ├── commons-lang3-3.8.jar
│ │ ├── commons-text-1.6.jar
│ │ ├── eddsa-0.3.0.jar
│ │ ├── error_prone_annotations-2.2.0.jar
│ │ ├── failureaccess-1.0.1.jar
│ │ ├── fastjson-1.2.48.jar
│ │ ├── guava-27.1-jre.jar
│ │ ├── j2objc-annotations-1.1.jar
│ │ ├── jackson-annotations-2.8.5.jar
│ │ ├── jackson-core-2.8.5.jar
│ │ ├── jackson-databind-2.8.5.jar
│ │ ├── jcip-annotations-1.0.jar
│ │ ├── jool-java-8-0.9.14.jar
│ │ ├── joor-java-8-0.9.11.jar
│ │ ├── joou-java-6-0.9.4.jar
│ │ ├── jsonrpc4j-1.5.3.jar
│ │ ├── jsr305-3.0.2.jar
│ │ ├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
│ │ ├── log4j-api-2.11.1.jar
│ │ ├── log4j-core-2.11.1.jar
│ │ ├── log4j-slf4j-impl-2.11.1.jar
│ │ ├── lz4-java-1.5.1.jar
│ │ ├── okhttp-3.12.1.jar
│ │ ├── okio-1.15.0.jar
│ │ ├── polkadot-java-1.0-SNAPSHOT.jar
│ │ ├── promises-jvm-0.10.3.jar
│ │ ├── protobuf-java-3.6.1.jar
│ │ ├── reactive-streams-1.0.2.jar
│ │ ├── rxjava-2.2.8.jar
│ │ ├── scrypt-1.4.0.jar
│ │ └── slf4j-api-1.7.25.jar
│ ├── libjni.dylib
│ ├── log4j2.xml
│ └── test.wasm
└── 20190616
│ ├── 101_democracy.sh
│ ├── 102_staking.sh
│ ├── Promise_01_simple_connect.sh
│ ├── Promise_02_listen_to_blocks.sh
│ ├── Promise_03_listen_to_balance_change.sh
│ ├── Promise_04_unsubscribe.sh
│ ├── Promise_05_read_storage.sh
│ ├── Promise_06_make_transfer.sh
│ ├── Promise_08_system_events.sh
│ ├── Promise_09_transfer_events.sh
│ ├── Promise_10_upgrade_chain.sh
│ ├── Rx_01_simple_connect.sh
│ ├── Rx_02_listen_to_blocks.sh
│ ├── Rx_03_listen_to_balance_change.sh
│ ├── Rx_04_unsubscribe.sh
│ ├── Rx_05_read_storage.sh
│ ├── Rx_06_make_transfer.sh
│ ├── Rx_08_system_events.sh
│ ├── Rx_09_transfer_events.sh
│ ├── Rx_10_upgrade_chain.sh
│ ├── lib
│ ├── Java-WebSocket-1.4.0.jar
│ ├── animal-sniffer-annotations-1.17.jar
│ ├── base64-2.3.9.jar
│ ├── bcprov-jdk15on-1.60.jar
│ ├── bitcoinj-core-0.15.2.jar
│ ├── checker-qual-2.5.2.jar
│ ├── commons-collections4-4.2.jar
│ ├── commons-lang3-3.8.1.jar
│ ├── commons-lang3-3.8.jar
│ ├── commons-text-1.6.jar
│ ├── eddsa-0.3.0.jar
│ ├── error_prone_annotations-2.2.0.jar
│ ├── failureaccess-1.0.1.jar
│ ├── fastjson-1.2.48.jar
│ ├── guava-27.1-jre.jar
│ ├── j2objc-annotations-1.1.jar
│ ├── jackson-annotations-2.8.5.jar
│ ├── jackson-core-2.8.5.jar
│ ├── jackson-databind-2.8.5.jar
│ ├── jcip-annotations-1.0.jar
│ ├── jool-java-8-0.9.14.jar
│ ├── joor-java-8-0.9.11.jar
│ ├── joou-java-6-0.9.4.jar
│ ├── jsonrpc4j-1.5.3.jar
│ ├── jsr305-3.0.2.jar
│ ├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
│ ├── log4j-api-2.11.1.jar
│ ├── log4j-core-2.11.1.jar
│ ├── log4j-slf4j-impl-2.11.1.jar
│ ├── lz4-java-1.5.1.jar
│ ├── okhttp-3.12.1.jar
│ ├── okio-1.15.0.jar
│ ├── polkadot-java-1.0-SNAPSHOT.jar
│ ├── promises-jvm-0.10.3.jar
│ ├── protobuf-java-3.6.1.jar
│ ├── reactive-streams-1.0.2.jar
│ ├── rxjava-2.2.8.jar
│ ├── scrypt-1.4.0.jar
│ └── slf4j-api-1.7.25.jar
│ ├── libjni.dylib
│ ├── log4j2.xml
│ └── test.wasm
├── gendoc.sh
├── packages
├── .gitignore
├── build.gradle
├── data
│ ├── erc20.json
│ ├── erc20.wasm
│ ├── incrementer-opt.wasm
│ └── incrementer.json
├── gradle.properties
├── libs
│ └── libjni.dylib
├── settings.gradle
├── src
│ ├── main
│ │ ├── java
│ │ │ └── org
│ │ │ │ └── polkadot
│ │ │ │ ├── api
│ │ │ │ ├── ApiBase.java
│ │ │ │ ├── ApiUtils.java
│ │ │ │ ├── README.md
│ │ │ │ ├── SubmittableExtrinsic.java
│ │ │ │ ├── Types.java
│ │ │ │ ├── derive
│ │ │ │ │ ├── Index.java
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── Types.java
│ │ │ │ │ ├── accounts
│ │ │ │ │ │ └── AccountFunctions.java
│ │ │ │ │ ├── balances
│ │ │ │ │ │ └── BalancesFunctions.java
│ │ │ │ │ ├── chain
│ │ │ │ │ │ └── ChainFunctions.java
│ │ │ │ │ ├── democracy
│ │ │ │ │ │ └── DemocracyFunctions.java
│ │ │ │ │ ├── package-info.java
│ │ │ │ │ ├── session
│ │ │ │ │ │ └── SessionFunctions.java
│ │ │ │ │ └── staking
│ │ │ │ │ │ └── StakingFunctions.java
│ │ │ │ ├── package-info.java
│ │ │ │ ├── promise
│ │ │ │ │ └── ApiPromise.java
│ │ │ │ └── rx
│ │ │ │ │ └── ApiRx.java
│ │ │ │ ├── common
│ │ │ │ ├── EventEmitter.java
│ │ │ │ ├── ExecutorsManager.java
│ │ │ │ ├── HttpClient.java
│ │ │ │ ├── NamedThreadFactory.java
│ │ │ │ ├── ReflectionUtils.java
│ │ │ │ └── keyring
│ │ │ │ │ ├── Defaults.java
│ │ │ │ │ ├── Keyring.java
│ │ │ │ │ ├── Pairs.java
│ │ │ │ │ ├── Types.java
│ │ │ │ │ ├── address
│ │ │ │ │ ├── AddressCodec.java
│ │ │ │ │ └── Defaults.java
│ │ │ │ │ └── pair
│ │ │ │ │ ├── Defaults.java
│ │ │ │ │ ├── Index.java
│ │ │ │ │ ├── PairCodec.java
│ │ │ │ │ └── Types.java
│ │ │ │ ├── direct
│ │ │ │ ├── IApi.java
│ │ │ │ ├── IFunction.java
│ │ │ │ ├── IModule.java
│ │ │ │ ├── IRpcFunction.java
│ │ │ │ ├── IRpcModule.java
│ │ │ │ └── ISection.java
│ │ │ │ ├── example
│ │ │ │ ├── Democracy.java
│ │ │ │ ├── Staking.java
│ │ │ │ ├── TestingPairs.java
│ │ │ │ ├── promise
│ │ │ │ │ ├── E01_SimpleConnect.java
│ │ │ │ │ ├── E02_ListenToBlocks.java
│ │ │ │ │ ├── E03_ListenToBalanceChange.java
│ │ │ │ │ ├── E04_Unsubscribe.java
│ │ │ │ │ ├── E05_ReadStorage.java
│ │ │ │ │ ├── E06_MakeTransfer.java
│ │ │ │ │ ├── E08_SystemEvent.java
│ │ │ │ │ ├── E09_TransferEvents.java
│ │ │ │ │ └── E10_UpgradeChain.java
│ │ │ │ └── rx
│ │ │ │ │ ├── E01_SimpleConnect.java
│ │ │ │ │ ├── E02_ListenToBlocks.java
│ │ │ │ │ ├── E03_ListenToBalanceChange.java
│ │ │ │ │ ├── E04_Unsubscribe.java
│ │ │ │ │ ├── E05_ReadStorage.java
│ │ │ │ │ ├── E06_MakeTransfer.java
│ │ │ │ │ ├── E08_SystemEvent.java
│ │ │ │ │ ├── E09_TransferEvents.java
│ │ │ │ │ └── E10_UpgradeChain.java
│ │ │ │ ├── rpc
│ │ │ │ ├── core
│ │ │ │ │ ├── IRpc.java
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── RpcCore.java
│ │ │ │ │ └── package-info.java
│ │ │ │ ├── json
│ │ │ │ │ ├── JsonAuthor.java
│ │ │ │ │ ├── JsonChain.java
│ │ │ │ │ ├── JsonRpc.java
│ │ │ │ │ ├── JsonState.java
│ │ │ │ │ ├── JsonSystem.java
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── package-info.java
│ │ │ │ │ └── types
│ │ │ │ │ │ ├── JsonRpcMethod.java
│ │ │ │ │ │ ├── JsonRpcMethodOpt.java
│ │ │ │ │ │ ├── JsonRpcParam.java
│ │ │ │ │ │ └── JsonRpcSection.java
│ │ │ │ ├── provider
│ │ │ │ │ ├── Constants.java
│ │ │ │ │ ├── IProvider.java
│ │ │ │ │ ├── IWsProvider.java
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── Types.java
│ │ │ │ │ ├── coder
│ │ │ │ │ │ └── RpcCoder.java
│ │ │ │ │ ├── http
│ │ │ │ │ │ └── HttpProvider.java
│ │ │ │ │ ├── package-info.java
│ │ │ │ │ └── ws
│ │ │ │ │ │ └── WsProvider.java
│ │ │ │ └── rx
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── RpcRx.java
│ │ │ │ │ ├── Types.java
│ │ │ │ │ └── package-info.java
│ │ │ │ ├── type
│ │ │ │ ├── extrinsics
│ │ │ │ │ ├── CreateUnchecked.java
│ │ │ │ │ ├── FromMetadata.java
│ │ │ │ │ ├── Index.java
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── StaticMetadata.java
│ │ │ │ │ └── package-info.java
│ │ │ │ └── storage
│ │ │ │ │ ├── CreateFunction.java
│ │ │ │ │ ├── FromMetadata.java
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── Substrate.java
│ │ │ │ │ ├── Types.java
│ │ │ │ │ └── package-info.java
│ │ │ │ ├── types
│ │ │ │ ├── Codec.java
│ │ │ │ ├── CodecTypes.java
│ │ │ │ ├── ContractAbi.java
│ │ │ │ ├── Types.java
│ │ │ │ ├── TypesUtils.java
│ │ │ │ ├── codec
│ │ │ │ │ ├── AbstractArray.java
│ │ │ │ │ ├── AbstractInt.java
│ │ │ │ │ ├── Base.java
│ │ │ │ │ ├── CodecUtils.java
│ │ │ │ │ ├── Compact.java
│ │ │ │ │ ├── Compactable.java
│ │ │ │ │ ├── CreateType.java
│ │ │ │ │ ├── Enum.java
│ │ │ │ │ ├── EnumType.java
│ │ │ │ │ ├── Linkage.java
│ │ │ │ │ ├── Option.java
│ │ │ │ │ ├── Set.java
│ │ │ │ │ ├── Struct.java
│ │ │ │ │ ├── Tuple.java
│ │ │ │ │ ├── TypeRegistry.java
│ │ │ │ │ ├── U8a.java
│ │ │ │ │ ├── U8aFixed.java
│ │ │ │ │ ├── UInt.java
│ │ │ │ │ └── Vector.java
│ │ │ │ ├── metadata
│ │ │ │ │ ├── MagicNumber.java
│ │ │ │ │ ├── Metadata.java
│ │ │ │ │ ├── MetadataUtils.java
│ │ │ │ │ ├── MetadataVersioned.java
│ │ │ │ │ ├── Types.java
│ │ │ │ │ ├── v0
│ │ │ │ │ │ ├── Calls.java
│ │ │ │ │ │ ├── Events.java
│ │ │ │ │ │ ├── MetadataV0.java
│ │ │ │ │ │ └── Modules.java
│ │ │ │ │ ├── v1
│ │ │ │ │ │ ├── Calls.java
│ │ │ │ │ │ ├── Events.java
│ │ │ │ │ │ ├── MetadataV1.java
│ │ │ │ │ │ ├── Storage.java
│ │ │ │ │ │ └── ToV0.java
│ │ │ │ │ ├── v2
│ │ │ │ │ │ ├── MetadataV2.java
│ │ │ │ │ │ ├── Storage.java
│ │ │ │ │ │ └── ToV1.java
│ │ │ │ │ └── v3
│ │ │ │ │ │ ├── MetadataV3.java
│ │ │ │ │ │ ├── Storage.java
│ │ │ │ │ │ └── ToV2.java
│ │ │ │ ├── primitive
│ │ │ │ │ ├── Bool.java
│ │ │ │ │ ├── Bytes.java
│ │ │ │ │ ├── H160.java
│ │ │ │ │ ├── H256.java
│ │ │ │ │ ├── H512.java
│ │ │ │ │ ├── I128.java
│ │ │ │ │ ├── I16.java
│ │ │ │ │ ├── I256.java
│ │ │ │ │ ├── I32.java
│ │ │ │ │ ├── I64.java
│ │ │ │ │ ├── I8.java
│ │ │ │ │ ├── Int.java
│ │ │ │ │ ├── Method.java
│ │ │ │ │ ├── Moment.java
│ │ │ │ │ ├── Null.java
│ │ │ │ │ ├── StorageData.java
│ │ │ │ │ ├── StorageKey.java
│ │ │ │ │ ├── Text.java
│ │ │ │ │ ├── Type.java
│ │ │ │ │ ├── U128.java
│ │ │ │ │ ├── U16.java
│ │ │ │ │ ├── U256.java
│ │ │ │ │ ├── U32.java
│ │ │ │ │ ├── U64.java
│ │ │ │ │ ├── U8.java
│ │ │ │ │ └── USize.java
│ │ │ │ ├── rpc
│ │ │ │ │ ├── ChainProperties.java
│ │ │ │ │ ├── ExtrinsicStatus.java
│ │ │ │ │ ├── Health.java
│ │ │ │ │ ├── Json.java
│ │ │ │ │ ├── NetworkState.java
│ │ │ │ │ ├── PeerInfo.java
│ │ │ │ │ ├── PendingExtrinsics.java
│ │ │ │ │ ├── RuntimeVersion.java
│ │ │ │ │ ├── SignedBlock.java
│ │ │ │ │ └── StorageChangeSet.java
│ │ │ │ └── type
│ │ │ │ │ ├── AccountId.java
│ │ │ │ │ ├── AccountIndex.java
│ │ │ │ │ ├── AccountInfo.java
│ │ │ │ │ ├── Address.java
│ │ │ │ │ ├── Amount.java
│ │ │ │ │ ├── AssetOf.java
│ │ │ │ │ ├── AttestedCandidate.java
│ │ │ │ │ ├── AuthorityId.java
│ │ │ │ │ ├── Balance.java
│ │ │ │ │ ├── BalanceLock.java
│ │ │ │ │ ├── BftAuthoritySignature.java
│ │ │ │ │ ├── Block.java
│ │ │ │ │ ├── BlockNumber.java
│ │ │ │ │ ├── CodeHash.java
│ │ │ │ │ ├── Digest.java
│ │ │ │ │ ├── Event.java
│ │ │ │ │ ├── EventRecord.java
│ │ │ │ │ ├── Exposure.java
│ │ │ │ │ ├── Extrinsic.java
│ │ │ │ │ ├── ExtrinsicEra.java
│ │ │ │ │ ├── ExtrinsicSignature.java
│ │ │ │ │ ├── Extrinsics.java
│ │ │ │ │ ├── Gas.java
│ │ │ │ │ ├── Hash.java
│ │ │ │ │ ├── Header.java
│ │ │ │ │ ├── Index.java
│ │ │ │ │ ├── IndividualExposure.java
│ │ │ │ │ ├── InherentOfflineReport.java
│ │ │ │ │ ├── Justification.java
│ │ │ │ │ ├── Key.java
│ │ │ │ │ ├── KeyValue.java
│ │ │ │ │ ├── LocKPeriods.java
│ │ │ │ │ ├── LockIdentifier.java
│ │ │ │ │ ├── MisbehaviorReport.java
│ │ │ │ │ ├── NewAccountOutcome.java
│ │ │ │ │ ├── Nonce.java
│ │ │ │ │ ├── NonceCompact.java
│ │ │ │ │ ├── Origin.java
│ │ │ │ │ ├── ParaId.java
│ │ │ │ │ ├── Perbill.java
│ │ │ │ │ ├── Permill.java
│ │ │ │ │ ├── PrefabWasmModule.java
│ │ │ │ │ ├── PropIndex.java
│ │ │ │ │ ├── Proposal.java
│ │ │ │ │ ├── ProposalIndex.java
│ │ │ │ │ ├── ReferendumIndex.java
│ │ │ │ │ ├── ReferendumInfo.java
│ │ │ │ │ ├── RewardDestination.java
│ │ │ │ │ ├── Schedule.java
│ │ │ │ │ ├── SeedOf.java
│ │ │ │ │ ├── SessionKey.java
│ │ │ │ │ ├── Signature.java
│ │ │ │ │ ├── SignaturePayload.java
│ │ │ │ │ ├── StakingLedger.java
│ │ │ │ │ ├── StoredPendingChange.java
│ │ │ │ │ ├── TreasuryProposal.java
│ │ │ │ │ ├── UnlockChunk.java
│ │ │ │ │ ├── ValidatorPrefs.java
│ │ │ │ │ ├── VestingSchedule.java
│ │ │ │ │ ├── Vote.java
│ │ │ │ │ ├── VoteIndex.java
│ │ │ │ │ ├── VoteThreshold.java
│ │ │ │ │ └── WithdrawReasons.java
│ │ │ │ └── utils
│ │ │ │ ├── MapUtils.java
│ │ │ │ ├── PackageScanner.java
│ │ │ │ ├── RxUtils.java
│ │ │ │ ├── Utils.java
│ │ │ │ ├── UtilsCrypto.java
│ │ │ │ └── crypto
│ │ │ │ ├── Base58.java
│ │ │ │ ├── EmptySR25591.java
│ │ │ │ ├── ISR25591.java
│ │ │ │ ├── JniSR25591.java
│ │ │ │ ├── Nacl.java
│ │ │ │ ├── NaclTest.java
│ │ │ │ ├── SR25519.java
│ │ │ │ ├── Schnorrkel.java
│ │ │ │ ├── TweetNaCl.java
│ │ │ │ └── Types.java
│ │ └── resources
│ │ │ └── log4j2.xml
│ └── test
│ │ └── java
│ │ └── test
│ │ └── org
│ │ └── polkadot
│ │ └── api
│ │ ├── PromiseAlex.java
│ │ ├── PromiseContract.java
│ │ ├── PromiseQueries.java
│ │ ├── PromiseTx.java
│ │ ├── RxQueries.java
│ │ ├── RxTx.java
│ │ └── SingleAccountSigner.java
└── test.wasm
└── sr25519
├── .gitignore
├── cpp
├── compile.sh
├── compile_mac.sh
├── jnimain.cpp
├── jnimain.h
├── org_polkadot_utils_crypto_SR25519.h
└── sr25519.h
├── java
├── org
│ └── polkadot
│ │ └── utils
│ │ └── crypto
│ │ ├── SR25519.java
│ │ ├── TestMain.java
│ │ └── genhead.sh
└── test.sh
├── libs
├── mac
│ └── libjni.dylib
├── readme.md
└── ubuntu64
│ └── libjni.so
└── readme.md
/doc/highlight-LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2006, Ivan Sagalaev
2 | All rights reserved.
3 | Redistribution and use in source and binary forms, with or without
4 | modification, are permitted provided that the following conditions are met:
5 |
6 | * Redistributions of source code must retain the above copyright
7 | notice, this list of conditions and the following disclaimer.
8 | * Redistributions in binary form must reproduce the above copyright
9 | notice, this list of conditions and the following disclaimer in the
10 | documentation and/or other materials provided with the distribution.
11 | * Neither the name of highlight.js nor the names of its contributors
12 | may be used to endorse or promote products derived from this software
13 | without specific prior written permission.
14 |
15 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
16 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 | DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/derive/accounts/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.derive.accounts
7 |
8 |
9 |
10 |
11 |
12 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/derive/balances/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.derive.balances
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/derive/chain/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.derive.chain
7 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/derive/democracy/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.derive.democracy
7 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/derive/session/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.derive.session
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/derive/staking/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.derive.staking
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/promise/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.promise
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/api/rx/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.api.rx
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/common/keyring/address/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.common.keyring.address
7 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/doc/org/polkadot/example/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.example
7 |
8 |
9 |
10 |
11 |
12 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/doc/org/polkadot/rpc/core/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.rpc.core
7 |
8 |
9 |
10 |
11 |
12 |
13 |
Interfaces
14 |
17 |
Classes
18 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/doc/org/polkadot/rpc/json/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.rpc.json
7 |
8 |
9 |
10 |
11 |
12 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/doc/org/polkadot/rpc/json/types/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.rpc.json.types
7 |
8 |
9 |
10 |
11 |
12 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/doc/org/polkadot/rpc/provider/coder/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.rpc.provider.coder
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/rpc/provider/http/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.rpc.provider.http
7 |
8 |
9 |
10 |
11 |
12 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/doc/org/polkadot/rpc/provider/ws/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.rpc.provider.ws
7 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/doc/org/polkadot/type/extrinsics/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.type.extrinsics
7 |
8 |
9 |
10 |
11 |
12 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/doc/org/polkadot/utils/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | org.polkadot.utils
7 |
8 |
9 |
10 |
11 |
12 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/doc/overview.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Promise examples
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/doc/package-list:
--------------------------------------------------------------------------------
1 | org.polkadot.api
2 | org.polkadot.api.derive
3 | org.polkadot.api.derive.accounts
4 | org.polkadot.api.derive.balances
5 | org.polkadot.api.derive.chain
6 | org.polkadot.api.derive.democracy
7 | org.polkadot.api.derive.session
8 | org.polkadot.api.derive.staking
9 | org.polkadot.api.promise
10 | org.polkadot.api.rx
11 | org.polkadot.common
12 | org.polkadot.common.keyring
13 | org.polkadot.common.keyring.address
14 | org.polkadot.common.keyring.pair
15 | org.polkadot.direct
16 | org.polkadot.example
17 | org.polkadot.example.promise
18 | org.polkadot.example.rx
19 | org.polkadot.rpc.core
20 | org.polkadot.rpc.json
21 | org.polkadot.rpc.json.types
22 | org.polkadot.rpc.provider
23 | org.polkadot.rpc.provider.coder
24 | org.polkadot.rpc.provider.http
25 | org.polkadot.rpc.provider.ws
26 | org.polkadot.rpc.rx
27 | org.polkadot.type.extrinsics
28 | org.polkadot.type.storage
29 | org.polkadot.types
30 | org.polkadot.types.codec
31 | org.polkadot.types.metadata
32 | org.polkadot.types.metadata.v0
33 | org.polkadot.types.metadata.v1
34 | org.polkadot.types.metadata.v2
35 | org.polkadot.types.metadata.v3
36 | org.polkadot.types.primitive
37 | org.polkadot.types.rpc
38 | org.polkadot.types.type
39 | org.polkadot.utils
40 | org.polkadot.utils.crypto
41 |
--------------------------------------------------------------------------------
/doc/script.js:
--------------------------------------------------------------------------------
1 | function show(type)
2 | {
3 | count = 0;
4 | for (var key in methods) {
5 | var row = document.getElementById(key);
6 | if ((methods[key] & type) != 0) {
7 | row.style.display = '';
8 | row.className = (count++ % 2) ? rowColor : altColor;
9 | }
10 | else
11 | row.style.display = 'none';
12 | }
13 | updateTabs(type);
14 | }
15 |
16 | function updateTabs(type)
17 | {
18 | for (var value in tabs) {
19 | var sNode = document.getElementById(tabs[value][0]);
20 | var spanNode = sNode.firstChild;
21 | if (value == type) {
22 | sNode.className = activeTableTab;
23 | spanNode.innerHTML = tabs[value][1];
24 | }
25 | else {
26 | sNode.className = tableTab;
27 | spanNode.innerHTML = "" + tabs[value][1] + "";
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/examples/gradle.properties:
--------------------------------------------------------------------------------
1 | USERNAME=user
2 | PASSWORD=password
--------------------------------------------------------------------------------
/examples/libs/libjni.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples/libs/libjni.dylib
--------------------------------------------------------------------------------
/examples/libs/polkadot-java-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples/libs/polkadot-java-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/examples/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'polkadot-java-example'
2 |
3 |
--------------------------------------------------------------------------------
/examples/src/main/java/org/polkadot/example/rx/E02_ListenToBlocks.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.example.rx;
2 |
3 | import io.reactivex.Observable;
4 | import org.polkadot.api.rx.ApiRx;
5 | import org.polkadot.rpc.provider.ws.WsProvider;
6 | import org.polkadot.types.type.Header;
7 |
8 | public class E02_ListenToBlocks {
9 |
10 | //static String endPoint = "wss://poc3-rpc.polkadot.io/";
11 | //static String endPoint = "wss://substrate-rpc.parity.io/";
12 | //static String endPoint = "ws://45.76.157.229:9944/";
13 | static String endPoint = "ws://127.0.0.1:9944";
14 |
15 | static void initEndPoint(String[] args) {
16 | if (args != null && args.length >= 1) {
17 | endPoint = args[0];
18 | System.out.println(" connect to endpoint [" + endPoint + "]");
19 | } else {
20 | System.out.println(" connect to default endpoint [" + endPoint + "]");
21 | }
22 | }
23 |
24 | public static void main(String[] args) {
25 | initEndPoint(args);
26 |
27 | WsProvider wsProvider = new WsProvider(endPoint);
28 |
29 | Observable apiRxObservable = ApiRx.create(wsProvider);
30 |
31 | apiRxObservable.flatMap((apiRx) -> {
32 | return apiRx.rpc().chain().function("subscribeNewHead").invoke();
33 | }
34 |
35 | ).subscribe((result) -> {
36 | Header header = (Header) result;
37 | System.out.println("Chain is at block: " + header.getBlockNumber());
38 | });
39 |
40 |
41 | try {
42 | Thread.sleep(20000);
43 | } catch (InterruptedException e) {
44 | e.printStackTrace();
45 | }
46 |
47 | System.exit(0);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/examples/src/main/java/org/polkadot/example/rx/E03_ListenToBalanceChange.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.example.rx;
2 |
3 | import io.reactivex.Observable;
4 | import org.polkadot.api.rx.ApiRx;
5 | import org.polkadot.rpc.provider.ws.WsProvider;
6 |
7 | public class E03_ListenToBalanceChange {
8 | static String Alice = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
9 |
10 | //static String endPoint = "wss://poc3-rpc.polkadot.io/";
11 | //static String endPoint = "wss://substrate-rpc.parity.io/";
12 | //static String endPoint = "ws://45.76.157.229:9944/";
13 | static String endPoint = "ws://127.0.0.1:9944";
14 |
15 | static void initEndPoint(String[] args) {
16 | if (args != null && args.length >= 1) {
17 | endPoint = args[0];
18 | System.out.println(" connect to endpoint [" + endPoint + "]");
19 | } else {
20 | System.out.println(" connect to default endpoint [" + endPoint + "]");
21 | }
22 | }
23 |
24 | public static void main(String[] args) {
25 | initEndPoint(args);
26 |
27 | WsProvider wsProvider = new WsProvider(endPoint);
28 |
29 | Observable apiRxObservable = ApiRx.create(wsProvider);
30 |
31 | apiRxObservable.flatMap((apiRx) -> {
32 | return apiRx.query().section("balances").function("freeBalance").call(Alice);
33 | }).subscribe((result) -> {
34 | System.out.println("freeBalance result " + result);
35 | });
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/examples/src/main/resources/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | %d %p %c{1.} [%t] %m%n
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/examples/test.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples/test.wasm
--------------------------------------------------------------------------------
/examples_runnable/20190511/01_simple_connect.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.SimpleConnect
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190511/02_listen_to_blocks_and_unsubscribe.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBlocks
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/Java-WebSocket-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/Java-WebSocket-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/animal-sniffer-annotations-1.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/animal-sniffer-annotations-1.17.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/base64-2.3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/base64-2.3.9.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/checker-qual-2.5.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/checker-qual-2.5.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/commons-collections4-4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/commons-collections4-4.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/commons-lang3-3.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/commons-lang3-3.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/error_prone_annotations-2.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/error_prone_annotations-2.2.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/failureaccess-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/failureaccess-1.0.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/fastjson-1.2.48.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/fastjson-1.2.48.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/guava-27.1-jre.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/guava-27.1-jre.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/j2objc-annotations-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/j2objc-annotations-1.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/jackson-annotations-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/jackson-annotations-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/jackson-core-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/jackson-core-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/jackson-databind-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/jackson-databind-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/jool-java-8-0.9.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/jool-java-8-0.9.14.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/joor-java-8-0.9.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/joor-java-8-0.9.11.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/joou-java-6-0.9.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/joou-java-6-0.9.4.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/jsonrpc4j-1.5.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/jsonrpc4j-1.5.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/jsr305-3.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/jsr305-3.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/log4j-api-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/log4j-api-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/log4j-core-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/log4j-core-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/log4j-slf4j-impl-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/log4j-slf4j-impl-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/lz4-java-1.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/lz4-java-1.5.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/polkadot-java-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/polkadot-java-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/promises-jvm-0.10.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/promises-jvm-0.10.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/reactive-streams-1.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/reactive-streams-1.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/rxjava-2.2.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/rxjava-2.2.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/lib/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190511/lib/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/examples_runnable/20190511/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | %d %p %c{1.} [%t] %m%n
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/examples_runnable/20190518/01_simple_connect.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.SimpleConnect wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190518/02_listen_to_blocks.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBlocks wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190518/03_listen_to_balance_change.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBalanceChange wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190518/04_unsubscribe.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Unsubscribe wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190518/05_read_storage.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ReadStorage wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/Java-WebSocket-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/Java-WebSocket-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/animal-sniffer-annotations-1.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/animal-sniffer-annotations-1.17.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/base64-2.3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/base64-2.3.9.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/bcprov-jdk15on-1.60.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/bcprov-jdk15on-1.60.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/bitcoinj-core-0.15.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/bitcoinj-core-0.15.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/checker-qual-2.5.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/checker-qual-2.5.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/commons-collections4-4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/commons-collections4-4.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/commons-lang3-3.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/commons-lang3-3.8.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/commons-lang3-3.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/commons-lang3-3.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/commons-text-1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/commons-text-1.6.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/error_prone_annotations-2.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/error_prone_annotations-2.2.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/failureaccess-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/failureaccess-1.0.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/fastjson-1.2.48.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/fastjson-1.2.48.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/guava-27.1-jre.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/guava-27.1-jre.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/j2objc-annotations-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/j2objc-annotations-1.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jackson-annotations-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jackson-annotations-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jackson-core-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jackson-core-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jackson-databind-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jackson-databind-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jcip-annotations-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jcip-annotations-1.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jool-java-8-0.9.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jool-java-8-0.9.14.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/joor-java-8-0.9.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/joor-java-8-0.9.11.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/joou-java-6-0.9.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/joou-java-6-0.9.4.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jsonrpc4j-1.5.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jsonrpc4j-1.5.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/jsr305-3.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/jsr305-3.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/log4j-api-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/log4j-api-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/log4j-core-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/log4j-core-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/log4j-slf4j-impl-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/log4j-slf4j-impl-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/lz4-java-1.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/lz4-java-1.5.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/okhttp-3.12.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/okhttp-3.12.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/okio-1.15.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/okio-1.15.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/polkadot-java-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/polkadot-java-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/promises-jvm-0.10.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/promises-jvm-0.10.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/protobuf-java-3.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/protobuf-java-3.6.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/reactive-streams-1.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/reactive-streams-1.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/rxjava-2.2.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/rxjava-2.2.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/scrypt-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/scrypt-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/lib/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190518/lib/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/examples_runnable/20190518/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | %d %p %c{1.} [%t] %m%n
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/01_simple_connect.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.SimpleConnect wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/02_listen_to_blocks.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBlocks wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/03_listen_to_balance_change.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBalanceChange wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/04_unsubscribe.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Unsubscribe wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/05_read_storage.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ReadStorage wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/06_make_transfer.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.MakeTransfer ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/101_democracy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Democracy wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/102_staking.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Staking wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/Java-WebSocket-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/Java-WebSocket-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/animal-sniffer-annotations-1.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/animal-sniffer-annotations-1.17.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/base64-2.3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/base64-2.3.9.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/bcprov-jdk15on-1.60.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/bcprov-jdk15on-1.60.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/bitcoinj-core-0.15.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/bitcoinj-core-0.15.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/checker-qual-2.5.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/checker-qual-2.5.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/commons-collections4-4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/commons-collections4-4.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/commons-lang3-3.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/commons-lang3-3.8.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/commons-lang3-3.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/commons-lang3-3.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/commons-text-1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/commons-text-1.6.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/eddsa-0.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/eddsa-0.3.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/error_prone_annotations-2.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/error_prone_annotations-2.2.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/failureaccess-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/failureaccess-1.0.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/fastjson-1.2.48.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/fastjson-1.2.48.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/guava-27.1-jre.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/guava-27.1-jre.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/j2objc-annotations-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/j2objc-annotations-1.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jackson-annotations-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jackson-annotations-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jackson-core-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jackson-core-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jackson-databind-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jackson-databind-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jcip-annotations-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jcip-annotations-1.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jool-java-8-0.9.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jool-java-8-0.9.14.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/joor-java-8-0.9.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/joor-java-8-0.9.11.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/joou-java-6-0.9.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/joou-java-6-0.9.4.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jsonrpc4j-1.5.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jsonrpc4j-1.5.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/jsr305-3.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/jsr305-3.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/log4j-api-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/log4j-api-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/log4j-core-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/log4j-core-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/log4j-slf4j-impl-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/log4j-slf4j-impl-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/lz4-java-1.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/lz4-java-1.5.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/okhttp-3.12.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/okhttp-3.12.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/okio-1.15.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/okio-1.15.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/polkadot-java-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/polkadot-java-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/promises-jvm-0.10.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/promises-jvm-0.10.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/protobuf-java-3.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/protobuf-java-3.6.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/reactive-streams-1.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/reactive-streams-1.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/rxjava-2.2.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/rxjava-2.2.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/scrypt-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/scrypt-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/lib/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190525/lib/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/examples_runnable/20190525/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | %d %p %c{1.} [%t] %m%n
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/01_simple_connect.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.SimpleConnect wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/02_listen_to_blocks.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBlocks wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/03_listen_to_balance_change.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ListenToBalanceChange wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/04_unsubscribe.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Unsubscribe wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/05_read_storage.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.ReadStorage wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/06_make_transfer.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.MakeTransfer ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/08_system_events.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.SystemEvent ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/09_transfer_events.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.TransferEvents ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/101_democracy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Democracy wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/102_staking.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Staking wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/10_upgrade_chain.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.UpgradeChain ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/Java-WebSocket-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/Java-WebSocket-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/animal-sniffer-annotations-1.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/animal-sniffer-annotations-1.17.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/base64-2.3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/base64-2.3.9.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/bcprov-jdk15on-1.60.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/bcprov-jdk15on-1.60.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/bitcoinj-core-0.15.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/bitcoinj-core-0.15.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/checker-qual-2.5.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/checker-qual-2.5.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/commons-collections4-4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/commons-collections4-4.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/commons-lang3-3.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/commons-lang3-3.8.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/commons-lang3-3.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/commons-lang3-3.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/commons-text-1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/commons-text-1.6.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/eddsa-0.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/eddsa-0.3.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/error_prone_annotations-2.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/error_prone_annotations-2.2.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/failureaccess-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/failureaccess-1.0.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/fastjson-1.2.48.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/fastjson-1.2.48.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/guava-27.1-jre.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/guava-27.1-jre.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/j2objc-annotations-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/j2objc-annotations-1.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jackson-annotations-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jackson-annotations-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jackson-core-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jackson-core-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jackson-databind-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jackson-databind-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jcip-annotations-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jcip-annotations-1.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jool-java-8-0.9.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jool-java-8-0.9.14.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/joor-java-8-0.9.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/joor-java-8-0.9.11.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/joou-java-6-0.9.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/joou-java-6-0.9.4.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jsonrpc4j-1.5.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jsonrpc4j-1.5.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/jsr305-3.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/jsr305-3.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/log4j-api-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/log4j-api-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/log4j-core-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/log4j-core-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/log4j-slf4j-impl-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/log4j-slf4j-impl-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/lz4-java-1.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/lz4-java-1.5.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/okhttp-3.12.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/okhttp-3.12.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/okio-1.15.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/okio-1.15.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/polkadot-java-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/polkadot-java-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/promises-jvm-0.10.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/promises-jvm-0.10.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/protobuf-java-3.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/protobuf-java-3.6.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/reactive-streams-1.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/reactive-streams-1.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/rxjava-2.2.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/rxjava-2.2.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/scrypt-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/scrypt-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/lib/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/lib/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/examples_runnable/20190601/libjni.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/libjni.dylib
--------------------------------------------------------------------------------
/examples_runnable/20190601/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | %d %p %c{1.} [%t] %m%n
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/examples_runnable/20190601/test.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190601/test.wasm
--------------------------------------------------------------------------------
/examples_runnable/20190616/101_democracy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Democracy wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/102_staking.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.Staking wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_01_simple_connect.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E01_SimpleConnect wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_02_listen_to_blocks.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E02_ListenToBlocks wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_03_listen_to_balance_change.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E03_ListenToBalanceChange ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_04_unsubscribe.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E04_Unsubscribe ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_05_read_storage.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E05_ReadStorage ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_06_make_transfer.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E06_MakeTransfer ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_08_system_events.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E08_SystemEvent ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_09_transfer_events.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E09_TransferEvents ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Promise_10_upgrade_chain.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.promise.E10_UpgradeChain ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_01_simple_connect.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E01_SimpleConnect wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_02_listen_to_blocks.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E02_ListenToBlocks wss://poc3-rpc.polkadot.io/
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_03_listen_to_balance_change.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E03_ListenToBalanceChange ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_04_unsubscribe.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E04_Unsubscribe ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_05_read_storage.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E05_ReadStorage ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_06_make_transfer.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E06_MakeTransfer ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_08_system_events.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E08_SystemEvent ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_09_transfer_events.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E09_TransferEvents ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/Rx_10_upgrade_chain.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | basepath=$(cd `dirname $0`; pwd)
3 | cd ${basepath}
4 | echo ${basepath}
5 |
6 |
7 |
8 | java -cp "./:./lib/*" org.polkadot.example.rx.E10_UpgradeChain ws://127.0.0.1:9944
9 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/Java-WebSocket-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/Java-WebSocket-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/animal-sniffer-annotations-1.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/animal-sniffer-annotations-1.17.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/base64-2.3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/base64-2.3.9.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/bcprov-jdk15on-1.60.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/bcprov-jdk15on-1.60.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/bitcoinj-core-0.15.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/bitcoinj-core-0.15.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/checker-qual-2.5.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/checker-qual-2.5.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/commons-collections4-4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/commons-collections4-4.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/commons-lang3-3.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/commons-lang3-3.8.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/commons-lang3-3.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/commons-lang3-3.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/commons-text-1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/commons-text-1.6.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/eddsa-0.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/eddsa-0.3.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/error_prone_annotations-2.2.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/error_prone_annotations-2.2.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/failureaccess-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/failureaccess-1.0.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/fastjson-1.2.48.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/fastjson-1.2.48.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/guava-27.1-jre.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/guava-27.1-jre.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/j2objc-annotations-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/j2objc-annotations-1.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jackson-annotations-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jackson-annotations-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jackson-core-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jackson-core-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jackson-databind-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jackson-databind-2.8.5.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jcip-annotations-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jcip-annotations-1.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jool-java-8-0.9.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jool-java-8-0.9.14.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/joor-java-8-0.9.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/joor-java-8-0.9.11.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/joou-java-6-0.9.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/joou-java-6-0.9.4.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jsonrpc4j-1.5.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jsonrpc4j-1.5.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/jsr305-3.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/jsr305-3.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/log4j-api-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/log4j-api-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/log4j-core-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/log4j-core-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/log4j-slf4j-impl-2.11.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/log4j-slf4j-impl-2.11.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/lz4-java-1.5.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/lz4-java-1.5.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/okhttp-3.12.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/okhttp-3.12.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/okio-1.15.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/okio-1.15.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/polkadot-java-1.0-SNAPSHOT.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/polkadot-java-1.0-SNAPSHOT.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/promises-jvm-0.10.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/promises-jvm-0.10.3.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/protobuf-java-3.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/protobuf-java-3.6.1.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/reactive-streams-1.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/reactive-streams-1.0.2.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/rxjava-2.2.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/rxjava-2.2.8.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/scrypt-1.4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/scrypt-1.4.0.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/lib/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/lib/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/examples_runnable/20190616/libjni.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/libjni.dylib
--------------------------------------------------------------------------------
/examples_runnable/20190616/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 | %d %p %c{1.} [%t] %m%n
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/examples_runnable/20190616/test.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/examples_runnable/20190616/test.wasm
--------------------------------------------------------------------------------
/gendoc.sh:
--------------------------------------------------------------------------------
1 | # To run the javadoc, download markdown-doclet
2 | # at https://repo1.maven.org/maven2/ch/raffael/markdown-doclet/markdown-doclet/1.4/markdown-doclet-1.4-all.jar
3 | # change the folder of markdown-doclet-1.4-all.jar in the command line below
4 | # Home of markdown-doclet is at https://github.com/Abnaxos/markdown-doclet
5 |
6 | cp -R docfiles doc/
7 |
8 | javadoc -doclet ch.raffael.mddoclet.MarkdownDoclet -docletpath /markdown-doclet-1.4-all.jar -d doc -sourcepath packages/src/main/java -overview docfiles/overview.html -notimestamp -subpackages org.polkadot
9 |
--------------------------------------------------------------------------------
/packages/data/erc20.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/packages/data/erc20.wasm
--------------------------------------------------------------------------------
/packages/data/incrementer-opt.wasm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/packages/data/incrementer-opt.wasm
--------------------------------------------------------------------------------
/packages/data/incrementer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Incrementer",
3 | "deploy": {
4 | "args": [
5 | {
6 | "name": "init_value",
7 | "type": "u32"
8 | }
9 | ]
10 | },
11 | "messages": [
12 | {
13 | "name": "inc",
14 | "selector": 257544423,
15 | "mutates": true,
16 | "args": [
17 | {
18 | "name": "by",
19 | "type": "u32"
20 | }
21 | ],
22 | "return_type": null
23 | },
24 | {
25 | "name": "get",
26 | "selector": 4266279973,
27 | "mutates": false,
28 | "args": [],
29 | "return_type": "u32"
30 | },
31 | {
32 | "name": "compare",
33 | "selector": 363906316,
34 | "mutates": false,
35 | "args": [
36 | {
37 | "name": "with",
38 | "type": "u32"
39 | }
40 | ],
41 | "return_type": "bool"
42 | }
43 | ]
44 | }
--------------------------------------------------------------------------------
/packages/gradle.properties:
--------------------------------------------------------------------------------
1 | USERNAME=user
2 | PASSWORD=password
--------------------------------------------------------------------------------
/packages/libs/libjni.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/polkadot-java/api/9e155fd0e239ec5b0405879c13522be7b78daade/packages/libs/libjni.dylib
--------------------------------------------------------------------------------
/packages/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'polkadot-java'
2 |
3 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/api/ApiUtils.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.api;
2 |
3 | import org.polkadot.types.rpc.SignedBlock;
4 | import org.polkadot.types.type.EventRecord;
5 | import org.polkadot.utils.Utils;
6 | import org.slf4j.Logger;
7 | import org.slf4j.LoggerFactory;
8 |
9 | import java.util.List;
10 | import java.util.stream.Collectors;
11 |
12 | public class ApiUtils {
13 | private static final Logger logger = LoggerFactory.getLogger(ApiUtils.class);
14 |
15 | public static List filterEvents(byte[] extHash, SignedBlock signedBlock, List allEvents) {
16 | // extrinsics to hashes
17 | String myHash = Utils.u8aToHex(extHash);
18 | List allHashes = signedBlock.getBlock().getExtrinsics()
19 | .stream().map(ext -> ext.getHash().toHex())
20 | .collect(Collectors.toList());
21 |
22 | // find the index of our extrinsic in the block
23 | int index = allHashes.indexOf(myHash);
24 | // if we do get the block after finalized, it _should_ be there
25 | if (index < 0) {
26 | logger.warn("block {} Unable to find extrinsic {} inside {}",
27 | signedBlock.getBlock().getHeader().getHash(), myHash, allHashes);
28 | return null;
29 | }
30 |
31 | return allEvents.stream().filter(eventRecord -> {
32 | // only ApplyExtrinsic has the extrinsic index
33 | return eventRecord.getPhase().isApplyExtrinsic() && eventRecord.getPhase().asApplyExtrinsic().intValue() == index;
34 | }).collect(Collectors.toList());
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/api/derive/README.md:
--------------------------------------------------------------------------------
1 | # @polkadot/api-derive
2 |
3 | Common functions used across Polkadot, derived from RPC calls and storage queries.
4 |
5 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/api/derive/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | # @polkadot/api-derive
3 |
4 | Common functions used across Polkadot, derived from RPC calls and storage queries.
5 | */
6 | package org.polkadot.api.derive;
7 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/common/NamedThreadFactory.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.common;
2 |
3 | import java.util.concurrent.ThreadFactory;
4 | import java.util.concurrent.atomic.AtomicInteger;
5 |
6 | public class NamedThreadFactory implements ThreadFactory {
7 | private ThreadGroup group;
8 | private AtomicInteger threadCountor = new AtomicInteger(0);
9 | private String name;
10 |
11 | public NamedThreadFactory(String perfix) {
12 | this.name = perfix;
13 | group = new ThreadGroup(name);
14 | }
15 |
16 | @Override
17 | public Thread newThread(Runnable runnable) {
18 | Thread thread = new Thread(group, runnable, name + "-" + threadCountor.incrementAndGet());
19 | return thread;
20 | }
21 |
22 | public String getName() {
23 | return name;
24 | }
25 |
26 | public ThreadGroup getGroup() {
27 | return group;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/common/ReflectionUtils.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.common;
2 |
3 | import java.lang.reflect.Field;
4 |
5 | public class ReflectionUtils {
6 | /**
7 | * Find DeclaredField recursively.
8 | *
9 | * @param object : the child object
10 | * @param fieldName : the field name in the parent object
11 | * @return the field object in the parent object
12 | */
13 | public static Field getDeclaredField(Object object, String fieldName) {
14 | Field field = null;
15 |
16 | Class> clazz = object.getClass();
17 |
18 | for (; clazz != Object.class; clazz = clazz.getSuperclass()) {
19 | try {
20 | field = clazz.getDeclaredField(fieldName);
21 | return field;
22 | } catch (Exception e) {
23 | }
24 | }
25 |
26 | return null;
27 | }
28 |
29 | /**
30 | * Read field value directly, ignore private/protected and getter
31 | *
32 | * @param object : the child object
33 | * @param fieldName : the field name in the parent object
34 | * @return : the field value in the parent object
35 | */
36 |
37 | public static T getField(Object object, String fieldName) {
38 |
39 | Field field = getDeclaredField(object, fieldName);
40 | field.setAccessible(true);
41 |
42 | try {
43 | return (T) field.get(object);
44 | } catch (Exception e) {
45 | e.printStackTrace();
46 | }
47 |
48 | return null;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/common/keyring/Defaults.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.common.keyring;
2 |
3 | public class Defaults {
4 |
5 | // default substrate dev phrase
6 | public static final String DEV_PHRASE = "bottom drive obey lake curtain smoke basket hold race lonely fit walk";
7 |
8 | // seed from the above phrase
9 | public static final String DEV_SEED = "0xfac7959dbfe72f052e5a0c3c8d6530f202b02fd8f9f5ca3580ec8deb7797479e";
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/common/keyring/address/Defaults.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.common.keyring.address;
2 |
3 | import com.google.common.collect.Lists;
4 |
5 | import java.util.List;
6 |
7 | public class Defaults {
8 |
9 | //export type Prefix = 0 | 1 | 3 | 42 | 43 | 68 | 69;
10 |
11 | /**
12 | * const defaults = {
13 | * allowedDecodedLengths: [1, 2, 4, 8, 32],
14 | * // publicKey has prefix + 2 checksum bytes, short only prefix + 1 checksum byte
15 | * allowedEncodedLengths: [3, 4, 6, 10, 35],
16 | * allowedPrefix: [0, 1, 3, 42, 43, 68, 69] as Array,
17 | * prefix: 42 as Prefix
18 | * };
19 | */
20 |
21 | public static List allowedDecodedLengths = Lists.newArrayList(1, 2, 4, 8, 32);
22 | public static List allowedEncodedLengths = Lists.newArrayList(3, 4, 6, 10, 35);
23 | public static List allowedPrefix = Lists.newArrayList(0, 1, 3, 42, 43, 68, 69);
24 | public static byte prefix = 42;
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/common/keyring/pair/Defaults.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.common.keyring.pair;
2 |
3 | import com.google.common.primitives.UnsignedBytes;
4 |
5 | public interface Defaults {
6 |
7 |
8 | int NONCE_LENGTH = 24;
9 | byte[] PKCS8_DIVIDER = new byte[]{UnsignedBytes.checkedCast(161), 35, 3, 33, 0};
10 | byte[] PKCS8_HEADER = new byte[]{48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32};
11 | int PUB_LENGTH = 32;
12 | int SEC_LENGTH = 64;
13 | int SEED_LENGTH = 32;
14 |
15 | /**
16 | *
17 | const NONCE_LENGTH = 24;
18 | const PKCS8_DIVIDER = new Uint8Array([161, 35, 3, 33, 0]);
19 | const PKCS8_HEADER = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]);
20 | const PUB_LENGTH = 32;
21 | const SEC_LENGTH = 64;
22 | const SEED_LENGTH = 32;
23 |
24 | export {
25 | NONCE_LENGTH,
26 | PKCS8_DIVIDER,
27 | PKCS8_HEADER,
28 | PUB_LENGTH,
29 | SEC_LENGTH,
30 | SEED_LENGTH
31 | };
32 |
33 | */
34 | }
35 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/common/keyring/pair/Types.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.common.keyring.pair;
2 |
3 | public interface Types {
4 | class PairInfo {
5 | protected byte[] publicKey;
6 | protected byte[] secretKey;
7 | protected byte[] seed;
8 |
9 | public byte[] getPublicKey() {
10 | return publicKey;
11 | }
12 |
13 | public void setPublicKey(byte[] publicKey) {
14 | this.publicKey = publicKey;
15 | }
16 |
17 | public byte[] getSecretKey() {
18 | return secretKey;
19 | }
20 |
21 | public void setSecretKey(byte[] secretKey) {
22 | this.secretKey = secretKey;
23 | }
24 |
25 | public byte[] getSeed() {
26 | return seed;
27 | }
28 |
29 | public void setSeed(byte[] seed) {
30 | this.seed = seed;
31 | }
32 | //
33 | //public PairInfo(byte[] publicKey, byte[] secretKey, byte[] seed) {
34 | // this.publicKey = publicKey;
35 | // this.secretKey = secretKey;
36 | // this.seed = seed;
37 | //}
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/direct/IApi.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.direct;
2 |
3 | import org.polkadot.api.Types;
4 | import org.polkadot.types.rpc.RuntimeVersion;
5 | import org.polkadot.types.type.Hash;
6 |
7 | public interface IApi {
8 |
9 | Hash getGenesisHash();
10 |
11 | RuntimeVersion getRuntimeVersion();
12 |
13 | Types.Derive derive();
14 |
15 | Types.QueryableStorage query();
16 |
17 | Types.DecoratedRpc rpc();
18 |
19 | Types.SubmittableExtrinsics tx();
20 |
21 | Types.Signer getSigner();
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/direct/IFunction.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.direct;
2 |
3 |
4 | public interface IFunction {
5 | }
6 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/direct/IModule.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.direct;
2 |
3 | import java.util.Set;
4 |
5 | public interface IModule {
6 | S section(String section);
7 |
8 | Set sectionNames();
9 |
10 | default void addSection(String sectionName, S section) {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/direct/IRpcFunction.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.direct;
2 |
3 | import com.onehilltech.promises.Promise;
4 |
5 | public interface IRpcFunction extends IFunction {
6 |
7 | interface Unsubscribe {
8 | T unsubscribe();
9 | }
10 |
11 | interface SubscribeCallback {
12 | void callback(T t);
13 | }
14 |
15 | Promise invoke(Object... params);
16 |
17 | default boolean isSubscribe() {
18 | return false;
19 | }
20 |
21 | default Promise unsubscribe(int subscriptionId) {
22 | //TODO 2019-06-11 11:00
23 | throw new UnsupportedOperationException();
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/direct/IRpcModule.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.direct;
2 |
3 | import com.google.common.collect.Sets;
4 | import org.polkadot.rpc.core.IRpc;
5 |
6 | import java.util.Set;
7 |
8 | public interface IRpcModule extends IModule {
9 | IRpc.RpcInterfaceSection author();
10 |
11 | IRpc.RpcInterfaceSection chain();
12 |
13 | IRpc.RpcInterfaceSection state();
14 |
15 | IRpc.RpcInterfaceSection system();
16 |
17 | @Override
18 | default Set sectionNames() {
19 | return Sets.newHashSet("author", "chain", "state", "system");
20 | }
21 |
22 | @Override
23 | default IRpc.RpcInterfaceSection section(String section) {
24 | switch (section) {
25 | case "author":
26 | return author();
27 | case "chain":
28 | return chain();
29 | case "state":
30 | return state();
31 | case "system":
32 | return system();
33 | default://TODO 2019-05-09 15:19
34 | throw new UnsupportedOperationException();
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/direct/ISection.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.direct;
2 |
3 | import org.slf4j.Logger;
4 | import org.slf4j.LoggerFactory;
5 |
6 | import java.util.HashMap;
7 | import java.util.Map;
8 | import java.util.Set;
9 |
10 | public abstract class ISection {
11 | private static final Logger logger = LoggerFactory.getLogger(ISection.class);
12 |
13 | protected Map functions = new HashMap<>();
14 |
15 | public F function(String function) {
16 | return functions.get(function);
17 | }
18 |
19 | public boolean addFunction(String name, F function) {
20 | boolean result = true;
21 | if (this.functions.containsKey(name)) {
22 | logger.error(" dup function name {}, {}, {}",
23 | name, this.functions.get(name), function);
24 | result = false;
25 | }
26 | this.functions.put(name, function);
27 | return result;
28 | }
29 |
30 | public Set functionNames() {
31 | return this.functions.keySet();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/example/rx/E03_ListenToBalanceChange.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.example.rx;
2 |
3 | import io.reactivex.Observable;
4 | import org.polkadot.api.rx.ApiRx;
5 | import org.polkadot.rpc.provider.ws.WsProvider;
6 |
7 | public class E03_ListenToBalanceChange {
8 | static String Alice = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
9 |
10 | //static String endPoint = "wss://poc3-rpc.polkadot.io/";
11 | //static String endPoint = "wss://substrate-rpc.parity.io/";
12 | //static String endPoint = "ws://45.76.157.229:9944/";
13 | static String endPoint = "ws://127.0.0.1:9944";
14 |
15 | static void initEndPoint(String[] args) {
16 | if (args != null && args.length >= 1) {
17 | endPoint = args[0];
18 | System.out.println(" connect to endpoint [" + endPoint + "]");
19 | } else {
20 | System.out.println(" connect to default endpoint [" + endPoint + "]");
21 | }
22 | }
23 |
24 | public static void main(String[] args) {
25 | initEndPoint(args);
26 |
27 | WsProvider wsProvider = new WsProvider(endPoint);
28 |
29 | Observable apiRxObservable = ApiRx.create(wsProvider);
30 |
31 | apiRxObservable.flatMap((apiRx) -> {
32 | return apiRx.query().section("balances").function("freeBalance").call(Alice);
33 | }).subscribe((result) -> {
34 | System.out.println("freeBalance result " + result);
35 | });
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/core/IRpc.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.core;
2 |
3 |
4 | import com.onehilltech.promises.Promise;
5 | import org.polkadot.direct.IRpcFunction;
6 | import org.polkadot.direct.ISection;
7 |
8 | public interface IRpc {
9 |
10 | //abstract class RpcInterfaceMethod implements IRpcFunction {
11 | // String subscription;
12 | //
13 | // @Override
14 | // public abstract Promise invoke(Object... params);
15 | //
16 | // abstract Promise unsubscribe(int id);
17 | //}
18 |
19 | //T : () -> {}
20 | //T : codec
21 | //abstract class RpcInterfaceMethodNew implements IFunction {
22 | // //String subscription;
23 | //
24 | // abstract Promise invoke(Object... params);
25 | //
26 | // //abstract Promise<> unsubscribe(int id);
27 | //}
28 |
29 |
30 | class RpcInterfaceSection extends ISection {
31 | //Map methods = new HashMap<>();
32 |
33 | //@Override
34 | //public IFunction function(String function) {
35 | // return methods.get(function);
36 | //}
37 | }
38 |
39 | RpcInterfaceSection author();
40 |
41 | RpcInterfaceSection chain();
42 |
43 | RpcInterfaceSection state();
44 |
45 | RpcInterfaceSection system();
46 |
47 | }
48 |
49 |
50 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/json/JsonRpc.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.json;
2 |
3 | import org.polkadot.rpc.json.types.JsonRpcSection;
4 |
5 | public class JsonRpc {
6 |
7 | public static final JsonRpcSection author = JsonAuthor.author;
8 | public static final JsonRpcSection chain = JsonChain.chain;
9 | public static final JsonRpcSection state = JsonState.state;
10 | public static final JsonRpcSection system = JsonSystem.system;
11 | }
12 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/json/README.md:
--------------------------------------------------------------------------------
1 | # @polkadot/jsonrpc
2 |
3 | A definition of all the methods exposed in a general Polkadot client application. These are used not only to provide a comprehensive code-generated document of the available methods, but are also used in the API to auto-generate endpoints with the required type-checking.
4 |
5 | For a list of currently exposed methods, see the [method documentation](docs/METHODS_RPC.md).
6 |
7 | ## Usage
8 |
9 | Installation -
10 |
11 | ```
12 | yarn add @polkadot/jsonrpc
13 | ```
14 |
15 | ## Adding methods
16 |
17 | As methods are added, simply adding the name, inputs & output will prepare it for use.
18 |
19 | - Add the method to the correct file in [src/rpc/](src/rpc/) (Input/Output types as cross-referenced from the canonical implementation and match one-to-one)
20 | - Should a new type be required, add it to the type list, [src/types.js](src/types.js) (Required for TSLint type checking)
21 |
22 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/json/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | # @polkadot/jsonrpc
3 |
4 | A definition of all the methods exposed in a general Polkadot client application. These are used not only to provide a comprehensive code-generated document of the available methods, but are also used in the API to auto-generate endpoints with the required type-checking.
5 |
6 | For a list of currently exposed methods, see the [method documentation](docs/METHODS_RPC.md).
7 |
8 | ## Usage
9 |
10 | Installation -
11 |
12 | ```
13 | yarn add @polkadot/jsonrpc
14 | ```
15 |
16 | ## Adding methods
17 |
18 | As methods are added, simply adding the name, inputs & output will prepare it for use.
19 |
20 | - Add the method to the correct file in [src/rpc/](src/rpc/) (Input/Output types as cross-referenced from the canonical implementation and match one-to-one)
21 | - Should a new type be required, add it to the type list, [src/types.js](src/types.js) (Required for TSLint type checking)
22 | */
23 | package org.polkadot.rpc.json;
24 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/json/types/JsonRpcParam.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.json.types;
2 |
3 |
4 | public class JsonRpcParam {
5 | private boolean isOptional;
6 | private String name;
7 | //private String type;
8 | private String type;
9 |
10 | public JsonRpcParam(String name, String type, boolean isOptional) {
11 | this.isOptional = isOptional;
12 | this.name = name;
13 | this.type = type;
14 | }
15 |
16 | public JsonRpcParam(String name, String type) {
17 | this(name, type, false);
18 | }
19 |
20 | public boolean isOptional() {
21 | return isOptional;
22 | }
23 |
24 | public void setOptional(boolean optional) {
25 | isOptional = optional;
26 | }
27 |
28 | public java.lang.String getName() {
29 | return name;
30 | }
31 |
32 | public void setName(java.lang.String name) {
33 | this.name = name;
34 | }
35 |
36 | public String getType() {
37 | return type;
38 | }
39 |
40 | public void setType(String type) {
41 | this.type = type;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/json/types/JsonRpcSection.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.json.types;
2 |
3 | import java.util.Map;
4 |
5 | public class JsonRpcSection {
6 |
7 | public boolean isDeprecated;
8 | public boolean isHidden;
9 | public String description;
10 | public String section;
11 | public Map rpcMethods;
12 |
13 | public JsonRpcSection(boolean isDeprecated, boolean isHidden, String description, String section, Map rpcMethods) {
14 | this.isDeprecated = isDeprecated;
15 | this.isHidden = isHidden;
16 | this.description = description;
17 | this.section = section;
18 | this.rpcMethods = rpcMethods;
19 | }
20 |
21 | //isDeprecated: boolean,
22 | //isHidden: boolean,
23 | //description: string,
24 | //section: string,
25 | //methods: {
26 | //[index: string]: RpcInterfaceMethod
27 | //}
28 | }
29 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/provider/Constants.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.provider;
2 |
3 | public interface Constants {
4 |
5 | String HTTP_URL = "http://127.0.0.1:9933";
6 | String WS_URL = "ws://127.0.0.1:9944";
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/provider/IWsProvider.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.provider;
2 |
3 | public interface IWsProvider extends IProvider {
4 | void connect();
5 | }
6 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/provider/README.md:
--------------------------------------------------------------------------------
1 | # @polkadot/rpc-provider
2 |
3 | Generic transport providers to handle the transport of method calls to and from Polkadot clients from applications interacting with it. It provides an interface to making RPC calls and is generally, unless you are operating at a low-level and taking care of encoding and decoding of parameters/results, it won't be directly used, rather only passed to a higher-level interface.
4 |
5 | ## Provider Selection
6 |
7 | There are two flavours of the providers provided, one allowing for using HTTP as a transport mechanism, the other using WebSockets. It is generally recommended to use the [[WsProvider]] since in addition to standard calls, it allows for subscriptions where all changes to state can be pushed from the node to the client.
8 |
9 | ## Usage
10 |
11 | WebSocket Initialisation -
12 |
13 | ```java
14 | import org.polkadot.rpc.provider.ws.WsProvider;
15 |
16 | // this is the actual default endpoint
17 | const provider = new WsProvider('ws://127.0.0.1:9944');
18 | const version = provider.send('client_version', []);
19 |
20 | System.out.println('client version', version);
21 | ```
22 |
23 | HTTP Initialisation -
24 |
25 | ```java
26 | import org.polkadot.rpc.provider.http.HttpProvider;
27 |
28 | // this is the actual default endpoint
29 | const provider = new HttpProvider('http://127.0.0.1:9933');
30 | const version = provider.send('chain_getBlockHash', []);
31 |
32 | System.out.println('latest block Hash', hash);
33 | ```
34 |
35 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/provider/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | # @polkadot/rpc-provider
3 |
4 | Generic transport providers to handle the transport of method calls to and from Polkadot clients from applications interacting with it. It provides an interface to making RPC calls and is generally, unless you are operating at a low-level and taking care of encoding and decoding of parameters/results, it won't be directly used, rather only passed to a higher-level interface.
5 |
6 | ## Provider Selection
7 |
8 | There are two flavours of the providers provided, one allowing for using HTTP as a transport mechanism, the other using WebSockets. It is generally recommended to use the {@link org.polkadot.rpc.provider.ws.WsProvider} since in addition to standard calls, it allows for subscriptions where all changes to state can be pushed from the node to the client.
9 |
10 | ## Usage
11 |
12 | WebSocket Initialisation -
13 |
14 | ```java
15 | import org.polkadot.rpc.provider.ws.WsProvider;
16 |
17 | // this is the actual default endpoint
18 | const provider = new WsProvider('ws://127.0.0.1:9944');
19 | const version = provider.send('client_version', []);
20 |
21 | System.out.print("client version ");
22 | System.out.println(version);
23 | ```
24 |
25 | HTTP Initialisation -
26 |
27 | ```java
28 | import org.polkadot.rpc.provider.http.HttpProvider;
29 |
30 | // this is the actual default endpoint
31 | const provider = new HttpProvider('http://127.0.0.1:9933');
32 | const version = provider.send('chain_getBlockHash', []);
33 |
34 | System.out.print("latest block Hash ");
35 | System.out.println(hash);
36 | ```
37 | */
38 | package org.polkadot.rpc.provider;
39 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/rx/README.md:
--------------------------------------------------------------------------------
1 | # @polkadot/rpc-rx
2 |
3 | An RxJs wrapper around the [@polkadot/rpc-core](../rpc-core).
4 |
--------------------------------------------------------------------------------
/packages/src/main/java/org/polkadot/rpc/rx/Types.java:
--------------------------------------------------------------------------------
1 | package org.polkadot.rpc.rx;
2 |
3 | import io.reactivex.Observable;
4 | import org.polkadot.common.EventEmitter;
5 | import org.polkadot.direct.IRpcModule;
6 | import org.polkadot.rpc.provider.IProvider;
7 |
8 | import java.util.LinkedHashMap;
9 |
10 | public interface Types {
11 |
12 | interface IRpcRx extends IRpcModule {
13 | void on(IProvider.ProviderInterfaceEmitted type, EventEmitter.EventListener callback);
14 | Observable isConnected();
15 | }
16 |
17 | interface RpcRxOnCb {
18 | Object callback(Object... args);
19 | }
20 |
21 | interface RpcRxInterfaceMethod {
22 | Observable