github PolymeshAssociation/polymesh-sdk v7.0.0-beta.1

latest releases: v24.4.0-alpha.4, v24.4.0-alpha.3, v24.4.0-alpha.2...
pre-release2 years ago

7.0.0-beta.1 (2021-08-03)

Bug Fixes

  • use proper permissions to reschedule (5cbed7a)
  • instructions: change InstructionStatus enum to support new values (4e89fc6)
  • permissions: make all properties in SimplePermission optional (822cd33)
  • procedure: allow running procedures without an initial pkey (2d6ed14)
  • procedure: remove unnecessary setup call (da5faf2)
  • change Instruction.exists to compare id and instructionCounter (60af6d3)
  • fix getSecondaryKeys to return them when no account is set (6796aa0)
  • root: allow instancing the SDK without an account (2d83614)

chore

Features

  • account: move getPermissions and hasPermissions to Account (fe4eead)
  • entities: add toJson for easier serialization (ec39d9e)
  • entities: export Entity typeguard (a41e677)
  • external agents: create external agent base code (1057de2)
  • identity: add getInstructions to fetch grouped instructions (f5714b8)
  • identity: add hasTokenPermissions (5b8873d)
  • identity: move getSecondaryKeys from CurrentIdentity to Identity (0165d02)
  • instruction: add reschedule method for failed instructions (811ca94)
  • instruction: rename Instruction.exists to Instruction.isPending (b9c1c92)
  • instructions: add endpoint to fetch current instruction status (ec8b9e7)
  • middleware: upgrade middleware types for Polymesh 3.1.0 (b170b7d)
  • securitytoken: add fullAgents property to SecurityToken details (05a0345)
  • settlement: add support for fetching failed instructions on Venues (04c8303)
  • add opcional memo field to move portfolio funds (1447d3a)
  • improve toJson results (3008f0d)
  • quitCustody procedure (72369e7)
  • refactor createST procedure to make totalSupply as option (e595e6f)
  • refactor PIA and CAA remove procedures (89b291d)
  • refactoring modify pia and caa procedures (08432ca)
  • settlements: add endpoint to fetch a venue by its id (f211576)
  • settlements: add getInstruction endpoint (8addb59)
  • refactor PIA and CAA getters (7388156)
  • support signer and account management (0c0a7e2)
  • wip: adapt permissions to the new format (74e391f)

Reverts

  • corporate actions: restore getAgent (2a63817)

BREAKING CHANGES

  • settlement: InstructionStatus now has a new Failed value. This affects the return value of
    Instruction.details. Also, most of the methods in Instruction that threw an error when the
    instruction was no longer pending, now only do so if it has been executed (i.e. calling methods on
    failed instructions will no longer throw errors). The error message has been modified as well
    • Remade the Permissions and PermissionsLike interfaces. It now supports exclusion as well (for example, setting permissions for “every token EXCEPT for x”). Both token and portfolio permissions are represented by an array of values, and a type (PermissionType.IncludePermissionType.Exclude). In the case of transactions, both individual transactions or entire modules can be included/excluded, but we also support an exceptions array. Specific examples can be found in the documentation of the TransactionPermissions interface. The transactionGroups property only works as “include”. This change affects account.getPermissionscurrentIdentity.inviteAccountapi.registerIdentity
      SecurityTokenDetails.primaryIssuanceAgent is now replaced by SecurityTokenDetails.primaryIssuanceAgents returning a list of Identities with that AgentGroup instead
      SecurityToken.removePrimaryIssuanceAgent is now deprecated and it requires a single agent set (it will fail if there are more than one) 
      CorporateActions.getAgent is now replaced by CorporateActions.getAgents, returning a list of Identities with that AgentGroup instead
      CorporateActions.removeAgent is now deprecated and it requires a single agent set (it will fail if there are more than one)
  • identity: RoleType.TokenOwner no longer exists, and as a consequence neither does the
    TokenOwnerRole
  • CorporateActions.setAgent and SecurityToken.modifyPrimaryIssuanceAgent now throw an error if at least one agent of the respective kind is already set. To change an existing agent, removeAgent and removePrimaryIssuanceAgent respectively must be called first
    • offeringPortfolio is no longer an optional argument in Offerings.launch procedure
  • instructions: Unknow value has been removed from InstructionStatus enum
  • instruction: Previous behaviour of Instruction.exists is replaced by Instrucion.isPending
  • external agents: DefaultTrustedClaimIssuer now extends Identity. This means its identity: Identity property was removed. Since the class is now an extension of Identity, the did can be
    obtained via the did property

Don't miss a new polymesh-sdk release

NewReleases is sending notifications on new releases.