curvance 1.0.3 → 1.0.5
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 +2 -0
- package/dist/abis/BaseCToken.json +1550 -0
- package/dist/abis/BorrowableCToken.json +2188 -0
- package/dist/abis/IDynamicIRM.json +158 -0
- package/dist/abis/MarketManagerIsolated.json +1587 -0
- package/dist/abis/ProtocolReader.json +767 -0
- package/dist/classes/CToken.d.ts +170 -0
- package/dist/classes/CToken.d.ts.map +1 -0
- package/dist/classes/CToken.js +292 -0
- package/dist/classes/CToken.js.map +1 -0
- package/dist/classes/CVE.d.ts +7 -0
- package/dist/classes/CVE.d.ts.map +1 -0
- package/dist/classes/CVE.js +7 -0
- package/dist/classes/CVE.js.map +1 -0
- package/dist/classes/ERC20.d.ts +35 -0
- package/dist/classes/ERC20.d.ts.map +1 -0
- package/dist/classes/ERC20.js +68 -0
- package/dist/classes/ERC20.js.map +1 -0
- package/dist/classes/Faucet.d.ts +25 -0
- package/dist/classes/Faucet.d.ts.map +1 -0
- package/dist/classes/Faucet.js +48 -0
- package/dist/classes/Faucet.js.map +1 -0
- package/dist/classes/Market.d.ts +68 -0
- package/dist/classes/Market.d.ts.map +1 -0
- package/dist/classes/Market.js +136 -0
- package/dist/classes/Market.js.map +1 -0
- package/dist/classes/OracleManager.d.ts +13 -0
- package/dist/classes/OracleManager.d.ts.map +1 -0
- package/dist/classes/OracleManager.js +34 -0
- package/dist/classes/OracleManager.js.map +1 -0
- package/dist/classes/ProtocolReader.d.ts +116 -0
- package/dist/classes/ProtocolReader.d.ts.map +1 -0
- package/dist/classes/ProtocolReader.js +136 -0
- package/dist/classes/ProtocolReader.js.map +1 -0
- package/dist/helpers.d.ts +21 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +55 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/setup.d.ts +11 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +2 -10
- package/dist/setup.js.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +10 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JsonRpcSigner, Wallet } from "ethers";
|
|
2
|
+
import { BorrowableCToken, CToken } from "./classes/CToken";
|
|
3
|
+
import { Contract } from "ethers";
|
|
4
|
+
import { Decimal } from "decimal.js";
|
|
5
|
+
import { address } from "./types";
|
|
6
|
+
export declare const WAD: bigint;
|
|
7
|
+
export declare const WAD_DECIMAL: Decimal;
|
|
8
|
+
export declare enum AdaptorTypes {
|
|
9
|
+
CHAINLINK = 1,
|
|
10
|
+
REDSTONE_CORE = 2,
|
|
11
|
+
REDSTONE_CLASSIC = 3,
|
|
12
|
+
MOCK = 1337
|
|
13
|
+
}
|
|
14
|
+
export declare function toDecimal(amount: bigint, decimals?: bigint): bigint;
|
|
15
|
+
export declare function toInteger(amount: bigint, decimals?: bigint): bigint;
|
|
16
|
+
export declare function contractSetup<I>(signer: JsonRpcSigner | Wallet, contractAddress: address, abi: any): Contract & I;
|
|
17
|
+
export declare function getContractAddresses(chain: ChainRpcPrefix): any;
|
|
18
|
+
export declare function handleTransactionWithOracles<T>(exec_func: Function, token: CToken | BorrowableCToken, adaptor: AdaptorTypes): Promise<T>;
|
|
19
|
+
export declare const AVAILABLE_CHAINS: string[];
|
|
20
|
+
export type ChainRpcPrefix = typeof AVAILABLE_CHAINS[number];
|
|
21
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,eAAO,MAAM,GAAG,QAAqB,CAAC;AACtC,eAAO,MAAM,WAAW,SAAmB,CAAC;AAE5C,oBAAY,YAAY;IACpB,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,gBAAgB,IAAI;IACpB,IAAI,OAAO;CACd;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,GAAG,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,QAAQ,GAAG,CAAC,CAMjH;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,OAOzD;AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,CAOxI;AAED,eAAO,MAAM,gBAAgB,UAE5B,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/helpers.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AVAILABLE_CHAINS = exports.AdaptorTypes = exports.WAD_DECIMAL = exports.WAD = void 0;
|
|
7
|
+
exports.toDecimal = toDecimal;
|
|
8
|
+
exports.toInteger = toInteger;
|
|
9
|
+
exports.contractSetup = contractSetup;
|
|
10
|
+
exports.getContractAddresses = getContractAddresses;
|
|
11
|
+
exports.handleTransactionWithOracles = handleTransactionWithOracles;
|
|
12
|
+
const ethers_1 = require("ethers");
|
|
13
|
+
const decimal_js_1 = require("decimal.js");
|
|
14
|
+
const path_1 = __importDefault(require("path"));
|
|
15
|
+
const fs_1 = __importDefault(require("fs"));
|
|
16
|
+
exports.WAD = BigInt(10n ** 18n);
|
|
17
|
+
exports.WAD_DECIMAL = new decimal_js_1.Decimal(exports.WAD);
|
|
18
|
+
var AdaptorTypes;
|
|
19
|
+
(function (AdaptorTypes) {
|
|
20
|
+
AdaptorTypes[AdaptorTypes["CHAINLINK"] = 1] = "CHAINLINK";
|
|
21
|
+
AdaptorTypes[AdaptorTypes["REDSTONE_CORE"] = 2] = "REDSTONE_CORE";
|
|
22
|
+
AdaptorTypes[AdaptorTypes["REDSTONE_CLASSIC"] = 3] = "REDSTONE_CLASSIC";
|
|
23
|
+
AdaptorTypes[AdaptorTypes["MOCK"] = 1337] = "MOCK";
|
|
24
|
+
})(AdaptorTypes || (exports.AdaptorTypes = AdaptorTypes = {}));
|
|
25
|
+
function toDecimal(amount, decimals = 18n) {
|
|
26
|
+
return amount / BigInt(10n ** BigInt(decimals));
|
|
27
|
+
}
|
|
28
|
+
function toInteger(amount, decimals = 18n) {
|
|
29
|
+
return amount * BigInt(10n ** BigInt(decimals));
|
|
30
|
+
}
|
|
31
|
+
function contractSetup(signer, contractAddress, abi) {
|
|
32
|
+
const contract = new ethers_1.Contract(contractAddress, abi, signer);
|
|
33
|
+
if (contract == undefined || contract == null) {
|
|
34
|
+
throw new Error(`Failed to load contract at address ${contractAddress}.`);
|
|
35
|
+
}
|
|
36
|
+
return contract;
|
|
37
|
+
}
|
|
38
|
+
function getContractAddresses(chain) {
|
|
39
|
+
const file_path = path_1.default.join(__dirname, 'chains', `${chain}.json`);
|
|
40
|
+
if (!fs_1.default.existsSync(file_path)) {
|
|
41
|
+
throw new Error(`No configuration found for chain ${chain}`);
|
|
42
|
+
}
|
|
43
|
+
return JSON.parse(fs_1.default.readFileSync(file_path, 'utf-8'));
|
|
44
|
+
}
|
|
45
|
+
function handleTransactionWithOracles(exec_func, token, adaptor) {
|
|
46
|
+
if (adaptor == AdaptorTypes.REDSTONE_CORE) {
|
|
47
|
+
// TODO:
|
|
48
|
+
// Handle Redstone Core specific logic
|
|
49
|
+
}
|
|
50
|
+
return exec_func();
|
|
51
|
+
}
|
|
52
|
+
exports.AVAILABLE_CHAINS = [
|
|
53
|
+
'monad-testnet',
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;;;;AAkBA,8BAEC;AAED,8BAEC;AAED,sCAMC;AAED,oDAOC;AAED,oEAOC;AAhDD,mCAAkC;AAClC,2CAAqC;AAErC,gDAAwB;AACxB,4CAAoB;AAEP,QAAA,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AACzB,QAAA,WAAW,GAAG,IAAI,oBAAO,CAAC,WAAG,CAAC,CAAC;AAE5C,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,yDAAa,CAAA;IACb,iEAAiB,CAAA;IACjB,uEAAoB,CAAA;IACpB,kDAAW,CAAA;AACf,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,SAAgB,SAAS,CAAC,MAAc,EAAE,QAAQ,GAAG,GAAG;IACpD,OAAO,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,SAAS,CAAC,MAAc,EAAE,QAAQ,GAAG,GAAG;IACpD,OAAO,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,aAAa,CAAI,MAA8B,EAAE,eAAwB,EAAE,GAAQ;IAC/F,MAAM,QAAQ,GAAG,IAAI,iBAAQ,CAAC,eAAe,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IAC5D,IAAG,QAAQ,IAAI,SAAS,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,eAAe,GAAG,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,QAAwB,CAAC;AACpC,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAqB;IACtD,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IAClE,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,YAAE,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,4BAA4B,CAAI,SAAmB,EAAE,KAAgC,EAAE,OAAqB;IACxH,IAAG,OAAO,IAAI,YAAY,CAAC,aAAa,EAAE,CAAC;QACvC,QAAQ;QACR,sCAAsC;IAC1C,CAAC;IAED,OAAO,SAAS,EAAgB,CAAC;AACrC,CAAC;AAEY,QAAA,gBAAgB,GAAG;IAC5B,eAAe;CAClB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './classes/ProtocolReader';
|
|
2
|
+
export * from './classes/Faucet';
|
|
3
|
+
export * from './classes/OracleManager';
|
|
4
|
+
export * from './classes/Market';
|
|
5
|
+
export * from './classes/CToken';
|
|
6
|
+
export * from './helpers';
|
|
7
|
+
export * from './setup';
|
|
8
|
+
export * from './types';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -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("./classes/ProtocolReader"), exports);
|
|
18
|
+
__exportStar(require("./classes/Faucet"), exports);
|
|
19
|
+
__exportStar(require("./classes/OracleManager"), exports);
|
|
20
|
+
__exportStar(require("./classes/Market"), exports);
|
|
21
|
+
__exportStar(require("./classes/CToken"), exports);
|
|
22
|
+
__exportStar(require("./helpers"), exports);
|
|
23
|
+
__exportStar(require("./setup"), exports);
|
|
24
|
+
__exportStar(require("./types"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB"}
|
package/dist/setup.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JsonRpcSigner, Wallet } from "ethers";
|
|
2
|
+
import { ChainRpcPrefix } from "./helpers";
|
|
3
|
+
import { Market } from "./classes/Market";
|
|
4
|
+
import { ProtocolReader } from "./classes/ProtocolReader";
|
|
5
|
+
import { Faucet } from "./classes/Faucet";
|
|
6
|
+
export default function SetupChain(chain: ChainRpcPrefix, signer: JsonRpcSigner | Wallet): Promise<{
|
|
7
|
+
markets: Market[];
|
|
8
|
+
faucet: Faucet;
|
|
9
|
+
reader: ProtocolReader;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAwB,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,wBAA8B,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,GAAG,MAAM;;;;GAW7F"}
|
package/dist/setup.js
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = SetupChain;
|
|
4
|
+
const helpers_1 = require("./helpers");
|
|
7
5
|
const Market_1 = require("./classes/Market");
|
|
8
|
-
const fs_1 = __importDefault(require("fs"));
|
|
9
6
|
const ProtocolReader_1 = require("./classes/ProtocolReader");
|
|
10
7
|
const Faucet_1 = require("./classes/Faucet");
|
|
11
8
|
const OracleManager_1 = require("./classes/OracleManager");
|
|
12
|
-
const path_1 = __importDefault(require("path"));
|
|
13
9
|
async function SetupChain(chain, signer) {
|
|
14
|
-
const
|
|
15
|
-
if (!fs_1.default.existsSync(file_path)) {
|
|
16
|
-
throw new Error(`No configuration found for chain ${chain}`);
|
|
17
|
-
}
|
|
18
|
-
const chain_addresses = JSON.parse(fs_1.default.readFileSync(file_path, 'utf-8'));
|
|
10
|
+
const chain_addresses = (0, helpers_1.getContractAddresses)(chain);
|
|
19
11
|
const reader = new ProtocolReader_1.ProtocolReader(signer, chain_addresses.ProtocolReader);
|
|
20
12
|
const faucet = new Faucet_1.Faucet(signer, chain_addresses.Faucet);
|
|
21
13
|
const oracle_manager = new OracleManager_1.OracleManager(signer, chain_addresses.OracleManager);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":";;AAQA,6BAWC;AAlBD,uCAAiE;AACjE,6CAA0C;AAE1C,6DAA0D;AAC1D,6CAA0C;AAC1C,2DAAwD;AAEzC,KAAK,UAAU,UAAU,CAAC,KAAqB,EAAE,MAA8B;IAC1F,MAAM,eAAe,GAAG,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,+BAAc,CAAC,MAAM,EAAE,eAAe,CAAC,cAAyB,CAAC,CAAA;IACpF,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,MAAM,EAAE,eAAe,CAAC,MAAiB,CAAC,CAAC;IACrE,MAAM,cAAc,GAAG,IAAI,6BAAa,CAAC,MAAM,EAAE,eAAe,CAAC,aAAwB,CAAC,CAAC;IAE3F,OAAO;QACH,OAAO,EAAE,MAAM,eAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC;QAC5D,MAAM;QACN,MAAM;KACT,CAAC;AACN,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JsonRpcSigner, Wallet } from "ethers";
|
|
2
|
+
export type address = `0x${string}`;
|
|
3
|
+
export type bytes = `0x${string}`;
|
|
4
|
+
export type uint = bigint | number;
|
|
5
|
+
export type uint240 = uint;
|
|
6
|
+
export type uint8 = uint;
|
|
7
|
+
export type uint256 = uint;
|
|
8
|
+
export type uint128 = uint;
|
|
9
|
+
export type curvance_signer = JsonRpcSigner | Wallet;
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,KAAK,MAAM,EAAE,CAAC;AACpC,MAAM,MAAM,KAAK,GAAG,KAAK,MAAM,EAAE,CAAC;AAClC,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,CAAA;AAClC,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAC3B,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC;AACzB,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAC3B,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAC3B,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,MAAM,CAAC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "curvance",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "dist/
|
|
5
|
-
"types": "dist/
|
|
6
|
-
"files": ["README.md"],
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": ["dist", "README.md"],
|
|
7
7
|
"repository": { "type": "git", "url": "https://github.com/curvance-web/contract-sdk.git" },
|
|
8
8
|
"author": "Austinhs",
|
|
9
9
|
"description": "A SDK to explore the curvance protocol efficently & easily.",
|
|
@@ -11,9 +11,15 @@
|
|
|
11
11
|
"directories": {
|
|
12
12
|
"test": "tests"
|
|
13
13
|
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"curvance",
|
|
16
|
+
"defi",
|
|
17
|
+
"crypto"
|
|
18
|
+
],
|
|
14
19
|
"scripts": {
|
|
15
20
|
"fetch": "ts-node fetch-deployment.ts",
|
|
16
21
|
"build": "tsc",
|
|
22
|
+
"publish": "tsc && npm publish",
|
|
17
23
|
"test": "node --test --require ts-node/register tests/*.test.ts",
|
|
18
24
|
"test:ctoken": "ts-node tests/CToken.test.ts",
|
|
19
25
|
"test:faucet": "ts-node tests/Faucet.test.ts",
|