@initia/initia.js 0.2.14 → 0.2.16
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/TransportWebHID-CVJmgfzo.js +1 -0
- package/dist/TransportWebUSB-V4VV5RPc.js +1 -0
- package/dist/client/lcd/api/EvmAPI.d.ts +1 -0
- package/dist/client/lcd/api/IbcPermAPI.d.ts +8 -3
- package/dist/client/lcd/api/OpchildAPI.d.ts +3 -0
- package/dist/client/lcd/api/OphostAPI.d.ts +4 -1
- package/dist/core/distribution/msgs/MsgDepositValidatorRewardsPool.d.ts +1 -1
- package/dist/core/evm/EvmParams.d.ts +10 -1
- package/dist/core/evm/msgs/MsgCall.d.ts +4 -1
- package/dist/core/evm/msgs/MsgCreate.d.ts +4 -1
- package/dist/core/evm/msgs/MsgCreate2.d.ts +38 -0
- package/dist/core/evm/msgs/index.d.ts +6 -4
- package/dist/core/gov/GovParams.d.ts +5 -1
- package/dist/core/gov/Vesting.d.ts +28 -0
- package/dist/core/ibc/applications/perm/msgs/MsgHaltChannel.d.ts +35 -0
- package/dist/core/ibc/applications/perm/msgs/MsgResumeChannel.d.ts +35 -0
- package/dist/core/ibc/applications/perm/msgs/MsgSetPermissionedRelayers.d.ts +4 -4
- package/dist/core/ibc/applications/perm/msgs/index.d.ts +8 -4
- package/dist/core/move/MoveParams.d.ts +4 -1
- package/dist/core/opchild/OpchildParams.d.ts +4 -4
- package/dist/core/ophost/BatchInfo.d.ts +9 -8
- package/dist/core/ophost/BatchInfoWithOutput.d.ts +26 -0
- package/dist/core/ophost/BridgeConfig.d.ts +10 -7
- package/dist/core/ophost/Output.d.ts +4 -1
- package/dist/core/ophost/index.d.ts +1 -0
- package/dist/core/ophost/msgs/MsgFinalizeTokenWithdrawal.d.ts +13 -13
- package/dist/core/ophost/msgs/MsgProposeOutput.d.ts +4 -1
- package/dist/core/ophost/msgs/MsgUpdateChallengers.d.ts +35 -0
- package/dist/core/ophost/msgs/MsgUpdateOracleConfig.d.ts +35 -0
- package/dist/core/ophost/msgs/index.d.ts +8 -6
- package/dist/index-CGO7OOZz.js +2 -0
- package/dist/index.cjs.js +2 -0
- package/dist/{index.js → index.es.js} +5060 -4525
- package/package.json +8 -3
- package/dist/core/ophost/msgs/MsgUpdateChallenger.d.ts +0 -35
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("@ledgerhq/hw-transport"),f=require("./index-CGO7OOZz.js");var I=function(){var u=function(i,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},u(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}(),l=function(u,i,e,t){function r(n){return n instanceof e?n:new e(function(c){c(n)})}return new(e||(e=Promise))(function(n,c){function d(a){try{o(t.next(a))}catch(v){c(v)}}function s(a){try{o(t.throw(a))}catch(v){c(v)}}function o(a){a.done?n(a.value):r(a.value).then(d,s)}o((t=t.apply(u,i||[])).next())})},h=function(u,i){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},t,r,n,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(o){return function(a){return s([o,a])}}function s(o){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,r&&(n=o[0]&2?r.return:o[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;switch(r=0,n&&(o=[o[0]&2,n.value]),o[0]){case 0:case 1:n=o;break;case 4:return e.label++,{value:o[1],done:!1};case 5:e.label++,r=o[1],o=[0];continue;case 7:o=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){e.label=o[1];break}if(o[0]===6&&e.label<n[1]){e.label=n[1],n=o;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(o);break}n[2]&&e.ops.pop(),e.trys.pop();continue}o=i.call(u,e)}catch(a){o=[6,a],r=0}finally{t=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},k=function(u,i){var e=typeof Symbol=="function"&&u[Symbol.iterator];if(!e)return u;var t=e.call(u),r,n=[],c;try{for(;(i===void 0||i-- >0)&&!(r=t.next()).done;)n.push(r.value)}catch(d){c={error:d}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(c)throw c.error}}return n},E=[{vendorId:f.ledgerUSBVendorId}],O=function(){return Promise.resolve(!!(window.navigator&&window.navigator.hid))},w=function(){var u=navigator.hid;if(!u)throw new f.TransportError("navigator.hid is not supported","HIDNotSupported");return u};function S(){return l(this,void 0,void 0,function(){var u;return h(this,function(i){switch(i.label){case 0:return[4,w().requestDevice({filters:E})];case 1:return u=i.sent(),Array.isArray(u)?[2,u]:[2,[u]]}})})}function _(){return l(this,void 0,void 0,function(){var u;return h(this,function(i){switch(i.label){case 0:return[4,w().getDevices()];case 1:return u=i.sent(),[2,u.filter(function(e){return e.vendorId===f.ledgerUSBVendorId})]}})})}function T(){return l(this,void 0,void 0,function(){var u,i;return h(this,function(e){switch(e.label){case 0:return[4,_()];case 1:return u=e.sent(),u.length>0?[2,u[0]]:[4,S()];case 2:return i=e.sent(),[2,i[0]]}})})}var C=function(u){I(i,u);function i(e){var t=u.call(this)||this;return t.channel=Math.floor(Math.random()*65535),t.packetSize=64,t.inputs=[],t.read=function(){return t.inputs.length?Promise.resolve(t.inputs.shift()):new Promise(function(r){t.inputCallback=r})},t.onInputReport=function(r){var n=Buffer.from(r.data.buffer);t.inputCallback?(t.inputCallback(n),t.inputCallback=null):t.inputs.push(n)},t._disconnectEmitted=!1,t._emitDisconnect=function(r){t._disconnectEmitted||(t._disconnectEmitted=!0,t.emit("disconnect",r))},t.exchange=function(r){return l(t,void 0,void 0,function(){var n,c=this;return h(this,function(d){switch(d.label){case 0:return[4,this.exchangeAtomicImpl(function(){return l(c,void 0,void 0,function(){var s,o,a,v,g,y,b,m,D;return h(this,function(p){switch(p.label){case 0:s=this,o=s.channel,a=s.packetSize,f.log("apdu","=> "+r.toString("hex")),v=f.createHIDframing(o,a),g=v.makeBlocks(r),y=0,p.label=1;case 1:return y<g.length?[4,this.device.sendReport(0,g[y])]:[3,4];case 2:p.sent(),p.label=3;case 3:return y++,[3,1];case 4:return(b=v.getReducedResult(m))?[3,6]:[4,this.read()];case 5:return D=p.sent(),m=v.reduceResponse(m,D),[3,4];case 6:return f.log("apdu","<= "+b.toString("hex")),[2,b]}})})}).catch(function(s){throw s&&s.message&&s.message.includes("write")?(c._emitDisconnect(s),new f.DisconnectedDeviceDuringOperation(s.message)):s})];case 1:return n=d.sent(),[2,n]}})})},t.device=e,t.deviceModel=typeof e.productId=="number"?f.identifyUSBProductId(e.productId):void 0,e.addEventListener("inputreport",t.onInputReport),t}return i.request=function(){return l(this,void 0,void 0,function(){var e,t;return h(this,function(r){switch(r.label){case 0:return[4,S()];case 1:return e=k.apply(void 0,[r.sent(),1]),t=e[0],[2,i.open(t)]}})})},i.openConnected=function(){return l(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:return[4,_()];case 1:return e=t.sent(),e.length===0?[2,null]:[2,i.open(e[0])]}})})},i.open=function(e){return l(this,void 0,void 0,function(){var t,r;return h(this,function(n){switch(n.label){case 0:return[4,e.open()];case 1:return n.sent(),t=new i(e),r=function(c){e===c.device&&(w().removeEventListener("disconnect",r),t._emitDisconnect(new f.DisconnectedDevice))},w().addEventListener("disconnect",r),[2,t]}})})},i.prototype.close=function(){return l(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this.exchangeBusyPromise];case 1:return e.sent(),this.device.removeEventListener("inputreport",this.onInputReport),[4,this.device.close()];case 2:return e.sent(),[2]}})})},i.prototype.setScrambleKey=function(){},i.isSupported=O,i.list=_,i.listen=function(e){var t=!1;T().then(function(n){if(!n)e.error(new f.TransportOpenUserCancelled("Access denied to use Ledger device"));else if(!t){var c=typeof n.productId=="number"?f.identifyUSBProductId(n.productId):void 0;e.next({type:"add",descriptor:n,deviceModel:c}),e.complete()}},function(n){e.error(new f.TransportOpenUserCancelled(n.message))});function r(){t=!0}return{unsubscribe:r}},i}(x);exports.default=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("@ledgerhq/hw-transport"),d=require("./index-CGO7OOZz.js");var p=function(o,c,e,i){function r(n){return n instanceof e?n:new e(function(u){u(n)})}return new(e||(e=Promise))(function(n,u){function f(s){try{t(i.next(s))}catch(l){u(l)}}function a(s){try{t(i.throw(s))}catch(l){u(l)}}function t(s){s.done?n(s.value):r(s.value).then(f,a)}t((i=i.apply(o,c||[])).next())})},m=function(o,c){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(t){return function(s){return a([t,s])}}function a(t){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,r&&(n=t[0]&2?r.return:t[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,t[1])).done)return n;switch(r=0,n&&(t=[t[0]&2,n.value]),t[0]){case 0:case 1:n=t;break;case 4:return e.label++,{value:t[1],done:!1};case 5:e.label++,r=t[1],t=[0];continue;case 7:t=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(t[0]===6||t[0]===2)){e=0;continue}if(t[0]===3&&(!n||t[1]>n[0]&&t[1]<n[3])){e.label=t[1];break}if(t[0]===6&&e.label<n[1]){e.label=n[1],n=t;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(t);break}n[2]&&e.ops.pop(),e.trys.pop();continue}t=c.call(o,e)}catch(s){t=[6,s],r=0}finally{i=n=0}if(t[0]&5)throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}},B=[{vendorId:d.ledgerUSBVendorId}];function I(){return p(this,void 0,void 0,function(){var o;return m(this,function(c){switch(c.label){case 0:return[4,navigator.usb.requestDevice({filters:B})];case 1:return o=c.sent(),[2,o]}})})}function y(){return p(this,void 0,void 0,function(){var o;return m(this,function(c){switch(c.label){case 0:return[4,navigator.usb.getDevices()];case 1:return o=c.sent(),[2,o.filter(function(e){return e.vendorId===d.ledgerUSBVendorId})]}})})}function O(){return p(this,void 0,void 0,function(){var o;return m(this,function(c){switch(c.label){case 0:return[4,y()];case 1:return o=c.sent(),o.length>0?[2,o[0]]:[2,I()]}})})}var T=function(){return Promise.resolve(!!navigator&&!!navigator.usb&&typeof navigator.usb.getDevices=="function")},E=function(){var o=function(c,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[n]=r[n])},o(c,e)};return function(c,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o(c,e);function i(){this.constructor=c}c.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),h=function(o,c,e,i){function r(n){return n instanceof e?n:new e(function(u){u(n)})}return new(e||(e=Promise))(function(n,u){function f(s){try{t(i.next(s))}catch(l){u(l)}}function a(s){try{t(i.throw(s))}catch(l){u(l)}}function t(s){s.done?n(s.value):r(s.value).then(f,a)}t((i=i.apply(o,c||[])).next())})},v=function(o,c){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(t){return function(s){return a([t,s])}}function a(t){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,r&&(n=t[0]&2?r.return:t[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,t[1])).done)return n;switch(r=0,n&&(t=[t[0]&2,n.value]),t[0]){case 0:case 1:n=t;break;case 4:return e.label++,{value:t[1],done:!1};case 5:e.label++,r=t[1],t=[0];continue;case 7:t=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(t[0]===6||t[0]===2)){e=0;continue}if(t[0]===3&&(!n||t[1]>n[0]&&t[1]<n[3])){e.label=t[1];break}if(t[0]===6&&e.label<n[1]){e.label=n[1],n=t;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(t);break}n[2]&&e.ops.pop(),e.trys.pop();continue}t=c.call(o,e)}catch(s){t=[6,s],r=0}finally{i=n=0}if(t[0]&5)throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}},U=1,D=3,N=function(o){E(c,o);function c(e,i){var r=o.call(this)||this;return r.channel=Math.floor(Math.random()*65535),r.packetSize=64,r._disconnectEmitted=!1,r._emitDisconnect=function(n){r._disconnectEmitted||(r._disconnectEmitted=!0,r.emit("disconnect",n))},r.device=e,r.interfaceNumber=i,r.deviceModel=d.identifyUSBProductId(e.productId),r}return c.request=function(){return h(this,void 0,void 0,function(){var e;return v(this,function(i){switch(i.label){case 0:return[4,I()];case 1:return e=i.sent(),[2,c.open(e)]}})})},c.openConnected=function(){return h(this,void 0,void 0,function(){var e;return v(this,function(i){switch(i.label){case 0:return[4,y()];case 1:return e=i.sent(),e.length===0?[2,null]:[2,c.open(e[0])]}})})},c.open=function(e){return h(this,void 0,void 0,function(){var i,r,n,u,f;return v(this,function(a){switch(a.label){case 0:return[4,e.open()];case 1:return a.sent(),e.configuration!==null?[3,3]:[4,e.selectConfiguration(U)];case 2:a.sent(),a.label=3;case 3:return[4,_(e)];case 4:if(a.sent(),i=e.configurations[0].interfaces.find(function(t){var s=t.alternates;return s.some(function(l){return l.interfaceClass===255})}),!i)throw new d.TransportInterfaceNotAvailable("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");r=i.interfaceNumber,a.label=5;case 5:return a.trys.push([5,7,,9]),[4,e.claimInterface(r)];case 6:return a.sent(),[3,9];case 7:return n=a.sent(),[4,e.close()];case 8:throw a.sent(),new d.TransportInterfaceNotAvailable(n.message);case 9:return u=new c(e,r),f=function(t){e===t.device&&(navigator.usb.removeEventListener("disconnect",f),u._emitDisconnect(new d.DisconnectedDevice))},navigator.usb.addEventListener("disconnect",f),[2,u]}})})},c.prototype.close=function(){return h(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,this.exchangeBusyPromise];case 1:return e.sent(),[4,this.device.releaseInterface(this.interfaceNumber)];case 2:return e.sent(),[4,_(this.device)];case 3:return e.sent(),[4,this.device.close()];case 4:return e.sent(),[2]}})})},c.prototype.exchange=function(e){return h(this,void 0,void 0,function(){var i,r=this;return v(this,function(n){switch(n.label){case 0:return[4,this.exchangeAtomicImpl(function(){return h(r,void 0,void 0,function(){var u,f,a,t,s,l,w,g,x,S;return v(this,function(b){switch(b.label){case 0:u=this,f=u.channel,a=u.packetSize,d.log("apdu","=> "+e.toString("hex")),t=d.createHIDframing(f,a),s=t.makeBlocks(e),l=0,b.label=1;case 1:return l<s.length?[4,this.device.transferOut(D,s[l])]:[3,4];case 2:b.sent(),b.label=3;case 3:return l++,[3,1];case 4:return(w=t.getReducedResult(g))?[3,6]:[4,this.device.transferIn(D,a)];case 5:return x=b.sent(),S=Buffer.from(x.data.buffer),g=t.reduceResponse(g,S),[3,4];case 6:return d.log("apdu","<= "+w.toString("hex")),[2,w]}})})}).catch(function(u){throw u&&u.message&&u.message.includes("disconnected")?(r._emitDisconnect(u),new d.DisconnectedDeviceDuringOperation(u.message)):u})];case 1:return i=n.sent(),[2,i]}})})},c.prototype.setScrambleKey=function(){},c.isSupported=T,c.list=y,c.listen=function(e){var i=!1;O().then(function(n){if(!i){var u=d.identifyUSBProductId(n.productId);e.next({type:"add",descriptor:n,deviceModel:u}),e.complete()}},function(n){window.DOMException&&n instanceof window.DOMException&&n.code===18?e.error(new d.TransportWebUSBGestureRequired(n.message)):e.error(new d.TransportOpenUserCancelled(n.message))});function r(){i=!0}return{unsubscribe:r}},c}(k);function _(o){return h(this,void 0,void 0,function(){var c;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o.reset()];case 1:return e.sent(),[3,3];case 2:return c=e.sent(),console.warn(c),[3,3];case 3:return[2]}})})}exports.default=N;
|
|
@@ -14,6 +14,7 @@ export interface CallResponse {
|
|
|
14
14
|
export declare class EvmAPI extends BaseAPI {
|
|
15
15
|
code(contractAddr: AccAddress, params?: APIParams): Promise<string>;
|
|
16
16
|
state(contractAddr: AccAddress, key: string, params?: APIParams): Promise<string>;
|
|
17
|
+
erc20Factory(params?: APIParams): Promise<string>;
|
|
17
18
|
contractAddrByDenom(denom: string, params?: APIParams): Promise<AccAddress>;
|
|
18
19
|
denom(contractAddr: AccAddress, params?: APIParams): Promise<string>;
|
|
19
20
|
call(sender: AccAddress, contractAddr: AccAddress, input: string, withTrace: boolean): Promise<CallResponse>;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ChannelState {
|
|
4
4
|
port_id: string;
|
|
5
5
|
channel_id: string;
|
|
6
|
+
halt_state: HaltState;
|
|
6
7
|
relayers: string[];
|
|
7
8
|
}
|
|
9
|
+
export interface HaltState {
|
|
10
|
+
halted: boolean;
|
|
11
|
+
halted_by: string;
|
|
12
|
+
}
|
|
8
13
|
export declare class IbcPermAPI extends BaseAPI {
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
channelStates(params?: Partial<PaginationOptions & APIParams>): Promise<[ChannelState[], Pagination]>;
|
|
15
|
+
channelState(channelId: string, portId: string): Promise<ChannelState>;
|
|
11
16
|
}
|
|
@@ -5,5 +5,8 @@ export declare class OpchildAPI extends BaseAPI {
|
|
|
5
5
|
validators(params?: Partial<PaginationOptions & APIParams>): Promise<[OpValidator[], Pagination]>;
|
|
6
6
|
validator(validatorAddr: ValAddress, params?: APIParams): Promise<OpValidator>;
|
|
7
7
|
bridgeInfo(params?: APIParams): Promise<BridgeInfo>;
|
|
8
|
+
nextL1Sequence(params?: APIParams): Promise<number>;
|
|
9
|
+
nextL2Sequence(params?: APIParams): Promise<number>;
|
|
10
|
+
baseDenom(denom: string, params?: APIParams): Promise<string>;
|
|
8
11
|
parameters(params?: APIParams): Promise<OpchildParams>;
|
|
9
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
-
import { OphostParams, Output, BridgeInfo } from '../../../core';
|
|
3
|
+
import { OphostParams, Output, BridgeInfo, BatchInfoWithOutput } from '../../../core';
|
|
4
4
|
export interface TokenPair {
|
|
5
5
|
l1_denom: string;
|
|
6
6
|
l2_denom: string;
|
|
@@ -26,5 +26,8 @@ export declare class OphostAPI extends BaseAPI {
|
|
|
26
26
|
lastFinalizedOutput(bridgeId: number, params?: Partial<PaginationOptions & APIParams>): Promise<OutputInfo>;
|
|
27
27
|
outputInfos(bridgeId: number, params?: Partial<PaginationOptions & APIParams>): Promise<[OutputInfo[], Pagination]>;
|
|
28
28
|
outputInfo(bridgeId: number, outputIndex: number, params?: APIParams): Promise<OutputInfo>;
|
|
29
|
+
withdrawalClaimed(bridgeId: number, withdrawalHash: string, params?: APIParams): Promise<boolean>;
|
|
30
|
+
nextL1Sequence(bridgeId: number, params?: APIParams): Promise<number>;
|
|
31
|
+
batchInfos(bridgeId: number, params?: Partial<PaginationOptions & APIParams>): Promise<[BatchInfoWithOutput[], Pagination]>;
|
|
29
32
|
parameters(params?: APIParams): Promise<OphostParams>;
|
|
30
33
|
}
|
|
@@ -21,7 +21,7 @@ export declare class MsgDepositValidatorRewardsPool extends JSONSerializable<Msg
|
|
|
21
21
|
}
|
|
22
22
|
export declare namespace MsgDepositValidatorRewardsPool {
|
|
23
23
|
interface Amino {
|
|
24
|
-
type: '
|
|
24
|
+
type: 'distr/MsgDepositValidatorRewardsPool';
|
|
25
25
|
value: {
|
|
26
26
|
depositor: AccAddress;
|
|
27
27
|
validator_address: ValAddress;
|
|
@@ -3,7 +3,10 @@ import { Params as Params_pb } from '@initia/initia.proto/minievm/evm/v1/types';
|
|
|
3
3
|
export declare class EvmParams extends JSONSerializable<EvmParams.Amino, EvmParams.Data, EvmParams.Proto> {
|
|
4
4
|
extra_eips: number[];
|
|
5
5
|
allowed_publishers: string[];
|
|
6
|
-
|
|
6
|
+
allow_custom_erc20: boolean;
|
|
7
|
+
allowed_custom_erc20s: string[];
|
|
8
|
+
fee_denom: string;
|
|
9
|
+
constructor(extra_eips: number[], allowed_publishers: string[], allow_custom_erc20: boolean, allowed_custom_erc20s: string[], fee_denom: string);
|
|
7
10
|
static fromAmino(data: EvmParams.Amino): EvmParams;
|
|
8
11
|
toAmino(): EvmParams.Amino;
|
|
9
12
|
static fromData(data: EvmParams.Data): EvmParams;
|
|
@@ -15,10 +18,16 @@ export declare namespace EvmParams {
|
|
|
15
18
|
interface Amino {
|
|
16
19
|
extra_eips: string[];
|
|
17
20
|
allowed_publishers: string[];
|
|
21
|
+
allow_custom_erc20: boolean;
|
|
22
|
+
allowed_custom_erc20s: string[];
|
|
23
|
+
fee_denom: string;
|
|
18
24
|
}
|
|
19
25
|
interface Data {
|
|
20
26
|
extra_eips: string[];
|
|
21
27
|
allowed_publishers: string[];
|
|
28
|
+
allow_custom_erc20: boolean;
|
|
29
|
+
allowed_custom_erc20s: string[];
|
|
30
|
+
fee_denom: string;
|
|
22
31
|
}
|
|
23
32
|
type Proto = Params_pb;
|
|
24
33
|
}
|
|
@@ -6,7 +6,8 @@ export declare class MsgCall extends JSONSerializable<MsgCall.Amino, MsgCall.Dat
|
|
|
6
6
|
sender: AccAddress;
|
|
7
7
|
contract_addr: AccAddress;
|
|
8
8
|
input: string;
|
|
9
|
-
|
|
9
|
+
value: string;
|
|
10
|
+
constructor(sender: AccAddress, contract_addr: AccAddress, input: string, value: string);
|
|
10
11
|
static fromAmino(data: MsgCall.Amino): MsgCall;
|
|
11
12
|
toAmino(): MsgCall.Amino;
|
|
12
13
|
static fromData(data: MsgCall.Data): MsgCall;
|
|
@@ -23,6 +24,7 @@ export declare namespace MsgCall {
|
|
|
23
24
|
sender: AccAddress;
|
|
24
25
|
contract_addr: AccAddress;
|
|
25
26
|
input: string;
|
|
27
|
+
value: string;
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
interface Data {
|
|
@@ -30,6 +32,7 @@ export declare namespace MsgCall {
|
|
|
30
32
|
sender: AccAddress;
|
|
31
33
|
contract_addr: AccAddress;
|
|
32
34
|
input: string;
|
|
35
|
+
value: string;
|
|
33
36
|
}
|
|
34
37
|
type Proto = MsgCall_pb;
|
|
35
38
|
}
|
|
@@ -5,7 +5,8 @@ import { MsgCreate as MsgCreate_pb } from '@initia/initia.proto/minievm/evm/v1/t
|
|
|
5
5
|
export declare class MsgCreate extends JSONSerializable<MsgCreate.Amino, MsgCreate.Data, MsgCreate.Proto> {
|
|
6
6
|
sender: AccAddress;
|
|
7
7
|
code: string;
|
|
8
|
-
|
|
8
|
+
value: string;
|
|
9
|
+
constructor(sender: AccAddress, code: string, value: string);
|
|
9
10
|
static fromAmino(data: MsgCreate.Amino): MsgCreate;
|
|
10
11
|
toAmino(): MsgCreate.Amino;
|
|
11
12
|
static fromData(data: MsgCreate.Data): MsgCreate;
|
|
@@ -21,12 +22,14 @@ export declare namespace MsgCreate {
|
|
|
21
22
|
value: {
|
|
22
23
|
sender: AccAddress;
|
|
23
24
|
code: string;
|
|
25
|
+
value: string;
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
interface Data {
|
|
27
29
|
'@type': '/minievm.evm.v1.MsgCreate';
|
|
28
30
|
sender: AccAddress;
|
|
29
31
|
code: string;
|
|
32
|
+
value: string;
|
|
30
33
|
}
|
|
31
34
|
type Proto = MsgCreate_pb;
|
|
32
35
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgCreate2 as MsgCreate2_pb } from '@initia/initia.proto/minievm/evm/v1/tx';
|
|
5
|
+
export declare class MsgCreate2 extends JSONSerializable<MsgCreate2.Amino, MsgCreate2.Data, MsgCreate2.Proto> {
|
|
6
|
+
sender: AccAddress;
|
|
7
|
+
code: string;
|
|
8
|
+
salt: number;
|
|
9
|
+
value: string;
|
|
10
|
+
constructor(sender: AccAddress, code: string, salt: number, value: string);
|
|
11
|
+
static fromAmino(data: MsgCreate2.Amino): MsgCreate2;
|
|
12
|
+
toAmino(): MsgCreate2.Amino;
|
|
13
|
+
static fromData(data: MsgCreate2.Data): MsgCreate2;
|
|
14
|
+
toData(): MsgCreate2.Data;
|
|
15
|
+
static fromProto(data: MsgCreate2.Proto): MsgCreate2;
|
|
16
|
+
toProto(): MsgCreate2.Proto;
|
|
17
|
+
packAny(): Any;
|
|
18
|
+
static unpackAny(msgAny: Any): MsgCreate2;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace MsgCreate2 {
|
|
21
|
+
interface Amino {
|
|
22
|
+
type: 'evm/MsgCreate2';
|
|
23
|
+
value: {
|
|
24
|
+
sender: AccAddress;
|
|
25
|
+
code: string;
|
|
26
|
+
salt: string;
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
interface Data {
|
|
31
|
+
'@type': '/minievm.evm.v1.MsgCreate2';
|
|
32
|
+
sender: AccAddress;
|
|
33
|
+
code: string;
|
|
34
|
+
salt: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
type Proto = MsgCreate2_pb;
|
|
38
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { MsgCreate } from './MsgCreate';
|
|
2
|
+
import { MsgCreate2 } from './MsgCreate2';
|
|
2
3
|
import { MsgCall } from './MsgCall';
|
|
3
4
|
import { MsgUpdateEvmParams } from './MsgUpdateEvmParams';
|
|
4
5
|
export * from './MsgCreate';
|
|
6
|
+
export * from './MsgCreate2';
|
|
5
7
|
export * from './MsgCall';
|
|
6
8
|
export * from './MsgUpdateEvmParams';
|
|
7
|
-
export type EvmMsg = MsgCreate | MsgCall | MsgUpdateEvmParams;
|
|
9
|
+
export type EvmMsg = MsgCreate | MsgCreate2 | MsgCall | MsgUpdateEvmParams;
|
|
8
10
|
export declare namespace EvmMsg {
|
|
9
|
-
type Amino = MsgCreate.Amino | MsgCall.Amino | MsgUpdateEvmParams.Amino;
|
|
10
|
-
type Data = MsgCreate.Data | MsgCall.Data | MsgUpdateEvmParams.Data;
|
|
11
|
-
type Proto = MsgCreate.Proto | MsgCall.Proto | MsgUpdateEvmParams.Proto;
|
|
11
|
+
type Amino = MsgCreate.Amino | MsgCreate2.Amino | MsgCall.Amino | MsgUpdateEvmParams.Amino;
|
|
12
|
+
type Data = MsgCreate.Data | MsgCreate2.Data | MsgCall.Data | MsgUpdateEvmParams.Data;
|
|
13
|
+
type Proto = MsgCreate.Proto | MsgCreate2.Proto | MsgCall.Proto | MsgUpdateEvmParams.Proto;
|
|
12
14
|
}
|
|
@@ -2,6 +2,7 @@ import { JSONSerializable } from '../../util/json';
|
|
|
2
2
|
import { AccAddress } from '../bech32';
|
|
3
3
|
import { Coins } from '../Coins';
|
|
4
4
|
import { Duration } from '../Duration';
|
|
5
|
+
import { Vesting } from './Vesting';
|
|
5
6
|
import { Params as Params_pb } from '@initia/initia.proto/initia/gov/v1/gov';
|
|
6
7
|
export declare class GovParams extends JSONSerializable<GovParams.Amino, GovParams.Data, GovParams.Proto> {
|
|
7
8
|
max_deposit_period: Duration;
|
|
@@ -20,10 +21,11 @@ export declare class GovParams extends JSONSerializable<GovParams.Amino, GovPara
|
|
|
20
21
|
min_deposit_ratio: string;
|
|
21
22
|
emergency_tally_interval: Duration;
|
|
22
23
|
low_threshold_functions: string[];
|
|
24
|
+
vesting?: Vesting | undefined;
|
|
23
25
|
min_deposit: Coins;
|
|
24
26
|
expedited_min_deposit: Coins;
|
|
25
27
|
emergency_min_deposit: Coins;
|
|
26
|
-
constructor(min_deposit: Coins.Input, max_deposit_period: Duration, voting_period: Duration, quorum: string, threshold: string, veto_threshold: string, min_initial_deposit_ratio: string, proposal_cancel_ratio: string, proposal_cancel_dest: AccAddress, expedited_voting_period: Duration, expedited_threshold: string, expedited_min_deposit: Coins.Input, burn_vote_quorum: boolean, burn_proposal_deposit_prevote: boolean, burn_vote_veto: boolean, min_deposit_ratio: string, emergency_min_deposit: Coins.Input, emergency_tally_interval: Duration, low_threshold_functions: string[]);
|
|
28
|
+
constructor(min_deposit: Coins.Input, max_deposit_period: Duration, voting_period: Duration, quorum: string, threshold: string, veto_threshold: string, min_initial_deposit_ratio: string, proposal_cancel_ratio: string, proposal_cancel_dest: AccAddress, expedited_voting_period: Duration, expedited_threshold: string, expedited_min_deposit: Coins.Input, burn_vote_quorum: boolean, burn_proposal_deposit_prevote: boolean, burn_vote_veto: boolean, min_deposit_ratio: string, emergency_min_deposit: Coins.Input, emergency_tally_interval: Duration, low_threshold_functions: string[], vesting?: Vesting | undefined);
|
|
27
29
|
static fromAmino(data: GovParams.Amino): GovParams;
|
|
28
30
|
toAmino(): GovParams.Amino;
|
|
29
31
|
static fromData(data: GovParams.Data): GovParams;
|
|
@@ -52,6 +54,7 @@ export declare namespace GovParams {
|
|
|
52
54
|
emergency_min_deposit: Coins.Amino;
|
|
53
55
|
emergency_tally_interval: Duration.Amino;
|
|
54
56
|
low_threshold_functions: string[];
|
|
57
|
+
vesting?: Vesting.Amino;
|
|
55
58
|
}
|
|
56
59
|
interface Data {
|
|
57
60
|
min_deposit: Coins.Data;
|
|
@@ -73,6 +76,7 @@ export declare namespace GovParams {
|
|
|
73
76
|
emergency_min_deposit: Coins.Data;
|
|
74
77
|
emergency_tally_interval: Duration.Data;
|
|
75
78
|
low_threshold_functions: string[];
|
|
79
|
+
vesting?: Vesting.Data;
|
|
76
80
|
}
|
|
77
81
|
type Proto = Params_pb;
|
|
78
82
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { AccAddress } from '../bech32';
|
|
3
|
+
import { Vesting as Vesting_pb } from '@initia/initia.proto/initia/gov/v1/gov';
|
|
4
|
+
export declare class Vesting extends JSONSerializable<Vesting.Amino, Vesting.Data, Vesting.Proto> {
|
|
5
|
+
module_addr: AccAddress;
|
|
6
|
+
module_name: string;
|
|
7
|
+
creator_addr: AccAddress;
|
|
8
|
+
constructor(module_addr: AccAddress, module_name: string, creator_addr: AccAddress);
|
|
9
|
+
static fromAmino(data: Vesting.Amino): Vesting;
|
|
10
|
+
toAmino(): Vesting.Amino;
|
|
11
|
+
static fromData(data: Vesting.Data): Vesting;
|
|
12
|
+
toData(): Vesting.Data;
|
|
13
|
+
static fromProto(data: Vesting.Proto): Vesting;
|
|
14
|
+
toProto(): Vesting.Proto;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace Vesting {
|
|
17
|
+
interface Amino {
|
|
18
|
+
module_addr: AccAddress;
|
|
19
|
+
module_name: string;
|
|
20
|
+
creator_addr: AccAddress;
|
|
21
|
+
}
|
|
22
|
+
interface Data {
|
|
23
|
+
module_addr: AccAddress;
|
|
24
|
+
module_name: string;
|
|
25
|
+
creator_addr: AccAddress;
|
|
26
|
+
}
|
|
27
|
+
type Proto = Vesting_pb;
|
|
28
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgHaltChannel as MsgHaltChannel_pb } from '@initia/initia.proto/ibc/applications/perm/v1/tx';
|
|
5
|
+
export declare class MsgHaltChannel extends JSONSerializable<MsgHaltChannel.Amino, MsgHaltChannel.Data, MsgHaltChannel.Proto> {
|
|
6
|
+
authority: AccAddress;
|
|
7
|
+
channel_id: string;
|
|
8
|
+
port_id: string;
|
|
9
|
+
constructor(authority: AccAddress, channel_id: string, port_id: string);
|
|
10
|
+
static fromAmino(data: MsgHaltChannel.Amino): MsgHaltChannel;
|
|
11
|
+
toAmino(): MsgHaltChannel.Amino;
|
|
12
|
+
static fromData(data: MsgHaltChannel.Data): MsgHaltChannel;
|
|
13
|
+
toData(): MsgHaltChannel.Data;
|
|
14
|
+
static fromProto(data: MsgHaltChannel.Proto): MsgHaltChannel;
|
|
15
|
+
toProto(): MsgHaltChannel.Proto;
|
|
16
|
+
packAny(): Any;
|
|
17
|
+
static unpackAny(msgAny: Any): MsgHaltChannel;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace MsgHaltChannel {
|
|
20
|
+
interface Amino {
|
|
21
|
+
type: 'perm/MsgHaltChannel';
|
|
22
|
+
value: {
|
|
23
|
+
authority: AccAddress;
|
|
24
|
+
channel_id: string;
|
|
25
|
+
port_id: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface Data {
|
|
29
|
+
'@type': '/ibc.applications.perm.v1.MsgHaltChannel';
|
|
30
|
+
authority: AccAddress;
|
|
31
|
+
channel_id: string;
|
|
32
|
+
port_id: string;
|
|
33
|
+
}
|
|
34
|
+
type Proto = MsgHaltChannel_pb;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgResumeChannel as MsgResumeChannel_pb } from '@initia/initia.proto/ibc/applications/perm/v1/tx';
|
|
5
|
+
export declare class MsgResumeChannel extends JSONSerializable<MsgResumeChannel.Amino, MsgResumeChannel.Data, MsgResumeChannel.Proto> {
|
|
6
|
+
authority: AccAddress;
|
|
7
|
+
channel_id: string;
|
|
8
|
+
port_id: string;
|
|
9
|
+
constructor(authority: AccAddress, channel_id: string, port_id: string);
|
|
10
|
+
static fromAmino(data: MsgResumeChannel.Amino): MsgResumeChannel;
|
|
11
|
+
toAmino(): MsgResumeChannel.Amino;
|
|
12
|
+
static fromData(data: MsgResumeChannel.Data): MsgResumeChannel;
|
|
13
|
+
toData(): MsgResumeChannel.Data;
|
|
14
|
+
static fromProto(data: MsgResumeChannel.Proto): MsgResumeChannel;
|
|
15
|
+
toProto(): MsgResumeChannel.Proto;
|
|
16
|
+
packAny(): Any;
|
|
17
|
+
static unpackAny(msgAny: Any): MsgResumeChannel;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace MsgResumeChannel {
|
|
20
|
+
interface Amino {
|
|
21
|
+
type: 'perm/MsgResumeChannel';
|
|
22
|
+
value: {
|
|
23
|
+
authority: AccAddress;
|
|
24
|
+
channel_id: string;
|
|
25
|
+
port_id: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
interface Data {
|
|
29
|
+
'@type': '/ibc.applications.perm.v1.MsgResumeChannel';
|
|
30
|
+
authority: AccAddress;
|
|
31
|
+
channel_id: string;
|
|
32
|
+
port_id: string;
|
|
33
|
+
}
|
|
34
|
+
type Proto = MsgResumeChannel_pb;
|
|
35
|
+
}
|
|
@@ -4,10 +4,10 @@ import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
|
4
4
|
import { MsgSetPermissionedRelayers as MsgSetPermissionedRelayers_pb } from '@initia/initia.proto/ibc/applications/perm/v1/tx';
|
|
5
5
|
export declare class MsgSetPermissionedRelayers extends JSONSerializable<MsgSetPermissionedRelayers.Amino, MsgSetPermissionedRelayers.Data, MsgSetPermissionedRelayers.Proto> {
|
|
6
6
|
authority: AccAddress;
|
|
7
|
-
port_id: string;
|
|
8
7
|
channel_id: string;
|
|
8
|
+
port_id: string;
|
|
9
9
|
relayers: string[];
|
|
10
|
-
constructor(authority: AccAddress,
|
|
10
|
+
constructor(authority: AccAddress, channel_id: string, port_id: string, relayers: string[]);
|
|
11
11
|
static fromAmino(data: MsgSetPermissionedRelayers.Amino): MsgSetPermissionedRelayers;
|
|
12
12
|
toAmino(): MsgSetPermissionedRelayers.Amino;
|
|
13
13
|
static fromData(data: MsgSetPermissionedRelayers.Data): MsgSetPermissionedRelayers;
|
|
@@ -22,16 +22,16 @@ export declare namespace MsgSetPermissionedRelayers {
|
|
|
22
22
|
type: 'perm/MsgSetPermissionedRelayers';
|
|
23
23
|
value: {
|
|
24
24
|
authority: AccAddress;
|
|
25
|
-
port_id: string;
|
|
26
25
|
channel_id: string;
|
|
26
|
+
port_id: string;
|
|
27
27
|
relayers: string[];
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
interface Data {
|
|
31
31
|
'@type': '/ibc.applications.perm.v1.MsgSetPermissionedRelayers';
|
|
32
32
|
authority: AccAddress;
|
|
33
|
-
port_id: string;
|
|
34
33
|
channel_id: string;
|
|
34
|
+
port_id: string;
|
|
35
35
|
relayers: string[];
|
|
36
36
|
}
|
|
37
37
|
type Proto = MsgSetPermissionedRelayers_pb;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { MsgSetPermissionedRelayers } from './MsgSetPermissionedRelayers';
|
|
2
|
+
import { MsgHaltChannel } from './MsgHaltChannel';
|
|
3
|
+
import { MsgResumeChannel } from './MsgResumeChannel';
|
|
2
4
|
export * from './MsgSetPermissionedRelayers';
|
|
3
|
-
export
|
|
5
|
+
export * from './MsgHaltChannel';
|
|
6
|
+
export * from './MsgResumeChannel';
|
|
7
|
+
export type IbcPermMsg = MsgSetPermissionedRelayers | MsgHaltChannel | MsgResumeChannel;
|
|
4
8
|
export declare namespace IbcPermMsg {
|
|
5
|
-
type Amino = MsgSetPermissionedRelayers.Amino;
|
|
6
|
-
type Data = MsgSetPermissionedRelayers.Data;
|
|
7
|
-
type Proto = MsgSetPermissionedRelayers.Proto;
|
|
9
|
+
type Amino = MsgSetPermissionedRelayers.Amino | MsgHaltChannel.Amino | MsgResumeChannel.Amino;
|
|
10
|
+
type Data = MsgSetPermissionedRelayers.Data | MsgHaltChannel.Data | MsgResumeChannel.Data;
|
|
11
|
+
type Proto = MsgSetPermissionedRelayers.Proto | MsgHaltChannel.Proto | MsgResumeChannel.Proto;
|
|
8
12
|
}
|
|
@@ -4,8 +4,9 @@ export declare class MoveParams extends JSONSerializable<MoveParams.Amino, MoveP
|
|
|
4
4
|
base_denom: string;
|
|
5
5
|
base_min_gas_price: string;
|
|
6
6
|
contract_shared_revenue_ratio: string;
|
|
7
|
+
script_enabled: boolean;
|
|
7
8
|
allowed_publishers: string[];
|
|
8
|
-
constructor(base_denom: string, base_min_gas_price: string, contract_shared_revenue_ratio: string, allowed_publishers: string[]);
|
|
9
|
+
constructor(base_denom: string, base_min_gas_price: string, contract_shared_revenue_ratio: string, script_enabled: boolean, allowed_publishers: string[]);
|
|
9
10
|
static fromAmino(data: MoveParams.Amino): MoveParams;
|
|
10
11
|
toAmino(): MoveParams.Amino;
|
|
11
12
|
static fromData(data: MoveParams.Data): MoveParams;
|
|
@@ -20,6 +21,7 @@ export declare namespace MoveParams {
|
|
|
20
21
|
base_denom: string;
|
|
21
22
|
base_min_gas_price: string;
|
|
22
23
|
contract_shared_revenue_ratio: string;
|
|
24
|
+
script_enabled: boolean;
|
|
23
25
|
allowed_publishers: string[];
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -28,6 +30,7 @@ export declare namespace MoveParams {
|
|
|
28
30
|
base_denom: string;
|
|
29
31
|
base_min_gas_price: string;
|
|
30
32
|
contract_shared_revenue_ratio: string;
|
|
33
|
+
script_enabled: boolean;
|
|
31
34
|
allowed_publishers: string[];
|
|
32
35
|
}
|
|
33
36
|
type Proto = Params_pb;
|
|
@@ -5,11 +5,11 @@ import { Params as Params_pb } from '@initia/opinit.proto/opinit/opchild/v1/type
|
|
|
5
5
|
export declare class OpchildParams extends JSONSerializable<OpchildParams.Amino, OpchildParams.Data, OpchildParams.Proto> {
|
|
6
6
|
max_validators: number;
|
|
7
7
|
historical_entries: number;
|
|
8
|
-
|
|
8
|
+
bridge_executors: AccAddress[];
|
|
9
9
|
admin: AccAddress;
|
|
10
10
|
fee_whitelist: string[];
|
|
11
11
|
min_gas_prices: Coins;
|
|
12
|
-
constructor(max_validators: number, historical_entries: number, min_gas_prices: Coins.Input,
|
|
12
|
+
constructor(max_validators: number, historical_entries: number, min_gas_prices: Coins.Input, bridge_executors: AccAddress[], admin: AccAddress, fee_whitelist: string[]);
|
|
13
13
|
static fromAmino(data: OpchildParams.Amino): OpchildParams;
|
|
14
14
|
toAmino(): OpchildParams.Amino;
|
|
15
15
|
static fromData(data: OpchildParams.Data): OpchildParams;
|
|
@@ -24,7 +24,7 @@ export declare namespace OpchildParams {
|
|
|
24
24
|
max_validators: number;
|
|
25
25
|
historical_entries: number;
|
|
26
26
|
min_gas_prices: Coins.Amino;
|
|
27
|
-
|
|
27
|
+
bridge_executors: AccAddress[];
|
|
28
28
|
admin: AccAddress;
|
|
29
29
|
fee_whitelist: string[];
|
|
30
30
|
};
|
|
@@ -34,7 +34,7 @@ export declare namespace OpchildParams {
|
|
|
34
34
|
max_validators: number;
|
|
35
35
|
historical_entries: number;
|
|
36
36
|
min_gas_prices: Coins.Data;
|
|
37
|
-
|
|
37
|
+
bridge_executors: AccAddress[];
|
|
38
38
|
admin: AccAddress;
|
|
39
39
|
fee_whitelist: string[];
|
|
40
40
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { JSONSerializable } from '../../util/json';
|
|
2
|
-
import {
|
|
2
|
+
import { AccAddress } from '../bech32';
|
|
3
|
+
import { BatchInfo as BatchInfo_pb, BatchInfo_ChainType as ChainType } from '@initia/opinit.proto/opinit/ophost/v1/types';
|
|
3
4
|
export declare class BatchInfo extends JSONSerializable<BatchInfo.Amino, BatchInfo.Data, BatchInfo.Proto> {
|
|
4
|
-
submitter:
|
|
5
|
-
|
|
6
|
-
constructor(submitter:
|
|
5
|
+
submitter: AccAddress;
|
|
6
|
+
chain_type: ChainType;
|
|
7
|
+
constructor(submitter: AccAddress, chain_type: ChainType);
|
|
7
8
|
static fromAmino(data: BatchInfo.Amino): BatchInfo;
|
|
8
9
|
toAmino(): BatchInfo.Amino;
|
|
9
10
|
static fromData(data: BatchInfo.Data): BatchInfo;
|
|
@@ -13,12 +14,12 @@ export declare class BatchInfo extends JSONSerializable<BatchInfo.Amino, BatchIn
|
|
|
13
14
|
}
|
|
14
15
|
export declare namespace BatchInfo {
|
|
15
16
|
interface Amino {
|
|
16
|
-
submitter:
|
|
17
|
-
|
|
17
|
+
submitter: AccAddress;
|
|
18
|
+
chain_type: string;
|
|
18
19
|
}
|
|
19
20
|
interface Data {
|
|
20
|
-
submitter:
|
|
21
|
-
|
|
21
|
+
submitter: AccAddress;
|
|
22
|
+
chain_type: string;
|
|
22
23
|
}
|
|
23
24
|
type Proto = BatchInfo_pb;
|
|
24
25
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { BatchInfoWithOutput as BatchInfoWithOutput_pb } from '@initia/opinit.proto/opinit/ophost/v1/types';
|
|
3
|
+
import { BatchInfo } from './BatchInfo';
|
|
4
|
+
import { Output } from './Output';
|
|
5
|
+
export declare class BatchInfoWithOutput extends JSONSerializable<BatchInfoWithOutput.Amino, BatchInfoWithOutput.Data, BatchInfoWithOutput.Proto> {
|
|
6
|
+
batch_info: BatchInfo;
|
|
7
|
+
output: Output;
|
|
8
|
+
constructor(batch_info: BatchInfo, output: Output);
|
|
9
|
+
static fromAmino(data: BatchInfoWithOutput.Amino): BatchInfoWithOutput;
|
|
10
|
+
toAmino(): BatchInfoWithOutput.Amino;
|
|
11
|
+
static fromData(data: BatchInfoWithOutput.Data): BatchInfoWithOutput;
|
|
12
|
+
toData(): BatchInfoWithOutput.Data;
|
|
13
|
+
static fromProto(data: BatchInfoWithOutput.Proto): BatchInfoWithOutput;
|
|
14
|
+
toProto(): BatchInfoWithOutput.Proto;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace BatchInfoWithOutput {
|
|
17
|
+
interface Amino {
|
|
18
|
+
batch_info: BatchInfo.Amino;
|
|
19
|
+
output: Output.Amino;
|
|
20
|
+
}
|
|
21
|
+
interface Data {
|
|
22
|
+
batch_info: BatchInfo.Data;
|
|
23
|
+
output: Output.Data;
|
|
24
|
+
}
|
|
25
|
+
type Proto = BatchInfoWithOutput_pb;
|
|
26
|
+
}
|
|
@@ -4,14 +4,15 @@ import { Duration } from '../Duration';
|
|
|
4
4
|
import { BridgeConfig as BridgeConfig_pb } from '@initia/opinit.proto/opinit/ophost/v1/types';
|
|
5
5
|
import { BatchInfo } from './BatchInfo';
|
|
6
6
|
export declare class BridgeConfig extends JSONSerializable<BridgeConfig.Amino, BridgeConfig.Data, BridgeConfig.Proto> {
|
|
7
|
-
|
|
7
|
+
challengers: AccAddress[];
|
|
8
8
|
proposer: AccAddress;
|
|
9
9
|
batch_info: BatchInfo;
|
|
10
10
|
submission_interval: Duration;
|
|
11
11
|
finalization_period: Duration;
|
|
12
|
-
|
|
12
|
+
submission_start_height: number;
|
|
13
|
+
oracle_enabled: boolean;
|
|
13
14
|
metadata?: string | undefined;
|
|
14
|
-
constructor(
|
|
15
|
+
constructor(challengers: AccAddress[], proposer: AccAddress, batch_info: BatchInfo, submission_interval: Duration, finalization_period: Duration, submission_start_height: number, oracle_enabled: boolean, metadata?: string | undefined);
|
|
15
16
|
static fromAmino(data: BridgeConfig.Amino): BridgeConfig;
|
|
16
17
|
toAmino(): BridgeConfig.Amino;
|
|
17
18
|
static fromData(data: BridgeConfig.Data): BridgeConfig;
|
|
@@ -21,21 +22,23 @@ export declare class BridgeConfig extends JSONSerializable<BridgeConfig.Amino, B
|
|
|
21
22
|
}
|
|
22
23
|
export declare namespace BridgeConfig {
|
|
23
24
|
interface Amino {
|
|
24
|
-
|
|
25
|
+
challengers: AccAddress[];
|
|
25
26
|
proposer: AccAddress;
|
|
26
27
|
batch_info: BatchInfo.Amino;
|
|
27
28
|
submission_interval: Duration.Amino;
|
|
28
29
|
finalization_period: Duration.Amino;
|
|
29
|
-
|
|
30
|
+
submission_start_height: string;
|
|
31
|
+
oracle_enabled: boolean;
|
|
30
32
|
metadata?: string;
|
|
31
33
|
}
|
|
32
34
|
interface Data {
|
|
33
|
-
|
|
35
|
+
challengers: AccAddress[];
|
|
34
36
|
proposer: AccAddress;
|
|
35
37
|
batch_info: BatchInfo.Data;
|
|
36
38
|
submission_interval: Duration.Data;
|
|
37
39
|
finalization_period: Duration.Data;
|
|
38
|
-
|
|
40
|
+
submission_start_height: string;
|
|
41
|
+
oracle_enabled: boolean;
|
|
39
42
|
metadata?: string;
|
|
40
43
|
}
|
|
41
44
|
type Proto = BridgeConfig_pb;
|
|
@@ -2,9 +2,10 @@ import { JSONSerializable } from '../../util/json';
|
|
|
2
2
|
import { Output as Output_pb } from '@initia/opinit.proto/opinit/ophost/v1/types';
|
|
3
3
|
export declare class Output extends JSONSerializable<Output.Amino, Output.Data, Output.Proto> {
|
|
4
4
|
output_root: string;
|
|
5
|
+
l1_block_number: number;
|
|
5
6
|
l1_block_time: Date;
|
|
6
7
|
l2_block_number: number;
|
|
7
|
-
constructor(output_root: string, l1_block_time: Date, l2_block_number: number);
|
|
8
|
+
constructor(output_root: string, l1_block_number: number, l1_block_time: Date, l2_block_number: number);
|
|
8
9
|
static fromAmino(data: Output.Amino): Output;
|
|
9
10
|
toAmino(): Output.Amino;
|
|
10
11
|
static fromData(data: Output.Data): Output;
|
|
@@ -15,11 +16,13 @@ export declare class Output extends JSONSerializable<Output.Amino, Output.Data,
|
|
|
15
16
|
export declare namespace Output {
|
|
16
17
|
interface Amino {
|
|
17
18
|
output_root: string;
|
|
19
|
+
l1_block_number: string;
|
|
18
20
|
l1_block_time: string;
|
|
19
21
|
l2_block_number: string;
|
|
20
22
|
}
|
|
21
23
|
interface Data {
|
|
22
24
|
output_root: string;
|
|
25
|
+
l1_block_number: string;
|
|
23
26
|
l1_block_time: string;
|
|
24
27
|
l2_block_number: string;
|
|
25
28
|
}
|