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
@@ -4171,3 +4198,105 @@ export function tjettonToken(
4171
4198
primaryKeyCurve
4172
4199
);
4173
4200
}
4201
+
4202
+
/**
4203
+
* Factory function for prod canton token instances.
4204
+
*
4205
+
* @param id uuid v4
4206
+
* @param name Name of the token
4207
+
* @param fullName Complete human-readable name of the token
4208
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
4209
+
* @param baseUrl token standard base url, ref: https://docs.digitalasset.com/utilities/devnet/overview/registry-user-guide/token-standard.html#token-standard-endpoints
4210
+
* @param assetName the token instrument name
4211
+
* @param admin the instrument admin for this token
4212
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
4213
+
* @param features Features of this coin. Defaults to CANTON_FEATURES
4214
+
* @param prefix Optional token prefix. Defaults to empty string
4215
+
* @param suffix Optional token suffix. Defaults to token name.
4216
+
* @param network Optional token network. Defaults to the mainnet canton network.
4217
+
* @param primaryKeyCurve The elliptic curve for this chain/token
4218
+
*/
4219
+
exportfunctioncantonToken(
4220
+
id: string,
4221
+
name: string,
4222
+
fullName: string,
4223
+
decimalPlaces: number,
4224
+
baseUrl: string,
4225
+
assetName: string,
4226
+
admin: string,
4227
+
asset: UnderlyingAsset,
4228
+
features: CoinFeature[]=CANTON_FEATURES,
4229
+
prefix='',
4230
+
suffix: string=name.toUpperCase(),
4231
+
network: AccountNetwork=Networks.main.canton,
4232
+
primaryKeyCurve: KeyCurve=KeyCurve.Ed25519
4233
+
){
4234
+
returnObject.freeze(
4235
+
newCantonToken({
4236
+
id,
4237
+
name,
4238
+
fullName,
4239
+
decimalPlaces,
4240
+
network,
4241
+
baseUrl,
4242
+
assetName,
4243
+
admin,
4244
+
asset,
4245
+
features,
4246
+
prefix,
4247
+
suffix,
4248
+
isToken: true,
4249
+
primaryKeyCurve,
4250
+
baseUnit: BaseUnit.CANTON,
4251
+
})
4252
+
);
4253
+
}
4254
+
4255
+
/**
4256
+
* Factory function for testnet canton token instances.
4257
+
*
4258
+
* @param id uuid v4
4259
+
* @param name unique identifier of the token
4260
+
* @param fullName Complete human-readable name of the token
4261
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
4262
+
* @param baseUrl token standard base url
4263
+
* @param assetName the token instrument name
4264
+
* @param admin the instrument admin for this token
4265
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
4266
+
* @param features Features of this coin. Defaults to the CANTON_FEATURES
4267
+
* @param prefix Optional token prefix. Defaults to empty string
4268
+
* @param suffix Optional token suffix. Defaults to token name.
4269
+
* @param network Optional token network. Defaults to the testnet Canton network.
4270
+
* @param primaryKeyCurve The elliptic curve for this chain/token
0 commit comments