Skip to content

Commit

Permalink
feat: Support Orchestrate v21.12.1 (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
darioAnongba authored Jan 14, 2022
1 parent 8d8d36d commit d2e01ec
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## 6.1.0 (2022-01-13)

### 🆕 Features

- Support for Orchestrate v21.12.1 by adding the `contractTag` and `contractName` field to the `ISendTransactionRequest` object.

## 6.0.2 (2022-01-03)

### 🛠 Bug fixes
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The Orchestrate library provides convenient access to the Orchestrate API from a
| SDK versions | Orchestrate versions |
| ------------------- | ------------------------------ |
| master/HEAD | Orchestrate v21.12.0 or higher |
| SDK v6.1.x | Orchestrate v21.12.1 or higher |
| SDK v6.0.x | Orchestrate v21.12.0 or higher |
| ~~SDK v5.x.x~~ | Deprecated |
| SDK v4.1.x | Orchestrate v21.1.5 or higher |
Expand Down
1 change: 1 addition & 0 deletions examples/send-onetimekey-tx/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const start = async () => {
chain: 'besu',
params: {
to: '[DEPLOYED_CONTRACT_ADDRESS]',
contractName: 'SimpleToken',
methodSignature: 'transfer(address,uint256)',
args: ['0x6009608a02a7a15fd6689d6dad560c44e9ab61ff', 5000],
oneTimeKey: true
Expand Down
4 changes: 2 additions & 2 deletions examples/send-private-tx/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const start = async () => {
contractName: 'SimpleToken',
from: '[ETH_ACCOUNT]',
protocol: ProtocolType.EEA,
privateFor: ['k2zXEin4Ip/qBGlRkJejnGWdP9cjkK+DAvKNW31L2C8='], // Orion default node 2 public key in development mode
privateFrom: 'Ko2bVqD+nNlNYL5EE7y3IdOnviftjiizpjRt+HTuFBs=' // Orion default node 1 public key in development mode
privateFor: ['QfeDAys9MPDs2XHExtc84jKGHxZg/aj52DTh0vtA3Xc='], // EEA default node 2 public key in development mode
privateFrom: 'BULeR8JyUWhiuuCMU/HLA0Q5pzkYT+cHII3ZKBey3Bo=' // EEA default node 1 public key in development mode
}
},
'ExampleSendPrivate'
Expand Down
1 change: 1 addition & 0 deletions examples/send-tx/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const start = async () => {
params: {
from: '[ETH_ACCOUNT]',
to: '[DEPLOYED_CONTRACT_ADDRESS]',
contractName: 'SimpleToken',
methodSignature: 'transfer(address,uint256)',
args: ['0x6009608a02a7a15fd6689d6dad560c44e9ab61ff', 5000]
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pegasys-orchestrate",
"version": "6.0.2",
"version": "6.1.0",
"description": "The PegaSys Orchestrate library provides convenient access to the Codefi Orchestrate API from applications written in server-side JavaScript",
"main": "lib/index.js",
"files": [
Expand Down
6 changes: 4 additions & 2 deletions src/client/OrchestrateClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ describe('OrchestrateClient', () => {
params: {
from: '0xFromAddr',
to: '0xContractAddr',
methodSignature: 'transfer(address, unit256)',
contractName: 'Contract',
methodSignature: 'transfer(address,unit256)',
args: ['0xToAddr', '1000']
}
}
Expand All @@ -252,7 +253,8 @@ describe('OrchestrateClient', () => {
params: {
from: '0xFromAddr',
to: '0xContractAddr',
methodSignature: 'transfer(address, unit256)',
contractName: 'Contract',
methodSignature: 'transfer(address,unit256)',
args: ['0xToAddr', '1000'],
protocol: types.ProtocolType.EEA,
privateFor: ['0xpubkey1', '0xpubkey2'],
Expand Down
2 changes: 2 additions & 0 deletions src/client/types/ITransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export interface ISendTransactionRequest extends IBaseRequest {
}
interface ITransactionParams extends IBaseTransactionParams, IPrivateTransactionParams {
to: string
contractName: string
contractTag?: string
methodSignature: string
gasPricePolicy?: IGasPricePolicy
oneTimeKey?: boolean
Expand Down

0 comments on commit d2e01ec

Please sign in to comment.