@railgun-community/shared-models 4.1.12 → 4.1.13
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/models/relayer.d.ts
CHANGED
|
@@ -19,18 +19,46 @@ export declare type RelayerMethodParamsTransact = {
|
|
|
19
19
|
pubkey: string;
|
|
20
20
|
encryptedData: EncryptedData;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
serializedTransaction: string;
|
|
22
|
+
declare type RelayerRawParamsShared = {
|
|
24
23
|
chainID: number;
|
|
25
24
|
chainType: ChainType;
|
|
26
25
|
feesID: string;
|
|
27
|
-
minGasPrice: string;
|
|
28
26
|
relayerViewingKey: string;
|
|
29
|
-
useRelayAdapt: boolean;
|
|
30
27
|
devLog: boolean;
|
|
31
28
|
minVersion: string;
|
|
32
29
|
maxVersion: string;
|
|
33
30
|
};
|
|
31
|
+
export declare type RelayerRawParamsTransact = RelayerRawParamsShared & {
|
|
32
|
+
serializedTransaction: string;
|
|
33
|
+
minGasPrice: string;
|
|
34
|
+
useRelayAdapt: boolean;
|
|
35
|
+
};
|
|
36
|
+
declare type Ciphertext = {
|
|
37
|
+
iv: string;
|
|
38
|
+
tag: string;
|
|
39
|
+
data: string[];
|
|
40
|
+
};
|
|
41
|
+
declare type CommitmentCiphertext = {
|
|
42
|
+
ciphertext: Ciphertext;
|
|
43
|
+
blindedSenderViewingKey: string;
|
|
44
|
+
blindedReceiverViewingKey: string;
|
|
45
|
+
annotationData: string;
|
|
46
|
+
memo: string;
|
|
47
|
+
};
|
|
48
|
+
export declare type RelayerRawParamsPreAuthorize = RelayerRawParamsShared & {
|
|
49
|
+
gasLimit: string;
|
|
50
|
+
commitmentCiphertext: CommitmentCiphertext;
|
|
51
|
+
commitmentHash: string;
|
|
52
|
+
};
|
|
53
|
+
export declare type RelayerPreAuthorization = {
|
|
54
|
+
chainID: number;
|
|
55
|
+
gasLimit: string;
|
|
56
|
+
commitmentHash: string;
|
|
57
|
+
expiration: number;
|
|
58
|
+
};
|
|
59
|
+
export declare type RelayerSignedPreAuthorization = RelayerPreAuthorization & {
|
|
60
|
+
signature: string;
|
|
61
|
+
};
|
|
34
62
|
export declare type CachedTokenFee = {
|
|
35
63
|
feePerUnitGas: string;
|
|
36
64
|
expiration: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relayer.js","sourceRoot":"","sources":["../../src/models/relayer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"relayer.js","sourceRoot":"","sources":["../../src/models/relayer.ts"],"names":[],"mappings":";;;AAsFA,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,0CAAe,CAAA;IACf,kDAAuB,CAAA;IACvB,kDAAuB,CAAA;IACvB,wDAA6B,CAAA;IAC7B,4DAAiC,CAAA;AACnC,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC","sourcesContent":["import { ChainType } from './response-types';\n\nexport type RelayerFeeMessageData = {\n fees: MapType<string>;\n feeExpiration: number;\n feesID: string;\n railgunAddress: string;\n identifier: Optional<string>;\n availableWallets: number;\n version: string;\n relayAdapt: string;\n};\n\nexport type RelayerFeeMessage = {\n data: string; // hex-encoded FeeMessageData\n signature: string; // hex-encoded signature\n};\n\ntype EncryptedData = [string, string];\n\nexport type RelayerMethodParamsTransact = {\n pubkey: string;\n encryptedData: EncryptedData;\n};\n\ntype RelayerRawParamsShared = {\n chainID: number;\n chainType: ChainType;\n feesID: string;\n relayerViewingKey: string;\n devLog: boolean;\n minVersion: string;\n maxVersion: string;\n};\n\nexport type RelayerRawParamsTransact = RelayerRawParamsShared & {\n serializedTransaction: string;\n minGasPrice: string;\n useRelayAdapt: boolean;\n};\n\ntype Ciphertext = {\n iv: string;\n tag: string;\n data: string[];\n};\n\ntype CommitmentCiphertext = {\n ciphertext: Ciphertext;\n blindedSenderViewingKey: string;\n blindedReceiverViewingKey: string;\n annotationData: string;\n memo: string;\n};\n\nexport type RelayerRawParamsPreAuthorize = RelayerRawParamsShared & {\n gasLimit: string;\n commitmentCiphertext: CommitmentCiphertext;\n commitmentHash: string;\n};\n\nexport type RelayerPreAuthorization = {\n chainID: number;\n gasLimit: string;\n commitmentHash: string;\n expiration: number;\n};\n\nexport type RelayerSignedPreAuthorization = RelayerPreAuthorization & {\n signature: string;\n};\n\nexport type CachedTokenFee = {\n feePerUnitGas: string;\n expiration: number;\n feesID: string;\n availableWallets: number;\n relayAdapt: string;\n};\n\nexport type SelectedRelayer = {\n railgunAddress: string;\n tokenAddress: string;\n tokenFee: CachedTokenFee;\n};\n\nexport enum RelayerConnectionStatus {\n Error = 'Error',\n Searching = 'Searching',\n Connected = 'Connected',\n Disconnected = 'Disconnected',\n AllUnavailable = 'AllUnavailable',\n}\n"]}
|