@notabene/javascript-sdk
Advanced tools
Comparing version 1.20.0 to 1.21.0
@@ -11,3 +11,3 @@ { | ||
"license": "MIT", | ||
"version": "1.20.0", | ||
"version": "1.21.0", | ||
"main": "dist/index.js", | ||
@@ -14,0 +14,0 @@ "packageManager": "yarn@3.2.2", |
@@ -79,2 +79,19 @@ <div align="center"> | ||
###Supported asset formats | ||
- `USDC` the simple asset code passed as a `string`, in case different chain (polygon) -> `USDC-POLY` | ||
- `CAIP19` format | ||
```js | ||
{ | ||
caip19: 'eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'; // for USDC | ||
} | ||
``` | ||
- `coingeckoId` and `network` format | ||
```js | ||
{ | ||
coingeckoId: "usd-coin", | ||
network: "ethereum" | ||
} | ||
``` | ||
--- | ||
@@ -81,0 +98,0 @@ |
@@ -66,5 +66,12 @@ import { DateAndPlaceOfBirth, NationalIdentification } from 'ivms/types'; | ||
export type CAIP19 = { | ||
caip19: string; | ||
}; | ||
export type CoingeckoIdAndNetwork = { coingeckoId: string; network: string }; | ||
export type TransactionAsset = string | CAIP19 | CoingeckoIdAndNetwork; | ||
export type Transaction = OriginatorFields & | ||
BeneficiaryFields & { | ||
transactionAsset: string; | ||
transactionAsset: TransactionAsset; | ||
transactionAmount: string; | ||
@@ -71,0 +78,0 @@ transactionBlockchainInfo?: TransactionBlockchainInfo; |
158146
1117
259