Browse Source

build...

master
jojapoppa 7 months ago
parent
commit
d92999f41a
17 changed files with 12159 additions and 957 deletions
  1. +1
    -1
      dist/Block.js
  2. +0
    -1
      dist/LedgerDevice.d.ts
  3. +0
    -1
      dist/LedgerNote.d.ts
  4. +2
    -2
      dist/MultisigMessage.js
  5. +1
    -1
      dist/Transaction.js
  6. +1
    -1
      dist/Types.d.ts
  7. +1
    -6
      dist/index.d.ts
  8. +6
    -12
      dist/index.js
  9. +12132
    -912
      package-lock.json
  10. +2
    -7
      package.json
  11. +1
    -1
      src/Block.ts
  12. +0
    -0
      src/LedgerDevice.ts2
  13. +0
    -0
      src/LedgerNote.ts2
  14. +2
    -2
      src/MultisigMessage.ts
  15. +1
    -1
      src/Transaction.ts
  16. +1
    -1
      src/Types.ts
  17. +8
    -8
      src/index.ts

+ 1
- 1
dist/Block.js View File

@@ -17,7 +17,7 @@ const Config_1 = require("./Config");
const Transaction_1 = require("./Transaction");
const ParentBlock_1 = require("./ParentBlock");
const Types_1 = require("./Types");
const fedoragold_bytestream_1 = require("../../fedoragold-bytestream");
const fedoragold_bytestream_1 = require("fedoragold-bytestream");
const Common_1 = require("./Common");
/**
* Represents a FedoraGold Block


+ 0
- 1
dist/LedgerDevice.d.ts View File

@@ -1,4 +1,3 @@
/// <reference types="ledgerhq__hw-transport" />
/// <reference types="node" />
import Transport from '@ledgerhq/hw-transport';
import { EventEmitter } from 'events';


+ 0
- 1
dist/LedgerNote.d.ts View File

@@ -1,4 +1,3 @@
/// <reference types="ledgerhq__hw-transport" />
/// <reference types="node" />
import { CryptoNoteInterfaces } from './Types/ICryptoNote';
import { ICoinConfig, ICoinRunningConfig } from './Config';


+ 2
- 2
dist/MultisigMessage.js View File

@@ -17,8 +17,8 @@ const Address_1 = require("./Address");
const AddressPrefix_1 = require("./AddressPrefix");
const Types_1 = require("./Types");
const aes_js_1 = require("aes-js");
const fedoragold_bytestream_1 = require("../../fedoragold-bytestream");
const fedoragold_base58_1 = require("../../fedoragold-base58");
const fedoragold_bytestream_1 = require("fedoragold-bytestream");
const fedoragold_base58_1 = require("fedoragold-base58");
/** @ignore */
const messagePrefix = 0xde0aec198;
/**


+ 1
- 1
dist/Transaction.js View File

@@ -16,7 +16,7 @@ exports.Transaction = void 0;
const Common_1 = require("./Common");
const Address_1 = require("./Address");
const Types_1 = require("./Types");
const fedoragold_bytestream_1 = require("../../fedoragold-bytestream");
const fedoragold_bytestream_1 = require("fedoragold-bytestream");
/** @ignore */
const TransactionVersion2Suffix = 'bc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a' +
'0000000000000000000000000000000000000000000000000000000000000000';


+ 1
- 1
dist/Types.d.ts View File

@@ -10,7 +10,7 @@ export declare enum PortableStorageConstants {
VERSION = 1
}
export * from './Types/PortableStorageValue';
export { ICryptoConfig } from 'fedoragold-crypto';
export { ICryptoConfig } from '../../fedoragold-crypto';
export * from './Types/IExtraNonce';
export * from './Types/IExtraTag';
export * from './Types/ITransactionInput';


+ 1
- 6
dist/index.d.ts View File

