github PolymeshAssociation/polymesh-sdk v1.0.0

latest releases: v24.3.0-alpha.3, v24.3.0-alpha.2, v24.3.0-alpha.1...
3 years ago

1.0.0 (2020-09-29)

Bug Fixes

Code Refactoring

  • rename getPolyBalance to getPolyXBalance (2b929e7)

Features

  • accept an optional signer to allow signing through extensions (3f40b9d)
  • accept both types (identity or string) (cdd98df)
  • add .compliance.trustedClaimIssuers.get to the ST (6e40c44)
  • add .compliance.trustedClaimIssuers.set to ST (611d82f)
  • add add and remove to the trusted claim issuers namespace (11a38c6)
  • add compliance.rules.get to the Security Token Entity (472d9d7)
  • add compliance.rules.set to the Security Token entity (68e6291)
  • add editClaims to client root (8624efb)
  • add getClaimScopes to the identity entity (925ac18)
  • add getCurrentIdentity to context class (9888188)
  • add getTransactionFees to the api root (f9268cc)
  • add getTrustingTokens to Identity Entity (5c99dc8)
  • add governance.createProposal (52459ae)
  • add Governance.getTransactionArguments (56a45c7)
  • add onProcessedByMiddleware to TransactionQueue (15b0e6c)
  • add rules.checkTransfer and rules.checkMint (2bb461d)
  • add alternative initializations of context class (506787f)
  • add authorizations namespace to Account entity (6a565e7)
  • add batchSize to document extrinsics (360a256)
  • add better support for accounts (6f31bb8)
  • add canMint to tokenholders data (9ac5289)
  • add commitizen and semver (50c8b7b)
  • add connection error handlers (ba878df)
  • add context specific data to errors (56d6bca)
  • add count to TesultSet returned by paginated GQL queries (b7519f1)
  • add documents to token creation (7f17e0a)
  • add fee getters to queue and transactions (f6c30cf)
  • add freeBalance method (4e228ef)
  • add getTargetingClaims (ff02c73)
  • add getTransactionHistory method (611954d)
  • add github actions and some test code (3eb635e)
  • add includeExpired opts (7a4dc5b)
  • add includeExpired to didsWithClaims query (d30a070)
  • add minimum proposal deposit method (ed8fa43)
  • add missing sub and comment out unused method (6047b00)
  • add namespace for claims related functionality (fafdcfb)
  • add namespaces (ef55589)
  • add pagination support (d39978d)
  • add PolymeshError typeguard (e07bdd8)
  • add prettier and linting configs to the project and badge (8833465)
  • add revoke claim functionality (bf86fe0)
  • add subscriptions to getters where applicable (ce61cbe)
  • add support for batch fees (ce47a8e)
  • add support for custom batching logic (c731f01)
  • add support for historic queries (092d3af)
  • add target in getIssuedClaims method (4bfb9ff)
  • add test for setFundingRound (190bfc4)
  • add transactions to middleware queries (1eaabc0)
  • add typedocs configuration to project (35fa2bc)
  • add unserialize and serialize methods (d125225)
  • allow issuer change funding round name (3beb566)
  • allow passing an identity to getIdentityBalance (2e18a45)
  • allow the SDK to be instanced with an account that has no identity (f71cd3a)
  • apollo client connection (22aa038)
  • apollo-codegen implementation (9f69fe8)
  • arePaused method (20e717e)
  • attach one claim to one or multiple did (8341e77)
  • avoid an extra transaction if the supplied document list is empty (1bec7fa)
  • cancel proposal (2535536)
  • change a token from indivisible to divisible (b24145c)
  • change inputs for addClaims, editClaims and revokeClaims (212ab8a)
  • change mentions of blacklist and whitelist (be81152)
  • change security token name (0085536)
  • check equality properly (5aa65ea)
  • check if an identity has voted the proposal (07fb1e4)
  • configure coverage report tool (f83cad1)
  • context class (038873f)
  • create currentMinimumBondedAmount method (106ccb7)
  • create TickerReservation class (MSDK-70) (b6b0cfa)
  • create transaction queue class (62939f3)
  • create types for claims (82d52a3)
  • delete all rules of a token (2324034)
  • edit proposal (240b2a2)
  • endpoint to check if a ticker is available (0c2189f)
  • entity class (59c05af)
  • export entities as types (c60feda)
  • export ss58_format to use in decodeAddress (fa8cbe3)
  • export the IdentityBalance type+ (15118ad)
  • export utility types and classes (3e83660)
  • expose TransactionQueue and PolymeshTransaction types (544cd2a)
  • expose getpolybalance on polymesh class (941a3ef)
  • expose polkadot API (5b5ac9f)
  • expose treasury did in SecurityToken.details (5a226ce)
  • extend the registration period before it expires (4f70fbd)
  • fetch a list of DIDs that have a balance > 0 (9a58037)
  • fetch all the claims I made (8d26554)
  • fetch all the token symbols registered to my DID (61b1177)
  • fetch fees automatically (e8d8c3e)
  • fetch graphql types script (7c03ea5)
  • fetch pending authorizations filtered by their type (f6e8bf1)
  • fetch proposals (496b144)
  • fetch security tokens (18a6b1a)
  • filter out expired authorizations (044a257)
  • finish implementation and tests (ddadd2b)
  • finish modifyToken procedure and tests with 100% coverage (25fb4f2)
  • freeze / un-freeze transfers (2e0707c)
  • get all dids with their claims (6302a4a)
  • get creation token event id (8e15c62)
  • get if the current node is archive or not (0073002)
  • get network name and runtime version (a916676)
  • get Proposal Time Frames method (9c3ed12)
  • get proposal votes (1005c8d)
  • get the funding round for a security token (c78ea27)
  • get the locked balance of an account (53c9302)
  • get the token's asset type (047e668)
  • get the treasury account (31425ae)
  • get the treasury balance (57e8303)
  • get trusted claim issuers (0250c8a)
  • getAssetsWithBalance (5fb48c7)
  • getCddClaims (75cbc54)
  • getClaims (eca080f)
  • getIdentifiers method draft (2dcab84)
  • getMySigningKeys method (6db6b0d)
  • getProposals and getDetails refactor (4660ab0)
  • governance class and get GC members (23896af)
  • harvester credentails (0605ed1)
  • hasValidCdd (2d42c10)
  • identity class (2e573d2)
  • implement accept and remove in the AuthorizationRequest Entity (ebf68fb)
  • implement authorizations.getReceived in the Security Token (1e92748)
  • implement documents.get in the Security Token Entity (7f960e6)
  • implement documents.set in the Security Token entity (adbe4ec)
  • implement transferOwnership in the Security Token Entity (a259699)
  • implement transfers.canTransfer in Security Token (b2ea859)
  • implement access to token details (8725506)
  • implement canTransfer on issueTokens method (6158651)
  • implement identity balance methods (27bac0f)
  • implement isGcMember (12752b3)
  • implement PolymeshTransaction class (6a52c5f)
  • implement post transaction resolver (a462bd7)
  • implement Procedure class (74cfd05)
  • implement reserveTicker procedure (691b1ff)
  • implement script and hasValidCdd method (7c26041)
  • implement token creation (e806b11)
  • implement transaction queues (947d7de)
  • improve doc generation (2f02fac)
  • improve external errors (9509c38)
  • invite a secondary key to join a signing key list (a73350e)
  • isCddProvider (a07dd9c)
  • make context private and move getNetworkProperties to root (5d8ed54)
  • make scope nullable (21640fb)
  • method getIdentifiers and tests (81da255)
  • minimumBondedAmount (eac8824)
  • old blocks must throw an error if node is not archive (0c68ef6)
  • optional memo argument to transfer POLX method (79e15a8)
  • pause and unpause rules (074c439)
  • point to pmf node + tests + update package.json (6dd24cf)
  • polymesh class (d1542f9)
  • prepareSetIssuanceData final code (aca20ee)
  • prevent the tx submodule from being accessed without an acc (e1a672c)
  • proposal class (e73783f)
  • refine role checking in procedures (5846c4f)
  • registerIdentity method (35ecc64)
  • remove polkadot fork dependency (34e5a00)
  • removeMySigningKeys method (4f2e92e)
  • restructure mock factory (5ca9d43)
  • return null when identity doesn't exist (74dccff)
  • run script to interact with the sdk (7978f6c)
  • security token entity (1f0e6d5)
  • setIssuanceData structure (edff37f)
  • skip middleware validations if the middleware is unavailable (96d1283)
  • split batch transactions into chunks (e82a321)
  • support missing status codes (00b5f64)
  • support ui-keyring format (dcd37cd)
  • tests (4072371)
  • ticker validation (d571966)
  • transfer polyx (a5d59c0)
  • transfer token (2fddcc2)
  • trusted claim issuer entity (f2817fa)
  • type conversion utils (c4c917a)
  • update currentIdentity when calling setPair in the Context class (c952567)
  • update currentIdentity with new currentPair (55896e3)
  • update polkdaot to version 1.9.1 (a95b5f5)
  • update the polkadot fork to the latest version (116895d)
  • update to latest polymesh specification (49f28dc)
  • update types to latest polymesh version (f2fd198)
  • upgrade polkadot to 1.27.1 (23d0f37)
  • upgrade to latest mesh (59efb81)
  • use different values for different batch extrinsics (e218003)
  • use getFilteredLinks rpc call (ad0572a)
  • use latest mesh types (f82fa5a)
  • use latest middleware types (6a07a15)
  • use number for rule ids (863a14c)
  • use proper transaction status (d567b92)
  • use ss58 format in encodeAddress (09f5905)
  • validate if invited account already has an identity (fbc2265)
  • vote proposal (0ac0aab)

