You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/statics/src/ofc.ts
+106Lines changed: 106 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1276,3 +1276,109 @@ export function tofcTronToken(
1276
1276
})
1277
1277
);
1278
1278
}
1279
+
1280
+
/**
1281
+
* Factory function for ofc aptos token instances.
1282
+
*
1283
+
* @param id uuid v4
1284
+
* @param name unique identifier of the coin
1285
+
* @param fullName Complete human-readable name of the coin
1286
+
* @param features
1287
+
* @param prefix
1288
+
* @param suffix
1289
+
* @param network Network object for this coin
1290
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
1291
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
1292
+
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
1293
+
* @param isToken
1294
+
* @param addressCoin
1295
+
* @param primaryKeyCurve The elliptic curve for this chain/token
1296
+
*/
1297
+
1298
+
exportfunctionofcaptToken(
1299
+
id: string,
1300
+
name: string,
1301
+
fullName: string,
1302
+
decimalPlaces: number,
1303
+
asset: UnderlyingAsset,
1304
+
features: CoinFeature[]=[...OfcCoin.DEFAULT_FEATURES,CoinFeature.TSS_ENTERPRISE_PAYS_FEES],// TSS_ENTERPRISE_PAYS_FEE is a mandatory field for APTOS being a TSS & having Gas tank as fee payer
* Factory function for testnet ofc aptos token instances.
1335
+
*
1336
+
* @param id uuid v4
1337
+
* @param name unique identifier of the coin
1338
+
* @param fullName Complete human-readable name of the coin
1339
+
* @param features
1340
+
* @param prefix
1341
+
* @param suffix
1342
+
* @param network Network object for this coin
1343
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
1344
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
1345
+
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
1346
+
* @param isToken
1347
+
* @param addressCoin
1348
+
* @param primaryKeyCurve The elliptic curve for this chain/token
1349
+
*/
1350
+
1351
+
exportfunctiontofcaptToken(
1352
+
id: string,
1353
+
name: string,
1354
+
fullName: string,
1355
+
decimalPlaces: number,
1356
+
asset: UnderlyingAsset,
1357
+
features: CoinFeature[]=[...OfcCoin.DEFAULT_FEATURES,CoinFeature.TSS_ENTERPRISE_PAYS_FEES],// TSS_ENTERPRISE_PAYS_FEE is a mandatory field for APTOS being a TSS & having Gas tank as fee payer
0 commit comments