@@ -7,8 +7,6 @@ export { BlockTemplate } from './BlockTemplate';
export { Crypto, ICryptoConfig, CryptoType } from 'fedoragold-crypto';
export { CryptoNote } from './CryptoNote';
export { Interfaces } from './Types/ITransaction';
export { LedgerDevice, LedgerTransport } from './LedgerDevice';
export { LedgerNote } from './LedgerNote';
export { LevinPacket, LevinProtocol } from './LevinPacket';
export { LevinPayloads } from './Types/LevinPayloads';
export { Multisig } from './Multisig';
@@ -31,16 +29,13 @@ import KeyPair = Types.ED25519.KeyPair;
/** @ignore */
import Keys = Types.ED25519.Keys;
/** @ignore */
import LedgerError = Types.LedgerTypes.LedgerError;
/** @ignore */
import LedgerTransactionState = Types.LedgerTypes.TransactionState;
/** @ignore */
import LedgerErrorCode = Types.LedgerTypes.ErrorCode;
import ICryptoNote = Types.CryptoNoteInterfaces.ICryptoNote;
import FedoragoldTypes = Types.FedoragoldTypes;
import WalletAPITypes = Types.WalletAPITypes;
/** @ignore */
export { ICryptoNote, KeyInput, KeyOutput, KeyPair, Keys, TransactionInputs, TransactionOutputs, LedgerError, LedgerTransactionState, LedgerErrorCode, FedoragoldTypes, WalletAPITypes };
export { ICryptoNote, KeyInput, KeyOutput, KeyPair, Keys, TransactionInputs, TransactionOutputs, FedoragoldTypes, WalletAPITypes };
/**
* Executes the callback method upon the given event
* @param event


+ 6
- 12
dist/index.js View File

@@ -3,7 +3,7 @@
//
// Please see the included LICENSE file for more information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.on = exports.FedoragoldTypes = exports.LedgerErrorCode = exports.LedgerTransactionState = exports.LedgerError = exports.TransactionOutputs = exports.TransactionInputs = exports.Keys = exports.KeyPair = exports.KeyOutput = exports.KeyInput = exports.ICryptoNote = exports.WalletAPI = exports.Fedoragold_d = exports.Transaction = exports.ParentBlock = exports.MultisigMessage = exports.Multisig = exports.LevinPayloads = exports.LevinProtocol = exports.LevinPacket = exports.LedgerNote = exports.LedgerTransport = exports.LedgerDevice = exports.CryptoNote = exports.CryptoType = exports.Crypto = exports.BlockTemplate = exports.Block = exports.AddressPrefix = exports.Address = void 0;
exports.on = exports.FedoragoldTypes = exports.TransactionOutputs = exports.TransactionInputs = exports.Keys = exports.KeyPair = exports.KeyOutput = exports.KeyInput = exports.ICryptoNote = exports.WalletAPI = exports.Fedoragold_d = exports.Transaction = exports.ParentBlock = exports.MultisigMessage = exports.Multisig = exports.LevinPayloads = exports.LevinProtocol = exports.LevinPacket = exports.CryptoNote = exports.CryptoType = exports.Crypto = exports.BlockTemplate = exports.Block = exports.AddressPrefix = exports.Address = void 0;
const fedoragold_crypto_1 = require("fedoragold-crypto");
/** @ignore */
const Types = require("./Types");
@@ -20,11 +20,8 @@ Object.defineProperty(exports, "Crypto", { enumerable: true, get: function () {
Object.defineProperty(exports, "CryptoType", { enumerable: true, get: function () { return fedoragold_crypto_2.CryptoType; } });
var CryptoNote_1 = require("./CryptoNote");
Object.defineProperty(exports, "CryptoNote", { enumerable: true, get: function () { return CryptoNote_1.CryptoNote; } });
var LedgerDevice_1 = require("./LedgerDevice");
Object.defineProperty(exports, "LedgerDevice", { enumerable: true, get: function () { return LedgerDevice_1.LedgerDevice; } });
Object.defineProperty(exports, "LedgerTransport", { enumerable: true, get: function () { return LedgerDevice_1.LedgerTransport; } });
var LedgerNote_1 = require("./LedgerNote");
Object.defineProperty(exports, "LedgerNote", { enumerable: true, get: function () { return LedgerNote_1.LedgerNote; } });
//export { LedgerDevice, LedgerTransport } from './LedgerDevice';
//export { LedgerNote } from './LedgerNote';
var LevinPacket_1 = require("./LevinPacket");
Object.defineProperty(exports, "LevinPacket", { enumerable: true, get: function () { return LevinPacket_1.LevinPacket; } });
Object.defineProperty(exports, "LevinProtocol", { enumerable: true, get: function () { return LevinPacket_1.LevinProtocol; } });
@@ -61,14 +58,11 @@ exports.KeyPair = KeyPair;
var Keys = Types.ED25519.Keys;
exports.Keys = Keys;
/** @ignore */
var LedgerError = Types.LedgerTypes.LedgerError;
exports.LedgerError = LedgerError;
//import LedgerError = Types.LedgerTypes.LedgerError;
/** @ignore */
var LedgerTransactionState = Types.LedgerTypes.TransactionState;
exports.LedgerTransactionState = LedgerTransactionState;
//import LedgerTransactionState = Types.LedgerTypes.TransactionState;
/** @ignore */
var LedgerErrorCode = Types.LedgerTypes.ErrorCode;
exports.LedgerErrorCode = LedgerErrorCode;
//import LedgerErrorCode = Types.LedgerTypes.ErrorCode;
var ICryptoNote = Types.CryptoNoteInterfaces.ICryptoNote;
exports.ICryptoNote = ICryptoNote;
var FedoragoldTypes = Types.FedoragoldTypes;


+ 12132
- 912
package-lock.json
File diff suppressed because it is too large
View File


+ 2
- 7
package.json View File

@@ -39,15 +39,8 @@
"zpalmtree <22151537+zpalmtree@users.noreply.github.com>"
],
"license": "GPL-3.0",
"optionalDependencies": {
"@ledgerhq/hw-transport-node-hid": "^5.22.0"
},
"dependencies": {
"@ledgerhq/hw-transport": "^5.43.0",
"@turtlecoin/mnemonics": "0.0.12",
"@types/aes-js": "^3.1.1",
"@types/ledgerhq__hw-transport": "^4.21.3",
"@types/ledgerhq__hw-transport-node-hid": "^4.22.2",
"@types/node-fetch": "^2.5.8",
"@types/numeral": "^2.0.0",
"@types/semver": "^7.3.4",
@@ -56,6 +49,8 @@
"big-integer": "^1.6.51",
"fedoragold-base58": "file:../fedoragold-base58",
"fedoragold-bytestream": "file:../fedoragold-bytestream",
"fedoragold-crypto": "file:../fedoragold-crypto",
"fedoragold-mnemonics": "file:../fedoragold-mnemonics",
"get-random-values": "^1.2.2",
"node-fetch": "^2.6.1",
"numeral": "^2.0.6",


+ 1
- 1
src/Block.ts View File

@@ -6,7 +6,7 @@ import { Config, ICoinConfig, ICoinRunningConfig } from './Config';
import { Transaction } from './Transaction';
import { ParentBlock } from './ParentBlock';
import { TransactionInputs, TransactionOutputs, FedoragoldCrypto } from './Types';
import { Reader, Writer } from '../../fedoragold-bytestream';
import { Reader, Writer } from 'fedoragold-bytestream';
import { Common } from './Common';

/** @ignore */


src/LedgerDevice.ts → src/LedgerDevice.ts2 View File


src/LedgerNote.ts → src/LedgerNote.ts2 View File


+ 2
- 2
src/MultisigMessage.ts View File

@@ -6,8 +6,8 @@ import { Address } from './Address';
import { AddressPrefix } from './AddressPrefix';
import { ED25519, Interfaces as TransactionInterfaces, MultisigInterfaces, FedoragoldCrypto } from './Types';
import { Counter, ModeOfOperation, utils as AESUtils } from 'aes-js';
import { Reader, Writer } from '../../fedoragold-bytestream';
import { Base58 } from '../../fedoragold-base58';
import { Reader, Writer } from 'fedoragold-bytestream';
import { Base58 } from 'fedoragold-base58';

/** @ignore */
const messagePrefix = 0xde0aec198;


+ 1
- 1
src/Transaction.ts View File

@@ -13,7 +13,7 @@ import {
TransactionOutputs,
FedoragoldCrypto
} from './Types';
import { Reader, Writer } from '../../fedoragold-bytestream';
import { Reader, Writer } from 'fedoragold-bytestream';

/** @ignore */
const TransactionVersion2Suffix = 'bc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a' +


+ 1
- 1
src/Types.ts View File

@@ -19,7 +19,7 @@ export enum PortableStorageConstants {

export * from './Types/PortableStorageValue';

export { ICryptoConfig } from 'fedoragold-crypto';
export { ICryptoConfig } from '../../fedoragold-crypto';

export * from './Types/IExtraNonce';



+ 8
- 8
src/index.ts View File

@@ -13,8 +13,8 @@ export { BlockTemplate } from './BlockTemplate';
export { Crypto, ICryptoConfig, CryptoType } from 'fedoragold-crypto';
export { CryptoNote } from './CryptoNote';
export { Interfaces } from './Types/ITransaction';
export { LedgerDevice, LedgerTransport } from './LedgerDevice';
export { LedgerNote } from './LedgerNote';
//export { LedgerDevice, LedgerTransport } from './LedgerDevice';
//export { LedgerNote } from './LedgerNote';
export { LevinPacket, LevinProtocol } from './LevinPacket';
export { LevinPayloads } from './Types/LevinPayloads';
export { Multisig } from './Multisig';
@@ -38,11 +38,11 @@ import KeyPair = Types.ED25519.KeyPair;
/** @ignore */
import Keys = Types.ED25519.Keys;
/** @ignore */
import LedgerError = Types.LedgerTypes.LedgerError;
//import LedgerError = Types.LedgerTypes.LedgerError;
/** @ignore */
import LedgerTransactionState = Types.LedgerTypes.TransactionState;
//import LedgerTransactionState = Types.LedgerTypes.TransactionState;
/** @ignore */
import LedgerErrorCode = Types.LedgerTypes.ErrorCode;
//import LedgerErrorCode = Types.LedgerTypes.ErrorCode;

import ICryptoNote = Types.CryptoNoteInterfaces.ICryptoNote;

@@ -59,9 +59,9 @@ export {
Keys,
TransactionInputs,
TransactionOutputs,
LedgerError,
LedgerTransactionState,
LedgerErrorCode,
//LedgerError,
//LedgerTransactionState,
//LedgerErrorCode,
FedoragoldTypes,
WalletAPITypes
};


Loading…
Cancel
Save