BREAKING CHANGES

  • account.getIdentity(), currentAccount.getIdentity() and
    api.getCurrentIdentity() now return null if the Identity doesn't exist (used to throw an error)
    • api.getAccountBalance() arguments changed from { accountId: string } to { account: string | Account }
  • api.getTickerReservation() arguments changed from { did: string | Identity } to { owner: string | Identity }
  • api.getSecurityToken() arguments changed from { did: string | Identity } to { owner: string | Identity }
  • api.getIdentity() is no longer async and only returns an Identity object for a passed DID. To retrieve the current Identity, an async api.getCurrentIdentity was introduced
  • api.getTreasuryAccount() now returns an Account object
  • api.getTransactionHistory() moved to the Account class, no longer receives an address as a parameter (the address is now obtained from the Account)
  • api.getMySigningKeys() moved to the CurrentIdentity class (renamed to getSigningKeys), now returns an array of SigningKey objects ({ signer: Signer; permissions: Permission[] })
  • api.removeMySigningKeys() moved to the CurrentIdentity class (renamed to removeSigningKeys)
  • api.transferPolyX() args.to changed from string to string | Account
  • api.registerIdentity() args.targetAccount changed from string to string | Account
  • targetDid: string changed to target: Signer in the AuthorizationRequest class, issuerDid: string changed to issuer: Identity
  • proposal.identityHasVoted() arguments changed from { did: string | Identity } to { identity: string | Identity }
  • identity: Identity changed to account: Account in the ProposalVote interface (this affects the results of proposal.getVotes())
  • securityToken.transferOwnership args.did: string changed to args.target: string | Identity
    • api.addClaims -> api.claims.addClaims
  • api.editClaims -> api.claims.editClaims
  • api.getIdentitiesWithClaims -> api.claims.getIdentitiesWithClaims
  • api.getIssuedClaims -> api.claims.getIssuedClaims({target})
  • api.revokeClaims -> api.claims.revokeClaims
  • identity.getClaimScopes -> api.claims.getClaimScopes({target})
  • identity.getCddClaims -> api.claims.getCddClaims({target})
  • getIdentity in the Polymesh class is now async
  • The ClaimTargets interface has been replaced with ClaimTarget. Instead of
    representing a set of identities with one claim, it now represents a single identity/claim pair
  • getIssuedClaims and getIdentitiesWithClaims return ResultSet
    instead of IdentityWithClaims[]
  • ClaimType.Whitelisted is now ClaimType.Exempted, ClaimType.Blacklisted is now
    ClaimType.Blocked
  • renamed getPolyBalance to getPolyXBalance in the SDK client

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.