@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,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkAll = exports.networkTypes = void 0;
|
|
4
|
-
const evm_js_1 = require("./evm.js");
|
|
5
|
-
const cardano_js_1 = require("./cardano.js");
|
|
6
|
-
const mina_js_1 = require("./mina.js");
|
|
7
|
-
const avail_js_1 = require("./substrate/avail.js");
|
|
8
|
-
const midnight_js_1 = require("./substrate/midnight.js");
|
|
9
|
-
const types_js_1 = require("./types.js");
|
|
10
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
11
|
-
const common_js_1 = require("./substrate/common.js");
|
|
12
|
-
const algorand_js_1 = require("./algorand.js");
|
|
13
|
-
const ntp_js_1 = require("./ntp.js");
|
|
14
|
-
const bitcoin_js_1 = require("./bitcoin.js");
|
|
15
|
-
exports.networkTypes = {
|
|
16
|
-
[types_js_1.ConfigNetworkType.NTP]: ntp_js_1.ConfigNetworkSchemaNtp,
|
|
17
|
-
[types_js_1.ConfigNetworkType.EVM]: evm_js_1.ConfigNetworkSchemaEvm,
|
|
18
|
-
[types_js_1.ConfigNetworkType.CARDANO]: cardano_js_1.ConfigNetworkSchemaCardano,
|
|
19
|
-
[types_js_1.ConfigNetworkType.MINA]: mina_js_1.ConfigNetworkSchemaMina,
|
|
20
|
-
[types_js_1.ConfigNetworkType.AVAIL]: avail_js_1.ConfigNetworkSchemaAvail,
|
|
21
|
-
[types_js_1.ConfigNetworkType.ALGORAND]: algorand_js_1.ConfigNetworkSchemaAlgorand,
|
|
22
|
-
[types_js_1.ConfigNetworkType.MIDNIGHT]: midnight_js_1.ConfigNetworkSchemaMidnight,
|
|
23
|
-
[types_js_1.ConfigNetworkType.SUBSTRATE]: common_js_1.ConfigNetworkSchemaSubstrate,
|
|
24
|
-
[types_js_1.ConfigNetworkType.BITCOIN]: bitcoin_js_1.ConfigNetworkSchemaBitcoin,
|
|
25
|
-
};
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
27
|
-
const ConfigNetworkAll = (requireOptional) => typebox_1.Type.Union(Object.values(exports.networkTypes).map((schema) => schema.allProperties(requireOptional)));
|
|
28
|
-
exports.ConfigNetworkAll = ConfigNetworkAll;
|
|
@@ -1,19 +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 ConfigNetworkSchemaBitcoin: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
6
|
-
name: import("@sinclair/typebox").TString;
|
|
7
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.BITCOIN>;
|
|
8
|
-
rpcUrl: import("@sinclair/typebox").TString;
|
|
9
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
10
|
-
rpcAuth: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
11
|
-
username: import("@sinclair/typebox").TString;
|
|
12
|
-
password: import("@sinclair/typebox").TString;
|
|
13
|
-
}>, import("@sinclair/typebox").TNull]>;
|
|
14
|
-
ordUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
15
|
-
network: import("@sinclair/typebox").TString;
|
|
16
|
-
chainIdentifier: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
17
|
-
}>>;
|
|
18
|
-
export type ConfigNetworkBitcoin = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaBitcoin.allProperties<true>>>>;
|
|
19
|
-
//# sourceMappingURL=bitcoin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoin.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/bitcoin.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,EACL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AAOtC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;GAYrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAChD,MAAM,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1E,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaBitcoin = 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
|
-
const mod_js_1 = require("../../../../utils/src/mod.js");
|
|
8
|
-
const RpcAuth = typebox_1.Type.Object({
|
|
9
|
-
username: typebox_1.Type.String(),
|
|
10
|
-
password: typebox_1.Type.String(),
|
|
11
|
-
});
|
|
12
|
-
exports.ConfigNetworkSchemaBitcoin = new utils_js_1.ConfigSchema({
|
|
13
|
-
required: typebox_1.Type.Object({
|
|
14
|
-
name: typebox_1.Type.String(),
|
|
15
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.BITCOIN),
|
|
16
|
-
rpcUrl: typebox_1.Type.String(),
|
|
17
|
-
}),
|
|
18
|
-
optional: typebox_1.Type.Object({
|
|
19
|
-
rpcAuth: mod_js_1.TypeboxHelpers.Nullable(RpcAuth, { default: null }),
|
|
20
|
-
ordUrl: mod_js_1.TypeboxHelpers.Nullable(typebox_1.Type.String(), { default: null }),
|
|
21
|
-
network: typebox_1.Type.String({ default: "regtest" }),
|
|
22
|
-
chainIdentifier: mod_js_1.TypeboxHelpers.Nullable(typebox_1.Type.String(), { default: null }),
|
|
23
|
-
}),
|
|
24
|
-
});
|
|
@@ -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 CardanoNetwork: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"preview">, import("@sinclair/typebox").TLiteral<"preprod">, import("@sinclair/typebox").TLiteral<"mainnet">, import("@sinclair/typebox").TLiteral<"yaci">]>;
|
|
6
|
-
export declare const ConfigNetworkSchemaCardano: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
7
|
-
name: import("@sinclair/typebox").TString;
|
|
8
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.CARDANO>;
|
|
9
|
-
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">]>;
|
|
10
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
11
|
-
export type ConfigNetworkCardano = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaCardano.allProperties<true>>>>;
|
|
12
|
-
//# sourceMappingURL=cardano.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cardano.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/cardano.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;AAMpE,eAAO,MAAM,cAAc,uOAKzB,CAAC;AAMH,eAAO,MAAM,0BAA0B;;;;4CAOrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAChD,MAAM,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1E,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaCardano = exports.CardanoNetwork = 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
|
-
exports.CardanoNetwork = typebox_1.Type.Union([
|
|
11
|
-
typebox_1.Type.Literal("preview"),
|
|
12
|
-
typebox_1.Type.Literal("preprod"),
|
|
13
|
-
typebox_1.Type.Literal("mainnet"),
|
|
14
|
-
typebox_1.Type.Literal("yaci"),
|
|
15
|
-
]);
|
|
16
|
-
// ===========
|
|
17
|
-
// Base schema
|
|
18
|
-
// ===========
|
|
19
|
-
exports.ConfigNetworkSchemaCardano = new utils_js_1.ConfigSchema({
|
|
20
|
-
required: typebox_1.Type.Object({
|
|
21
|
-
name: typebox_1.Type.String(),
|
|
22
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.CARDANO),
|
|
23
|
-
network: exports.CardanoNetwork,
|
|
24
|
-
}),
|
|
25
|
-
optional: typebox_1.Type.Object({}),
|
|
26
|
-
});
|
|
27
|
-
// ===========
|
|
28
|
-
// Conversions
|
|
29
|
-
// ===========
|
|
30
|
-
// none
|
|
@@ -1,68 +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
|
-
import type { Chain, ChainFormatters } from "viem";
|
|
6
|
-
export declare const BlockExplorer: import("@sinclair/typebox").TObject<{
|
|
7
|
-
name: import("@sinclair/typebox").TString;
|
|
8
|
-
url: import("@sinclair/typebox").TString;
|
|
9
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const RpcUrls: import("@sinclair/typebox").TUnsafe<{
|
|
12
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
13
|
-
readonly http: readonly string[];
|
|
14
|
-
}>;
|
|
15
|
-
export declare const ChainNativeCurrency: import("@sinclair/typebox").TObject<{
|
|
16
|
-
name: import("@sinclair/typebox").TString;
|
|
17
|
-
symbol: import("@sinclair/typebox").TString;
|
|
18
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* Note: this tries as much as possible to follow Viem's network definition format
|
|
22
|
-
* we can't map it exactly because viem allows for some non-JSON serializable fields
|
|
23
|
-
*/
|
|
24
|
-
export declare const ConfigNetworkSchemaEvm: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
25
|
-
name: import("@sinclair/typebox").TString;
|
|
26
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.EVM>;
|
|
27
|
-
chainId: import("@sinclair/typebox").TNumber;
|
|
28
|
-
nativeCurrency: import("@sinclair/typebox").TObject<{
|
|
29
|
-
name: import("@sinclair/typebox").TString;
|
|
30
|
-
symbol: import("@sinclair/typebox").TString;
|
|
31
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
32
|
-
}>;
|
|
33
|
-
rpcUrls: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnsafe<{
|
|
34
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
35
|
-
readonly http: readonly string[];
|
|
36
|
-
}>>, import("@sinclair/typebox").TObject<{
|
|
37
|
-
default: import("@sinclair/typebox").TUnsafe<{
|
|
38
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
39
|
-
readonly http: readonly string[];
|
|
40
|
-
}>;
|
|
41
|
-
}>]>;
|
|
42
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
43
|
-
blockExplorers: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
44
|
-
name: import("@sinclair/typebox").TString;
|
|
45
|
-
url: import("@sinclair/typebox").TString;
|
|
46
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
|
-
}>>, import("@sinclair/typebox").TObject<{
|
|
48
|
-
default: import("@sinclair/typebox").TObject<{
|
|
49
|
-
name: import("@sinclair/typebox").TString;
|
|
50
|
-
url: import("@sinclair/typebox").TString;
|
|
51
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
52
|
-
}>;
|
|
53
|
-
}>]>, import("@sinclair/typebox").TNull]>;
|
|
54
|
-
/** Source Chain ID (ie. the L1 chain) */
|
|
55
|
-
sourceId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>;
|
|
56
|
-
testnet: import("@sinclair/typebox").TBoolean;
|
|
57
|
-
}>>;
|
|
58
|
-
export type ConfigNetworkEvm = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaEvm.allProperties<true>>>>;
|
|
59
|
-
export type MapNetworkTypes<chain extends Chain<ChainFormatters>> = Omit<chain, "id"> & {
|
|
60
|
-
chainId: chain["id"];
|
|
61
|
-
type: ConfigNetworkType.EVM;
|
|
62
|
-
blockExplorers: NonNullable<chain["blockExplorers"]> | null;
|
|
63
|
-
sourceId: NonNullable<chain["sourceId"]> | null;
|
|
64
|
-
testnet: NonNullable<chain["testnet"]> | false;
|
|
65
|
-
};
|
|
66
|
-
export declare function viemToConfigNetwork(chain: Chain<ChainFormatters>): ConfigNetworkEvm;
|
|
67
|
-
export declare function ConfigNetworkToViem(chain: ConfigNetworkEvm): Chain<ChainFormatters>;
|
|
68
|
-
//# sourceMappingURL=evm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/evm.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,EAEL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAMnD,eAAO,MAAM,aAAa;;;;EAIxB,CAAC;AAMH,eAAO,MAAM,OAAO;;;EAEnB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;EAI9B,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmB/B,yCAAyC;;;GAI3C,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAC5C,MAAM,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CACtE,CAAC;AAMF,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,KAAK,CAAC,eAAe,CAAC,IAC5D,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GACjB;IACA,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,EAAE,iBAAiB,CAAC,GAAG,CAAC;IAC5B,cAAc,EAAE,WAAW,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,GAAG,IAAI,CAAC;IAC5D,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC;IAChD,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC;CAChD,CAAC;AAEJ,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,GAC5B,gBAAgB,CAUlB;AACD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,gBAAgB,GACtB,KAAK,CAAC,eAAe,CAAC,CAQxB"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaEvm = exports.ChainNativeCurrency = exports.RpcUrls = exports.BlockExplorer = void 0;
|
|
4
|
-
exports.viemToConfigNetwork = viemToConfigNetwork;
|
|
5
|
-
exports.ConfigNetworkToViem = ConfigNetworkToViem;
|
|
6
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
7
|
-
const utils_js_1 = require("../utils.js");
|
|
8
|
-
const types_js_1 = require("./types.js");
|
|
9
|
-
const mod_js_1 = require("../../../../utils/src/mod.js");
|
|
10
|
-
// =====
|
|
11
|
-
// Utils
|
|
12
|
-
// =====
|
|
13
|
-
exports.BlockExplorer = typebox_1.Type.Object({
|
|
14
|
-
name: typebox_1.Type.String(),
|
|
15
|
-
url: typebox_1.Type.String(),
|
|
16
|
-
apiUrl: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
17
|
-
});
|
|
18
|
-
const RpcUrlInternal = typebox_1.Type.Object({
|
|
19
|
-
http: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
20
|
-
webSocket: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
21
|
-
});
|
|
22
|
-
exports.RpcUrls = typebox_1.Type.Unsafe(RpcUrlInternal);
|
|
23
|
-
exports.ChainNativeCurrency = typebox_1.Type.Object({
|
|
24
|
-
name: typebox_1.Type.String(),
|
|
25
|
-
symbol: typebox_1.Type.String({ minLength: 2, maxLength: 6 }),
|
|
26
|
-
decimals: typebox_1.Type.Number(),
|
|
27
|
-
});
|
|
28
|
-
// ===========
|
|
29
|
-
// Base schema
|
|
30
|
-
// ===========
|
|
31
|
-
/**
|
|
32
|
-
* Note: this tries as much as possible to follow Viem's network definition format
|
|
33
|
-
* we can't map it exactly because viem allows for some non-JSON serializable fields
|
|
34
|
-
*/
|
|
35
|
-
exports.ConfigNetworkSchemaEvm = new utils_js_1.ConfigSchema({
|
|
36
|
-
required: typebox_1.Type.Object({
|
|
37
|
-
name: typebox_1.Type.String(),
|
|
38
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.EVM),
|
|
39
|
-
chainId: typebox_1.Type.Number(),
|
|
40
|
-
nativeCurrency: exports.ChainNativeCurrency,
|
|
41
|
-
rpcUrls: typebox_1.Type.Intersect([
|
|
42
|
-
typebox_1.Type.Record(typebox_1.Type.String(), exports.RpcUrls),
|
|
43
|
-
typebox_1.Type.Object({ default: exports.RpcUrls }),
|
|
44
|
-
]),
|
|
45
|
-
}),
|
|
46
|
-
optional: typebox_1.Type.Object({
|
|
47
|
-
blockExplorers: mod_js_1.TypeboxHelpers.Nullable(typebox_1.Type.Intersect([
|
|
48
|
-
typebox_1.Type.Record(typebox_1.Type.String(), exports.BlockExplorer),
|
|
49
|
-
typebox_1.Type.Object({ default: exports.BlockExplorer }),
|
|
50
|
-
]), { default: null }),
|
|
51
|
-
/** Source Chain ID (ie. the L1 chain) */
|
|
52
|
-
sourceId: mod_js_1.TypeboxHelpers.Nullable(typebox_1.Type.Number(), { default: null }),
|
|
53
|
-
testnet: typebox_1.Type.Boolean({ default: false }),
|
|
54
|
-
}),
|
|
55
|
-
});
|
|
56
|
-
function viemToConfigNetwork(chain) {
|
|
57
|
-
const network = {
|
|
58
|
-
...chain,
|
|
59
|
-
type: types_js_1.ConfigNetworkType.EVM,
|
|
60
|
-
chainId: chain.id,
|
|
61
|
-
blockExplorers: chain.blockExplorers ?? null,
|
|
62
|
-
sourceId: chain.sourceId ?? null,
|
|
63
|
-
testnet: chain.testnet ?? false,
|
|
64
|
-
};
|
|
65
|
-
return network;
|
|
66
|
-
}
|
|
67
|
-
function ConfigNetworkToViem(chain) {
|
|
68
|
-
const network = {
|
|
69
|
-
...chain,
|
|
70
|
-
id: chain.chainId,
|
|
71
|
-
blockExplorers: chain.blockExplorers ?? undefined,
|
|
72
|
-
sourceId: chain.sourceId ?? undefined,
|
|
73
|
-
};
|
|
74
|
-
return network;
|
|
75
|
-
}
|
|
@@ -1,14 +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 ConfigNetworkSchemaMina: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
6
|
-
name: import("@sinclair/typebox").TString;
|
|
7
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.MINA>;
|
|
8
|
-
/**
|
|
9
|
-
* String name of the network (https://github.com/ChainAgnostic/namespaces/blob/main/mina/caip2.md)
|
|
10
|
-
*/
|
|
11
|
-
networkId: import("@sinclair/typebox").TString;
|
|
12
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
13
|
-
export type ConfigNetworkMina = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaMina.allProperties<true>>>>;
|
|
14
|
-
//# sourceMappingURL=mina.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mina.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/mina.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;AAYpE,eAAO,MAAM,uBAAuB;;;IAIhC;;OAEG;;4CAIL,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAC7C,MAAM,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CACvE,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaMina = 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
|
-
// none
|
|
11
|
-
// ===========
|
|
12
|
-
// Base schema
|
|
13
|
-
// ===========
|
|
14
|
-
exports.ConfigNetworkSchemaMina = new utils_js_1.ConfigSchema({
|
|
15
|
-
required: typebox_1.Type.Object({
|
|
16
|
-
name: typebox_1.Type.String(),
|
|
17
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.MINA),
|
|
18
|
-
/**
|
|
19
|
-
* String name of the network (https://github.com/ChainAgnostic/namespaces/blob/main/mina/caip2.md)
|
|
20
|
-
*/
|
|
21
|
-
networkId: typebox_1.Type.String(),
|
|
22
|
-
}),
|
|
23
|
-
optional: typebox_1.Type.Object({}),
|
|
24
|
-
});
|
|
25
|
-
// ===========
|
|
26
|
-
// Conversions
|
|
27
|
-
// ===========
|
|
28
|
-
// none
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./evm.js";
|
|
2
|
-
export * from "./cardano.js";
|
|
3
|
-
export * from "./mina.js";
|
|
4
|
-
export * from "./substrate/mod.js";
|
|
5
|
-
export * from "./bitcoin.js";
|
|
6
|
-
export * from "./types.js";
|
|
7
|
-
export * from "./utils.js";
|
|
8
|
-
export * from "./all.js";
|
|
9
|
-
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/mod.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
@@ -1,24 +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("./evm.js"), exports);
|
|
18
|
-
__exportStar(require("./cardano.js"), exports);
|
|
19
|
-
__exportStar(require("./mina.js"), exports);
|
|
20
|
-
__exportStar(require("./substrate/mod.js"), exports);
|
|
21
|
-
__exportStar(require("./bitcoin.js"), exports);
|
|
22
|
-
__exportStar(require("./types.js"), exports);
|
|
23
|
-
__exportStar(require("./utils.js"), exports);
|
|
24
|
-
__exportStar(require("./all.js"), exports);
|
|
@@ -1,32 +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 BlockExplorer: import("@sinclair/typebox").TObject<{
|
|
6
|
-
name: import("@sinclair/typebox").TString;
|
|
7
|
-
url: import("@sinclair/typebox").TString;
|
|
8
|
-
apiUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const RpcUrls: import("@sinclair/typebox").TUnsafe<{
|
|
11
|
-
readonly webSocket?: readonly string[] | undefined;
|
|
12
|
-
readonly http: readonly string[];
|
|
13
|
-
}>;
|
|
14
|
-
export declare const ChainNativeCurrency: import("@sinclair/typebox").TObject<{
|
|
15
|
-
name: import("@sinclair/typebox").TString;
|
|
16
|
-
symbol: import("@sinclair/typebox").TString;
|
|
17
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* Note: this tries as much as possible to follow Viem's network definition format
|
|
21
|
-
* we can't map it exactly because viem allows for some non-JSON serializable fields
|
|
22
|
-
*/
|
|
23
|
-
export declare const ConfigNetworkSchemaNtp: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
24
|
-
name: import("@sinclair/typebox").TString;
|
|
25
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.NTP>;
|
|
26
|
-
startTime: import("@sinclair/typebox").TNumber;
|
|
27
|
-
blockTimeMS: import("@sinclair/typebox").TNumber;
|
|
28
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
29
|
-
servers: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
30
|
-
}>>;
|
|
31
|
-
export type ConfigNetworkNtp = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaNtp.allProperties<true>>>>;
|
|
32
|
-
//# sourceMappingURL=ntp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ntp.d.ts","sourceRoot":"","sources":["../../../../../src/config/src/schema/network/ntp.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,EAEL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AAMtC,eAAO,MAAM,aAAa;;;;EAIxB,CAAC;AAMH,eAAO,MAAM,OAAO;;;EAEnB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;EAI9B,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;GAUjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAC5C,MAAM,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CACtE,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaNtp = exports.ChainNativeCurrency = exports.RpcUrls = exports.BlockExplorer = 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
|
-
exports.BlockExplorer = typebox_1.Type.Object({
|
|
11
|
-
name: typebox_1.Type.String(),
|
|
12
|
-
url: typebox_1.Type.String(),
|
|
13
|
-
apiUrl: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
14
|
-
});
|
|
15
|
-
const RpcUrlInternal = typebox_1.Type.Object({
|
|
16
|
-
http: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
17
|
-
webSocket: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
18
|
-
});
|
|
19
|
-
exports.RpcUrls = typebox_1.Type.Unsafe(RpcUrlInternal);
|
|
20
|
-
exports.ChainNativeCurrency = typebox_1.Type.Object({
|
|
21
|
-
name: typebox_1.Type.String(),
|
|
22
|
-
symbol: typebox_1.Type.String({ minLength: 2, maxLength: 6 }),
|
|
23
|
-
decimals: typebox_1.Type.Number(),
|
|
24
|
-
});
|
|
25
|
-
// ===========
|
|
26
|
-
// Base schema
|
|
27
|
-
// ===========
|
|
28
|
-
/**
|
|
29
|
-
* Note: this tries as much as possible to follow Viem's network definition format
|
|
30
|
-
* we can't map it exactly because viem allows for some non-JSON serializable fields
|
|
31
|
-
*/
|
|
32
|
-
exports.ConfigNetworkSchemaNtp = new utils_js_1.ConfigSchema({
|
|
33
|
-
required: typebox_1.Type.Object({
|
|
34
|
-
name: typebox_1.Type.String(),
|
|
35
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.NTP),
|
|
36
|
-
startTime: typebox_1.Type.Number(),
|
|
37
|
-
blockTimeMS: typebox_1.Type.Number(),
|
|
38
|
-
}),
|
|
39
|
-
optional: typebox_1.Type.Object({
|
|
40
|
-
servers: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
41
|
-
}),
|
|
42
|
-
});
|
|
@@ -1,14 +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 ConfigNetworkSchemaAvail: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
6
|
-
name: import("@sinclair/typebox").TString;
|
|
7
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.AVAIL>;
|
|
8
|
-
genesisSeed: import("@sinclair/typebox").TString;
|
|
9
|
-
caip2: import("@sinclair/typebox").TUnsafe<import("../../../../../utils/src/mod.js").Caip2>;
|
|
10
|
-
nodeUrl: import("@sinclair/typebox").TString;
|
|
11
|
-
genesisHash: import("@sinclair/typebox").TString;
|
|
12
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
13
|
-
export type ConfigNetworkAvail = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaAvail.allProperties<true>>>>;
|
|
14
|
-
//# sourceMappingURL=avail.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avail.d.ts","sourceRoot":"","sources":["../../../../../../src/config/src/schema/network/substrate/avail.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavE,eAAO,MAAM,wBAAwB;;;;;;;4CAUnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAC9C,MAAM,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CACxE,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaAvail = 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
|
-
const mod_js_1 = require("../../../../../utils/src/mod.js");
|
|
8
|
-
// =====
|
|
9
|
-
// Utils
|
|
10
|
-
// =====
|
|
11
|
-
// none
|
|
12
|
-
// ===========
|
|
13
|
-
// Base schema
|
|
14
|
-
// ===========
|
|
15
|
-
exports.ConfigNetworkSchemaAvail = 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.AVAIL),
|
|
19
|
-
genesisSeed: typebox_1.Type.String(),
|
|
20
|
-
caip2: mod_js_1.TypeboxHelpers.Caip2,
|
|
21
|
-
nodeUrl: typebox_1.Type.String(),
|
|
22
|
-
genesisHash: typebox_1.Type.String(),
|
|
23
|
-
}),
|
|
24
|
-
optional: typebox_1.Type.Object({}),
|
|
25
|
-
});
|
|
26
|
-
// ===========
|
|
27
|
-
// Conversions
|
|
28
|
-
// ===========
|
|
29
|
-
// none
|
|
@@ -1,18 +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
|
-
/**
|
|
6
|
-
* This will be the network identifier of the Substrate chain.
|
|
7
|
-
* In Substrate it is always the genesis hash of the network (hash of the first block)
|
|
8
|
-
* You can retrieve this easily by going to PolkadotJS and looking for the hash on block 0
|
|
9
|
-
* e.g. for Kusama it is 0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe.
|
|
10
|
-
*/
|
|
11
|
-
export declare const SubstrateGenesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
12
|
-
export declare const ConfigNetworkSchemaSubstrate: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
13
|
-
name: import("@sinclair/typebox").TString;
|
|
14
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.SUBSTRATE>;
|
|
15
|
-
genesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
16
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
17
|
-
export type ConfigNetworkSubstrate = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaSubstrate.allProperties<true>>>>;
|
|
18
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../src/config/src/schema/network/substrate/common.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,iCAAiC,CAAC;AAMvF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,oDAG/B,CAAC;AAMH,eAAO,MAAM,4BAA4B;;;;4CAOvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAClD,MAAM,CAAC,UAAU,CAAC,OAAO,4BAA4B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAC5E,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaSubstrate = exports.SubstrateGenesisHash = 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
|
-
const mod_js_1 = require("../../../../../utils/src/mod.js");
|
|
8
|
-
// =====
|
|
9
|
-
// Utils
|
|
10
|
-
// =====
|
|
11
|
-
/**
|
|
12
|
-
* This will be the network identifier of the Substrate chain.
|
|
13
|
-
* In Substrate it is always the genesis hash of the network (hash of the first block)
|
|
14
|
-
* You can retrieve this easily by going to PolkadotJS and looking for the hash on block 0
|
|
15
|
-
* e.g. for Kusama it is 0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe.
|
|
16
|
-
*/
|
|
17
|
-
exports.SubstrateGenesisHash = mod_js_1.TypeboxHelpers.HexString0x({
|
|
18
|
-
maxLength: 66, // 64 + '0x'.length
|
|
19
|
-
minLength: 66,
|
|
20
|
-
});
|
|
21
|
-
// ===========
|
|
22
|
-
// Base schema
|
|
23
|
-
// ===========
|
|
24
|
-
exports.ConfigNetworkSchemaSubstrate = new utils_js_1.ConfigSchema({
|
|
25
|
-
required: typebox_1.Type.Object({
|
|
26
|
-
name: typebox_1.Type.String(),
|
|
27
|
-
type: typebox_1.Type.Literal(types_js_1.ConfigNetworkType.SUBSTRATE),
|
|
28
|
-
genesisHash: exports.SubstrateGenesisHash,
|
|
29
|
-
}),
|
|
30
|
-
optional: typebox_1.Type.Object({}),
|
|
31
|
-
});
|
|
32
|
-
// ===========
|
|
33
|
-
// Conversions
|
|
34
|
-
// ===========
|
|
35
|
-
// none
|
|
@@ -1,20 +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 ConfigNetworkSchemaMidnight: ConfigSchema<import("@sinclair/typebox").TObject<{
|
|
6
|
-
name: import("@sinclair/typebox").TString;
|
|
7
|
-
type: import("@sinclair/typebox").TLiteral<ConfigNetworkType.MIDNIGHT>;
|
|
8
|
-
/**
|
|
9
|
-
* TODO: possibly this should switch to either
|
|
10
|
-
* - a string following @midnight-ntwrk/midnight-js-network-id
|
|
11
|
-
* - a genesis hash (following Substrate standard)
|
|
12
|
-
*
|
|
13
|
-
* 0 for localhost
|
|
14
|
-
* 1 for devnet
|
|
15
|
-
*/
|
|
16
|
-
networkId: import("@sinclair/typebox").TNumber;
|
|
17
|
-
genesisHash: import("@sinclair/typebox").TUnsafe<`0x${string}`>;
|
|
18
|
-
}>, import("@sinclair/typebox").TObject<{}>>;
|
|
19
|
-
export type ConfigNetworkMidnight = MergeIntersects<Static<ReturnType<typeof ConfigNetworkSchemaMidnight.allProperties<true>>>>;
|
|
20
|
-
//# sourceMappingURL=midnight.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"midnight.d.ts","sourceRoot":"","sources":["../../../../../../src/config/src/schema/network/substrate/midnight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavE,eAAO,MAAM,2BAA2B;;;IAIpC;;;;;;;OAOG;;;4CAKL,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,CACjD,MAAM,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAC3E,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigNetworkSchemaMidnight = 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
|
-
const common_js_1 = require("./common.js");
|
|
8
|
-
// =====
|
|
9
|
-
// Utils
|
|
10
|
-
// =====
|
|
11
|
-
// none
|
|
12
|
-
// ===========
|
|
13
|
-
// Base schema
|
|
14
|
-
// ===========
|
|
15
|
-
exports.ConfigNetworkSchemaMidnight = 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.MIDNIGHT),
|
|
19
|
-
/**
|
|
20
|
-
* TODO: possibly this should switch to either
|
|
21
|
-
* - a string following @midnight-ntwrk/midnight-js-network-id
|
|
22
|
-
* - a genesis hash (following Substrate standard)
|
|
23
|
-
*
|
|
24
|
-
* 0 for localhost
|
|
25
|
-
* 1 for devnet
|
|
26
|
-
*/
|
|
27
|
-
networkId: typebox_1.Type.Number(),
|
|
28
|
-
genesisHash: common_js_1.SubstrateGenesisHash,
|
|
29
|
-
}),
|
|
30
|
-
optional: typebox_1.Type.Object({}),
|
|
31
|
-
});
|
|
32
|
-
// ===========
|
|
33
|
-
// Conversions
|
|
34
|
-
// ===========
|
|
35
|
-
// none
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/config/src/schema/network/substrate/mod.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|