@ercworldio/blockchain-shared 1.0.5-dev.7-PROJ-1469.1 → 1.0.5-dev.7.PROJ-1464.0
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/build/errors/TransactionsErrors.d.ts +1 -0
- package/build/errors/TransactionsErrors.d.ts.map +1 -1
- package/build/errors/TransactionsErrors.js +4 -0
- package/build/services/solana/escrow/idl/escrow.json +773 -3163
- package/build/services/solana/escrow/types/escrow.d.ts +751 -3141
- package/build/services/solana/escrow/types/escrow.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ declare class TransactionsErrors extends BaseErrors {
|
|
|
20
20
|
InvalidAddress(_?: any): "The wallet address provided is invalid";
|
|
21
21
|
RequestFulfilled(_?: any): "This request has already been fulfilled";
|
|
22
22
|
NotExistWithdrawRequest(_?: any): "Withdrawal request not found";
|
|
23
|
+
NotExistWithdrawCommitment(_?: any): "Withdraw request scheduling not found";
|
|
23
24
|
UnsupportedNetwork(_?: any): "The selected network is not supported";
|
|
24
25
|
UnsupportedAddress(_?: any, __?: any): "The address format is not compatible with the selected network";
|
|
25
26
|
UnexpectedAddressFormat(_?: any, __?: any): "The address does not match the expected format for the selected network";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionsErrors.d.ts","sourceRoot":"","sources":["../../src/errors/TransactionsErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,UAAU,EAAE,EAAE,cAAc,EAAc,SAAS,EAAiB,MAAM,UAAU,CAAC;AAE5F,UAAU,oBAAoB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,cAAc;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,SA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,MAAM,CAAC;IAChB,UAAU,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,cAAM,kBAAmB,SAAQ,UAAU;IAChC,kBAAkB,CAAC,CAAC,CAAC,EAAE,aAAa;IACpC,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAAG;IACxB,kBAAkB,CAAC,CAAC,CAAC,EAAE,GAAG;IAC1B,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG;IACzB,cAAc,CAAC,CAAC,CAAC,EAAE,GAAG;IACtB,gBAAgB,CAAC,CAAC,CAAC,EAAE,GAAG;IACxB,uBAAuB,CAAC,CAAC,CAAC,EAAE,GAAG;IAC/B,0BAA0B,CAAC,CAAC,CAAC,EAAE,GAAG;IAClC,kBAAkB,CAAC,CAAC,CAAC,EAAE,GAAG;IAC1B,kBAAkB,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,GAAG;IACpC,uBAAuB,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,GAAG;IACzC,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG;IACpB,wBAAwB,CAAC,CAAC,CAAC,EAAE,GAAG;IAEhC,yBAAyB,GAAI,OAAO,GAAG,EAAE,eAAe,MAAM,KAAG,oBAAoB,CAa3F;IAEM,cAAc,GAAI,SAAS,MAAM,KAAG,cAAc,CAmBxD;CACJ;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -79,6 +79,8 @@ class TransactionsErrors extends errors_1.default {
|
|
|
79
79
|
return Object.assign(Object.assign({}, this.codes[400]), { error_code: errors_1.ErrorCodes.EMPTY_PAYLOAD });
|
|
80
80
|
if (message.includes("only supports stablecoin withdrawals"))
|
|
81
81
|
return Object.assign(Object.assign({}, this.codes[400]), { error_code: errors_1.ErrorCodes.ONLY_STABLECOIN_WITHDRAWAL });
|
|
82
|
+
if (message.includes(errors_1.ErrorMessages.NOT_FOUND_SCHEDULED_WITHDRAWAL))
|
|
83
|
+
return Object.assign(Object.assign({}, this.codes[400]), { error_code: errors_1.ErrorCodes.NOT_FOUND_SCHEDULED_WITHDRAWAL });
|
|
82
84
|
return Object.assign(Object.assign({}, this.codes[500]), { error_code: errors_1.ErrorCodes.UNEXPECTED_ERROR });
|
|
83
85
|
};
|
|
84
86
|
}
|
|
@@ -96,6 +98,8 @@ class TransactionsErrors extends errors_1.default {
|
|
|
96
98
|
;
|
|
97
99
|
NotExistWithdrawRequest(_) { return errors_1.ErrorMessages.WITHDRAW_REQUEST_NOT_FOUND; }
|
|
98
100
|
;
|
|
101
|
+
NotExistWithdrawCommitment(_) { return errors_1.ErrorMessages.NOT_FOUND_SCHEDULED_WITHDRAWAL; }
|
|
102
|
+
;
|
|
99
103
|
UnsupportedNetwork(_) { return errors_1.ErrorMessages.UNSUPPORTED_NETWORK; }
|
|
100
104
|
;
|
|
101
105
|
UnsupportedAddress(_, __) { return errors_1.ErrorMessages.UNSUPPORTED_ADDRESS; }
|