@bitgo/public-types 5.52.0 → 5.53.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/dist/src/schema/wallet/freeze.d.ts +11 -0
- package/dist/src/schema/wallet/freeze.js +40 -0
- package/dist/src/schema/wallet/freeze.js.map +1 -0
- package/dist/src/schema/wallet/index.d.ts +1 -0
- package/dist/src/schema/wallet/index.js +1 -0
- package/dist/src/schema/wallet/index.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/wallet/freeze.ts +20 -0
- package/src/schema/wallet/index.ts +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const TokenTransferRecipientParams: t.IntersectionC<[t.TypeC<{
|
|
3
|
+
tokenType: t.StringC;
|
|
4
|
+
tokenQuantity: t.StringC;
|
|
5
|
+
}>, t.PartialC<{
|
|
6
|
+
tokenContractAddress: t.StringC;
|
|
7
|
+
tokenName: t.StringC;
|
|
8
|
+
tokenId: t.StringC;
|
|
9
|
+
decimalPlaces: t.NumberC;
|
|
10
|
+
}>]>;
|
|
11
|
+
export type TokenTransferRecipientParams = t.TypeOf<typeof TokenTransferRecipientParams>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TokenTransferRecipientParams = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
exports.TokenTransferRecipientParams = t.intersection([
|
|
29
|
+
t.type({
|
|
30
|
+
tokenType: t.string,
|
|
31
|
+
tokenQuantity: t.string,
|
|
32
|
+
}),
|
|
33
|
+
t.partial({
|
|
34
|
+
tokenContractAddress: t.string,
|
|
35
|
+
tokenName: t.string,
|
|
36
|
+
tokenId: t.string,
|
|
37
|
+
decimalPlaces: t.number,
|
|
38
|
+
}),
|
|
39
|
+
]);
|
|
40
|
+
//# sourceMappingURL=freeze.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freeze.js","sourceRoot":"","sources":["../../../../src/schema/wallet/freeze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAKd,QAAA,4BAA4B,GAAG,CAAC,CAAC,YAAY,CAAC;IACzD,CAAC,CAAC,IAAI,CAAC;QACL,SAAS,EAAE,CAAC,CAAC,MAAM;QACnB,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,oBAAoB,EAAE,CAAC,CAAC,MAAM;QAC9B,SAAS,EAAE,CAAC,CAAC,MAAM;QACnB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./wallet"), exports);
|
|
|
18
18
|
__exportStar(require("./multisigTypeVersion"), exports);
|
|
19
19
|
__exportStar(require("./walletTypes"), exports);
|
|
20
20
|
__exportStar(require("./address"), exports);
|
|
21
|
+
__exportStar(require("./freeze"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/wallet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAsC;AACtC,gDAA8B;AAC9B,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/wallet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAsC;AACtC,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Token transfer recipient params used in freeze metadata.
|
|
5
|
+
*/
|
|
6
|
+
export const TokenTransferRecipientParams = t.intersection([
|
|
7
|
+
t.type({
|
|
8
|
+
tokenType: t.string,
|
|
9
|
+
tokenQuantity: t.string,
|
|
10
|
+
}),
|
|
11
|
+
t.partial({
|
|
12
|
+
tokenContractAddress: t.string,
|
|
13
|
+
tokenName: t.string,
|
|
14
|
+
tokenId: t.string,
|
|
15
|
+
decimalPlaces: t.number,
|
|
16
|
+
}),
|
|
17
|
+
]);
|
|
18
|
+
export type TokenTransferRecipientParams = t.TypeOf<
|
|
19
|
+
typeof TokenTransferRecipientParams
|
|
20
|
+
>;
|