Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Orchestrate v21.12.1 #222

Merged
merged 4 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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