@cityofzion/blockchain-service 3.1.15 → 3.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces.d.ts +4 -1
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -359,9 +359,10 @@ export interface ISwapOrchestrator<N extends string> {
|
|
|
359
359
|
calculateFee(): Promise<string>;
|
|
360
360
|
}
|
|
361
361
|
export type TBSBridgeName = 'neo3' | 'neox';
|
|
362
|
+
export type TBridgeTokenMultichainId = 'neo' | 'gas' | 'ndmeme';
|
|
362
363
|
export type TBridgeToken<N extends TBSBridgeName> = TBSToken & {
|
|
363
364
|
blockchain: N;
|
|
364
|
-
multichainId:
|
|
365
|
+
multichainId: TBridgeTokenMultichainId;
|
|
365
366
|
};
|
|
366
367
|
export type TBridgeValue<T> = {
|
|
367
368
|
value: T | null;
|
|
@@ -429,6 +430,8 @@ export type TNeo3NeoXBridgeTransactionData<N extends TBSBridgeName> = {
|
|
|
429
430
|
export interface INeo3NeoXBridgeService<N extends TBSBridgeName> {
|
|
430
431
|
readonly gasToken: TBridgeToken<N>;
|
|
431
432
|
readonly neoToken: TBridgeToken<N>;
|
|
433
|
+
readonly ndmemeToken: TBridgeToken<N>;
|
|
434
|
+
readonly tokens: TBridgeToken<N>[];
|
|
432
435
|
getApprovalFee(params: TNeo3NeoXBridgeServiceGetApprovalParam<N>): Promise<string>;
|
|
433
436
|
getBridgeConstants(token: TBridgeToken<N>): Promise<TNeo3NeoXBridgeServiceConstants>;
|
|
434
437
|
bridge(params: TNeo3NeoXBridgeServiceBridgeParam<N>): Promise<string>;
|