@alephium/web3 0.1.0-rc.1 → 0.1.0

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.
@@ -53,13 +53,14 @@ export interface AssetInput {
53
53
  }
54
54
 
55
55
  export interface AssetOutput {
56
+ /** @format int32 */
56
57
  hint: number
57
58
 
58
59
  /** @format 32-byte-hash */
59
60
  key: string
60
61
 
61
62
  /** @format uint256 */
62
- alphAmount: string
63
+ attoAlphAmount: string
63
64
 
64
65
  /** @format address */
65
66
  address: string
@@ -75,7 +76,7 @@ export interface AssetOutput {
75
76
 
76
77
  export interface AssetState {
77
78
  /** @format uint256 */
78
- alphAmount: string
79
+ attoAlphAmount: string
79
80
  tokens?: Token[]
80
81
  }
81
82
 
@@ -95,6 +96,8 @@ export interface Balance {
95
96
 
96
97
  /** @format x.x ALPH */
97
98
  lockedBalanceHint: string
99
+
100
+ /** @format int32 */
98
101
  utxoNum: number
99
102
  warning?: string
100
103
  }
@@ -125,8 +128,14 @@ export interface BlockEntry {
125
128
 
126
129
  /** @format int64 */
127
130
  timestamp: number
131
+
132
+ /** @format int32 */
128
133
  chainFrom: number
134
+
135
+ /** @format int32 */
129
136
  chainTo: number
137
+
138
+ /** @format int32 */
130
139
  height: number
131
140
  deps: string[]
132
141
  transactions: Transaction[]
@@ -151,8 +160,14 @@ export interface BlockHeaderEntry {
151
160
 
152
161
  /** @format int64 */
153
162
  timestamp: number
163
+
164
+ /** @format int32 */
154
165
  chainFrom: number
166
+
167
+ /** @format int32 */
155
168
  chainTo: number
169
+
170
+ /** @format int32 */
156
171
  height: number
157
172
  deps: string[]
158
173
  }
@@ -160,11 +175,15 @@ export interface BlockHeaderEntry {
160
175
  export interface BrokerInfo {
161
176
  /** @format clique-id */
162
177
  cliqueId: string
178
+
179
+ /** @format int32 */
163
180
  brokerId: number
181
+
182
+ /** @format int32 */
164
183
  brokerNum: number
165
184
 
166
185
  /** @format inet-socket-address */
167
- address: string
186
+ address: { addr: string; port: number }
168
187
  }
169
188
 
170
189
  export interface BuildDeployContractTx {
@@ -175,7 +194,7 @@ export interface BuildDeployContractTx {
175
194
  bytecode: string
176
195
 
177
196
  /** @format uint256 */
178
- initialAlphAmount?: string
197
+ initialAttoAlphAmount?: string
179
198
  initialTokenAmounts?: Token[]
180
199
 
181
200
  /** @format uint256 */
@@ -189,7 +208,10 @@ export interface BuildDeployContractTx {
189
208
  }
190
209
 
191
210
  export interface BuildDeployContractTxResult {
211
+ /** @format int32 */
192
212
  fromGroup: number
213
+
214
+ /** @format int32 */
193
215
  toGroup: number
194
216
  unsignedTx: string
195
217
 
@@ -214,7 +236,7 @@ export interface BuildExecuteScriptTx {
214
236
  bytecode: string
215
237
 
216
238
  /** @format uint256 */
217
- alphAmount?: string
239
+ attoAlphAmount?: string
218
240
  tokens?: Token[]
219
241
 
220
242
  /** @format gas */
@@ -225,7 +247,10 @@ export interface BuildExecuteScriptTx {
225
247
  }
226
248
 
227
249
  export interface BuildExecuteScriptTxResult {
250
+ /** @format int32 */
228
251
  fromGroup: number
252
+
253
+ /** @format int32 */
229
254
  toGroup: number
230
255
  unsignedTx: string
231
256
 
@@ -259,6 +284,8 @@ export interface BuildMultisig {
259
284
 
260
285
  export interface BuildMultisigAddress {
261
286
  keys: string[]
287
+
288
+ /** @format int32 */
262
289
  mrequired: number
263
290
  }
264
291
 
@@ -286,7 +313,11 @@ export interface BuildSweepAddressTransactions {
286
313
 
287
314
  export interface BuildSweepAddressTransactionsResult {
288
315
  unsignedTxs: SweepAddressTransaction[]
316
+
317
+ /** @format int32 */
289
318
  fromGroup: number
319
+
320
+ /** @format int32 */
290
321
  toGroup: number
291
322
  }
292
323
 
@@ -314,11 +345,16 @@ export interface BuildTransactionResult {
314
345
 
315
346
  /** @format 32-byte-hash */
316
347
  txId: string
348
+
349
+ /** @format int32 */
317
350
  fromGroup: number
351
+
352
+ /** @format int32 */
318
353
  toGroup: number
319
354
  }
320
355
 
321
356
  export interface CallContract {
357
+ /** @format int32 */
322
358
  group: number
323
359
 
324
360
  /** @format block-hash */
@@ -329,6 +365,8 @@ export interface CallContract {
329
365
 
330
366
  /** @format address */
331
367
  address: string
368
+
369
+ /** @format int32 */
332
370
  methodIndex: number
333
371
  args?: Val[]
334
372
  existingContracts?: string[]
@@ -337,6 +375,8 @@ export interface CallContract {
337
375
 
338
376
  export interface CallContractResult {
339
377
  returns: Val[]
378
+
379
+ /** @format int32 */
340
380
  gasUsed: number
341
381
  contracts: ContractState[]
342
382
  txInputs: string[]
@@ -345,13 +385,20 @@ export interface CallContractResult {
345
385
  }
346
386
 
347
387
  export interface ChainInfo {
388
+ /** @format int32 */
348
389
  currentHeight: number
349
390
  }
350
391
 
351
392
  export interface ChainParams {
352
393
  networkId: number
394
+
395
+ /** @format int32 */
353
396
  numZerosAtLeastInHash: number
397
+
398
+ /** @format int32 */
354
399
  groupNumPerBroker: number
400
+
401
+ /** @format int32 */
355
402
  groups: number
356
403
  }
357
404
 
@@ -379,9 +426,17 @@ export interface CompileScriptResult {
379
426
  export interface Confirmed {
380
427
  /** @format block-hash */
381
428
  blockHash: string
429
+
430
+ /** @format int32 */
382
431
  txIndex: number
432
+
433
+ /** @format int32 */
383
434
  chainConfirmations: number
435
+
436
+ /** @format int32 */
384
437
  fromGroupConfirmations: number
438
+
439
+ /** @format int32 */
385
440
  toGroupConfirmations: number
386
441
  type: string
387
442
  }
@@ -396,6 +451,8 @@ export interface ContractEvent {
396
451
 
397
452
  /** @format 32-byte-hash */
398
453
  txId: string
454
+
455
+ /** @format int32 */
399
456
  eventIndex: number
400
457
  fields: Val[]
401
458
  }
@@ -406,28 +463,35 @@ export interface ContractEventByTxId {
406
463
 
407
464
  /** @format address */
408
465
  contractAddress: string
466
+
467
+ /** @format int32 */
409
468
  eventIndex: number
410
469
  fields: Val[]
411
470
  }
412
471
 
413
472
  export interface ContractEvents {
414
473
  events: ContractEvent[]
474
+
475
+ /** @format int32 */
415
476
  nextStart: number
416
477
  }
417
478
 
418
479
  export interface ContractEventsByTxId {
419
480
  events: ContractEventByTxId[]
481
+
482
+ /** @format int32 */
420
483
  nextStart: number
421
484
  }
422
485
 
423
486
  export interface ContractOutput {
487
+ /** @format int32 */
424
488
  hint: number
425
489
 
426
490
  /** @format 32-byte-hash */
427
491
  key: string
428
492
 
429
493
  /** @format uint256 */
430
- alphAmount: string
494
+ attoAlphAmount: string
431
495
 
432
496
  /** @format address */
433
497
  address: string
@@ -456,7 +520,10 @@ export interface DecodeUnsignedTx {
456
520
  }
457
521
 
458
522
  export interface DecodeUnsignedTxResult {
523
+ /** @format int32 */
459
524
  fromGroup: number
525
+
526
+ /** @format int32 */
460
527
  toGroup: number
461
528
  unsignedTx: UnsignedTx
462
529
  }
@@ -466,7 +533,7 @@ export interface Destination {
466
533
  address: string
467
534
 
468
535
  /** @format uint256 */
469
- alphAmount: string
536
+ attoAlphAmount: string
470
537
  tokens?: Token[]
471
538
 
472
539
  /** @format int64 */
@@ -496,13 +563,14 @@ export interface FieldsSig {
496
563
  }
497
564
 
498
565
  export interface FixedAssetOutput {
566
+ /** @format int32 */
499
567
  hint: number
500
568
 
501
569
  /** @format 32-byte-hash */
502
570
  key: string
503
571
 
504
572
  /** @format uint256 */
505
- alphAmount: string
573
+ attoAlphAmount: string
506
574
 
507
575
  /** @format address */
508
576
  address: string
@@ -524,6 +592,7 @@ export interface FunctionSig {
524
592
  }
525
593
 
526
594
  export interface Group {
595
+ /** @format int32 */
527
596
  group: number
528
597
  }
529
598
 
@@ -534,11 +603,15 @@ export interface HashesAtHeight {
534
603
  export interface InterCliquePeerInfo {
535
604
  /** @format clique-id */
536
605
  cliqueId: string
606
+
607
+ /** @format int32 */
537
608
  brokerId: number
609
+
610
+ /** @format int32 */
538
611
  groupNumPerBroker: number
539
612
 
540
613
  /** @format inet-socket-address */
541
- address: string
614
+ address: { addr: string; port: number }
542
615
  isSynced: boolean
543
616
  clientVersion: string
544
617
  }
@@ -566,7 +639,7 @@ export interface NodeInfo {
566
639
  upnp: boolean
567
640
 
568
641
  /** @format inet-socket-address */
569
- externalAddress?: string
642
+ externalAddress?: { addr: string; port: number }
570
643
  }
571
644
 
572
645
  export interface NodeVersion {
@@ -581,6 +654,7 @@ export interface NotFound {
581
654
  export type Output = AssetOutput | ContractOutput
582
655
 
583
656
  export interface OutputRef {
657
+ /** @format int32 */
584
658
  hint: number
585
659
 
586
660
  /** @format 32-byte-hash */
@@ -590,8 +664,14 @@ export interface OutputRef {
590
664
  export interface PeerAddress {
591
665
  /** @format inet-address */
592
666
  address: string
667
+
668
+ /** @format int32 */
593
669
  restPort: number
670
+
671
+ /** @format int32 */
594
672
  wsPort: number
673
+
674
+ /** @format int32 */
595
675
  minerApiPort: number
596
676
  }
597
677
 
@@ -604,6 +684,7 @@ export interface PeerMisbehavior {
604
684
  export type PeerStatus = Banned | Penalty
605
685
 
606
686
  export interface Penalty {
687
+ /** @format int32 */
607
688
  value: number
608
689
  type: string
609
690
  }
@@ -614,8 +695,13 @@ export interface Reachable {
614
695
  }
615
696
 
616
697
  export interface ReleaseVersion {
698
+ /** @format int32 */
617
699
  major: number
700
+
701
+ /** @format int32 */
618
702
  minor: number
703
+
704
+ /** @format int32 */
619
705
  patch: number
620
706
  }
621
707
 
@@ -667,7 +753,11 @@ export interface SubmitTransaction {
667
753
  export interface SubmitTxResult {
668
754
  /** @format 32-byte-hash */
669
755
  txId: string
756
+
757
+ /** @format int32 */
670
758
  fromGroup: number
759
+
760
+ /** @format int32 */
671
761
  toGroup: number
672
762
  }
673
763
 
@@ -683,6 +773,8 @@ export interface Sweep {
683
773
 
684
774
  /** @format uint256 */
685
775
  gasPrice?: string
776
+
777
+ /** @format int32 */
686
778
  utxosLimit?: number
687
779
  }
688
780
 
@@ -699,6 +791,7 @@ export interface SweepAddressTransaction {
699
791
  }
700
792
 
701
793
  export interface TestContract {
794
+ /** @format int32 */
702
795
  group?: number
703
796
 
704
797
  /** @format block-hash */
@@ -714,6 +807,8 @@ export interface TestContract {
714
807
  bytecode: string
715
808
  initialFields?: Val[]
716
809
  initialAsset?: AssetState
810
+
811
+ /** @format int32 */
717
812
  methodIndex?: number
718
813
  args?: Val[]
719
814
  existingContracts?: ContractState[]
@@ -727,6 +822,8 @@ export interface TestContractResult {
727
822
  /** @format 32-byte-hash */
728
823
  codeHash: string
729
824
  returns: Val[]
825
+
826
+ /** @format int32 */
730
827
  gasUsed: number
731
828
  contracts: ContractState[]
732
829
  txInputs: string[]
@@ -771,6 +868,8 @@ export interface Transfer {
771
868
 
772
869
  /** @format uint256 */
773
870
  gasPrice?: string
871
+
872
+ /** @format int32 */
774
873
  utxosLimit?: number
775
874
  }
776
875
 
@@ -824,7 +923,10 @@ export interface Unban {
824
923
  }
825
924
 
826
925
  export interface UnconfirmedTransactions {
926
+ /** @format int32 */
827
927
  fromGroup: number
928
+
929
+ /** @format int32 */
828
930
  toGroup: number
829
931
  unconfirmedTransactions: TransactionTemplate[]
830
932
  }
@@ -842,6 +944,8 @@ export interface UnsignedTx {
842
944
 
843
945
  /** @format script */
844
946
  scriptOpt?: string
947
+
948
+ /** @format int32 */
845
949
  gasAmount: number
846
950
 
847
951
  /** @format uint256 */
@@ -875,6 +979,7 @@ export interface ValByteVec {
875
979
  }
876
980
 
877
981
  export interface ValI256 {
982
+ /** @format bigint */
878
983
  value: string
879
984
  type: string
880
985
  }
@@ -1157,7 +1262,7 @@ export class HttpClient<SecurityDataType = unknown> {
1157
1262
 
1158
1263
  /**
1159
1264
  * @title Alephium API
1160
- * @version 1.4.0
1265
+ * @version 1.4.2
1161
1266
  * @baseUrl {protocol}://{host}:{port}
1162
1267
  */
1163
1268
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -23,6 +23,8 @@ export interface AddressInfo {
23
23
 
24
24
  /** @format uint256 */
25
25
  lockedBalance: string
26
+
27
+ /** @format int32 */
26
28
  txNumber: number
27
29
  }
28
30
 
@@ -31,13 +33,22 @@ export interface BadRequest {
31
33
  }
32
34
 
33
35
  export interface BlockEntryLite {
36
+ /** @format block-hash */
34
37
  hash: string
35
38
 
36
39
  /** @format int64 */
37
40
  timestamp: number
41
+
42
+ /** @format int32 */
38
43
  chainFrom: number
44
+
45
+ /** @format int32 */
39
46
  chainTo: number
47
+
48
+ /** @format int32 */
40
49
  height: number
50
+
51
+ /** @format int32 */
41
52
  txNumber: number
42
53
  mainChain: boolean
43
54
 
@@ -46,13 +57,18 @@ export interface BlockEntryLite {
46
57
  }
47
58
 
48
59
  export interface ConfirmedTransaction {
60
+ /** @format 32-byte-hash */
49
61
  hash: string
62
+
63
+ /** @format block-hash */
50
64
  blockHash: string
51
65
 
52
66
  /** @format int64 */
53
67
  timestamp: number
54
68
  inputs?: Input[]
55
69
  outputs?: Output[]
70
+
71
+ /** @format int32 */
56
72
  gasAmount: number
57
73
 
58
74
  /** @format uint256 */
@@ -68,13 +84,15 @@ export interface ExplorerInfo {
68
84
  export interface Hashrate {
69
85
  /** @format int64 */
70
86
  timestamp: number
71
- hashrate: string
72
- value: string
87
+ hashrate: number
88
+ value: number
73
89
  }
74
90
 
75
91
  export interface Input {
76
92
  outputRef: OutputRef
77
93
  unlockScript?: string
94
+
95
+ /** @format 32-byte-hash */
78
96
  txHashRef: string
79
97
  address: string
80
98
 
@@ -87,6 +105,7 @@ export interface InternalServerError {
87
105
  }
88
106
 
89
107
  export interface ListBlocks {
108
+ /** @format int32 */
90
109
  total: number
91
110
  blocks?: BlockEntryLite[]
92
111
  }
@@ -97,6 +116,7 @@ export interface NotFound {
97
116
  }
98
117
 
99
118
  export interface Output {
119
+ /** @format int32 */
100
120
  hint: number
101
121
 
102
122
  /** @format 32-byte-hash */
@@ -108,10 +128,13 @@ export interface Output {
108
128
 
109
129
  /** @format int64 */
110
130
  lockTime?: number
131
+
132
+ /** @format 32-byte-hash */
111
133
  spent?: string
112
134
  }
113
135
 
114
136
  export interface OutputRef {
137
+ /** @format int32 */
115
138
  hint: number
116
139
 
117
140
  /** @format 32-byte-hash */
@@ -119,7 +142,10 @@ export interface OutputRef {
119
142
  }
120
143
 
121
144
  export interface PerChainCount {
145
+ /** @format int32 */
122
146
  chainFrom: number
147
+
148
+ /** @format int32 */
123
149
  chainTo: number
124
150
 
125
151
  /** @format int64 */
@@ -127,7 +153,10 @@ export interface PerChainCount {
127
153
  }
128
154
 
129
155
  export interface PerChainDuration {
156
+ /** @format int32 */
130
157
  chainFrom: number
158
+
159
+ /** @format int32 */
131
160
  chainTo: number
132
161
 
133
162
  /** @format int64 */
@@ -138,7 +167,10 @@ export interface PerChainDuration {
138
167
  }
139
168
 
140
169
  export interface PerChainHeight {
170
+ /** @format int32 */
141
171
  chainFrom: number
172
+
173
+ /** @format int32 */
142
174
  chainTo: number
143
175
 
144
176
  /** @format int64 */
@@ -187,13 +219,18 @@ export interface TokenSupply {
187
219
  }
188
220
 
189
221
  export interface Transaction {
222
+ /** @format 32-byte-hash */
190
223
  hash: string
224
+
225
+ /** @format block-hash */
191
226
  blockHash: string
192
227
 
193
228
  /** @format int64 */
194
229
  timestamp: number
195
230
  inputs?: Input[]
196
231
  outputs?: Output[]
232
+
233
+ /** @format int32 */
197
234
  gasAmount: number
198
235
 
199
236
  /** @format uint256 */
@@ -221,11 +258,18 @@ export interface Unauthorized {
221
258
  }
222
259
 
223
260
  export interface UnconfirmedTransaction {
261
+ /** @format 32-byte-hash */
224
262
  hash: string
263
+
264
+ /** @format int32 */
225
265
  chainFrom: number
266
+
267
+ /** @format int32 */
226
268
  chainTo: number
227
269
  inputs?: UInput[]
228
270
  outputs?: UOutput[]
271
+
272
+ /** @format int32 */
229
273
  gasAmount: number
230
274
 
231
275
  /** @format uint256 */
@@ -647,7 +691,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
647
691
  * @request GET:/infos/supply/total-alph
648
692
  */
649
693
  getInfosSupplyTotalAlph: (params: RequestParams = {}) =>
650
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
694
+ this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
651
695
  path: `/infos/supply/total-alph`,
652
696
  method: 'GET',
653
697
  ...params
@@ -661,7 +705,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
661
705
  * @request GET:/infos/supply/circulating-alph
662
706
  */
663
707
  getInfosSupplyCirculatingAlph: (params: RequestParams = {}) =>
664
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
708
+ this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
665
709
  path: `/infos/supply/circulating-alph`,
666
710
  method: 'GET',
667
711
  ...params
@@ -675,7 +719,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
675
719
  * @request GET:/infos/supply/reserved-alph
676
720
  */
677
721
  getInfosSupplyReservedAlph: (params: RequestParams = {}) =>
678
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
722
+ this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
679
723
  path: `/infos/supply/reserved-alph`,
680
724
  method: 'GET',
681
725
  ...params
@@ -689,7 +733,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
689
733
  * @request GET:/infos/supply/locked-alph
690
734
  */
691
735
  getInfosSupplyLockedAlph: (params: RequestParams = {}) =>
692
- this.request<string, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
736
+ this.request<number, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
693
737
  path: `/infos/supply/locked-alph`,
694
738
  method: 'GET',
695
739
  ...params
@@ -466,7 +466,7 @@ export class Contract extends Common {
466
466
  const signerParams: SignDeployContractTxParams = {
467
467
  signerAddress: params.signerAddress,
468
468
  bytecode: bytecode,
469
- initialAlphAmount: extractOptionalNumber256(params.initialAlphAmount),
469
+ initialAttoAlphAmount: extractOptionalNumber256(params.initialAttoAlphAmount),
470
470
  issueTokenAmount: extractOptionalNumber256(params.issueTokenAmount),
471
471
  initialTokenAmounts: params.initialTokenAmounts?.map(toApiToken),
472
472
  gasAmount: params.gasAmount,
@@ -580,7 +580,7 @@ export class Script extends Common {
580
580
  const signerParams: SignExecuteScriptTxParams = {
581
581
  signerAddress: params.signerAddress,
582
582
  bytecode: this.buildByteCodeToDeploy(params.initialFields ? params.initialFields : {}),
583
- alphAmount: extractOptionalNumber256(params.alphAmount),
583
+ attoAlphAmount: extractOptionalNumber256(params.attoAlphAmount),
584
584
  tokens: typeof params.tokens !== 'undefined' ? params.tokens.map(toApiToken) : undefined,
585
585
  gasAmount: params.gasAmount,
586
586
  gasPrice: extractOptionalNumber256(params.gasPrice)
@@ -825,14 +825,14 @@ function fromApiToken(token: node.Token): Token {
825
825
 
826
826
  function toApiAsset(asset: Asset): node.AssetState {
827
827
  return {
828
- alphAmount: extractNumber256(asset.alphAmount),
828
+ attoAlphAmount: extractNumber256(asset.alphAmount),
829
829
  tokens: typeof asset.tokens !== 'undefined' ? asset.tokens.map(toApiToken) : []
830
830
  }
831
831
  }
832
832
 
833
833
  function fromApiAsset(asset: node.AssetState): Asset {
834
834
  return {
835
- alphAmount: decodeNumber256(asset.alphAmount),
835
+ alphAmount: decodeNumber256(asset.attoAlphAmount),
836
836
  tokens: typeof asset.tokens !== 'undefined' ? asset.tokens.map(fromApiToken) : undefined
837
837
  }
838
838
  }
@@ -950,7 +950,7 @@ function fromApiOutput(output: node.Output): Output {
950
950
  return {
951
951
  type: 'AssetOutput',
952
952
  address: asset.address,
953
- alphAmount: decodeNumber256(asset.alphAmount),
953
+ alphAmount: decodeNumber256(asset.attoAlphAmount),
954
954
  tokens: asset.tokens.map(fromApiToken),
955
955
  lockTime: asset.lockTime,
956
956
  message: asset.message
@@ -960,7 +960,7 @@ function fromApiOutput(output: node.Output): Output {
960
960
  return {
961
961
  type: 'ContractOutput',
962
962
  address: asset.address,
963
- alphAmount: decodeNumber256(asset.alphAmount),
963
+ alphAmount: decodeNumber256(asset.attoAlphAmount),
964
964
  tokens: asset.tokens.map(fromApiToken)
965
965
  }
966
966
  } else {
@@ -986,7 +986,7 @@ type BuildTxParams<T> = Omit<T, 'bytecode'> & { initialFields?: Val[] }
986
986
  export interface BuildDeployContractTx {
987
987
  signerAddress: string
988
988
  initialFields?: Fields
989
- initialAlphAmount?: string
989
+ initialAttoAlphAmount?: string
990
990
  initialTokenAmounts?: Token[]
991
991
  issueTokenAmount?: Number256
992
992
  gasAmount?: number
@@ -998,7 +998,7 @@ assertType<Eq<keyof BuildDeployContractTx, keyof BuildTxParams<SignDeployContrac
998
998
  export interface BuildExecuteScriptTx {
999
999
  signerAddress: string
1000
1000
  initialFields?: Fields
1001
- alphAmount?: Number256
1001
+ attoAlphAmount?: Number256
1002
1002
  tokens?: Token[]
1003
1003
  gasAmount?: number
1004
1004
  gasPrice?: Number256