@paimaexample/wallets 0.3.117 → 0.3.121
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/esm/concise/src/batcher.d.ts.map +1 -1
- package/esm/concise/src/batcher.js +7 -25
- package/esm/concise/src/delegate.d.ts.map +1 -1
- package/esm/concise/src/delegate.js +14 -38
- package/esm/concise/src/v2/builtins/batcher.d.ts +2 -2
- package/esm/crypto/src/CryptoManager.d.ts +24 -0
- package/esm/crypto/src/CryptoManager.d.ts.map +1 -0
- package/esm/crypto/src/CryptoManager.js +72 -0
- package/esm/crypto/src/IVerify.d.ts +7 -0
- package/esm/crypto/src/IVerify.d.ts.map +1 -0
- package/esm/crypto/src/Prando.d.ts +59 -0
- package/esm/crypto/src/Prando.d.ts.map +1 -0
- package/esm/crypto/src/Prando.js +123 -0
- package/esm/crypto/src/chains/algorand.d.ts +11 -0
- package/esm/crypto/src/chains/algorand.d.ts.map +1 -0
- package/esm/crypto/src/chains/algorand.js +86 -0
- package/esm/crypto/src/chains/cardano.d.ts +8 -0
- package/esm/crypto/src/chains/cardano.d.ts.map +1 -0
- package/esm/crypto/src/chains/cardano.js +30 -0
- package/esm/crypto/src/chains/evm.d.ts +9 -0
- package/esm/crypto/src/chains/evm.d.ts.map +1 -0
- package/esm/crypto/src/chains/evm.js +29 -0
- package/esm/crypto/src/chains/midnight.d.ts +9 -0
- package/esm/crypto/src/chains/midnight.d.ts.map +1 -0
- package/esm/crypto/src/chains/midnight.js +25 -0
- package/esm/crypto/src/chains/mina.d.ts +8 -0
- package/esm/crypto/src/chains/mina.d.ts.map +1 -0
- package/esm/crypto/src/chains/mina.js +32 -0
- package/esm/crypto/src/chains/polkadot.d.ts +9 -0
- package/esm/crypto/src/chains/polkadot.d.ts.map +1 -0
- package/esm/crypto/src/chains/polkadot.js +28 -0
- package/esm/crypto/src/mod.d.ts +5 -0
- package/esm/crypto/src/mod.d.ts.map +1 -0
- package/esm/crypto/src/mod.js +4 -0
- package/esm/crypto/src/paima-hash.d.ts +14 -0
- package/esm/crypto/src/paima-hash.d.ts.map +1 -0
- package/esm/crypto/src/paima-hash.js +13 -0
- package/esm/utils/src/types/nominal.d.ts +5 -1
- package/esm/utils/src/types/nominal.d.ts.map +1 -1
- package/esm/utils/src/types/typebox-helpers.d.ts +7 -6
- package/esm/utils/src/types/typebox-helpers.d.ts.map +1 -1
- package/esm/utils/src/types/typebox-helpers.js +8 -5
- package/esm/wallets/src/algorand/algorand.d.ts +26 -0
- package/esm/wallets/src/algorand/algorand.d.ts.map +1 -0
- package/esm/wallets/src/algorand/algorand.js +133 -0
- package/esm/wallets/src/algorand/wrapper.d.ts +6 -0
- package/esm/wallets/src/algorand/wrapper.d.ts.map +1 -0
- package/esm/wallets/src/algorand/wrapper.js +12 -0
- package/esm/wallets/src/cardano/cardano.js +1 -1
- package/esm/wallets/src/midnight/midnight.js +1 -1
- package/esm/wallets/src/mina/mina.js +1 -1
- package/esm/wallets/src/mod.d.ts +1 -0
- package/esm/wallets/src/mod.d.ts.map +1 -1
- package/esm/wallets/src/mod.js +1 -0
- package/esm/wallets/src/polkadot/polkadot.d.ts +26 -0
- package/esm/wallets/src/polkadot/polkadot.d.ts.map +1 -0
- package/esm/wallets/src/polkadot/polkadot.js +133 -0
- package/esm/wallets/src/polkadot/wrapper.d.ts +6 -0
- package/esm/wallets/src/polkadot/wrapper.d.ts.map +1 -0
- package/esm/wallets/src/polkadot/wrapper.js +19 -0
- package/esm/wallets/src/utils.d.ts +12 -4
- package/esm/wallets/src/utils.d.ts.map +1 -1
- package/esm/wallets/src/utils.js +12 -12
- package/esm/wallets/src/wallet-modes.d.ts +7 -1
- package/esm/wallets/src/wallet-modes.d.ts.map +1 -1
- package/esm/wallets/src/wallet-modes.js +26 -2
- package/esm/wallets/src/wallets.js +8 -9
- package/package.json +8 -3
- package/script/concise/src/batcher.d.ts.map +1 -1
- package/script/concise/src/batcher.js +7 -25
- package/script/concise/src/delegate.d.ts.map +1 -1
- package/script/concise/src/delegate.js +13 -37
- package/script/concise/src/v2/builtins/batcher.d.ts +2 -2
- package/script/crypto/src/CryptoManager.d.ts +24 -0
- package/script/crypto/src/CryptoManager.d.ts.map +1 -0
- package/script/crypto/src/CryptoManager.js +76 -0
- package/script/crypto/src/IVerify.d.ts +7 -0
- package/script/crypto/src/IVerify.d.ts.map +1 -0
- package/script/crypto/src/Prando.d.ts +59 -0
- package/script/crypto/src/Prando.d.ts.map +1 -0
- package/script/crypto/src/Prando.js +127 -0
- package/script/crypto/src/chains/algorand.d.ts +11 -0
- package/script/crypto/src/chains/algorand.d.ts.map +1 -0
- package/script/crypto/src/chains/algorand.js +90 -0
- package/script/crypto/src/chains/cardano.d.ts +8 -0
- package/script/crypto/src/chains/cardano.d.ts.map +1 -0
- package/script/crypto/src/chains/cardano.js +37 -0
- package/script/crypto/src/chains/evm.d.ts +9 -0
- package/script/crypto/src/chains/evm.d.ts.map +1 -0
- package/script/crypto/src/chains/evm.js +33 -0
- package/script/crypto/src/chains/midnight.d.ts +9 -0
- package/script/crypto/src/chains/midnight.d.ts.map +1 -0
- package/script/crypto/src/chains/midnight.js +29 -0
- package/script/crypto/src/chains/mina.d.ts +8 -0
- package/script/crypto/src/chains/mina.d.ts.map +1 -0
- package/script/crypto/src/chains/mina.js +39 -0
- package/script/crypto/src/chains/polkadot.d.ts +9 -0
- package/script/crypto/src/chains/polkadot.d.ts.map +1 -0
- package/script/crypto/src/chains/polkadot.js +32 -0
- package/script/crypto/src/mod.d.ts +5 -0
- package/script/crypto/src/mod.d.ts.map +1 -0
- package/script/{config → crypto}/src/mod.js +7 -2
- package/script/crypto/src/paima-hash.d.ts +14 -0
- package/script/crypto/src/paima-hash.d.ts.map +1 -0
- package/script/crypto/src/paima-hash.js +19 -0
- package/script/utils/src/types/nominal.d.ts +5 -1
- package/script/utils/src/types/nominal.d.ts.map +1 -1
- package/script/utils/src/types/typebox-helpers.d.ts +7 -6
- package/script/utils/src/types/typebox-helpers.d.ts.map +1 -1
- package/script/utils/src/types/typebox-helpers.js +8 -5
- package/script/wallets/src/algorand/algorand.d.ts +26 -0
- package/script/wallets/src/algorand/algorand.d.ts.map +1 -0
- package/script/wallets/src/algorand/algorand.js +138 -0
- package/script/wallets/src/algorand/wrapper.d.ts +6 -0
- package/script/wallets/src/algorand/wrapper.d.ts.map +1 -0
- package/script/wallets/src/algorand/wrapper.js +15 -0
- package/script/wallets/src/cardano/cardano.js +1 -1
- package/script/wallets/src/midnight/midnight.js +1 -1
- package/script/wallets/src/mina/mina.js +1 -1
- package/script/wallets/src/mod.d.ts +1 -0
- package/script/wallets/src/mod.d.ts.map +1 -1
- package/script/wallets/src/mod.js +3 -1
- package/script/wallets/src/polkadot/polkadot.d.ts +26 -0
- package/script/wallets/src/polkadot/polkadot.d.ts.map +1 -0
- package/script/wallets/src/polkadot/polkadot.js +138 -0
- package/script/wallets/src/polkadot/wrapper.d.ts +6 -0
- package/script/wallets/src/polkadot/wrapper.d.ts.map +1 -0
- package/script/wallets/src/polkadot/wrapper.js +22 -0
- package/script/wallets/src/utils.d.ts +12 -4
- package/script/wallets/src/utils.d.ts.map +1 -1
- package/script/wallets/src/utils.js +12 -12
- package/script/wallets/src/wallet-modes.d.ts +7 -1
- package/script/wallets/src/wallet-modes.d.ts.map +1 -1
- package/script/wallets/src/wallet-modes.js +26 -1
- package/script/wallets/src/wallets.js +17 -18
- package/esm/chain-types/src/hash.d.ts +0 -28
- package/esm/chain-types/src/hash.d.ts.map +0 -1
- package/esm/chain-types/src/hash.js +0 -29
- package/esm/chain-types/src/mod.d.ts +0 -3
- package/esm/chain-types/src/mod.d.ts.map +0 -1
- package/esm/chain-types/src/mod.js +0 -2
- package/esm/chain-types/src/types.d.ts +0 -70
- package/esm/chain-types/src/types.d.ts.map +0 -1
- package/esm/config/src/config/builder.d.ts +0 -33
- package/esm/config/src/config/builder.d.ts.map +0 -1
- package/esm/config/src/config/builder.js +0 -82
- package/esm/config/src/config/configCheck.d.ts +0 -32
- package/esm/config/src/config/configCheck.d.ts.map +0 -1
- package/esm/config/src/config/configCheck.js +0 -67
- package/esm/config/src/config/context.d.ts +0 -23
- package/esm/config/src/config/context.d.ts.map +0 -1
- package/esm/config/src/config/context.js +0 -25
- package/esm/config/src/config/mod.d.ts +0 -7
- package/esm/config/src/config/mod.d.ts.map +0 -1
- package/esm/config/src/config/mod.js +0 -4
- package/esm/config/src/config/parts/deployedAddresses.d.ts +0 -17
- package/esm/config/src/config/parts/deployedAddresses.d.ts.map +0 -1
- package/esm/config/src/config/parts/deployedAddresses.js +0 -24
- package/esm/config/src/config/parts/network.d.ts +0 -19
- package/esm/config/src/config/parts/network.d.ts.map +0 -1
- package/esm/config/src/config/parts/network.js +0 -29
- package/esm/config/src/config/parts/primitive.d.ts +0 -31
- package/esm/config/src/config/parts/primitive.d.ts.map +0 -1
- package/esm/config/src/config/parts/primitive.js +0 -28
- package/esm/config/src/config/parts/securityNamespace.d.ts +0 -14
- package/esm/config/src/config/parts/securityNamespace.d.ts.map +0 -1
- package/esm/config/src/config/parts/securityNamespace.js +0 -26
- package/esm/config/src/config/parts/syncProtocols.d.ts +0 -43
- package/esm/config/src/config/parts/syncProtocols.d.ts.map +0 -1
- package/esm/config/src/config/parts/syncProtocols.js +0 -66
- package/esm/config/src/config/utils.d.ts +0 -40
- package/esm/config/src/config/utils.d.ts.map +0 -1
- package/esm/config/src/config/utils.js +0 -55
- package/esm/config/src/mod.d.ts +0 -3
- package/esm/config/src/mod.d.ts.map +0 -1
- package/esm/config/src/mod.js +0 -2
- package/esm/config/src/schema/common.d.ts +0 -26
- package/esm/config/src/schema/common.d.ts.map +0 -1
- package/esm/config/src/schema/common.js +0 -51
- package/esm/config/src/schema/mod.d.ts +0 -7
- package/esm/config/src/schema/mod.d.ts.map +0 -1
- package/esm/config/src/schema/mod.js +0 -6
- package/esm/config/src/schema/namespace.d.ts +0 -39
- package/esm/config/src/schema/namespace.d.ts.map +0 -1
- package/esm/config/src/schema/namespace.js +0 -34
- package/esm/config/src/schema/network/algorand.d.ts +0 -12
- package/esm/config/src/schema/network/algorand.d.ts.map +0 -1
- package/esm/config/src/schema/network/algorand.js +0 -23
- package/esm/config/src/schema/network/all.d.ts +0 -175
- package/esm/config/src/schema/network/all.d.ts.map +0 -1
- package/esm/config/src/schema/network/all.js +0 -24
- package/esm/config/src/schema/network/bitcoin.d.ts +0 -19
- package/esm/config/src/schema/network/bitcoin.d.ts.map +0 -1
- package/esm/config/src/schema/network/bitcoin.js +0 -21
- package/esm/config/src/schema/network/cardano.d.ts +0 -12
- package/esm/config/src/schema/network/cardano.d.ts.map +0 -1
- package/esm/config/src/schema/network/cardano.js +0 -27
- package/esm/config/src/schema/network/evm.d.ts +0 -68
- package/esm/config/src/schema/network/evm.d.ts.map +0 -1
- package/esm/config/src/schema/network/evm.js +0 -70
- package/esm/config/src/schema/network/mina.d.ts +0 -14
- package/esm/config/src/schema/network/mina.d.ts.map +0 -1
- package/esm/config/src/schema/network/mina.js +0 -25
- package/esm/config/src/schema/network/mod.d.ts +0 -9
- package/esm/config/src/schema/network/mod.d.ts.map +0 -1
- package/esm/config/src/schema/network/mod.js +0 -8
- package/esm/config/src/schema/network/ntp.d.ts +0 -32
- package/esm/config/src/schema/network/ntp.d.ts.map +0 -1
- package/esm/config/src/schema/network/ntp.js +0 -39
- package/esm/config/src/schema/network/substrate/avail.d.ts +0 -14
- package/esm/config/src/schema/network/substrate/avail.d.ts.map +0 -1
- package/esm/config/src/schema/network/substrate/avail.js +0 -26
- package/esm/config/src/schema/network/substrate/common.d.ts +0 -18
- package/esm/config/src/schema/network/substrate/common.d.ts.map +0 -1
- package/esm/config/src/schema/network/substrate/common.js +0 -32
- package/esm/config/src/schema/network/substrate/midnight.d.ts +0 -20
- package/esm/config/src/schema/network/substrate/midnight.d.ts.map +0 -1
- package/esm/config/src/schema/network/substrate/midnight.js +0 -32
- package/esm/config/src/schema/network/substrate/mod.d.ts +0 -4
- package/esm/config/src/schema/network/substrate/mod.d.ts.map +0 -1
- package/esm/config/src/schema/network/substrate/mod.js +0 -3
- package/esm/config/src/schema/network/types.d.ts +0 -13
- package/esm/config/src/schema/network/types.d.ts.map +0 -1
- package/esm/config/src/schema/network/types.js +0 -13
- package/esm/config/src/schema/network/utils.d.ts +0 -5
- package/esm/config/src/schema/network/utils.d.ts.map +0 -1
- package/esm/config/src/schema/network/utils.js +0 -73
- package/esm/config/src/schema/primitive/mod.d.ts +0 -2
- package/esm/config/src/schema/primitive/mod.d.ts.map +0 -1
- package/esm/config/src/schema/primitive/mod.js +0 -1
- package/esm/config/src/schema/primitive/types.d.ts +0 -58
- package/esm/config/src/schema/primitive/types.d.ts.map +0 -1
- package/esm/config/src/schema/primitive/types.js +0 -1
- package/esm/config/src/schema/sync-protocols/all.d.ts +0 -583
- package/esm/config/src/schema/sync-protocols/all.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/all.js +0 -55
- package/esm/config/src/schema/sync-protocols/avail/rpc.d.ts +0 -76
- package/esm/config/src/schema/sync-protocols/avail/rpc.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/avail/rpc.js +0 -56
- package/esm/config/src/schema/sync-protocols/bitcoin/rpc.d.ts +0 -76
- package/esm/config/src/schema/sync-protocols/bitcoin/rpc.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/bitcoin/rpc.js +0 -47
- package/esm/config/src/schema/sync-protocols/cardano/carp.d.ts +0 -80
- package/esm/config/src/schema/sync-protocols/cardano/carp.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/cardano/carp.js +0 -62
- package/esm/config/src/schema/sync-protocols/cardano/mod.d.ts +0 -2
- package/esm/config/src/schema/sync-protocols/cardano/mod.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/cardano/mod.js +0 -1
- package/esm/config/src/schema/sync-protocols/cardano/utxorpc.d.ts +0 -56
- package/esm/config/src/schema/sync-protocols/cardano/utxorpc.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/cardano/utxorpc.js +0 -56
- package/esm/config/src/schema/sync-protocols/common.d.ts +0 -60
- package/esm/config/src/schema/sync-protocols/common.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/common.js +0 -54
- package/esm/config/src/schema/sync-protocols/decorators/all.d.ts +0 -17
- package/esm/config/src/schema/sync-protocols/decorators/all.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/decorators/all.js +0 -8
- package/esm/config/src/schema/sync-protocols/decorators/emulated.d.ts +0 -8
- package/esm/config/src/schema/sync-protocols/decorators/emulated.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/decorators/emulated.js +0 -12
- package/esm/config/src/schema/sync-protocols/decorators/mod.d.ts +0 -4
- package/esm/config/src/schema/sync-protocols/decorators/mod.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/decorators/mod.js +0 -3
- package/esm/config/src/schema/sync-protocols/decorators/types.d.ts +0 -4
- package/esm/config/src/schema/sync-protocols/decorators/types.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/decorators/types.js +0 -4
- package/esm/config/src/schema/sync-protocols/evm/rpc.d.ts +0 -68
- package/esm/config/src/schema/sync-protocols/evm/rpc.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/evm/rpc.js +0 -44
- package/esm/config/src/schema/sync-protocols/midnight/graphql.d.ts +0 -66
- package/esm/config/src/schema/sync-protocols/midnight/graphql.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/midnight/graphql.js +0 -50
- package/esm/config/src/schema/sync-protocols/mina/graphql.d.ts +0 -73
- package/esm/config/src/schema/sync-protocols/mina/graphql.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/mina/graphql.js +0 -59
- package/esm/config/src/schema/sync-protocols/mod.d.ts +0 -10
- package/esm/config/src/schema/sync-protocols/mod.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/mod.js +0 -9
- package/esm/config/src/schema/sync-protocols/ntp/rpc.d.ts +0 -45
- package/esm/config/src/schema/sync-protocols/ntp/rpc.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/ntp/rpc.js +0 -33
- package/esm/config/src/schema/sync-protocols/types.d.ts +0 -125
- package/esm/config/src/schema/sync-protocols/types.d.ts.map +0 -1
- package/esm/config/src/schema/sync-protocols/types.js +0 -22
- package/esm/config/src/schema/utils.d.ts +0 -53
- package/esm/config/src/schema/utils.d.ts.map +0 -1
- package/esm/config/src/schema/utils.js +0 -58
- package/script/chain-types/src/hash.d.ts +0 -28
- package/script/chain-types/src/hash.d.ts.map +0 -1
- package/script/chain-types/src/hash.js +0 -36
- package/script/chain-types/src/mod.d.ts +0 -3
- package/script/chain-types/src/mod.d.ts.map +0 -1
- package/script/chain-types/src/mod.js +0 -18
- package/script/chain-types/src/types.d.ts +0 -70
- package/script/chain-types/src/types.d.ts.map +0 -1
- package/script/config/src/config/builder.d.ts +0 -33
- package/script/config/src/config/builder.d.ts.map +0 -1
- package/script/config/src/config/builder.js +0 -86
- package/script/config/src/config/configCheck.d.ts +0 -32
- package/script/config/src/config/configCheck.d.ts.map +0 -1
- package/script/config/src/config/configCheck.js +0 -70
- package/script/config/src/config/context.d.ts +0 -23
- package/script/config/src/config/context.d.ts.map +0 -1
- package/script/config/src/config/context.js +0 -31
- package/script/config/src/config/mod.d.ts +0 -7
- package/script/config/src/config/mod.d.ts.map +0 -1
- package/script/config/src/config/mod.js +0 -22
- package/script/config/src/config/parts/deployedAddresses.d.ts +0 -17
- package/script/config/src/config/parts/deployedAddresses.d.ts.map +0 -1
- package/script/config/src/config/parts/deployedAddresses.js +0 -28
- package/script/config/src/config/parts/network.d.ts +0 -19
- package/script/config/src/config/parts/network.d.ts.map +0 -1
- package/script/config/src/config/parts/network.js +0 -33
- package/script/config/src/config/parts/primitive.d.ts +0 -31
- package/script/config/src/config/parts/primitive.d.ts.map +0 -1
- package/script/config/src/config/parts/primitive.js +0 -32
- package/script/config/src/config/parts/securityNamespace.d.ts +0 -14
- package/script/config/src/config/parts/securityNamespace.d.ts.map +0 -1
- package/script/config/src/config/parts/securityNamespace.js +0 -30
- package/script/config/src/config/parts/syncProtocols.d.ts +0 -43
- package/script/config/src/config/parts/syncProtocols.d.ts.map +0 -1
- package/script/config/src/config/parts/syncProtocols.js +0 -70
- package/script/config/src/config/utils.d.ts +0 -40
- package/script/config/src/config/utils.d.ts.map +0 -1
- package/script/config/src/config/utils.js +0 -62
- package/script/config/src/mod.d.ts +0 -3
- package/script/config/src/mod.d.ts.map +0 -1
- package/script/config/src/schema/common.d.ts +0 -26
- package/script/config/src/schema/common.d.ts.map +0 -1
- package/script/config/src/schema/common.js +0 -54
- package/script/config/src/schema/mod.d.ts +0 -7
- package/script/config/src/schema/mod.d.ts.map +0 -1
- package/script/config/src/schema/mod.js +0 -22
- package/script/config/src/schema/namespace.d.ts +0 -39
- package/script/config/src/schema/namespace.d.ts.map +0 -1
- package/script/config/src/schema/namespace.js +0 -38
- package/script/config/src/schema/network/algorand.d.ts +0 -12
- package/script/config/src/schema/network/algorand.d.ts.map +0 -1
- package/script/config/src/schema/network/algorand.js +0 -26
- package/script/config/src/schema/network/all.d.ts +0 -175
- package/script/config/src/schema/network/all.d.ts.map +0 -1
- package/script/config/src/schema/network/all.js +0 -28
- package/script/config/src/schema/network/bitcoin.d.ts +0 -19
- package/script/config/src/schema/network/bitcoin.d.ts.map +0 -1
- package/script/config/src/schema/network/bitcoin.js +0 -24
- package/script/config/src/schema/network/cardano.d.ts +0 -12
- package/script/config/src/schema/network/cardano.d.ts.map +0 -1
- package/script/config/src/schema/network/cardano.js +0 -30
- package/script/config/src/schema/network/evm.d.ts +0 -68
- package/script/config/src/schema/network/evm.d.ts.map +0 -1
- package/script/config/src/schema/network/evm.js +0 -75
- package/script/config/src/schema/network/mina.d.ts +0 -14
- package/script/config/src/schema/network/mina.d.ts.map +0 -1
- package/script/config/src/schema/network/mina.js +0 -28
- package/script/config/src/schema/network/mod.d.ts +0 -9
- package/script/config/src/schema/network/mod.d.ts.map +0 -1
- package/script/config/src/schema/network/mod.js +0 -24
- package/script/config/src/schema/network/ntp.d.ts +0 -32
- package/script/config/src/schema/network/ntp.d.ts.map +0 -1
- package/script/config/src/schema/network/ntp.js +0 -42
- package/script/config/src/schema/network/substrate/avail.d.ts +0 -14
- package/script/config/src/schema/network/substrate/avail.d.ts.map +0 -1
- package/script/config/src/schema/network/substrate/avail.js +0 -29
- package/script/config/src/schema/network/substrate/common.d.ts +0 -18
- package/script/config/src/schema/network/substrate/common.d.ts.map +0 -1
- package/script/config/src/schema/network/substrate/common.js +0 -35
- package/script/config/src/schema/network/substrate/midnight.d.ts +0 -20
- package/script/config/src/schema/network/substrate/midnight.d.ts.map +0 -1
- package/script/config/src/schema/network/substrate/midnight.js +0 -35
- package/script/config/src/schema/network/substrate/mod.d.ts +0 -4
- package/script/config/src/schema/network/substrate/mod.d.ts.map +0 -1
- package/script/config/src/schema/network/substrate/mod.js +0 -19
- package/script/config/src/schema/network/types.d.ts +0 -13
- package/script/config/src/schema/network/types.d.ts.map +0 -1
- package/script/config/src/schema/network/types.js +0 -16
- package/script/config/src/schema/network/utils.d.ts +0 -5
- package/script/config/src/schema/network/utils.d.ts.map +0 -1
- package/script/config/src/schema/network/utils.js +0 -76
- package/script/config/src/schema/primitive/mod.d.ts +0 -2
- package/script/config/src/schema/primitive/mod.d.ts.map +0 -1
- package/script/config/src/schema/primitive/mod.js +0 -17
- package/script/config/src/schema/primitive/types.d.ts +0 -58
- package/script/config/src/schema/primitive/types.d.ts.map +0 -1
- package/script/config/src/schema/primitive/types.js +0 -2
- package/script/config/src/schema/sync-protocols/all.d.ts +0 -583
- package/script/config/src/schema/sync-protocols/all.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/all.js +0 -62
- package/script/config/src/schema/sync-protocols/avail/rpc.d.ts +0 -76
- package/script/config/src/schema/sync-protocols/avail/rpc.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/avail/rpc.js +0 -59
- package/script/config/src/schema/sync-protocols/bitcoin/rpc.d.ts +0 -76
- package/script/config/src/schema/sync-protocols/bitcoin/rpc.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/bitcoin/rpc.js +0 -50
- package/script/config/src/schema/sync-protocols/cardano/carp.d.ts +0 -80
- package/script/config/src/schema/sync-protocols/cardano/carp.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/cardano/carp.js +0 -65
- package/script/config/src/schema/sync-protocols/cardano/mod.d.ts +0 -2
- package/script/config/src/schema/sync-protocols/cardano/mod.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/cardano/mod.js +0 -17
- package/script/config/src/schema/sync-protocols/cardano/utxorpc.d.ts +0 -56
- package/script/config/src/schema/sync-protocols/cardano/utxorpc.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/cardano/utxorpc.js +0 -59
- package/script/config/src/schema/sync-protocols/common.d.ts +0 -60
- package/script/config/src/schema/sync-protocols/common.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/common.js +0 -61
- package/script/config/src/schema/sync-protocols/decorators/all.d.ts +0 -17
- package/script/config/src/schema/sync-protocols/decorators/all.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/decorators/all.js +0 -12
- package/script/config/src/schema/sync-protocols/decorators/emulated.d.ts +0 -8
- package/script/config/src/schema/sync-protocols/decorators/emulated.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/decorators/emulated.js +0 -15
- package/script/config/src/schema/sync-protocols/decorators/mod.d.ts +0 -4
- package/script/config/src/schema/sync-protocols/decorators/mod.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/decorators/mod.js +0 -19
- package/script/config/src/schema/sync-protocols/decorators/types.d.ts +0 -4
- package/script/config/src/schema/sync-protocols/decorators/types.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/decorators/types.js +0 -7
- package/script/config/src/schema/sync-protocols/evm/rpc.d.ts +0 -68
- package/script/config/src/schema/sync-protocols/evm/rpc.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/evm/rpc.js +0 -47
- package/script/config/src/schema/sync-protocols/midnight/graphql.d.ts +0 -66
- package/script/config/src/schema/sync-protocols/midnight/graphql.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/midnight/graphql.js +0 -53
- package/script/config/src/schema/sync-protocols/mina/graphql.d.ts +0 -73
- package/script/config/src/schema/sync-protocols/mina/graphql.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/mina/graphql.js +0 -62
- package/script/config/src/schema/sync-protocols/mod.d.ts +0 -10
- package/script/config/src/schema/sync-protocols/mod.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/mod.js +0 -25
- package/script/config/src/schema/sync-protocols/ntp/rpc.d.ts +0 -45
- package/script/config/src/schema/sync-protocols/ntp/rpc.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/ntp/rpc.js +0 -36
- package/script/config/src/schema/sync-protocols/types.d.ts +0 -125
- package/script/config/src/schema/sync-protocols/types.d.ts.map +0 -1
- package/script/config/src/schema/sync-protocols/types.js +0 -25
- package/script/config/src/schema/utils.d.ts +0 -53
- package/script/config/src/schema/utils.d.ts.map +0 -1
- package/script/config/src/schema/utils.js +0 -62
- /package/esm/{chain-types/src/types.js → crypto/src/IVerify.js} +0 -0
- /package/script/{chain-types/src/types.js → crypto/src/IVerify.js} +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SyncProtocolBuilder = void 0;
|
|
4
|
-
const mod_js_1 = require("../../schema/mod.js");
|
|
5
|
-
const value_1 = require("@sinclair/typebox/value");
|
|
6
|
-
const utils_js_1 = require("../utils.js");
|
|
7
|
-
class SyncProtocolBuilder {
|
|
8
|
-
networks;
|
|
9
|
-
deployedAddresses;
|
|
10
|
-
data;
|
|
11
|
-
constructor(networks, deployedAddresses) {
|
|
12
|
-
this.networks = networks;
|
|
13
|
-
this.deployedAddresses = deployedAddresses;
|
|
14
|
-
this.data = {
|
|
15
|
-
main: {},
|
|
16
|
-
parallel: {},
|
|
17
|
-
decorators: {},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
addMain = (0, utils_js_1.onlyOnce)({
|
|
21
|
-
key: () => this.data.main,
|
|
22
|
-
name: "main",
|
|
23
|
-
build: (genNetwork, genSyncProtocol) => {
|
|
24
|
-
const network = genNetwork(this.networks.networks);
|
|
25
|
-
const syncProtocol = genSyncProtocol(network, this.deployedAddresses.deployedAddresses[network.name]);
|
|
26
|
-
const withDefaults = value_1.Value.Default((0, mod_js_1.ConfigSyncProtocolMain)(true), syncProtocol);
|
|
27
|
-
this.data.main = {
|
|
28
|
-
network: network.name,
|
|
29
|
-
syncProtocol: withDefaults,
|
|
30
|
-
};
|
|
31
|
-
return this;
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
addParallel = (0, utils_js_1.onlyValue)({
|
|
35
|
-
value: () => this.data.main,
|
|
36
|
-
target: () => ({}),
|
|
37
|
-
name: "main",
|
|
38
|
-
build: (genNetwork, getSyncProtocol) => {
|
|
39
|
-
const network = genNetwork(this.networks.networks);
|
|
40
|
-
const syncProtocol = getSyncProtocol(network, this.deployedAddresses.deployedAddresses[network.name]);
|
|
41
|
-
const withDefaults = value_1.Value.Default((0, mod_js_1.ConfigSyncProtocolParallel)(true), syncProtocol);
|
|
42
|
-
this.data.parallel[syncProtocol.name] = {
|
|
43
|
-
network: network.name,
|
|
44
|
-
syncProtocol: withDefaults,
|
|
45
|
-
};
|
|
46
|
-
return this;
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
addDecorator = (0, utils_js_1.onlyValue)({
|
|
50
|
-
value: () => this.data.main,
|
|
51
|
-
target: () => ({}),
|
|
52
|
-
name: "main",
|
|
53
|
-
build: (genNetwork, getSyncProtocol) => {
|
|
54
|
-
const network = genNetwork(this.networks.networks);
|
|
55
|
-
const syncProtocol = getSyncProtocol(network, this.deployedAddresses.deployedAddresses[network.name]);
|
|
56
|
-
const withDefaults = value_1.Value.Default((0, mod_js_1.ConfigSyncProtocolDecorator)(true), syncProtocol);
|
|
57
|
-
this.data.decorators[syncProtocol.name] = withDefaults;
|
|
58
|
-
return this;
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
build = (0, utils_js_1.onlyValue)({
|
|
62
|
-
value: () => this.data.main,
|
|
63
|
-
target: () => ({}),
|
|
64
|
-
name: "main",
|
|
65
|
-
build: () => {
|
|
66
|
-
return this.data;
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
exports.SyncProtocolBuilder = SyncProtocolBuilder;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Satisfies, Stringifiable, TypeErrorMessage } from "../../../utils/src/mod.js";
|
|
2
|
-
import type { ConfigSyncProtocolType, PrimitiveEntry, ProtocolPrimitiveMap, SyncProtocolWithNetwork } from "../schema/sync-protocols/types.js";
|
|
3
|
-
import type { ConfigBuilderData } from "./builder.js";
|
|
4
|
-
import type { PostBuildSecurityNamespaceData } from "./parts/securityNamespace.js";
|
|
5
|
-
import type { NetworkBuilderData, NetworkConfig } from "./parts/network.js";
|
|
6
|
-
import type { DeployedAddressesBuilderData } from "./parts/deployedAddresses.js";
|
|
7
|
-
import type { PostBuildSyncProtocolBuilderData } from "./parts/syncProtocols.js";
|
|
8
|
-
import type { PrimitiveBuilderData } from "./parts/primitive.js";
|
|
9
|
-
export type ErrorIfDefined<T, Success, ValName extends string = string> = T extends undefined ? Success : TypeErrorMessage<`${string extends ValName ? "Value" : ValName} has already been set`>;
|
|
10
|
-
type IsStringifiable<A> = A extends Stringifiable ? true : false;
|
|
11
|
-
export type ErrorIfFalse<T extends boolean, Success, Value, Target, ValName extends string = string> = T extends true ? Success : TypeErrorMessage<`${string extends ValName ? "Value" : ValName} ${Value extends Stringifiable ? IsStringifiable<Target> extends never ? "is not in the right state" : IsStringifiable<Target> extends true ? `can only be set if ${Target & Stringifiable} is equal to ${Value}` : "is not in the right state" : "is not in the right state"}`>;
|
|
12
|
-
export declare function onlyOnce<const Step, const Func, const Name extends string = string>(param: {
|
|
13
|
-
key: () => Step;
|
|
14
|
-
name?: Name;
|
|
15
|
-
build: Func;
|
|
16
|
-
}): ErrorIfDefined<Step, Func, Name>;
|
|
17
|
-
export type ErrorIfMessage<T, Success, Name extends string = string> = T extends TypeErrorMessage<any> ? T : Success;
|
|
18
|
-
export declare function onlyNotError<const MaybeNever, const Func, const Name extends string>(param: {
|
|
19
|
-
key: () => MaybeNever;
|
|
20
|
-
name?: Name;
|
|
21
|
-
build: Func;
|
|
22
|
-
}): ErrorIfMessage<MaybeNever, Func, Name>;
|
|
23
|
-
export declare function onlyValue<const Value, const Target, const Func, const Name extends string = string>(param: {
|
|
24
|
-
value: () => Value;
|
|
25
|
-
target: () => Target;
|
|
26
|
-
name?: Name;
|
|
27
|
-
build: Func;
|
|
28
|
-
}): ErrorIfFalse<Satisfies<Target, Value>, Func, Value, Target, Name>;
|
|
29
|
-
/**
|
|
30
|
-
* Helper function to filter and create PrimitiveEntry objects for a specific sync protocol
|
|
31
|
-
*/
|
|
32
|
-
export declare function getPrimitivesForSyncProtocol<T extends ConfigSyncProtocolType>(primitives: Record<string, {
|
|
33
|
-
syncProtocol: T;
|
|
34
|
-
primitive: T extends keyof ProtocolPrimitiveMap ? ProtocolPrimitiveMap[T] : never;
|
|
35
|
-
}>, syncProtocolName: string): Extract<PrimitiveEntry, {
|
|
36
|
-
syncProtocol: T;
|
|
37
|
-
}>[];
|
|
38
|
-
export declare function toSyncProtocolWithNetwork<Data extends ConfigBuilderData<Readonly<PostBuildSecurityNamespaceData>["securityNamespace"], NetworkBuilderData<Record<string, NetworkConfig>>, DeployedAddressesBuilderData["deployedAddresses"], PostBuildSyncProtocolBuilderData<Record<string, NetworkConfig>>, PrimitiveBuilderData["primitives"]>>(data: Data): SyncProtocolWithNetwork[];
|
|
39
|
-
export {};
|
|
40
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/config/src/config/utils.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onlyOnce = onlyOnce;
|
|
4
|
-
exports.onlyNotError = onlyNotError;
|
|
5
|
-
exports.onlyValue = onlyValue;
|
|
6
|
-
exports.getPrimitivesForSyncProtocol = getPrimitivesForSyncProtocol;
|
|
7
|
-
exports.toSyncProtocolWithNetwork = toSyncProtocolWithNetwork;
|
|
8
|
-
function onlyOnce(param) {
|
|
9
|
-
return param.build;
|
|
10
|
-
}
|
|
11
|
-
function onlyNotError(param) {
|
|
12
|
-
return param.build;
|
|
13
|
-
}
|
|
14
|
-
function onlyValue(param) {
|
|
15
|
-
return param.build;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Helper function to filter and create PrimitiveEntry objects for a specific sync protocol
|
|
19
|
-
*/
|
|
20
|
-
function getPrimitivesForSyncProtocol(primitives, syncProtocolName) {
|
|
21
|
-
if (!primitives)
|
|
22
|
-
return [];
|
|
23
|
-
const result = [];
|
|
24
|
-
for (const [primitiveName, primitiveData] of Object.entries(primitives)) {
|
|
25
|
-
if (primitiveData.syncProtocol === syncProtocolName) {
|
|
26
|
-
const t = {
|
|
27
|
-
syncProtocol: primitiveData.syncProtocol,
|
|
28
|
-
primitive: primitiveData.primitive,
|
|
29
|
-
id: primitiveName,
|
|
30
|
-
};
|
|
31
|
-
result.push(t);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
36
|
-
function toSyncProtocolWithNetwork(data) {
|
|
37
|
-
return [
|
|
38
|
-
// TODO: clean up this code so it's more readable
|
|
39
|
-
{
|
|
40
|
-
networkType: data.allNetworks
|
|
41
|
-
.networks[data.syncProtocols.main.network].type,
|
|
42
|
-
syncProtocolType: data.syncProtocols.main.syncProtocol.type,
|
|
43
|
-
syncProtocol: data.syncProtocols.main.syncProtocol,
|
|
44
|
-
network: data.allNetworks
|
|
45
|
-
.networks[data.syncProtocols.main.network],
|
|
46
|
-
primitives: getPrimitivesForSyncProtocol(data.primitives, data.syncProtocols.main.syncProtocol.name),
|
|
47
|
-
},
|
|
48
|
-
...Object.values(data.syncProtocols.parallel).map((protocol) => {
|
|
49
|
-
const network = data.allNetworks
|
|
50
|
-
.networks[protocol.network];
|
|
51
|
-
const result = {
|
|
52
|
-
networkType: network.type,
|
|
53
|
-
syncProtocolType: protocol.syncProtocol.type,
|
|
54
|
-
syncProtocol: protocol.syncProtocol,
|
|
55
|
-
network,
|
|
56
|
-
primitives: getPrimitivesForSyncProtocol(data.primitives, protocol.syncProtocol.name),
|
|
57
|
-
};
|
|
58
|
-
return result;
|
|
59
|
-
}),
|
|
60
|
-
// TODO: decorator syncProtocols
|
|
61
|
-
];
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/config/src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ConfigSchema } from "./utils.js";
|
|
2
|
-
export declare const NameField: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
3
|
-
name: import("@sinclair/typebox").TString;
|
|
4
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
5
|
-
export declare const PollingSyncProtocol: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
6
|
-
pollingInterval: import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").IntervalMs>;
|
|
7
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
8
|
-
export declare const StartStopBlockheight: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
9
|
-
startBlockHeight: import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").BlockNumber>;
|
|
10
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
11
|
-
stopBlockHeight: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").BlockNumber>, import("@sinclair/typebox").TNull]>;
|
|
12
|
-
}>>;
|
|
13
|
-
export declare const StartStopSlot: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
14
|
-
startSlot: import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").AbsoluteSlotNumber>;
|
|
15
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
16
|
-
stopSlot: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").AbsoluteSlotNumber>, import("@sinclair/typebox").TNull]>;
|
|
17
|
-
}>>;
|
|
18
|
-
export declare const StartStopTimestamp: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
19
|
-
startTimestamp: import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").TimestampMs>;
|
|
20
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
21
|
-
stopTimestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnsafe<import("../../../utils/src/mod.js").TimestampMs>, import("@sinclair/typebox").TNull]>;
|
|
22
|
-
}>>;
|
|
23
|
-
export declare const AbiField: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
24
|
-
abi: import("@sinclair/typebox").TUnsafe<import("abitype").AbiEvent>;
|
|
25
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
26
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/config/src/schema/common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,SAAS;;4CAKpB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;4CAK9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;GAS/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;GASxB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;GAS7B,CAAC;AAEH,eAAO,MAAM,QAAQ;;4CAKnB,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbiField = exports.StartStopTimestamp = exports.StartStopSlot = exports.StartStopBlockheight = exports.PollingSyncProtocol = exports.NameField = void 0;
|
|
4
|
-
const mod_js_1 = require("../../../utils/src/mod.js");
|
|
5
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
-
const utils_js_1 = require("./utils.js");
|
|
7
|
-
exports.NameField = new utils_js_1.ConfigSchema({
|
|
8
|
-
required: typebox_1.Type.Object({
|
|
9
|
-
name: typebox_1.Type.String(),
|
|
10
|
-
}),
|
|
11
|
-
optional: typebox_1.Type.Object({}),
|
|
12
|
-
});
|
|
13
|
-
exports.PollingSyncProtocol = new utils_js_1.ConfigSchema({
|
|
14
|
-
required: typebox_1.Type.Object({
|
|
15
|
-
pollingInterval: mod_js_1.TypeboxHelpers.IntervalMs(),
|
|
16
|
-
}),
|
|
17
|
-
optional: typebox_1.Type.Object({}),
|
|
18
|
-
});
|
|
19
|
-
exports.StartStopBlockheight = new utils_js_1.ConfigSchema({
|
|
20
|
-
required: typebox_1.Type.Object({
|
|
21
|
-
startBlockHeight: mod_js_1.TypeboxHelpers.BlockNumber(),
|
|
22
|
-
}),
|
|
23
|
-
optional: typebox_1.Type.Object({
|
|
24
|
-
stopBlockHeight: mod_js_1.TypeboxHelpers.Nullable(mod_js_1.TypeboxHelpers.BlockNumber(), {
|
|
25
|
-
default: null,
|
|
26
|
-
}),
|
|
27
|
-
}),
|
|
28
|
-
});
|
|
29
|
-
exports.StartStopSlot = new utils_js_1.ConfigSchema({
|
|
30
|
-
required: typebox_1.Type.Object({
|
|
31
|
-
startSlot: mod_js_1.TypeboxHelpers.AbsoluteSlotNumber(),
|
|
32
|
-
}),
|
|
33
|
-
optional: typebox_1.Type.Object({
|
|
34
|
-
stopSlot: mod_js_1.TypeboxHelpers.Nullable(mod_js_1.TypeboxHelpers.AbsoluteSlotNumber(), {
|
|
35
|
-
default: null,
|
|
36
|
-
}),
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
39
|
-
exports.StartStopTimestamp = new utils_js_1.ConfigSchema({
|
|
40
|
-
required: typebox_1.Type.Object({
|
|
41
|
-
startTimestamp: mod_js_1.TypeboxHelpers.TimestampMs(),
|
|
42
|
-
}),
|
|
43
|
-
optional: typebox_1.Type.Object({
|
|
44
|
-
stopTimestamp: mod_js_1.TypeboxHelpers.Nullable(mod_js_1.TypeboxHelpers.TimestampMs(), {
|
|
45
|
-
default: null,
|
|
46
|
-
}),
|
|
47
|
-
}),
|
|
48
|
-
});
|
|
49
|
-
exports.AbiField = new utils_js_1.ConfigSchema({
|
|
50
|
-
required: typebox_1.Type.Object({
|
|
51
|
-
abi: mod_js_1.TypeboxHelpers.EvmAbiEvent,
|
|
52
|
-
}),
|
|
53
|
-
optional: typebox_1.Type.Object({}),
|
|
54
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/config/src/schema/mod.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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("./sync-protocols/mod.js"), exports);
|
|
18
|
-
__exportStar(require("./network/mod.js"), exports);
|
|
19
|
-
__exportStar(require("./primitive/mod.js"), exports);
|
|
20
|
-
__exportStar(require("./namespace.js"), exports);
|
|
21
|
-
__exportStar(require("./utils.js"), exports);
|
|
22
|
-
__exportStar(require("./common.js"), exports);
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type SecurityNamespaceEntry = {
|
|
2
|
-
block_height: number;
|
|
3
|
-
prefixes: string[];
|
|
4
|
-
};
|
|
5
|
-
export type HistoricalSecurityNamespace = {
|
|
6
|
-
/**
|
|
7
|
-
* Note:
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* [{
|
|
11
|
-
* block_height: 0,
|
|
12
|
-
* prefixes: ["original-namespace"],
|
|
13
|
-
* }, {
|
|
14
|
-
* // this entry acts as a transition from "original-namespace" to "new-namespace"
|
|
15
|
-
* block_height: 100,
|
|
16
|
-
* prefixes: ["original-namespace", "new-namespace"],
|
|
17
|
-
* }, {
|
|
18
|
-
* block_height: 200,
|
|
19
|
-
* prefixes: ["new-namespace"],
|
|
20
|
-
* }]
|
|
21
|
-
*/
|
|
22
|
-
read: SecurityNamespaceEntry[] & {
|
|
23
|
-
block_height: 0;
|
|
24
|
-
prefixes: string[];
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Which namespace to use when creating new transition
|
|
28
|
-
* This is set to explicitly be able to set which namespace to use during a transition
|
|
29
|
-
*/
|
|
30
|
-
write: string;
|
|
31
|
-
};
|
|
32
|
-
export type SecurityNamespace = string | HistoricalSecurityNamespace;
|
|
33
|
-
export declare function getReadNamespaces(namespace: SecurityNamespace, blockHeight: number): string[];
|
|
34
|
-
/**
|
|
35
|
-
* Which namespace to use when creating transactions
|
|
36
|
-
* Note: new transactions are always made using the same constant namespace
|
|
37
|
-
*/
|
|
38
|
-
export declare function getWriteNamespace(namespace: SecurityNamespace): string;
|
|
39
|
-
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../../src/config/src/schema/namespace.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,EAAE,sBAAsB,EAAE,GAAG;QAAE,YAAY,EAAE,CAAC,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACzE;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,2BAA2B,CAAC;AAoBrE,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,MAAM,GAClB,MAAM,EAAE,CAWV;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,iBAAiB,GAAG,MAAM,CAKtE"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReadNamespaces = getReadNamespaces;
|
|
4
|
-
exports.getWriteNamespace = getWriteNamespace;
|
|
5
|
-
function getEntry(namespace, currentBlockHeight) {
|
|
6
|
-
let highestEntry = null;
|
|
7
|
-
for (const entry of namespace.read) {
|
|
8
|
-
if (highestEntry == null || // first entry we see
|
|
9
|
-
entry.block_height > highestEntry?.block_height // new best entry candidate
|
|
10
|
-
) {
|
|
11
|
-
// ignore future changes
|
|
12
|
-
if (currentBlockHeight >= entry.block_height) {
|
|
13
|
-
highestEntry = entry;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return highestEntry?.prefixes;
|
|
18
|
-
}
|
|
19
|
-
function getReadNamespaces(namespace, blockHeight) {
|
|
20
|
-
if (typeof namespace === "string") {
|
|
21
|
-
return [namespace];
|
|
22
|
-
}
|
|
23
|
-
const entry = getEntry(namespace, blockHeight);
|
|
24
|
-
if (entry == null) {
|
|
25
|
-
throw new Error(`No matching namespace found for blockheight ${blockHeight}`);
|
|
26
|
-
}
|
|
27
|
-
return entry;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Which namespace to use when creating transactions
|
|
31
|
-
* Note: new transactions are always made using the same constant namespace
|
|
32
|
-
*/
|
|
33
|
-
function getWriteNamespace(namespace) {
|
|
34
|
-
if (typeof namespace === "string") {
|
|
35
|
-
return namespace;
|
|
36
|
-
}
|
|
37
|
-
return namespace.write;
|
|
38
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Static } from "@sinclair/typebox";
|
|
2
|
-
import { ConfigSchema } from "../utils.js";
|
|
3
|
-
import { ConfigNetworkType } from "./types.js";
|
|
4
|
-
import type { MergeIntersects } from "../../../../utils/src/mod.js";
|
|
5
|
-
export declare const AlgorandGenesisHash: import("@sinclair/typebox").TRegExp;
|
|
6
|
-
export declare const ConfigNetworkSchemaAlgorand: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
7
|
-
name: import("@sinclair/typebox").TString;
|
|
8
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.ALGORAND>;
|
|
9
|
-
genesisHash: import("@sinclair/typebox").TRegExp;
|
|
10
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
11
|
-
export type ConfigNetworkAlgorand = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaAlgorand.allProperties<true>>>>;
|
|
12
|
-
//# sourceMappingURL=algorand.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"algorand.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/algorand.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAOpE,eAAO,MAAM,mBAAmB,qCAE/B,CAAC;AAMF,eAAO,MAAM,2BAA2B;;;;4CAOtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,CACjD,MAAM,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAC3E,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaAlgorand = exports.AlgorandGenesisHash = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const utils_js_1 = require("../utils.js");
|
|
6
|
-
const types_js_1 = require("./types.js");
|
|
7
|
-
// =====
|
|
8
|
-
// Utils
|
|
9
|
-
// =====
|
|
10
|
-
// TODO: can we replace this with the Typebox helper?
|
|
11
|
-
exports.AlgorandGenesisHash = typebox_1.Type.RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$");
|
|
12
|
-
// ===========
|
|
13
|
-
// Base schema
|
|
14
|
-
// ===========
|
|
15
|
-
exports.ConfigNetworkSchemaAlgorand = new utils_js_1.ConfigSchema({
|
|
16
|
-
required: typebox_1.Type.Object({
|
|
17
|
-
name: typebox_1.Type.String(),
|
|
18
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.ALGORAND),
|
|
19
|
-
genesisHash: exports.AlgorandGenesisHash,
|
|
20
|
-
}),
|
|
21
|
-
optional: typebox_1.Type.Object({}),
|
|
22
|
-
});
|
|
23
|
-
// ===========
|
|
24
|
-
// Conversions
|
|
25
|
-
// ===========
|
|
26
|
-
// none
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { ConfigNetworkType } from "./types.js";
|
|
2
|
-
import type { ToMapping } from "../utils.js";
|
|
3
|
-
export declare const networkTypes: {
|
|
4
|
-
readonly ntp: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
5
|
-
name: import("@sinclair/typebox").TString;
|
|
6
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.NTP>;
|
|
7
|
-
startTime: import("@sinclair/typebox").TNumber;
|
|
8
|
-
blockTimeMS: import("@sinclair/typebox").TNumber;
|
|
9
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
10
|
-
servers: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
11
|
-
}>>;
|
|
12
|
-
readonly evm: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
13
|
-
name: import("@sinclair/typebox").TString;
|
|
14
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.EVM>;
|
|
15
|
-
chainId: import("@sinclair/typebox").TNumber;
|
|
16
|
-
nativeCurrency: import("@sinclair/typebox").TObject<{
|
|
17
|
-
name: import("@sinclair/typebox").TString;
|
|
18
|
-
symbol: import("@sinclair/typebox").TString;
|
|
19
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
20
|
-
}>;
|
|
21
|
-
rpcUrls: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnsafe<{
|
|
22
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
23
|
-
readonly http: readonly string[];
|
|
24
|
-
}>>, import("@sinclair/typebox").TObject<{
|
|
25
|
-
default: import("@sinclair/typebox").TUnsafe<{
|
|
26
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
27
|
-
readonly http: readonly string[];
|
|
28
|
-
}>;
|
|
29
|
-
}>]>;
|
|
30
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
31
|
-
blockExplorers: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
32
|
-
name: import("@sinclair/typebox").TString;
|
|
33
|
-
url: import("@sinclair/typebox").TString;
|
|
34
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
35
|
-
}>>, import("@sinclair/typebox").TObject<{
|
|
36
|
-
default: import("@sinclair/typebox").TObject<{
|
|
37
|
-
name: import("@sinclair/typebox").TString;
|
|
38
|
-
url: import("@sinclair/typebox").TString;
|
|
39
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
|
-
}>;
|
|
41
|
-
}>]>, import("@sinclair/typebox").TNull]>;
|
|
42
|
-
sourceId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
43
|
-
testnet: import("@sinclair/typebox").TBoolean;
|
|
44
|
-
}>>;
|
|
45
|
-
readonly cardano: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
46
|
-
name: import("@sinclair/typebox").TString;
|
|
47
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.CARDANO>;
|
|
48
|
-
network: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"preview">, import("@sinclair/typebox").TLiteral<"preprod">, import("@sinclair/typebox").TLiteral<"mainnet">, import("@sinclair/typebox").TLiteral<"yaci">]>;
|
|
49
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
50
|
-
readonly mina: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
51
|
-
name: import("@sinclair/typebox").TString;
|
|
52
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.MINA>;
|
|
53
|
-
networkId: import("@sinclair/typebox").TString;
|
|
54
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
55
|
-
readonly avail: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
56
|
-
name: import("@sinclair/typebox").TString;
|
|
57
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.AVAIL>;
|
|
58
|
-
genesisSeed: import("@sinclair/typebox").TString;
|
|
59
|
-
caip2: import("@sinclair/typebox").TUnsafe<import("../../../../utils/src/mod.js").Caip2>;
|
|
60
|
-
nodeUrl: import("@sinclair/typebox").TString;
|
|
61
|
-
genesisHash: import("@sinclair/typebox").TString;
|
|
62
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
63
|
-
readonly algorand: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
64
|
-
name: import("@sinclair/typebox").TString;
|
|
65
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.ALGORAND>;
|
|
66
|
-
genesisHash: import("@sinclair/typebox").TRegExp;
|
|
67
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
68
|
-
readonly midnight: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
69
|
-
name: import("@sinclair/typebox").TString;
|
|
70
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.MIDNIGHT>;
|
|
71
|
-
networkId: import("@sinclair/typebox").TNumber;
|
|
72
|
-
genesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
73
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
74
|
-
readonly substrate: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
75
|
-
name: import("@sinclair/typebox").TString;
|
|
76
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.SUBSTRATE>;
|
|
77
|
-
genesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
78
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
79
|
-
readonly bitcoin: import("../utils.js").ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
80
|
-
name: import("@sinclair/typebox").TString;
|
|
81
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.BITCOIN>;
|
|
82
|
-
rpcUrl: import("@sinclair/typebox").TString;
|
|
83
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
84
|
-
rpcAuth: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
85
|
-
username: import("@sinclair/typebox").TString;
|
|
86
|
-
password: import("@sinclair/typebox").TString;
|
|
87
|
-
}>, import("@sinclair/typebox").TNull]>;
|
|
88
|
-
ordUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
89
|
-
network: import("@sinclair/typebox").TString;
|
|
90
|
-
chainIdentifier: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
91
|
-
}>>;
|
|
92
|
-
};
|
|
93
|
-
export type ConfigNetworkSubmapping<T extends ConfigNetworkType> = ToMapping<T, Pick<typeof networkTypes, T>>;
|
|
94
|
-
export type ConfigNetworkMapping = ToMapping<ConfigNetworkType, typeof networkTypes>;
|
|
95
|
-
export declare const ConfigNetworkAll: <Bool extends boolean>(requireOptional: Bool) => import("@sinclair/typebox").TUnion<(import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
96
|
-
name: import("@sinclair/typebox").TString;
|
|
97
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.EVM>;
|
|
98
|
-
chainId: import("@sinclair/typebox").TNumber;
|
|
99
|
-
nativeCurrency: import("@sinclair/typebox").TObject<{
|
|
100
|
-
name: import("@sinclair/typebox").TString;
|
|
101
|
-
symbol: import("@sinclair/typebox").TString;
|
|
102
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
103
|
-
}>;
|
|
104
|
-
rpcUrls: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnsafe<{
|
|
105
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
106
|
-
readonly http: readonly string[];
|
|
107
|
-
}>>, import("@sinclair/typebox").TObject<{
|
|
108
|
-
default: import("@sinclair/typebox").TUnsafe<{
|
|
109
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
110
|
-
readonly http: readonly string[];
|
|
111
|
-
}>;
|
|
112
|
-
}>]>;
|
|
113
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
114
|
-
blockExplorers: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
115
|
-
name: import("@sinclair/typebox").TString;
|
|
116
|
-
url: import("@sinclair/typebox").TString;
|
|
117
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
118
|
-
}>>, import("@sinclair/typebox").TObject<{
|
|
119
|
-
default: import("@sinclair/typebox").TObject<{
|
|
120
|
-
name: import("@sinclair/typebox").TString;
|
|
121
|
-
url: import("@sinclair/typebox").TString;
|
|
122
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
123
|
-
}>;
|
|
124
|
-
}>]>, import("@sinclair/typebox").TNull]>;
|
|
125
|
-
sourceId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
126
|
-
testnet: import("@sinclair/typebox").TBoolean;
|
|
127
|
-
}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
128
|
-
name: import("@sinclair/typebox").TString;
|
|
129
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.CARDANO>;
|
|
130
|
-
network: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"preview">, import("@sinclair/typebox").TLiteral<"preprod">, import("@sinclair/typebox").TLiteral<"mainnet">, import("@sinclair/typebox").TLiteral<"yaci">]>;
|
|
131
|
-
}>, import("@sinclair/typebox").TObject<{}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
132
|
-
name: import("@sinclair/typebox").TString;
|
|
133
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.MINA>;
|
|
134
|
-
networkId: import("@sinclair/typebox").TString;
|
|
135
|
-
}>, import("@sinclair/typebox").TObject<{}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
136
|
-
name: import("@sinclair/typebox").TString;
|
|
137
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.AVAIL>;
|
|
138
|
-
genesisSeed: import("@sinclair/typebox").TString;
|
|
139
|
-
caip2: import("@sinclair/typebox").TUnsafe<import("../../../../utils/src/mod.js").Caip2>;
|
|
140
|
-
nodeUrl: import("@sinclair/typebox").TString;
|
|
141
|
-
genesisHash: import("@sinclair/typebox").TString;
|
|
142
|
-
}>, import("@sinclair/typebox").TObject<{}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
143
|
-
name: import("@sinclair/typebox").TString;
|
|
144
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.SUBSTRATE>;
|
|
145
|
-
genesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
146
|
-
}>, import("@sinclair/typebox").TObject<{}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
147
|
-
name: import("@sinclair/typebox").TString;
|
|
148
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.MIDNIGHT>;
|
|
149
|
-
networkId: import("@sinclair/typebox").TNumber;
|
|
150
|
-
genesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
151
|
-
}>, import("@sinclair/typebox").TObject<{}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
152
|
-
name: import("@sinclair/typebox").TString;
|
|
153
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.BITCOIN>;
|
|
154
|
-
rpcUrl: import("@sinclair/typebox").TString;
|
|
155
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
156
|
-
rpcAuth: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
157
|
-
username: import("@sinclair/typebox").TString;
|
|
158
|
-
password: import("@sinclair/typebox").TString;
|
|
159
|
-
}>, import("@sinclair/typebox").TNull]>;
|
|
160
|
-
ordUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
161
|
-
network: import("@sinclair/typebox").TString;
|
|
162
|
-
chainIdentifier: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
163
|
-
}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
164
|
-
name: import("@sinclair/typebox").TString;
|
|
165
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.ALGORAND>;
|
|
166
|
-
genesisHash: import("@sinclair/typebox").TRegExp;
|
|
167
|
-
}>, import("@sinclair/typebox").TObject<{}>, Bool> | import("../utils.js").AllProperties<import("@sinclair/typebox").TObject<{
|
|
168
|
-
name: import("@sinclair/typebox").TString;
|
|
169
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.NTP>;
|
|
170
|
-
startTime: import("@sinclair/typebox").TNumber;
|
|
171
|
-
blockTimeMS: import("@sinclair/typebox").TNumber;
|
|
172
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
173
|
-
servers: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
174
|
-
}>, Bool>)[]>;
|
|
175
|
-
//# sourceMappingURL=all.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/all.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM7C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,IAAI,SAAS,CAC1E,CAAC,EACD,IAAI,CAAC,OAAO,YAAY,EAAE,CAAC,CAAC,CAC7B,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAC1C,iBAAiB,EACjB,OAAO,YAAY,CACpB,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,IAAI,SAAS,OAAO,EAAE,iBAAiB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKzE,CAAC"}
|