@proton/wrap-constants 0.0.32 → 0.0.33
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/parsers/actions.d.ts +617 -0
- package/dist/parsers/address.d.ts +483 -0
- package/dist/parsers/auth.d.ts +926 -0
- package/dist/parsers/base.d.ts +32 -0
- package/dist/parsers/currency.d.ts +101 -0
- package/dist/parsers/deposit.d.ts +49 -0
- package/dist/parsers/index.d.ts +10 -0
- package/dist/parsers/otc.d.ts +39 -0
- package/dist/parsers/withdraw.d.ts +511 -0
- package/dist/parsers/withdrawalHistory.d.ts +70 -0
- package/dist/parsers/wrap.d.ts +85 -0
- package/dist/wrap-constants.cjs.development.js +169 -194
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +170 -199
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/actions.ts +61 -0
- package/src/parsers/address.ts +27 -0
- package/src/parsers/auth.ts +23 -0
- package/src/parsers/base.ts +18 -0
- package/src/parsers/currency.ts +31 -0
- package/src/parsers/deposit.ts +30 -0
- package/src/parsers/index.ts +10 -0
- package/src/parsers/otc.ts +23 -0
- package/src/parsers/withdraw.ts +39 -0
- package/src/parsers/withdrawalHistory.ts +23 -0
- package/src/parsers/wrap.ts +41 -0
- package/dist/parsers.d.ts +0 -1881
- package/src/parsers.ts +0 -334
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { string, object, array, number, any, nativeEnum, boolean
|
|
1
|
+
import { string, object, array, literal, number, any, nativeEnum, boolean } from 'zod';
|
|
2
2
|
|
|
3
3
|
var _similarChains, _explorerLinkByChain;
|
|
4
4
|
|
|
@@ -695,6 +695,75 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
695
695
|
};
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
+
var accountParser = /*#__PURE__*/string().regex(/^[.1-5a-z]{0,12}[.1-5a-j]?$/);
|
|
699
|
+
var authorizationParser = /*#__PURE__*/object({
|
|
700
|
+
actor: accountParser,
|
|
701
|
+
permission: /*#__PURE__*/string()
|
|
702
|
+
});
|
|
703
|
+
var authorizationsParser = /*#__PURE__*/array(authorizationParser).min(1);
|
|
704
|
+
var ExtendedAssetParser = /*#__PURE__*/object({
|
|
705
|
+
quantity: /*#__PURE__*/string(),
|
|
706
|
+
contract: accountParser
|
|
707
|
+
});
|
|
708
|
+
|
|
709
|
+
var rawTransactionParser = /*#__PURE__*/object({
|
|
710
|
+
expiration: /*#__PURE__*/string(),
|
|
711
|
+
ref_block_num: /*#__PURE__*/number(),
|
|
712
|
+
ref_block_prefix: /*#__PURE__*/number(),
|
|
713
|
+
max_net_usage_words: /*#__PURE__*/number(),
|
|
714
|
+
max_cpu_usage_ms: /*#__PURE__*/number(),
|
|
715
|
+
delay_sec: /*#__PURE__*/number(),
|
|
716
|
+
context_free_actions: /*#__PURE__*/array( /*#__PURE__*/any()),
|
|
717
|
+
transaction_extensions: /*#__PURE__*/array( /*#__PURE__*/any())
|
|
718
|
+
});
|
|
719
|
+
var baseActionParser = function baseActionParser(contract, action, data, isSerialized) {
|
|
720
|
+
if (isSerialized === void 0) {
|
|
721
|
+
isSerialized = false;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
return object({
|
|
725
|
+
account: contract === '*' ? accountParser : literal(contract),
|
|
726
|
+
name: literal(action),
|
|
727
|
+
data: isSerialized ? string().or(object(data)) : object(data),
|
|
728
|
+
authorization: authorizationsParser
|
|
729
|
+
});
|
|
730
|
+
};
|
|
731
|
+
var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
732
|
+
return object({
|
|
733
|
+
account: literal('webauthn'),
|
|
734
|
+
name: literal('exec'),
|
|
735
|
+
data: object({
|
|
736
|
+
account: accountParser,
|
|
737
|
+
key: object({
|
|
738
|
+
key: array(string().or(object({
|
|
739
|
+
modulus: string(),
|
|
740
|
+
exponent: string()
|
|
741
|
+
}))),
|
|
742
|
+
user_presence: number(),
|
|
743
|
+
rpid: string()
|
|
744
|
+
}),
|
|
745
|
+
nonce: number(),
|
|
746
|
+
permissions: authorizationsParser,
|
|
747
|
+
signature: object({
|
|
748
|
+
auth_data: string(),
|
|
749
|
+
client_json: string(),
|
|
750
|
+
signature: string()
|
|
751
|
+
}),
|
|
752
|
+
trx: rawTransactionParser.merge(object({
|
|
753
|
+
actions: array(baseActionParser(contract, action, data, true)).length(1)
|
|
754
|
+
}))
|
|
755
|
+
}),
|
|
756
|
+
authorization: authorizationsParser
|
|
757
|
+
});
|
|
758
|
+
};
|
|
759
|
+
var singleActionTransactionParser = function singleActionTransactionParser(contract, action, data) {
|
|
760
|
+
var baseAction = baseActionParser(contract, action, data);
|
|
761
|
+
var webauthAction = webauthActionParser(contract, action, data);
|
|
762
|
+
return rawTransactionParser.merge(object({
|
|
763
|
+
actions: array(baseAction.or(webauthAction)).length(1)
|
|
764
|
+
}));
|
|
765
|
+
};
|
|
766
|
+
|
|
698
767
|
function _extends() {
|
|
699
768
|
_extends = Object.assign || function (target) {
|
|
700
769
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -808,87 +877,25 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
808
877
|
return constants;
|
|
809
878
|
};
|
|
810
879
|
|
|
811
|
-
var
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
(
|
|
823
|
-
Type["RECEIVE"] = "receive";
|
|
824
|
-
Type["SEND"] = "send";
|
|
825
|
-
})(Type || (Type = {}));
|
|
880
|
+
var createAbstractAuthParser = function createAbstractAuthParser(contract, action, data) {
|
|
881
|
+
return object({
|
|
882
|
+
signer: authorizationParser,
|
|
883
|
+
signatures: array(string()).length(1),
|
|
884
|
+
transaction: singleActionTransactionParser(contract, action, data)
|
|
885
|
+
});
|
|
886
|
+
};
|
|
887
|
+
var generateAuthData = {
|
|
888
|
+
time: /*#__PURE__*/string(),
|
|
889
|
+
protonAccount: /*#__PURE__*/string()
|
|
890
|
+
};
|
|
891
|
+
var generateAuthParser = /*#__PURE__*/createAbstractAuthParser(WRAP_CONTRACT, WRAP_AUTH_ACTION, generateAuthData);
|
|
826
892
|
|
|
827
|
-
var
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
var rawTransactionParser = /*#__PURE__*/object({
|
|
834
|
-
expiration: /*#__PURE__*/string(),
|
|
835
|
-
ref_block_num: /*#__PURE__*/number(),
|
|
836
|
-
ref_block_prefix: /*#__PURE__*/number(),
|
|
837
|
-
max_net_usage_words: /*#__PURE__*/number(),
|
|
838
|
-
max_cpu_usage_ms: /*#__PURE__*/number(),
|
|
839
|
-
delay_sec: /*#__PURE__*/number(),
|
|
840
|
-
context_free_actions: /*#__PURE__*/array( /*#__PURE__*/any()),
|
|
841
|
-
transaction_extensions: /*#__PURE__*/array( /*#__PURE__*/any())
|
|
842
|
-
});
|
|
843
|
-
var generateAuthActionsBaseParser = /*#__PURE__*/object({
|
|
844
|
-
account: /*#__PURE__*/literal(WRAP_CONTRACT),
|
|
845
|
-
name: /*#__PURE__*/literal(WRAP_AUTH_ACTION),
|
|
846
|
-
data: /*#__PURE__*/object({
|
|
847
|
-
time: /*#__PURE__*/string(),
|
|
848
|
-
protonAccount: /*#__PURE__*/string()
|
|
849
|
-
}),
|
|
850
|
-
authorization: authorizationsParser
|
|
851
|
-
});
|
|
852
|
-
var generateAuthActionsWebAuthParser = /*#__PURE__*/object({
|
|
853
|
-
account: /*#__PURE__*/literal('webauthn'),
|
|
854
|
-
name: /*#__PURE__*/literal('exec'),
|
|
855
|
-
authorization: authorizationsParser,
|
|
856
|
-
data: /*#__PURE__*/object({
|
|
857
|
-
account: accountParser,
|
|
858
|
-
key: /*#__PURE__*/object({
|
|
859
|
-
key: /*#__PURE__*/array( /*#__PURE__*/string().or( /*#__PURE__*/object({
|
|
860
|
-
modulus: /*#__PURE__*/string(),
|
|
861
|
-
exponent: /*#__PURE__*/string()
|
|
862
|
-
}))),
|
|
863
|
-
user_presence: /*#__PURE__*/number(),
|
|
864
|
-
rpid: /*#__PURE__*/string()
|
|
865
|
-
}),
|
|
866
|
-
nonce: /*#__PURE__*/number(),
|
|
867
|
-
permissions: authorizationsParser,
|
|
868
|
-
signature: /*#__PURE__*/object({
|
|
869
|
-
auth_data: /*#__PURE__*/string(),
|
|
870
|
-
client_json: /*#__PURE__*/string(),
|
|
871
|
-
signature: /*#__PURE__*/string()
|
|
872
|
-
}),
|
|
873
|
-
trx: /*#__PURE__*/rawTransactionParser.merge( /*#__PURE__*/object({
|
|
874
|
-
actions: /*#__PURE__*/array(object({
|
|
875
|
-
account: literal(WRAP_CONTRACT),
|
|
876
|
-
name: literal(WRAP_AUTH_ACTION),
|
|
877
|
-
data: string().or(object({
|
|
878
|
-
time: string(),
|
|
879
|
-
protonAccount: string()
|
|
880
|
-
})),
|
|
881
|
-
authorization: authorizationsParser
|
|
882
|
-
})).length(1)
|
|
883
|
-
}))
|
|
884
|
-
})
|
|
885
|
-
});
|
|
886
|
-
var generateAuthParser = /*#__PURE__*/object({
|
|
887
|
-
signer: authorizationParser,
|
|
888
|
-
signatures: /*#__PURE__*/array(string()).length(1),
|
|
889
|
-
transaction: /*#__PURE__*/rawTransactionParser.merge( /*#__PURE__*/object({
|
|
890
|
-
actions: /*#__PURE__*/array(generateAuthActionsBaseParser.or(generateAuthActionsWebAuthParser)).length(1)
|
|
891
|
-
}))
|
|
893
|
+
var addressParser = /*#__PURE__*/object({
|
|
894
|
+
index: /*#__PURE__*/number(),
|
|
895
|
+
account: accountParser,
|
|
896
|
+
chain: /*#__PURE__*/string(),
|
|
897
|
+
address: /*#__PURE__*/string(),
|
|
898
|
+
address_hash: /*#__PURE__*/string()
|
|
892
899
|
});
|
|
893
900
|
var generateAddressBodyParser = /*#__PURE__*/object({
|
|
894
901
|
coin: string(),
|
|
@@ -901,6 +908,30 @@ var generateAddressResponse = /*#__PURE__*/object({
|
|
|
901
908
|
wallet: /*#__PURE__*/string(),
|
|
902
909
|
memo: /*#__PURE__*/string().optional()
|
|
903
910
|
});
|
|
911
|
+
|
|
912
|
+
var rateParser = /*#__PURE__*/object({
|
|
913
|
+
counterCurrency: /*#__PURE__*/string(),
|
|
914
|
+
price: /*#__PURE__*/number(),
|
|
915
|
+
priceChangePercent: /*#__PURE__*/number(),
|
|
916
|
+
marketCap: /*#__PURE__*/number(),
|
|
917
|
+
volume: /*#__PURE__*/number(),
|
|
918
|
+
timestamp: /*#__PURE__*/number()
|
|
919
|
+
});
|
|
920
|
+
var exchangeRateParser = /*#__PURE__*/object({
|
|
921
|
+
contract: /*#__PURE__*/string(),
|
|
922
|
+
symbol: /*#__PURE__*/string(),
|
|
923
|
+
rank: /*#__PURE__*/number(),
|
|
924
|
+
rates: /*#__PURE__*/array(rateParser)
|
|
925
|
+
});
|
|
926
|
+
var exchangeRatesParser = /*#__PURE__*/array(exchangeRateParser);
|
|
927
|
+
|
|
928
|
+
var Type;
|
|
929
|
+
|
|
930
|
+
(function (Type) {
|
|
931
|
+
Type["RECEIVE"] = "receive";
|
|
932
|
+
Type["SEND"] = "send";
|
|
933
|
+
})(Type || (Type = {}));
|
|
934
|
+
|
|
904
935
|
var depositBodyParser = /*#__PURE__*/object({
|
|
905
936
|
id: /*#__PURE__*/string(),
|
|
906
937
|
type: /*#__PURE__*/nativeEnum(Type),
|
|
@@ -908,67 +939,51 @@ var depositBodyParser = /*#__PURE__*/object({
|
|
|
908
939
|
coin: /*#__PURE__*/string(),
|
|
909
940
|
wallet: /*#__PURE__*/string()
|
|
910
941
|
});
|
|
911
|
-
var
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}),
|
|
924
|
-
authorization: authorizationsParser
|
|
942
|
+
var transactionParser = /*#__PURE__*/object({
|
|
943
|
+
id: /*#__PURE__*/string(),
|
|
944
|
+
wallet: /*#__PURE__*/string(),
|
|
945
|
+
value: /*#__PURE__*/number(),
|
|
946
|
+
valueString: /*#__PURE__*/string(),
|
|
947
|
+
address: /*#__PURE__*/string(),
|
|
948
|
+
type: /*#__PURE__*/nativeEnum(Type),
|
|
949
|
+
state: /*#__PURE__*/string(),
|
|
950
|
+
confirmations: /*#__PURE__*/number(),
|
|
951
|
+
hash: /*#__PURE__*/string(),
|
|
952
|
+
blockHash: /*#__PURE__*/string().optional().nullable(),
|
|
953
|
+
blockHeight: /*#__PURE__*/number().optional().nullable()
|
|
925
954
|
});
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
signature: /*#__PURE__*/object({
|
|
943
|
-
auth_data: /*#__PURE__*/string(),
|
|
944
|
-
client_json: /*#__PURE__*/string(),
|
|
945
|
-
signature: /*#__PURE__*/string()
|
|
946
|
-
}),
|
|
947
|
-
trx: /*#__PURE__*/rawTransactionParser.merge( /*#__PURE__*/object({
|
|
948
|
-
actions: /*#__PURE__*/array(object({
|
|
949
|
-
account: accountParser,
|
|
950
|
-
name: literal('transfer'),
|
|
951
|
-
data: string().or(object({
|
|
952
|
-
from: string().refine(function (val) {
|
|
953
|
-
return val !== WRAP_CONTRACT;
|
|
954
|
-
}, {
|
|
955
|
-
message: WRAP_CONTRACT + " must be receiver"
|
|
956
|
-
}),
|
|
957
|
-
to: literal(WRAP_CONTRACT),
|
|
958
|
-
quantity: string(),
|
|
959
|
-
memo: string()
|
|
960
|
-
})),
|
|
961
|
-
authorization: authorizationsParser
|
|
962
|
-
})).length(1)
|
|
963
|
-
}))
|
|
964
|
-
})
|
|
955
|
+
|
|
956
|
+
var otcOrderResponseParser = /*#__PURE__*/object({
|
|
957
|
+
success: /*#__PURE__*/boolean(),
|
|
958
|
+
transaction_id: /*#__PURE__*/string(),
|
|
959
|
+
errormsg: /*#__PURE__*/string().optional()
|
|
960
|
+
});
|
|
961
|
+
var otcQuoteBodyParser = /*#__PURE__*/object({
|
|
962
|
+
baseAmount: /*#__PURE__*/number(),
|
|
963
|
+
baseSymbol: /*#__PURE__*/string(),
|
|
964
|
+
quoteSymbol: /*#__PURE__*/string()
|
|
965
|
+
});
|
|
966
|
+
var otcQuoteResponseParser = /*#__PURE__*/object({
|
|
967
|
+
success: /*#__PURE__*/boolean(),
|
|
968
|
+
token: /*#__PURE__*/string(),
|
|
969
|
+
qty: /*#__PURE__*/number(),
|
|
970
|
+
errormsg: /*#__PURE__*/string().optional()
|
|
965
971
|
});
|
|
972
|
+
|
|
973
|
+
var withdrawData = {
|
|
974
|
+
from: /*#__PURE__*/string().refine(function (val) {
|
|
975
|
+
return val !== WRAP_CONTRACT;
|
|
976
|
+
}, {
|
|
977
|
+
message: WRAP_CONTRACT + " must be receiver"
|
|
978
|
+
}),
|
|
979
|
+
to: /*#__PURE__*/literal(WRAP_CONTRACT),
|
|
980
|
+
quantity: /*#__PURE__*/string(),
|
|
981
|
+
memo: /*#__PURE__*/string()
|
|
982
|
+
};
|
|
966
983
|
var withdrawBodyParser = /*#__PURE__*/object({
|
|
967
984
|
signer: authorizationParser,
|
|
968
985
|
signatures: /*#__PURE__*/array(string()).length(1),
|
|
969
|
-
transaction: /*#__PURE__*/
|
|
970
|
-
actions: /*#__PURE__*/array(withdrawBodyBaseAction.or(withdrawBodyWebAuthAction)).length(1)
|
|
971
|
-
})),
|
|
986
|
+
transaction: /*#__PURE__*/singleActionTransactionParser('*', 'transfer', withdrawData),
|
|
972
987
|
quoteId: /*#__PURE__*/string(),
|
|
973
988
|
provider: /*#__PURE__*/string().optional()
|
|
974
989
|
});
|
|
@@ -976,6 +991,13 @@ var withdrawMetalResponseParser = /*#__PURE__*/object({
|
|
|
976
991
|
success: /*#__PURE__*/boolean(),
|
|
977
992
|
id: /*#__PURE__*/string()
|
|
978
993
|
});
|
|
994
|
+
var withdrawalFeeQuoteParser = /*#__PURE__*/object({
|
|
995
|
+
quoteId: /*#__PURE__*/string(),
|
|
996
|
+
estimatedFee: /*#__PURE__*/string(),
|
|
997
|
+
currency: /*#__PURE__*/string(),
|
|
998
|
+
network: /*#__PURE__*/string()
|
|
999
|
+
});
|
|
1000
|
+
|
|
979
1001
|
var withdrawHistoryMetalSwapParser = /*#__PURE__*/object({
|
|
980
1002
|
id: /*#__PURE__*/string(),
|
|
981
1003
|
status: /*#__PURE__*/string(),
|
|
@@ -994,10 +1016,16 @@ var withdrawHistoryMetalResponseParser = /*#__PURE__*/object({
|
|
|
994
1016
|
totalPages: /*#__PURE__*/number(),
|
|
995
1017
|
totalElements: /*#__PURE__*/number()
|
|
996
1018
|
});
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1019
|
+
|
|
1020
|
+
var Status;
|
|
1021
|
+
|
|
1022
|
+
(function (Status) {
|
|
1023
|
+
Status["PENDING"] = "pending";
|
|
1024
|
+
Status["SUCCESS"] = "success";
|
|
1025
|
+
Status["FAIL"] = "fail";
|
|
1026
|
+
Status["PROCESSING"] = "processing";
|
|
1027
|
+
})(Status || (Status = {}));
|
|
1028
|
+
|
|
1001
1029
|
var wrapStartParser = /*#__PURE__*/object({
|
|
1002
1030
|
balance: ExtendedAssetParser,
|
|
1003
1031
|
id: /*#__PURE__*/string(),
|
|
@@ -1023,67 +1051,10 @@ var wrapParser = /*#__PURE__*/object({
|
|
|
1023
1051
|
wrap_hash: /*#__PURE__*/string(),
|
|
1024
1052
|
confirmations: /*#__PURE__*/number()
|
|
1025
1053
|
});
|
|
1026
|
-
var transactionParser = /*#__PURE__*/object({
|
|
1027
|
-
id: /*#__PURE__*/string(),
|
|
1028
|
-
wallet: /*#__PURE__*/string(),
|
|
1029
|
-
value: /*#__PURE__*/number(),
|
|
1030
|
-
valueString: /*#__PURE__*/string(),
|
|
1031
|
-
address: /*#__PURE__*/string(),
|
|
1032
|
-
type: /*#__PURE__*/nativeEnum(Type),
|
|
1033
|
-
state: /*#__PURE__*/string(),
|
|
1034
|
-
confirmations: /*#__PURE__*/number(),
|
|
1035
|
-
hash: /*#__PURE__*/string(),
|
|
1036
|
-
blockHash: /*#__PURE__*/string().optional().nullable(),
|
|
1037
|
-
blockHeight: /*#__PURE__*/number().optional().nullable()
|
|
1038
|
-
});
|
|
1039
|
-
var addressParser = /*#__PURE__*/object({
|
|
1040
|
-
index: /*#__PURE__*/number(),
|
|
1041
|
-
account: accountParser,
|
|
1042
|
-
chain: /*#__PURE__*/string(),
|
|
1043
|
-
address: /*#__PURE__*/string(),
|
|
1044
|
-
address_hash: /*#__PURE__*/string()
|
|
1045
|
-
});
|
|
1046
|
-
var otcOrderResponseParser = /*#__PURE__*/object({
|
|
1047
|
-
success: /*#__PURE__*/boolean(),
|
|
1048
|
-
transaction_id: /*#__PURE__*/string(),
|
|
1049
|
-
errormsg: /*#__PURE__*/string().optional()
|
|
1050
|
-
});
|
|
1051
|
-
var otcQuoteBodyParser = /*#__PURE__*/object({
|
|
1052
|
-
baseAmount: /*#__PURE__*/number(),
|
|
1053
|
-
baseSymbol: /*#__PURE__*/string(),
|
|
1054
|
-
quoteSymbol: /*#__PURE__*/string()
|
|
1055
|
-
});
|
|
1056
|
-
var otcQuoteResponseParser = /*#__PURE__*/object({
|
|
1057
|
-
success: /*#__PURE__*/boolean(),
|
|
1058
|
-
token: /*#__PURE__*/string(),
|
|
1059
|
-
qty: /*#__PURE__*/number(),
|
|
1060
|
-
errormsg: /*#__PURE__*/string().optional()
|
|
1061
|
-
});
|
|
1062
|
-
var rateParser = /*#__PURE__*/object({
|
|
1063
|
-
counterCurrency: /*#__PURE__*/string(),
|
|
1064
|
-
price: /*#__PURE__*/number(),
|
|
1065
|
-
priceChangePercent: /*#__PURE__*/number(),
|
|
1066
|
-
marketCap: /*#__PURE__*/number(),
|
|
1067
|
-
volume: /*#__PURE__*/number(),
|
|
1068
|
-
timestamp: /*#__PURE__*/number()
|
|
1069
|
-
});
|
|
1070
|
-
var exchangeRateParser = /*#__PURE__*/object({
|
|
1071
|
-
contract: /*#__PURE__*/string(),
|
|
1072
|
-
symbol: /*#__PURE__*/string(),
|
|
1073
|
-
rank: /*#__PURE__*/number(),
|
|
1074
|
-
rates: /*#__PURE__*/array(rateParser)
|
|
1075
|
-
});
|
|
1076
|
-
var exchangeRatesParser = /*#__PURE__*/array(exchangeRateParser);
|
|
1077
|
-
var withdrawalFeeQuoteParser = /*#__PURE__*/object({
|
|
1078
|
-
quoteId: /*#__PURE__*/string(),
|
|
1079
|
-
estimatedFee: /*#__PURE__*/string(),
|
|
1080
|
-
currency: /*#__PURE__*/string(),
|
|
1081
|
-
network: /*#__PURE__*/string()
|
|
1082
|
-
});
|
|
1083
1054
|
|
|
1084
1055
|
var isSameToken = function isSameToken(token1, token2) {
|
|
1085
1056
|
return token1.xtokenSymbol === token2.xtokenSymbol && token1.xtokenPrecision === token2.xtokenPrecision && token1.xtokenContract === token2.xtokenContract;
|
|
1086
1057
|
};
|
|
1087
1058
|
|
|
1088
|
-
export { Chains, Networks, Status, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, authorizationParser, authorizationsParser, depositBodyParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, initializeCoins, initializeConstants, isSameToken, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, rateParser,
|
|
1059
|
+
export { Chains, ExtendedAssetParser, Networks, Status, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, authorizationParser, authorizationsParser, baseActionParser, createAbstractAuthParser, depositBodyParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, initializeCoins, initializeConstants, isSameToken, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, rateParser, similarChains, singleActionTransactionParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
1089
1060
|
//# sourceMappingURL=wrap-constants.esm.js.map
|