@venturialstd/circle 0.0.1
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/README.md +171 -0
- package/dist/circle.module.d.ts +3 -0
- package/dist/circle.module.d.ts.map +1 -0
- package/dist/circle.module.js +61 -0
- package/dist/circle.module.js.map +1 -0
- package/dist/constants/circle.constant.d.ts +71 -0
- package/dist/constants/circle.constant.d.ts.map +1 -0
- package/dist/constants/circle.constant.js +84 -0
- package/dist/constants/circle.constant.js.map +1 -0
- package/dist/constants/circle.settings.constant.d.ts +7 -0
- package/dist/constants/circle.settings.constant.d.ts.map +1 -0
- package/dist/constants/circle.settings.constant.js +10 -0
- package/dist/constants/circle.settings.constant.js.map +1 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +19 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/entities/circle-api-operation.entity.d.ts +19 -0
- package/dist/entities/circle-api-operation.entity.d.ts.map +1 -0
- package/dist/entities/circle-api-operation.entity.js +112 -0
- package/dist/entities/circle-api-operation.entity.js.map +1 -0
- package/dist/entities/circle-challenge.entity.d.ts +17 -0
- package/dist/entities/circle-challenge.entity.d.ts.map +1 -0
- package/dist/entities/circle-challenge.entity.js +98 -0
- package/dist/entities/circle-challenge.entity.js.map +1 -0
- package/dist/entities/circle-nft-balance.entity.d.ts +16 -0
- package/dist/entities/circle-nft-balance.entity.d.ts.map +1 -0
- package/dist/entities/circle-nft-balance.entity.js +97 -0
- package/dist/entities/circle-nft-balance.entity.js.map +1 -0
- package/dist/entities/circle-token-balance.entity.d.ts +17 -0
- package/dist/entities/circle-token-balance.entity.d.ts.map +1 -0
- package/dist/entities/circle-token-balance.entity.js +102 -0
- package/dist/entities/circle-token-balance.entity.js.map +1 -0
- package/dist/entities/circle-token.entity.d.ts +17 -0
- package/dist/entities/circle-token.entity.d.ts.map +1 -0
- package/dist/entities/circle-token.entity.js +102 -0
- package/dist/entities/circle-token.entity.js.map +1 -0
- package/dist/entities/circle-transaction.entity.d.ts +53 -0
- package/dist/entities/circle-transaction.entity.d.ts.map +1 -0
- package/dist/entities/circle-transaction.entity.js +215 -0
- package/dist/entities/circle-transaction.entity.js.map +1 -0
- package/dist/entities/circle-wallet-set.entity.d.ts +11 -0
- package/dist/entities/circle-wallet-set.entity.d.ts.map +1 -0
- package/dist/entities/circle-wallet-set.entity.js +71 -0
- package/dist/entities/circle-wallet-set.entity.js.map +1 -0
- package/dist/entities/circle-wallet.entity.d.ts +21 -0
- package/dist/entities/circle-wallet.entity.d.ts.map +1 -0
- package/dist/entities/circle-wallet.entity.js +118 -0
- package/dist/entities/circle-wallet.entity.js.map +1 -0
- package/dist/entities/index.d.ts +9 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +25 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/services/circle-api-operation.service.d.ts +8 -0
- package/dist/services/circle-api-operation.service.d.ts.map +1 -0
- package/dist/services/circle-api-operation.service.js +34 -0
- package/dist/services/circle-api-operation.service.js.map +1 -0
- package/dist/services/circle-api.service.d.ts +24 -0
- package/dist/services/circle-api.service.d.ts.map +1 -0
- package/dist/services/circle-api.service.js +172 -0
- package/dist/services/circle-api.service.js.map +1 -0
- package/dist/services/circle-challenge.service.d.ts +14 -0
- package/dist/services/circle-challenge.service.d.ts.map +1 -0
- package/dist/services/circle-challenge.service.js +81 -0
- package/dist/services/circle-challenge.service.js.map +1 -0
- package/dist/services/circle-nft-balance.service.d.ts +14 -0
- package/dist/services/circle-nft-balance.service.d.ts.map +1 -0
- package/dist/services/circle-nft-balance.service.js +92 -0
- package/dist/services/circle-nft-balance.service.js.map +1 -0
- package/dist/services/circle-token-balance.service.d.ts +16 -0
- package/dist/services/circle-token-balance.service.d.ts.map +1 -0
- package/dist/services/circle-token-balance.service.js +146 -0
- package/dist/services/circle-token-balance.service.js.map +1 -0
- package/dist/services/circle-token.service.d.ts +11 -0
- package/dist/services/circle-token.service.d.ts.map +1 -0
- package/dist/services/circle-token.service.js +62 -0
- package/dist/services/circle-token.service.js.map +1 -0
- package/dist/services/circle-transaction.service.d.ts +16 -0
- package/dist/services/circle-transaction.service.d.ts.map +1 -0
- package/dist/services/circle-transaction.service.js +148 -0
- package/dist/services/circle-transaction.service.js.map +1 -0
- package/dist/services/circle-wallet-set.service.d.ts +15 -0
- package/dist/services/circle-wallet-set.service.d.ts.map +1 -0
- package/dist/services/circle-wallet-set.service.js +95 -0
- package/dist/services/circle-wallet-set.service.js.map +1 -0
- package/dist/services/circle-wallet.service.d.ts +19 -0
- package/dist/services/circle-wallet.service.d.ts.map +1 -0
- package/dist/services/circle-wallet.service.js +275 -0
- package/dist/services/circle-wallet.service.js.map +1 -0
- package/dist/services/index.d.ts +10 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +26 -0
- package/dist/services/index.js.map +1 -0
- package/dist/settings/circle.settings.d.ts +3 -0
- package/dist/settings/circle.settings.d.ts.map +1 -0
- package/dist/settings/circle.settings.js +55 -0
- package/dist/settings/circle.settings.js.map +1 -0
- package/dist/types/circle-api.types.d.ts +127 -0
- package/dist/types/circle-api.types.d.ts.map +1 -0
- package/dist/types/circle-api.types.js +3 -0
- package/dist/types/circle-api.types.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +18 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CircleTransaction = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const circle_constant_1 = require("../constants/circle.constant");
|
|
15
|
+
let CircleTransaction = class CircleTransaction {
|
|
16
|
+
id;
|
|
17
|
+
circleId;
|
|
18
|
+
blockchain;
|
|
19
|
+
state;
|
|
20
|
+
transactionType;
|
|
21
|
+
operation;
|
|
22
|
+
walletId;
|
|
23
|
+
userId;
|
|
24
|
+
sourceAddress;
|
|
25
|
+
destinationAddress;
|
|
26
|
+
amounts;
|
|
27
|
+
amountInUSD;
|
|
28
|
+
tokenId;
|
|
29
|
+
tokenAddress;
|
|
30
|
+
txHash;
|
|
31
|
+
blockHash;
|
|
32
|
+
blockHeight;
|
|
33
|
+
contractAddress;
|
|
34
|
+
abiFunctionSignature;
|
|
35
|
+
abiParameters;
|
|
36
|
+
callData;
|
|
37
|
+
estimatedFee;
|
|
38
|
+
feeLevel;
|
|
39
|
+
networkFee;
|
|
40
|
+
networkFeeInUSD;
|
|
41
|
+
nfts;
|
|
42
|
+
refId;
|
|
43
|
+
errorReason;
|
|
44
|
+
errorDetails;
|
|
45
|
+
transactionScreeningEvaluation;
|
|
46
|
+
circleCreateDate;
|
|
47
|
+
circleUpdateDate;
|
|
48
|
+
firstConfirmDate;
|
|
49
|
+
metadata;
|
|
50
|
+
createdAt;
|
|
51
|
+
updatedAt;
|
|
52
|
+
};
|
|
53
|
+
exports.CircleTransaction = CircleTransaction;
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CircleTransaction.prototype, "id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CircleTransaction.prototype, "circleId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CircleTransaction.prototype, "blockchain", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: circle_constant_1.CircleTransactionState }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CircleTransaction.prototype, "state", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: circle_constant_1.CircleTransactionType }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CircleTransaction.prototype, "transactionType", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: circle_constant_1.CircleOperationType, nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CircleTransaction.prototype, "operation", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CircleTransaction.prototype, "walletId", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CircleTransaction.prototype, "userId", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], CircleTransaction.prototype, "sourceAddress", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CircleTransaction.prototype, "destinationAddress", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'simple-array', nullable: true }),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], CircleTransaction.prototype, "amounts", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: 'decimal', nullable: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], CircleTransaction.prototype, "amountInUSD", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], CircleTransaction.prototype, "tokenId", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], CircleTransaction.prototype, "tokenAddress", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], CircleTransaction.prototype, "txHash", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], CircleTransaction.prototype, "blockHash", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], CircleTransaction.prototype, "blockHeight", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], CircleTransaction.prototype, "contractAddress", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], CircleTransaction.prototype, "abiFunctionSignature", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
132
|
+
__metadata("design:type", Array)
|
|
133
|
+
], CircleTransaction.prototype, "abiParameters", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], CircleTransaction.prototype, "callData", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], CircleTransaction.prototype, "estimatedFee", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], CircleTransaction.prototype, "feeLevel", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ type: 'decimal', nullable: true }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], CircleTransaction.prototype, "networkFee", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.Column)({ type: 'decimal', nullable: true }),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], CircleTransaction.prototype, "networkFeeInUSD", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.Column)({ type: 'simple-array', nullable: true }),
|
|
156
|
+
__metadata("design:type", Array)
|
|
157
|
+
], CircleTransaction.prototype, "nfts", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], CircleTransaction.prototype, "refId", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], CircleTransaction.prototype, "errorReason", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], CircleTransaction.prototype, "errorDetails", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
172
|
+
__metadata("design:type", Object)
|
|
173
|
+
], CircleTransaction.prototype, "transactionScreeningEvaluation", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
176
|
+
__metadata("design:type", Date)
|
|
177
|
+
], CircleTransaction.prototype, "circleCreateDate", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
180
|
+
__metadata("design:type", Date)
|
|
181
|
+
], CircleTransaction.prototype, "circleUpdateDate", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
184
|
+
__metadata("design:type", Date)
|
|
185
|
+
], CircleTransaction.prototype, "firstConfirmDate", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
188
|
+
__metadata("design:type", Object)
|
|
189
|
+
], CircleTransaction.prototype, "metadata", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
192
|
+
name: 'createdAt',
|
|
193
|
+
nullable: false,
|
|
194
|
+
type: 'timestamptz',
|
|
195
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
196
|
+
}),
|
|
197
|
+
__metadata("design:type", Date)
|
|
198
|
+
], CircleTransaction.prototype, "createdAt", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
201
|
+
name: 'updatedAt',
|
|
202
|
+
nullable: false,
|
|
203
|
+
type: 'timestamptz',
|
|
204
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
205
|
+
}),
|
|
206
|
+
__metadata("design:type", Date)
|
|
207
|
+
], CircleTransaction.prototype, "updatedAt", void 0);
|
|
208
|
+
exports.CircleTransaction = CircleTransaction = __decorate([
|
|
209
|
+
(0, typeorm_1.Entity)('circle_transaction'),
|
|
210
|
+
(0, typeorm_1.Index)(['circleId'], { unique: true }),
|
|
211
|
+
(0, typeorm_1.Index)(['txHash', 'blockchain']),
|
|
212
|
+
(0, typeorm_1.Index)(['walletId']),
|
|
213
|
+
(0, typeorm_1.Index)(['state'])
|
|
214
|
+
], CircleTransaction);
|
|
215
|
+
//# sourceMappingURL=circle-transaction.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-transaction.entity.js","sourceRoot":"","sources":["../../src/entities/circle-transaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAEjB,kEAIsC;AAO/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,EAAE,CAAS;IAGX,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAyB;IAG9B,eAAe,CAAwB;IAGvC,SAAS,CAAuB;IAGhC,QAAQ,CAAU;IAGlB,MAAM,CAAU;IAGhB,aAAa,CAAU;IAGvB,kBAAkB,CAAU;IAG5B,OAAO,CAAY;IAGnB,WAAW,CAAU;IAGrB,OAAO,CAAU;IAGjB,YAAY,CAAU;IAGtB,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,WAAW,CAAU;IAGrB,eAAe,CAAU;IAGzB,oBAAoB,CAAU;IAG9B,aAAa,CAAa;IAG1B,QAAQ,CAAU;IAGlB,YAAY,CASV;IAGF,QAAQ,CAAU;IAGlB,UAAU,CAAU;IAGpB,eAAe,CAAU;IAGzB,IAAI,CAAY;IAGhB,KAAK,CAAU;IAGf,WA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AC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACrC,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC/B,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;IACnB,IAAA,eAAK,EAAC,CAAC,OAAO,CAAC,CAAC;GACJ,iBAAiB,CAmI7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class CircleWalletSet {
|
|
2
|
+
id: string;
|
|
3
|
+
circleId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
metadata?: Record<string, unknown>;
|
|
6
|
+
circleCreateDate?: Date;
|
|
7
|
+
circleUpdateDate?: Date;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=circle-wallet-set.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-wallet-set.entity.d.ts","sourceRoot":"","sources":["../../src/entities/circle-wallet-set.entity.ts"],"names":[],"mappings":"AASA,qBAEa,eAAe;IAE1B,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGnC,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAGxB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAQxB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CircleWalletSet = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let CircleWalletSet = class CircleWalletSet {
|
|
15
|
+
id;
|
|
16
|
+
circleId;
|
|
17
|
+
name;
|
|
18
|
+
metadata;
|
|
19
|
+
circleCreateDate;
|
|
20
|
+
circleUpdateDate;
|
|
21
|
+
createdAt;
|
|
22
|
+
updatedAt;
|
|
23
|
+
};
|
|
24
|
+
exports.CircleWalletSet = CircleWalletSet;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CircleWalletSet.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CircleWalletSet.prototype, "circleId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CircleWalletSet.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], CircleWalletSet.prototype, "metadata", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], CircleWalletSet.prototype, "circleCreateDate", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], CircleWalletSet.prototype, "circleUpdateDate", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
51
|
+
name: 'createdAt',
|
|
52
|
+
nullable: false,
|
|
53
|
+
type: 'timestamptz',
|
|
54
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], CircleWalletSet.prototype, "createdAt", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
60
|
+
name: 'updatedAt',
|
|
61
|
+
nullable: false,
|
|
62
|
+
type: 'timestamptz',
|
|
63
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], CircleWalletSet.prototype, "updatedAt", void 0);
|
|
67
|
+
exports.CircleWalletSet = CircleWalletSet = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)('circle_wallet_set'),
|
|
69
|
+
(0, typeorm_1.Index)(['circleId'], { unique: true })
|
|
70
|
+
], CircleWalletSet);
|
|
71
|
+
//# sourceMappingURL=circle-wallet-set.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-wallet-set.entity.js","sourceRoot":"","sources":["../../src/entities/circle-wallet-set.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAIV,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,EAAE,CAAS;IAGX,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,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
2
|
+
export declare class CircleWallet {
|
|
3
|
+
id: string;
|
|
4
|
+
circleId: string;
|
|
5
|
+
address: string;
|
|
6
|
+
blockchain: string;
|
|
7
|
+
state: CircleWalletState;
|
|
8
|
+
custodyType?: CircleCustodyType;
|
|
9
|
+
accountType?: CircleAccountType;
|
|
10
|
+
walletSetId?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
refId?: string;
|
|
14
|
+
initialPublicKey?: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
circleCreateDate?: Date;
|
|
17
|
+
circleUpdateDate?: Date;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=circle-wallet.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-wallet.entity.d.ts","sourceRoot":"","sources":["../../src/entities/circle-wallet.entity.ts"],"names":[],"mappings":"AASA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,qBAGa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,MAAM,CAAC;IAGhB,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,iBAAiB,CAAC;IAGzB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAGhC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAGhC,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGnC,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAGxB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAQxB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CircleWallet = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const circle_constant_1 = require("../constants/circle.constant");
|
|
15
|
+
let CircleWallet = class CircleWallet {
|
|
16
|
+
id;
|
|
17
|
+
circleId;
|
|
18
|
+
address;
|
|
19
|
+
blockchain;
|
|
20
|
+
state;
|
|
21
|
+
custodyType;
|
|
22
|
+
accountType;
|
|
23
|
+
walletSetId;
|
|
24
|
+
userId;
|
|
25
|
+
name;
|
|
26
|
+
refId;
|
|
27
|
+
initialPublicKey;
|
|
28
|
+
metadata;
|
|
29
|
+
circleCreateDate;
|
|
30
|
+
circleUpdateDate;
|
|
31
|
+
createdAt;
|
|
32
|
+
updatedAt;
|
|
33
|
+
};
|
|
34
|
+
exports.CircleWallet = CircleWallet;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CircleWallet.prototype, "id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CircleWallet.prototype, "circleId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CircleWallet.prototype, "address", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CircleWallet.prototype, "blockchain", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: circle_constant_1.CircleWalletState, default: circle_constant_1.CircleWalletState.LIVE }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CircleWallet.prototype, "state", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: circle_constant_1.CircleCustodyType, nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CircleWallet.prototype, "custodyType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: circle_constant_1.CircleAccountType, nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CircleWallet.prototype, "accountType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], CircleWallet.prototype, "walletSetId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CircleWallet.prototype, "userId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CircleWallet.prototype, "name", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CircleWallet.prototype, "refId", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], CircleWallet.prototype, "initialPublicKey", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], CircleWallet.prototype, "metadata", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], CircleWallet.prototype, "circleCreateDate", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
93
|
+
__metadata("design:type", Date)
|
|
94
|
+
], CircleWallet.prototype, "circleUpdateDate", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
97
|
+
name: 'createdAt',
|
|
98
|
+
nullable: false,
|
|
99
|
+
type: 'timestamptz',
|
|
100
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
101
|
+
}),
|
|
102
|
+
__metadata("design:type", Date)
|
|
103
|
+
], CircleWallet.prototype, "createdAt", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
106
|
+
name: 'updatedAt',
|
|
107
|
+
nullable: false,
|
|
108
|
+
type: 'timestamptz',
|
|
109
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], CircleWallet.prototype, "updatedAt", void 0);
|
|
113
|
+
exports.CircleWallet = CircleWallet = __decorate([
|
|
114
|
+
(0, typeorm_1.Entity)('circle_wallet'),
|
|
115
|
+
(0, typeorm_1.Index)(['circleId'], { unique: true }),
|
|
116
|
+
(0, typeorm_1.Index)(['address', 'blockchain'])
|
|
117
|
+
], CircleWallet);
|
|
118
|
+
//# sourceMappingURL=circle-wallet.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-wallet.entity.js","sourceRoot":"","sources":["../../src/entities/circle-wallet.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAEjB,kEAIsC;AAK/B,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,UAAU,CAAS;IAGnB,KAAK,CAAoB;IAGzB,WAAW,CAAqB;IAGhC,WAAW,CAAqB;IAGhC,WAAW,CAAU;IAGrB,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,gBAAgB,CAAU;IAG1B,QAAQ,CAA2B;IAGnC,gBAAgB,CAAQ;IAGxB,gBAAgB,CAAQ;IAQxB,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AA7DY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACpB;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACR;AAGjB;IADC,IAAA,gBAAM,GAAE;;6CACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;gDACU;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAiB,EAAE,OAAO,EAAE,mCAAiB,CAAC,IAAI,EAAE,CAAC;;2CAC1D;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,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AC;8BACS,IAAI;+CAAC;uBA5DL,YAAY;IAHxB,IAAA,gBAAM,EAAC,eAAe,CAAC;IACvB,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACrC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;GACpB,YAAY,CA6DxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './circle-api-operation.entity';
|
|
2
|
+
export * from './circle-challenge.entity';
|
|
3
|
+
export * from './circle-nft-balance.entity';
|
|
4
|
+
export * from './circle-token.entity';
|
|
5
|
+
export * from './circle-token-balance.entity';
|
|
6
|
+
export * from './circle-transaction.entity';
|
|
7
|
+
export * from './circle-wallet.entity';
|
|
8
|
+
export * from './circle-wallet-set.entity';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./circle-api-operation.entity"), exports);
|
|
18
|
+
__exportStar(require("./circle-challenge.entity"), exports);
|
|
19
|
+
__exportStar(require("./circle-nft-balance.entity"), exports);
|
|
20
|
+
__exportStar(require("./circle-token.entity"), exports);
|
|
21
|
+
__exportStar(require("./circle-token-balance.entity"), exports);
|
|
22
|
+
__exportStar(require("./circle-transaction.entity"), exports);
|
|
23
|
+
__exportStar(require("./circle-wallet.entity"), exports);
|
|
24
|
+
__exportStar(require("./circle-wallet-set.entity"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,gEAA8C;AAC9C,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './circle.module';
|
|
2
|
+
export * from './constants/circle.constant';
|
|
3
|
+
export * from './constants/circle.settings.constant';
|
|
4
|
+
export * from './entities/circle-api-operation.entity';
|
|
5
|
+
export * from './entities/circle-challenge.entity';
|
|
6
|
+
export * from './entities/circle-nft-balance.entity';
|
|
7
|
+
export * from './entities/circle-token-balance.entity';
|
|
8
|
+
export * from './entities/circle-token.entity';
|
|
9
|
+
export * from './entities/circle-transaction.entity';
|
|
10
|
+
export * from './entities/circle-wallet-set.entity';
|
|
11
|
+
export * from './entities/circle-wallet.entity';
|
|
12
|
+
export * from './services/circle-api-operation.service';
|
|
13
|
+
export * from './services/circle-api.service';
|
|
14
|
+
export * from './services/circle-challenge.service';
|
|
15
|
+
export * from './services/circle-nft-balance.service';
|
|
16
|
+
export * from './services/circle-token-balance.service';
|
|
17
|
+
export * from './services/circle-token.service';
|
|
18
|
+
export * from './services/circle-transaction.service';
|
|
19
|
+
export * from './services/circle-wallet-set.service';
|
|
20
|
+
export * from './services/circle-wallet.service';
|
|
21
|
+
export * from './settings/circle.settings';
|
|
22
|
+
export * from './types/circle-api.types';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./circle.module"), exports);
|
|
18
|
+
__exportStar(require("./constants/circle.constant"), exports);
|
|
19
|
+
__exportStar(require("./constants/circle.settings.constant"), exports);
|
|
20
|
+
__exportStar(require("./entities/circle-api-operation.entity"), exports);
|
|
21
|
+
__exportStar(require("./entities/circle-challenge.entity"), exports);
|
|
22
|
+
__exportStar(require("./entities/circle-nft-balance.entity"), exports);
|
|
23
|
+
__exportStar(require("./entities/circle-token-balance.entity"), exports);
|
|
24
|
+
__exportStar(require("./entities/circle-token.entity"), exports);
|
|
25
|
+
__exportStar(require("./entities/circle-transaction.entity"), exports);
|
|
26
|
+
__exportStar(require("./entities/circle-wallet-set.entity"), exports);
|
|
27
|
+
__exportStar(require("./entities/circle-wallet.entity"), exports);
|
|
28
|
+
__exportStar(require("./services/circle-api-operation.service"), exports);
|
|
29
|
+
__exportStar(require("./services/circle-api.service"), exports);
|
|
30
|
+
__exportStar(require("./services/circle-challenge.service"), exports);
|
|
31
|
+
__exportStar(require("./services/circle-nft-balance.service"), exports);
|
|
32
|
+
__exportStar(require("./services/circle-token-balance.service"), exports);
|
|
33
|
+
__exportStar(require("./services/circle-token.service"), exports);
|
|
34
|
+
__exportStar(require("./services/circle-transaction.service"), exports);
|
|
35
|
+
__exportStar(require("./services/circle-wallet-set.service"), exports);
|
|
36
|
+
__exportStar(require("./services/circle-wallet.service"), exports);
|
|
37
|
+
__exportStar(require("./settings/circle.settings"), exports);
|
|
38
|
+
__exportStar(require("./types/circle-api.types"), exports);
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,qEAAmD;AACnD,uEAAqD;AACrD,yEAAuD;AACvD,iEAA+C;AAC/C,uEAAqD;AACrD,sEAAoD;AACpD,kEAAgD;AAChD,0EAAwD;AACxD,gEAA8C;AAC9C,sEAAoD;AACpD,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,wEAAsD;AACtD,uEAAqD;AACrD,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TypeOrmCrudService } from '@dataui/crud-typeorm';
|
|
2
|
+
import { Repository } from 'typeorm';
|
|
3
|
+
import { CircleApiOperation } from '../entities/circle-api-operation.entity';
|
|
4
|
+
export declare class CircleApiOperationService extends TypeOrmCrudService<CircleApiOperation> {
|
|
5
|
+
repo: Repository<CircleApiOperation>;
|
|
6
|
+
constructor(repo: Repository<CircleApiOperation>);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=circle-api-operation.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-api-operation.service.d.ts","sourceRoot":"","sources":["../../src/services/circle-api-operation.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,qBACa,yBAA0B,SAAQ,kBAAkB,CAAC,kBAAkB,CAAC;IAG1E,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC;gBAApC,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC;CAI9C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CircleApiOperationService = void 0;
|
|
16
|
+
const crud_typeorm_1 = require("@dataui/crud-typeorm");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
|
+
const typeorm_2 = require("typeorm");
|
|
20
|
+
const circle_api_operation_entity_1 = require("../entities/circle-api-operation.entity");
|
|
21
|
+
let CircleApiOperationService = class CircleApiOperationService extends crud_typeorm_1.TypeOrmCrudService {
|
|
22
|
+
repo;
|
|
23
|
+
constructor(repo) {
|
|
24
|
+
super(repo);
|
|
25
|
+
this.repo = repo;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.CircleApiOperationService = CircleApiOperationService;
|
|
29
|
+
exports.CircleApiOperationService = CircleApiOperationService = __decorate([
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__param(0, (0, typeorm_1.InjectRepository)(circle_api_operation_entity_1.CircleApiOperation)),
|
|
32
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
33
|
+
], CircleApiOperationService);
|
|
34
|
+
//# sourceMappingURL=circle-api-operation.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-api-operation.service.js","sourceRoot":"","sources":["../../src/services/circle-api-operation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uDAA0D;AAC1D,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AAErC,yFAA6E;AAGtE,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,iCAAsC;IAG1E;IAFT,YAES,IAAoC;QAE3C,KAAK,CAAC,IAAI,CAAC,CAAC;QAFL,SAAI,GAAJ,IAAI,CAAgC;IAG7C,CAAC;CACF,CAAA;AAPY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,gDAAkB,CAAC,CAAA;qCACxB,oBAAU;GAHd,yBAAyB,CAOrC"}
|