@xyo-network/xl1-protocol-sdk 1.16.1 → 1.16.3
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/dist/neutral/ChainServiceCollectionV2.d.ts +2 -1
- package/dist/neutral/ChainServiceCollectionV2.d.ts.map +1 -1
- package/dist/neutral/config/Config.d.ts +6 -18
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/config/Producer.d.ts +2 -6
- package/dist/neutral/config/Producer.d.ts.map +1 -1
- package/dist/neutral/config/Validation.d.ts +4 -12
- package/dist/neutral/config/Validation.d.ts.map +1 -1
- package/dist/neutral/driver/cache/LruCacheMap.d.ts +1 -0
- package/dist/neutral/driver/cache/LruCacheMap.d.ts.map +1 -1
- package/dist/neutral/driver/memory/MemoryMap.d.ts +1 -0
- package/dist/neutral/driver/memory/MemoryMap.d.ts.map +1 -1
- package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts +1 -9
- package/dist/neutral/eip-712/Payloads/EIP712Signature.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +1 -0
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +462 -21
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/interfaces/viewers/AccountBalance.d.ts +2 -2
- package/dist/neutral/interfaces/viewers/Block.d.ts +1 -1
- package/dist/neutral/interfaces/viewers/Block.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/Chain.d.ts +1 -1
- package/dist/neutral/interfaces/viewers/ChainContract.d.ts +3 -1
- package/dist/neutral/interfaces/viewers/ChainContract.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/Fork.d.ts +1 -1
- package/dist/neutral/interfaces/viewers/Fork.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts +4 -4
- package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts +3 -1
- package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/StakeViewer.d.ts +2 -2
- package/dist/neutral/interfaces/viewers/StakeViewer.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/StepStake.d.ts +3 -1
- package/dist/neutral/interfaces/viewers/StepStake.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/TimeSync.d.ts +3 -3
- package/dist/neutral/interfaces/viewers/TimeSync.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/Transaction.d.ts +1 -1
- package/dist/neutral/interfaces/viewers/TransferBalance.d.ts +2 -2
- package/dist/neutral/interfaces/viewers/index.d.ts +0 -1
- package/dist/neutral/interfaces/viewers/index.d.ts.map +1 -1
- package/dist/neutral/map/AsynchronousMap.d.ts +1 -0
- package/dist/neutral/map/AsynchronousMap.d.ts.map +1 -1
- package/dist/neutral/map/SynchronousMap.d.ts +1 -0
- package/dist/neutral/map/SynchronousMap.d.ts.map +1 -1
- package/dist/neutral/model/ChainStake/ChainStakeRead.d.ts +1 -1
- package/dist/neutral/model/ChainStake/ChainStakeRead.d.ts.map +1 -1
- package/dist/neutral/{interfaces/viewers/Stake.d.ts → model/Position.d.ts} +1 -1
- package/dist/neutral/model/Position.d.ts.map +1 -0
- package/dist/neutral/model/index.d.ts +1 -0
- package/dist/neutral/model/index.d.ts.map +1 -1
- package/dist/neutral/payloads/netBalancesForPayloads.d.ts +2 -3
- package/dist/neutral/payloads/netBalancesForPayloads.d.ts.map +1 -1
- package/dist/neutral/provider/DataLake.d.ts +6 -2
- package/dist/neutral/provider/DataLake.d.ts.map +1 -1
- package/dist/neutral/provider/XyoClient.d.ts +3 -3
- package/dist/neutral/provider/XyoClient.d.ts.map +1 -1
- package/dist/neutral/provider/XyoConnection.d.ts +1 -23
- package/dist/neutral/provider/XyoConnection.d.ts.map +1 -1
- package/dist/neutral/provider/XyoGateway.d.ts +4 -10
- package/dist/neutral/provider/XyoGateway.d.ts.map +1 -1
- package/dist/neutral/provider/XyoGatewayRunner.d.ts +25 -0
- package/dist/neutral/provider/XyoGatewayRunner.d.ts.map +1 -0
- package/dist/neutral/provider/index.d.ts +2 -2
- package/dist/neutral/provider/index.d.ts.map +1 -1
- package/dist/neutral/provider/{XyoSigner.d.ts → signer/XyoSigner.d.ts} +2 -2
- package/dist/neutral/provider/signer/XyoSigner.d.ts.map +1 -0
- package/dist/neutral/provider/signer/index.d.ts +2 -0
- package/dist/neutral/provider/signer/index.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/StepViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/StepViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/XyoViewer.d.ts +2 -2
- package/dist/neutral/provider/viewer/XyoViewer.d.ts.map +1 -1
- package/dist/neutral/services/Chain/ChainService.d.ts +2 -1
- package/dist/neutral/services/Chain/ChainService.d.ts.map +1 -1
- package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts +1 -2
- package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts.map +1 -1
- package/dist/neutral/services/Chain/interfaces/index.d.ts +0 -1
- package/dist/neutral/services/Chain/interfaces/index.d.ts.map +1 -1
- package/dist/neutral/services/NetworkStakeService.d.ts +2 -2
- package/dist/neutral/services/NetworkStakeService.d.ts.map +1 -1
- package/dist/neutral/services/StepStakeService.d.ts +2 -2
- package/dist/neutral/services/StepStakeService.d.ts.map +1 -1
- package/dist/neutral/services/TimeSyncService.d.ts +2 -4
- package/dist/neutral/services/TimeSyncService.d.ts.map +1 -1
- package/dist/neutral/simple/client/SimpleXyoClient.d.ts +7 -0
- package/dist/neutral/simple/client/SimpleXyoClient.d.ts.map +1 -0
- package/dist/neutral/simple/client/index.d.ts +2 -0
- package/dist/neutral/simple/client/index.d.ts.map +1 -0
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts +15 -0
- package/dist/neutral/simple/datalake/SimpleDataLakeRunner.d.ts.map +1 -0
- package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts +23 -0
- package/dist/neutral/simple/datalake/SimpleDataLakeViewer.d.ts.map +1 -0
- package/dist/neutral/simple/datalake/index.d.ts +3 -0
- package/dist/neutral/simple/datalake/index.d.ts.map +1 -0
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts +9 -0
- package/dist/neutral/simple/gateway/SimpleXyoGateway.d.ts.map +1 -0
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +20 -0
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -0
- package/dist/neutral/simple/gateway/index.d.ts +3 -0
- package/dist/neutral/simple/gateway/index.d.ts.map +1 -0
- package/dist/neutral/simple/index.d.ts +8 -0
- package/dist/neutral/simple/index.d.ts.map +1 -0
- package/dist/neutral/simple/network/SimpleXyoNetwork.d.ts +9 -0
- package/dist/neutral/simple/network/SimpleXyoNetwork.d.ts.map +1 -0
- package/dist/neutral/simple/network/index.d.ts +2 -0
- package/dist/neutral/simple/network/index.d.ts.map +1 -0
- package/dist/neutral/simple/network/lib/FailedNetworkStatusPayloads.d.ts +4 -0
- package/dist/neutral/simple/network/lib/FailedNetworkStatusPayloads.d.ts.map +1 -0
- package/dist/neutral/simple/network/lib/StatusNetworks.d.ts +10 -0
- package/dist/neutral/simple/network/lib/StatusNetworks.d.ts.map +1 -0
- package/dist/neutral/simple/network/lib/index.d.ts +3 -0
- package/dist/neutral/simple/network/lib/index.d.ts.map +1 -0
- package/dist/neutral/simple/network/spec/XyoNetwork.spec.d.ts +2 -0
- package/dist/neutral/simple/network/spec/XyoNetwork.spec.d.ts.map +1 -0
- package/dist/neutral/simple/permissions/SimpleXyoPermissions.d.ts +17 -0
- package/dist/neutral/simple/permissions/SimpleXyoPermissions.d.ts.map +1 -0
- package/dist/neutral/simple/permissions/index.d.ts +3 -0
- package/dist/neutral/simple/permissions/index.d.ts.map +1 -0
- package/dist/neutral/simple/permissions/spec/SimpleXyoPermissions.spec.d.ts +2 -0
- package/dist/neutral/simple/permissions/spec/SimpleXyoPermissions.spec.d.ts.map +1 -0
- package/dist/neutral/simple/permissions/store/MemoryPermissions.d.ts +16 -0
- package/dist/neutral/simple/permissions/store/MemoryPermissions.d.ts.map +1 -0
- package/dist/neutral/simple/permissions/store/PermissionsStore.d.ts +12 -0
- package/dist/neutral/simple/permissions/store/PermissionsStore.d.ts.map +1 -0
- package/dist/neutral/simple/permissions/store/index.d.ts +3 -0
- package/dist/neutral/simple/permissions/store/index.d.ts.map +1 -0
- package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts +11 -0
- package/dist/neutral/simple/runner/SimpleXyoRunner.d.ts.map +1 -0
- package/dist/neutral/simple/runner/index.d.ts +2 -0
- package/dist/neutral/simple/runner/index.d.ts.map +1 -0
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts +15 -0
- package/dist/neutral/simple/signer/SimpleXyoSigner.d.ts.map +1 -0
- package/dist/neutral/simple/signer/index.d.ts +2 -0
- package/dist/neutral/simple/signer/index.d.ts.map +1 -0
- package/package.json +20 -15
- package/src/ChainServiceCollectionV2.ts +2 -1
- package/src/driver/cache/LruCacheMap.ts +6 -0
- package/src/driver/memory/MemoryMap.ts +6 -0
- package/src/index.ts +1 -0
- package/src/interfaces/viewers/AccountBalance.ts +2 -2
- package/src/interfaces/viewers/Block.ts +1 -1
- package/src/interfaces/viewers/Chain.ts +1 -1
- package/src/interfaces/viewers/ChainContract.ts +3 -1
- package/src/interfaces/viewers/Fork.ts +1 -1
- package/src/interfaces/viewers/NetworkStakeStepReward.ts +7 -7
- package/src/interfaces/viewers/StakeTotalsViewer.ts +3 -1
- package/src/interfaces/viewers/StakeViewer.ts +2 -2
- package/src/interfaces/viewers/StepStake.ts +3 -1
- package/src/interfaces/viewers/TimeSync.ts +3 -3
- package/src/interfaces/viewers/Transaction.ts +1 -1
- package/src/interfaces/viewers/TransferBalance.ts +2 -2
- package/src/interfaces/viewers/index.ts +0 -1
- package/src/map/AsynchronousMap.ts +1 -0
- package/src/map/SynchronousMap.ts +1 -0
- package/src/model/ChainStake/ChainStakeRead.ts +1 -1
- package/src/model/index.ts +1 -0
- package/src/provider/DataLake.ts +8 -3
- package/src/provider/XyoClient.ts +3 -3
- package/src/provider/XyoConnection.ts +1 -43
- package/src/provider/XyoGateway.ts +4 -12
- package/src/provider/XyoGatewayRunner.ts +42 -0
- package/src/provider/index.ts +2 -2
- package/src/provider/{XyoSigner.ts → signer/XyoSigner.ts} +2 -2
- package/src/provider/signer/index.ts +1 -0
- package/src/provider/viewer/StepViewer.ts +2 -2
- package/src/provider/viewer/XyoViewer.ts +11 -8
- package/src/services/Chain/ChainService.ts +2 -3
- package/src/services/Chain/interfaces/ChainStakeViewer.ts +1 -2
- package/src/services/Chain/interfaces/index.ts +0 -1
- package/src/services/NetworkStakeService.ts +2 -2
- package/src/services/StepStakeService.ts +2 -2
- package/src/services/TimeSyncService.ts +2 -4
- package/src/simple/client/SimpleXyoClient.ts +13 -0
- package/src/simple/client/index.ts +1 -0
- package/src/simple/datalake/SimpleDataLakeRunner.ts +36 -0
- package/src/simple/datalake/SimpleDataLakeViewer.ts +74 -0
- package/src/simple/datalake/index.ts +2 -0
- package/src/simple/gateway/SimpleXyoGateway.ts +21 -0
- package/src/simple/gateway/SimpleXyoGatewayRunner.ts +116 -0
- package/src/simple/gateway/index.ts +2 -0
- package/src/simple/index.ts +7 -0
- package/src/simple/network/SimpleXyoNetwork.ts +48 -0
- package/src/simple/network/index.ts +1 -0
- package/src/simple/network/lib/FailedNetworkStatusPayloads.ts +14 -0
- package/src/simple/network/lib/StatusNetworks.ts +27 -0
- package/src/simple/network/lib/index.ts +2 -0
- package/src/simple/network/spec/XyoNetwork.spec.ts +77 -0
- package/src/simple/permissions/SimpleXyoPermissions.ts +82 -0
- package/src/simple/permissions/index.ts +2 -0
- package/src/simple/permissions/spec/SimpleXyoPermissions.spec.ts +93 -0
- package/src/simple/permissions/store/MemoryPermissions.ts +32 -0
- package/src/simple/permissions/store/PermissionsStore.ts +15 -0
- package/src/simple/permissions/store/index.ts +2 -0
- package/src/simple/runner/SimpleXyoRunner.ts +29 -0
- package/src/simple/runner/index.ts +1 -0
- package/src/simple/signer/SimpleXyoSigner.ts +52 -0
- package/src/simple/signer/index.ts +1 -0
- package/dist/neutral/interfaces/viewers/Stake.d.ts.map +0 -1
- package/dist/neutral/provider/XyoGatewayHelpers.d.ts +0 -16
- package/dist/neutral/provider/XyoGatewayHelpers.d.ts.map +0 -1
- package/dist/neutral/provider/XyoSigner.d.ts.map +0 -1
- package/dist/neutral/services/Chain/interfaces/ChainContractViewer.d.ts +0 -4
- package/dist/neutral/services/Chain/interfaces/ChainContractViewer.d.ts.map +0 -1
- package/src/provider/XyoGatewayHelpers.ts +0 -30
- package/src/services/Chain/interfaces/ChainContractViewer.ts +0 -5
- /package/src/{interfaces/viewers/Stake.ts → model/Position.ts} +0 -0
|
@@ -8,11 +8,11 @@ export type AccountBalanceHistoryItem = [
|
|
|
8
8
|
WithStorageMeta<Signed<TransactionBoundWitness>> | null,
|
|
9
9
|
WithStorageMeta<Transfer>
|
|
10
10
|
];
|
|
11
|
-
export interface
|
|
11
|
+
export interface AccountBalancesViewerMethods {
|
|
12
12
|
accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>;
|
|
13
13
|
accountBalancesHistories(address: Address[]): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface AccountBalanceViewerMethods {
|
|
16
16
|
accountBalance(address: Address): Promisable<AttoXL1>;
|
|
17
17
|
accountBalanceHistory(address: Address, range?: XL1BlockRange): Promisable<AccountBalanceHistoryItem[]>;
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { HydratedBlock } from '@xyo-network/xl1-protocol';
|
|
4
|
-
export interface
|
|
4
|
+
export interface BlockViewierMethods {
|
|
5
5
|
blockByHash(hash: Hash): Promisable<HydratedBlock | null>;
|
|
6
6
|
blockByNumber(blockNumber: number): Promisable<HydratedBlock | null>;
|
|
7
7
|
blocksByHash(hash: Hash, limit?: number): Promisable<HydratedBlock[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACzD,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACpE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,EAAE,CAAC,CAAA;IAErE,YAAY,IAAI,UAAU,CAAC,aAAa,CAAC,CAAA;IACzC,gBAAgB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACpC,kBAAkB,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;CACzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ChainContractViewerMethods {
|
|
3
3
|
forkedAtBlockNumber(): Promise<bigint>;
|
|
4
4
|
forkedAtHash(): Promise<bigint>;
|
|
5
5
|
forkedChainId(): Promise<Address>;
|
|
@@ -7,4 +7,6 @@ export interface ChainContractViewInterface {
|
|
|
7
7
|
rewardsContract(): Promise<string>;
|
|
8
8
|
stakingTokenAddress(): Promise<string>;
|
|
9
9
|
}
|
|
10
|
+
export interface ChainContractViewer extends ChainContractViewerMethods {
|
|
11
|
+
}
|
|
10
12
|
//# sourceMappingURL=ChainContract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,0BAA0B;IACzC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACvC"}
|
|
1
|
+
{"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,0BAA0B;IACzC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACvC;AAED,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;CAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise';
|
|
2
2
|
import type { ChainId } from '@xyo-network/xl1-protocol';
|
|
3
3
|
export type ForkHistory = Record<number, ChainId>;
|
|
4
|
-
export interface
|
|
4
|
+
export interface ForkViewerMethods {
|
|
5
5
|
chainIdAtBlock(blockNumber: number): Promisable<ChainId | undefined>;
|
|
6
6
|
forkHistory(): Promisable<ForkHistory>;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IACpE,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CACvC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { StepIdentity, StepIdentityString } from '@xyo-network/xl1-protocol';
|
|
4
|
-
export interface
|
|
4
|
+
export interface NetworkStakeStepAddressRewardViewerMethods {
|
|
5
5
|
networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>;
|
|
6
6
|
networkStakeStepRewardAddressReward(context: StepIdentity, address: Address): Promisable<Record<Address, bigint>>;
|
|
7
7
|
networkStakeStepRewardAddressShare(context: StepIdentity, address: Address): Promisable<[/* address shares */ bigint, /* total shares */ bigint]>;
|
|
8
8
|
networkStakeStepRewardWeightForAddress(context: StepIdentity, address: Address): Promisable<bigint>;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface NetworkStakeStepPoolRewardViewerMethods {
|
|
11
11
|
networkStakeStepRewardPoolRewards(context: StepIdentity): Promisable<Record<Address, bigint>>;
|
|
12
12
|
networkStakeStepRewardPoolShares(context: StepIdentity): Promisable<Record<Address, bigint>>;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface NetworkStakeStepRewardPositionViewerMethods {
|
|
15
15
|
networkStakeStepRewardPositionWeight(context: StepIdentity, position: number): Promisable<bigint>;
|
|
16
16
|
networkStakeStepRewardPotentialPositionLoss(context: StepIdentity, position: number): Promisable<bigint>;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface NetworkStakeStepRewardViewer extends NetworkStakeStepPoolRewardViewerMethods, NetworkStakeStepAddressRewardViewerMethods, NetworkStakeStepRewardPositionViewerMethods {
|
|
19
19
|
networkStakeStepRewardClaimedByAddress(address: Address): Promisable<bigint>;
|
|
20
20
|
networkStakeStepRewardForPosition(position: number, range: [number, number]): Promisable<[bigint, bigint]>;
|
|
21
21
|
networkStakeStepRewardForStep(context: StepIdentity): Promisable<bigint>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEjF,MAAM,WAAW,0CAA0C;IAEzD,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,mCAAmC,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGjH,kCAAkC,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC,oBAAoB,CAAA,MAAM,EAAE,kBAAkB,CAAA,MAAM,CAAC,CAAC,CAAA;IAG/I,sCAAsC,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACpG;AAED,MAAM,WAAW,uCAAuC;IAGtD,iCAAiC,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG7F,gCAAgC,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;CAC7F;AAED,MAAM,WAAW,2CAA2C;IAE1D,oCAAoC,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,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SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACpG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
export interface
|
|
3
|
+
export interface StakeTotalsViewerMethods {
|
|
4
4
|
active(): Promisable<bigint>;
|
|
5
5
|
activeByStaked(staked: Address): Promisable<bigint>;
|
|
6
6
|
activeByStaker(address: Address): Promisable<bigint>;
|
|
@@ -9,4 +9,6 @@ export interface StakeTotalsViewer {
|
|
|
9
9
|
withdrawn(): Promisable<bigint>;
|
|
10
10
|
withdrawnByStaker(staker: Address): Promisable<bigint>;
|
|
11
11
|
}
|
|
12
|
+
export interface StakeTotalsViewer extends StakeTotalsViewerMethods {
|
|
13
|
+
}
|
|
12
14
|
//# sourceMappingURL=StakeTotalsViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeTotalsViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeTotalsViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"StakeTotalsViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeTotalsViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,wBAAwB;IACvC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACnD,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC7B,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC/B,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;CAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { Position } from '
|
|
4
|
-
export interface
|
|
3
|
+
import type { Position } from '../../model/index.ts';
|
|
4
|
+
export interface StakeViewerMethods {
|
|
5
5
|
stakeById(id: number): Promisable<Position>;
|
|
6
6
|
stakeByStaker(staker: Address, slot: number): Promisable<Position>;
|
|
7
7
|
stakedByStaker(staker: Address): Promisable<Address[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StakeViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"StakeViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;IAC3C,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;IAElE,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACtD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;IACvD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;CACxD"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { StepIdentity } from '@xyo-network/xl1-protocol';
|
|
4
|
-
export interface
|
|
4
|
+
export interface StepStakeViewerMethods {
|
|
5
5
|
stepStake: (step: StepIdentity) => Promisable<Record<Address, bigint>>;
|
|
6
6
|
stepStakeForAddress: (address: Address, step: StepIdentity) => Promisable<bigint>;
|
|
7
7
|
}
|
|
8
|
+
export interface StepStakeViewer extends StepStakeViewerMethods {
|
|
9
|
+
}
|
|
8
10
|
//# sourceMappingURL=StepStake.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StepStake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,WAAW,sBAAsB;IAErC,SAAS,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGtE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF"}
|
|
1
|
+
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StepStake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,WAAW,sBAAsB;IAErC,SAAS,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGtE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF;AAUD,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { TimeDomain, TimePayload } from '@xyo-network/xl1-protocol';
|
|
4
|
-
export interface
|
|
4
|
+
export interface TimeSyncViewerMethods {
|
|
5
5
|
/** Convert time between different domains */
|
|
6
6
|
convertTime(fromDomain: TimeDomain, toDomain: TimeDomain, from: number): Promisable<number>;
|
|
7
7
|
/** Get the current time for a given domain */
|
|
8
8
|
currentTime(domain: TimeDomain): Promisable<[string, number]>;
|
|
9
|
-
}
|
|
10
|
-
export interface TimeSyncViewInterfaceV2 extends TimeSyncViewInterface {
|
|
11
9
|
/** Get the current time for a given domain */
|
|
12
10
|
currentTimeAndHash(domain: TimeDomain): Promisable<[number, Hash | null]>;
|
|
13
11
|
/** Create a TimePayload with the current time from all configured domains */
|
|
14
12
|
currentTimePayload(): Promisable<TimePayload>;
|
|
15
13
|
}
|
|
14
|
+
export interface TimeSyncViewer extends TimeSyncViewerMethods {
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=TimeSync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE3F,8CAA8C;IAC9C,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE3F,8CAA8C;IAC9C,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAE7D,8CAA8C;IAC9C,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC,CAAA;IAEzE,6EAA6E;IAC7E,kBAAkB,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;CAAG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { SignedHydratedTransaction } from '@xyo-network/xl1-protocol';
|
|
4
|
-
export interface
|
|
4
|
+
export interface TransactionViewerMethods {
|
|
5
5
|
transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
|
|
6
6
|
transactionByBlockNumberAndIndex(blockNumber: number, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
|
|
7
7
|
transactionByHash(transactionHash: Hash): Promisable<SignedHydratedTransaction | null>;
|
|
@@ -8,13 +8,13 @@ export type TransferBalanceHistoryItem = [
|
|
|
8
8
|
Transfer
|
|
9
9
|
];
|
|
10
10
|
export type TransferPair = [/* from */ Address, /* to */ Address];
|
|
11
|
-
export interface
|
|
11
|
+
export interface TransferBalancesViewerMethods {
|
|
12
12
|
transferBalances(address: Address[]): Promisable<Partial<Record<Address, Record<Address, AttoXL1>>>>;
|
|
13
13
|
transferBalancesHistories(address: Address[]): Promisable<Partial<Record<Address, Record<Address, TransferBalanceHistoryItem[]>>>>;
|
|
14
14
|
transferPairBalances(address: TransferPair[]): Promisable<Partial<Record<Address, Record<Address, AttoXL1>>>>;
|
|
15
15
|
transferPairBalancesHistories(address: TransferPair[]): Promisable<Partial<Record<Address, Record<Address, TransferBalanceHistoryItem[]>>>>;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface TransferBalanceViewerMethods {
|
|
18
18
|
transferBalance(address: Address): Promisable<AttoXL1>;
|
|
19
19
|
transferBalanceHistory(address: Address, range?: XL1BlockRange): Promisable<TransferBalanceHistoryItem[]>;
|
|
20
20
|
transferPairBalance(address: TransferPair): Promisable<AttoXL1>;
|
|
@@ -4,7 +4,6 @@ export * from './Chain.ts';
|
|
|
4
4
|
export * from './ChainContract.ts';
|
|
5
5
|
export * from './Fork.ts';
|
|
6
6
|
export * from './NetworkStakeStepReward.ts';
|
|
7
|
-
export * from './Stake.ts';
|
|
8
7
|
export * from './StakeTotalsViewer.ts';
|
|
9
8
|
export * from './StakeViewer.ts';
|
|
10
9
|
export * from './StepStake.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
|
@@ -8,6 +8,7 @@ export interface AsynchronousMapWrite<K, V> {
|
|
|
8
8
|
clear(): Promisable<void>;
|
|
9
9
|
delete(id: K): Promisable<boolean>;
|
|
10
10
|
set(id: K, data: V): Promisable<void>;
|
|
11
|
+
setMany(entries: [K, V][]): Promisable<void>;
|
|
11
12
|
}
|
|
12
13
|
export interface AsynchronousMap<K, V> extends AsynchronousMapRead<K, V>, AsynchronousMapWrite<K, V> {
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsynchronousMap.d.ts","sourceRoot":"","sources":["../../../src/map/AsynchronousMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,mBAAmB,CAAC,CAAC,EAAE,CAAC;IACvC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,GAAG,SAAS,CAAC,CAAA;IACrC,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,EAAE,CAAC,CAAA;IACjC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;CAChC;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,EAAE,CAAC;IACxC,KAAK,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACzB,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAClC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"AsynchronousMap.d.ts","sourceRoot":"","sources":["../../../src/map/AsynchronousMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,mBAAmB,CAAC,CAAC,EAAE,CAAC;IACvC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,UAA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C,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"SynchronousMap.d.ts","sourceRoot":"","sources":["../../../src/map/SynchronousMap.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAAA;IACrB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,EAAE,CAAC;IACvC,KAAK,IAAI,IAAI,CAAA;IACb,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,CAAA;IACtB,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC;CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { Position } from '
|
|
3
|
+
import type { Position } from '../Position.ts';
|
|
4
4
|
export interface ChainStakeRead {
|
|
5
5
|
active(time?: number): Promisable<bigint>;
|
|
6
6
|
activeByAddressStaked(address: string, time?: number): Promisable<bigint>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStakeRead.d.ts","sourceRoot":"","sources":["../../../../src/model/ChainStake/ChainStakeRead.ts"],"names":[],"mappings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AAE,MAAM,GAAG,SAAS,CAAC,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC7F,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;IAC7F,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5C,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../src/model/Position.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,QAAQ,GAAG;IAErB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,MAAM,CAAA;IAEd,EAAE,EAAE,UAAU,CAAA;IAEd,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,OAAO,CAAA;IAEf,MAAM,EAAE,OAAO,CAAA;IAEf,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,yCAAyC;AACzC,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAA"}
|
|
@@ -4,6 +4,7 @@ export * from './ChainIdentity.ts';
|
|
|
4
4
|
export * from './ChainStake/index.ts';
|
|
5
5
|
export * from './ChainStore.ts';
|
|
6
6
|
export * from './PayloadMap.ts';
|
|
7
|
+
export * from './Position.ts';
|
|
7
8
|
export * from './RecordKeyType.ts';
|
|
8
9
|
export * from './StakeEvents.ts';
|
|
9
10
|
export * from './summary.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { type Hex } from '@xylabs/hex';
|
|
1
2
|
import type { Payload } from '@xyo-network/payload-model';
|
|
2
|
-
export declare const netBalancesForPayloads: (payloads: Payload[]) => Record<import("@xylabs/typeof").Brand<
|
|
3
|
-
readonly __hex: true;
|
|
4
|
-
}>, {
|
|
3
|
+
export declare const netBalancesForPayloads: (payloads: Payload[]) => Record<import("@xylabs/typeof").Brand<Hex, {
|
|
5
4
|
readonly __address: true;
|
|
6
5
|
}>, bigint>;
|
|
7
6
|
//# sourceMappingURL=netBalancesForPayloads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"netBalancesForPayloads.d.ts","sourceRoot":"","sources":["../../../src/payloads/netBalancesForPayloads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"netBalancesForPayloads.d.ts","sourceRoot":"","sources":["../../../src/payloads/netBalancesForPayloads.ts"],"names":[],"mappings":"AAAA,OAAO,EACS,KAAK,GAAG,EACvB,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,sBAAsB,GAAI,UAAU,OAAO,EAAE;;WAczD,CAAA"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import type { Payload, Schema } from '@xyo-network/payload-model';
|
|
3
3
|
import type { MapType } from '../map/index.ts';
|
|
4
4
|
export type DataLakeData = Payload | ArrayBuffer;
|
|
5
5
|
export type DataLakeViewerMethods = Pick<MapType<Hash, DataLakeData>, 'get' | 'getMany' | 'has'>;
|
|
6
6
|
export interface DataLakeViewer extends DataLakeViewerMethods {
|
|
7
|
+
allowedSchemas?: Schema[];
|
|
8
|
+
disallowedSchemas?: Schema[];
|
|
7
9
|
}
|
|
8
|
-
export type DataLakeRunnerMethods = Pick<MapType<Hash, DataLakeData>, 'set' | 'delete' | 'clear'
|
|
10
|
+
export type DataLakeRunnerMethods = Pick<MapType<Hash, DataLakeData>, 'set' | 'delete' | 'clear'> & {
|
|
11
|
+
setMany(entries: [Hash, DataLakeData][]): Promise<void>;
|
|
12
|
+
};
|
|
9
13
|
export interface DataLakeRunner extends DataLakeViewerMethods, DataLakeRunnerMethods {
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=DataLake.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataLake.d.ts","sourceRoot":"","sources":["../../../src/provider/DataLake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"DataLake.d.ts","sourceRoot":"","sources":["../../../src/provider/DataLake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,WAAW,CAAA;AAEhD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,KAAK,CAAC,CAAA;AAEhG,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IAC3D,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;IAClG,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACxD,CAAA;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB,EAAE,qBAAqB;CAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { XyoPermissions } from './permissions/index.ts';
|
|
2
|
-
import type {
|
|
2
|
+
import type { XyoGateway } from './XyoGateway.ts';
|
|
3
3
|
export type GatewayName = string & {
|
|
4
4
|
__gatewayName: true;
|
|
5
5
|
};
|
|
@@ -11,9 +11,9 @@ export interface XyoRpcGatewayConfig extends XyoGatewayConfig {
|
|
|
11
11
|
networkEndpoint: string;
|
|
12
12
|
}
|
|
13
13
|
export interface XyoClient {
|
|
14
|
-
gateways: Readonly<Record<GatewayName,
|
|
14
|
+
gateways: Readonly<Record<GatewayName, XyoGateway>>;
|
|
15
15
|
permissions: XyoPermissions;
|
|
16
|
-
addGateway?(providerOrConfig: XyoGatewayConfig | XyoRpcGatewayConfig |
|
|
16
|
+
addGateway?(providerOrConfig: XyoGatewayConfig | XyoRpcGatewayConfig | XyoGateway): Promise<XyoGateway>;
|
|
17
17
|
removeGateway?(name: GatewayName): Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=XyoClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoClient.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoClient.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAA;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;IACnD,WAAW,EAAE,cAAc,CAAA;IAE3B,UAAU,CAAC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IACvG,aAAa,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD"}
|
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
import type { Address, Hex } from '@xylabs/hex';
|
|
2
|
-
import type { Signed } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
-
import type { AllowedBlockPayload, TransactionBoundWitness, TransactionFeesBigInt } from '@xyo-network/xl1-protocol';
|
|
5
1
|
import type { DataLakeRunner, DataLakeViewer } from './DataLake.ts';
|
|
6
|
-
import type { TransactionSubmitter } from './TransactionSubmitter.ts';
|
|
7
2
|
import type { NetworkStakeViewer, XyoViewer } from './viewer/index.ts';
|
|
8
3
|
import type { XyoNetwork } from './XyoNetwork.ts';
|
|
9
4
|
import type { XyoRunner } from './XyoRunner.ts';
|
|
10
|
-
|
|
11
|
-
import type { XyoWallet } from './XyoWallet.ts';
|
|
12
|
-
/** @deprecated use XyoConnectionProvider instead */
|
|
13
|
-
export interface XyoConnectionProviderDeprecated extends TransactionSubmitter {
|
|
14
|
-
/** @deprecated - use from gateway instead */
|
|
15
|
-
signer: XyoSigner;
|
|
16
|
-
/** @deprecated - use host instead */
|
|
17
|
-
wallet: XyoWallet;
|
|
18
|
-
/** @deprecated - use submitTransaction instead */
|
|
19
|
-
send(elevatedPayloads: AllowedBlockPayload[], additionalPayloads: Payload[], chain?: Hex, nbf?: number, exp?: number, from?: Address, fees?: TransactionFeesBigInt): Promise<Signed<TransactionBoundWitness>>;
|
|
20
|
-
}
|
|
21
|
-
export interface XyoConnection extends Partial<XyoConnectionProviderDeprecated> {
|
|
5
|
+
export interface XyoConnection {
|
|
22
6
|
network?: XyoNetwork;
|
|
23
7
|
networkStake?: NetworkStakeViewer;
|
|
24
8
|
runner?: XyoRunner;
|
|
25
9
|
storage?: DataLakeRunner | DataLakeViewer | (DataLakeRunner & DataLakeViewer);
|
|
26
10
|
viewer?: XyoViewer;
|
|
27
11
|
}
|
|
28
|
-
/** @deprecated use XyoConnectionProvider */
|
|
29
|
-
export interface XyoConnectionProvider extends XyoConnection {
|
|
30
|
-
}
|
|
31
|
-
/** @deprecated use XyoConnectionProvider */
|
|
32
|
-
export interface XyoProvider extends XyoConnection {
|
|
33
|
-
}
|
|
34
12
|
//# sourceMappingURL=XyoConnection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoConnection.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoConnection.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,cAAc,GAAG,cAAc,GAAG,CAAC,cAAc,GAAG,cAAc,CAAC,CAAA;IAC7E,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { XyoSigner } from './signer/index.ts';
|
|
2
2
|
import type { XyoConnection } from './XyoConnection.ts';
|
|
3
|
-
|
|
4
|
-
import type { XyoSigner } from './XyoSigner.ts';
|
|
5
|
-
/** @deprecated use XyoConnectionConfig instead */
|
|
6
|
-
export interface XyoConnectionConfigDeprecated {
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export interface XyoGatewayProvider extends Partial<XyoGatewayHelpers> {
|
|
3
|
+
export interface XyoGateway {
|
|
10
4
|
/**
|
|
11
5
|
* Returns the connection provider for this gateway.
|
|
12
6
|
*/
|
|
13
|
-
connection
|
|
7
|
+
connection: XyoConnection;
|
|
14
8
|
/**
|
|
15
9
|
* Returns the signer for this gateway.
|
|
16
10
|
*/
|
|
17
|
-
signer
|
|
11
|
+
signer: XyoSigner;
|
|
18
12
|
}
|
|
19
13
|
//# sourceMappingURL=XyoGateway.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoGateway.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoGateway.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,UAAU,EAAE,aAAa,CAAA;IACzB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAA;CAClB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Address, Hash, Hex } from '@xylabs/hex';
|
|
2
|
+
import type { Promisable } from '@xylabs/promise';
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import type { AllowedBlockPayload, AttoXL1, SignedHydratedTransaction, SignedHydratedTransactionWithHashMeta, TransactionFeesBigInt, UnsignedHydratedTransaction } from '@xyo-network/xl1-protocol';
|
|
5
|
+
import type { DataLakeRunner } from './DataLake.ts';
|
|
6
|
+
import type { XyoGateway } from './XyoGateway.ts';
|
|
7
|
+
export interface TransactionOptions {
|
|
8
|
+
chain?: Hex;
|
|
9
|
+
exp?: number;
|
|
10
|
+
fees?: TransactionFeesBigInt;
|
|
11
|
+
from?: Address;
|
|
12
|
+
nbf?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface XyoGatewayRunnerMethods {
|
|
15
|
+
addPayloadsToChain(onChain: AllowedBlockPayload[], offChain: Payload[], options?: TransactionOptions): Promisable<[Hash, SignedHydratedTransactionWithHashMeta]>;
|
|
16
|
+
addTransactionToChain(tx: UnsignedHydratedTransaction | SignedHydratedTransaction): Promisable<[Hash, SignedHydratedTransactionWithHashMeta]>;
|
|
17
|
+
send(to: Address, amount: AttoXL1, options?: TransactionOptions): Promisable<Hash>;
|
|
18
|
+
sendMany(transfers: Record<Address, AttoXL1>, options?: TransactionOptions): Promisable<Hash>;
|
|
19
|
+
}
|
|
20
|
+
export interface XyoGatewayRunner extends XyoGatewayRunnerMethods, XyoGateway {
|
|
21
|
+
dataLakes: DataLakeRunner[];
|
|
22
|
+
addDataLake(dataLake: DataLakeRunner): number;
|
|
23
|
+
removeDataLake(index: number): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=XyoGatewayRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XyoGatewayRunner.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoGatewayRunner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAAE,IAAI,EAAE,GAAG,EACnB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAE,yBAAyB,EAAE,qCAAqC,EAAE,qBAAqB,EACrH,2BAA2B,EAC5B,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,qBAAqB,CAAA;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,uBAAuB;IAEtC,kBAAkB,CAChB,OAAO,EAAE,mBAAmB,EAAE,EAC9B,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,UAAU,CAAC,CAAC,IAAI,EAAE,qCAAqC,CAAC,CAAC,CAAA;IAE5D,qBAAqB,CACnB,EAAE,EAAE,2BAA2B,GAAG,yBAAyB,GAC1D,UAAU,CAAC,CAAC,IAAI,EAAE,qCAAqC,CAAC,CAAC,CAAA;IAE5D,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;IAClF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;CAC9F;AAED,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB,EAAE,UAAU;IAC3E,SAAS,EAAE,cAAc,EAAE,CAAA;IAC3B,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAAA;IAC7C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACpC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * from './DataLake.ts';
|
|
2
2
|
export * from './permissions/index.ts';
|
|
3
|
+
export * from './signer/index.ts';
|
|
3
4
|
export * from './TransactionSubmitter.ts';
|
|
4
5
|
export * from './viewer/index.ts';
|
|
5
6
|
export * from './XyoClient.ts';
|
|
6
7
|
export * from './XyoConnection.ts';
|
|
7
8
|
export * from './XyoGateway.ts';
|
|
8
|
-
export * from './
|
|
9
|
+
export * from './XyoGatewayRunner.ts';
|
|
9
10
|
export * from './XyoNetwork.ts';
|
|
10
11
|
export * from './XyoRunner.ts';
|
|
11
|
-
export * from './XyoSigner.ts';
|
|
12
12
|
export * from './XyoWallet.ts';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
|
@@ -2,10 +2,10 @@ import type { Address } from '@xylabs/hex';
|
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { Signed, UnsignedBoundWitness } from '@xyo-network/boundwitness-model';
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model';
|
|
5
|
-
import type { AllowedBlockPayload, ChainId, TransactionBoundWitness, TransactionFeesBigInt } from '@xyo-network/xl1-protocol';
|
|
5
|
+
import type { AllowedBlockPayload, ChainId, SignedHydratedTransactionWithHashMeta, TransactionBoundWitness, TransactionFeesBigInt } from '@xyo-network/xl1-protocol';
|
|
6
6
|
export interface XyoSigner {
|
|
7
7
|
address(): Promisable<Address>;
|
|
8
|
-
signTransaction(tx: [UnsignedBoundWitness<TransactionBoundWitness>, Payload[]]): Promisable<
|
|
8
|
+
signTransaction(tx: [UnsignedBoundWitness<TransactionBoundWitness>, Payload[]]): Promisable<SignedHydratedTransactionWithHashMeta>;
|
|
9
9
|
}
|
|
10
10
|
export interface XyoSignerDeprecated {
|
|
11
11
|
/** @deprecated use signTransaction instead */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XyoSigner.d.ts","sourceRoot":"","sources":["../../../../src/provider/signer/XyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAE,qCAAqC,EAAE,uBAAuB,EAC5F,qBAAqB,EACtB,MAAM,2BAA2B,CAAA;AAElC,MAAM,WAAW,SAAS;IACxB,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAI9B,eAAe,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC,qCAAqC,CAAC,CAAA;CACnI;AAED,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,uBAAuB,CACrB,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,kBAAkB,EAAE,OAAO,EAAE,EAC7B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,EAC3B,IAAI,CAAC,EAAE,OAAO,GACb,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAA;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/provider/signer/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { PositionId, StepIdentity } from '@xyo-network/xl1-protocol';
|
|
4
|
-
import type { Position } from '../../
|
|
5
|
-
import type { NetworkStakeStepRewardsViewer } from './NetworkStake/
|
|
4
|
+
import type { Position } from '../../model/index.ts';
|
|
5
|
+
import type { NetworkStakeStepRewardsViewer } from './NetworkStake/index.ts';
|
|
6
6
|
export interface PagedPositionsOptions {
|
|
7
7
|
cursor?: PositionId;
|
|
8
8
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/viewer/StepViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"StepViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/viewer/StepViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,KAA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